{
  "id": "beta-distribution",
  "title": "Beta Distribution",
  "lang": "en",
  "source_lang": "en",
  "summary": "A flexible family of continuous probability distributions on the unit interval, widely used to model proportions and uncertainty about probabilities.",
  "category": "mathematics",
  "subcategory": "probability-statistics",
  "type": "concept",
  "aliases": [
    "Beta probability distribution",
    "Beta distribution of the first kind"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/beta-distribution/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/beta-distribution/",
      "json": "https://aiwiki.page/zh/beta-distribution.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "The beta distribution is a family of continuous probability distributions describing a random variable between zero and one. It has two positive shape parameters, usually denoted \\(\\alpha\\) and \\(\\beta\\), and is written \\(X\\sim\\operatorname{Beta}(\\alpha,\\beta)\\). Its bounded range and varied shapes make it useful for representing proportions and uncertain probabilities. In particular, it provides an analytically tractable model for uncertainty about the success probability of a binary experiment. (docs.scipy.org)"
    },
    {
      "heading": "Definition and distribution function",
      "text": "For \\(\\alpha>0\\) and \\(\\beta>0\\), the probability density function is\n\n\\[f(x;\\alpha,\\beta) =\\frac{x^{\\alpha-1}(1-x)^{\\beta-1}}{B(\\alpha,\\beta)}, \\qquad 0<x<1,\\]\n\nand is zero outside the unit interval. The normalizing constant is the beta function, defined by the integral\n\n\\[B(\\alpha,\\beta) =\\int_0^1 t^{\\alpha-1}(1-t)^{\\beta-1}\\,dt =\\frac{\\Gamma(\\alpha)\\Gamma(\\beta)} {\\Gamma(\\alpha+\\beta)},\\]\n\nwhere \\(\\Gamma\\) denotes the gamma function. Thus, the density integrates to one for every positive parameter pair. (itl.nist.gov)\n\nThe cumulative distribution function is\n\n\\[F(x)=I_x(\\alpha,\\beta) =\\frac{1}{B(\\alpha,\\beta)} \\int_0^x t^{\\alpha-1}(1-t)^{\\beta-1}\\,dt, \\qquad 0\\le x\\le1.\\]\n\nHere \\(I_x\\) is the regularized incomplete beta function. General quantiles have no simple closed-form expression and are evaluated numerically. Although densities can diverge near either endpoint, the distribution remains continuous: neither zero nor one receives positive probability mass. (itl.nist.gov)"
    },
    {
      "heading": "Shapes and parameter interpretation",
      "text": "The parameters control how probability is distributed across the interval:\n\n- When \\(\\alpha=\\beta=1\\), the distribution is the uniform distribution on \\([0,1]\\).\n- When \\(\\alpha,\\beta>1\\), the density has a single interior peak.\n- When \\(0<\\alpha,\\beta<1\\), it is U-shaped, with density diverging toward both endpoints.\n- When \\(\\alpha\\le1\\) and \\(\\beta\\ge1\\), excluding the uniform case, it decreases across the interval; reversing these inequalities produces an increasing density.\n\nEqual parameters give symmetry about \\(1/2\\). Exchanging the parameters reflects the density: if \\(X\\sim\\operatorname{Beta}(\\alpha,\\beta)\\), then \\(1-X\\sim\\operatorname{Beta}(\\beta,\\alpha)\\). (randomservices.org)\n\nA useful alternative parameterization separates the mean from concentration:\n\n\\[\\mu=\\frac{\\alpha}{\\alpha+\\beta}, \\qquad \\kappa=\\alpha+\\beta,\\]\n\nso that \\(\\alpha=\\mu\\kappa\\) and \\(\\beta=(1-\\mu)\\kappa\\). For fixed \\(\\mu\\), increasing \\(\\kappa\\) reduces dispersion without changing the mean. This follows directly from the variance formula below and helps distinguish a distribution’s central location from its degree of concentration. (itl.nist.gov)"
    },
    {
      "heading": "Moments and scaling",
      "text": "The expected value and variance are\n\n\\[\\mathbb E[X]=\\frac{\\alpha}{\\alpha+\\beta}, \\qquad \\operatorname{Var}(X) =\\frac{\\alpha\\beta} {(\\alpha+\\beta)^2(\\alpha+\\beta+1)} =\\frac{\\mu(1-\\mu)}{\\kappa+1}.\\]\n\nWhen both shape parameters exceed one, the mode is\n\n\\[\\frac{\\alpha-1}{\\alpha+\\beta-2}.\\]\n\nThese formulas describe the standard distribution on the unit interval. (itl.nist.gov)\n\nA beta variable can be transformed to any finite interval \\([a,b]\\), with \\(a<b\\), by setting \\(Y=a+(b-a)X\\). Its density becomes\n\n\\[f_Y(y)=\\frac{1}{b-a} f\\!\\left(\\frac{y-a}{b-a};\\alpha,\\beta\\right).\\]\n\nConsequently, its mean is \\(a+(b-a)\\mathbb E[X]\\), and its variance is \\((b-a)^2\\operatorname{Var}(X)\\). The interval limits are additional location and scale specifications, not substitutes for the two shape parameters. (docs.scipy.org)"
    },
    {
      "heading": "Bayesian inference",
      "text": "In Bayesian inference, a beta prior distribution is a conjugate prior for the success probability \\(p\\) in a Bernoulli or binomial model. Suppose \\(n\\) trials are conditionally independent given \\(p\\), and \\(s\\) successes are observed. The likelihood function is proportional to \\(p^s(1-p)^{n-s}\\). Multiplication by a beta prior, using Bayes’ theorem, gives the posterior distribution\n\n\\[p\\mid s,n \\sim\\operatorname{Beta}(\\alpha+s,\\beta+n-s).\\]\n\nSuccesses therefore increment the first parameter, while failures increment the second. (mas.ncl.ac.uk)\n\nThe posterior mean is\n\n\\[\\mathbb E[p\\mid s,n] =\\frac{\\alpha+s}{\\alpha+\\beta+n}.\\]\n\nFor \\(n>0\\), this can be written as a weighted average of the prior mean and the observed success fraction:\n\n\\[\\frac{\\alpha+\\beta}{\\alpha+\\beta+n} \\frac{\\alpha}{\\alpha+\\beta} + \\frac{n}{\\alpha+\\beta+n}\\frac{s}{n}.\\]\n\nThis algebra explains the interpretation of \\(\\alpha+\\beta\\) as a prior concentration or effective-weight parameter. The shape parameters need not be integers or represent literal historical counts. For example, a \\(\\operatorname{Beta}(2,2)\\) prior updated with eight successes and two failures becomes \\(\\operatorname{Beta}(10,4)\\), with posterior mean \\(5/7\\). (mas.ncl.ac.uk)"
    },
    {
      "heading": "Related distributions and estimation",
      "text": "The beta distribution arises from gamma distributions. If \\(G_1\\) and \\(G_2\\) have statistical independence, shapes \\(\\alpha,\\beta\\), and the same positive rate, then\n\n\\[\\frac{G_1}{G_1+G_2} \\sim\\operatorname{Beta}(\\alpha,\\beta).\\]\n\nThis identity provides a construction for generating beta random variables. (randomservices.org)\n\nIt also describes order statistics: the \\(k\\)th smallest observation among \\(n\\) independent uniform variables on \\([0,1]\\) has distribution \\(\\operatorname{Beta}(k,n-k+1)\\). Thus, beta distributions occur naturally in the sampling distributions of ranked observations, not only as models chosen for bounded data. (math.arizona.edu)\n\nThe Dirichlet distribution generalizes the beta family to vectors of positive proportions summing to one. With two components, its first component has a beta distribution, while the second equals one minus the first. (docs.scipy.org)\n\nFor observations strictly between zero and one, maximum likelihood estimation determines the shape parameters by solving nonlinear equations. Numerical procedures are generally required. If the interval bounds are also estimated freely, the likelihood can become unbounded as fitted endpoints approach extreme observations; fixed bounds and freely estimated bounds therefore lead to substantially different fitting problems. (itl.nist.gov)"
    }
  ],
  "links": [
    "probability-distribution",
    "random-variable",
    "probability",
    "probability-density-function",
    "beta-function",
    "integral",
    "gamma-function",
    "cumulative-distribution-function",
    "uniform-distribution",
    "expected-value",
    "variance",
    "bayesian-inference",
    "prior-distribution",
    "conjugate-prior",
    "bernoulli-distribution",
    "binomial-distribution",
    "likelihood-function",
    "bayes-theorem",
    "posterior-distribution",
    "statistical-independence",
    "order-statistics",
    "sampling-distribution",
    "dirichlet-distribution",
    "maximum-likelihood-estimation"
  ],
  "sources": [
    {
      "title": "docs.scipy.org/doc/scipy/reference/generated/scipy.stats.beta.html",
      "url": "https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.beta.html"
    },
    {
      "title": "itl.nist.gov/div898/handbook/eda/section3/eda366h.htm",
      "url": "https://itl.nist.gov/div898/handbook/eda/section3/eda366h.htm"
    },
    {
      "title": "randomservices.org/random/special/Beta.html",
      "url": "https://www.randomservices.org/random/special/Beta.html"
    },
    {
      "title": "mas.ncl.ac.uk/~nmf16/teaching/mas3301/notes1.pdf",
      "url": "https://www.mas.ncl.ac.uk/~nmf16/teaching/mas3301/notes1.pdf"
    },
    {
      "title": "math.arizona.edu/~jwatkins/I_examples.pdf",
      "url": "https://math.arizona.edu/~jwatkins/I_examples.pdf"
    },
    {
      "title": "docs.scipy.org/doc/numpy-1.16.0/reference/generated/numpy.random.dirichlet.html",
      "url": "https://docs.scipy.org/doc/numpy-1.16.0/reference/generated/numpy.random.dirichlet.html"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}