All formulas

Probability distributions

Beta probability density

prob.beta-pdfAlso called beta pdf, beta density, beta distribution

f(x)=Γ(α+β)Γ(α)Γ(β) xα−1(1−x)β−1f(x) = \frac{\Gamma(\alpha + \beta)}{\Gamma(\alpha)\Gamma(\beta)}\, x^{\alpha - 1} (1 - x)^{\beta - 1}

Density of the beta distribution on (0, 1) with shape parameters α and β.

Notation

xx

the point, 0 < x < 1

x ∈ (0, 1)

α\alpha

first shape parameter

α > 0

β\beta

second shape parameter

β > 0

f(x)f(x)

Result: the density at x

scalar

Worked examples

Each result is solved exactly and confirmed by two independent computations.

  1. Given

    x=0.5,α=2,β=2x = 0.5, \alpha = 2, \beta = 2

    Result

    f(x)=32\displaystyle f(x) = \frac{3}{2}

    ≈ 1.5

  2. Given

    x=0.25,α=1,β=3x = 0.25, \alpha = 1, \beta = 3

    Result

    f(x)=2716\displaystyle f(x) = \frac{27}{16}

    ≈ 1.6875

  3. Given

    x=1/3,α=0.5,β=0.5x = 1/3, \alpha = 0.5, \beta = 0.5

    Result

    f(x)=322π\displaystyle f(x) = \frac{3 \sqrt{2}}{2 \pi}

    ≈ 0.675237237118

Common mistakes

  • Swaps α and β

    α belongs with x and β with 1 − x; swapping them reflects the density about 1/2.

    Fix: Use xα−1 (1 − x)β−1.

Sources

  • NIST/SEMATECH e-Handbook, §1.3.6.6.17

    NIST/SEMATECH e-Handbook of Statistical Methods. https://www.itl.nist.gov/div898/handbook/ Last updated 2022-04-27. doi:10.18434/M32189

    doi.org
  • DLMF, eq. 5.12.1

    NIST Digital Library of Mathematical Functions. https://dlmf.nist.gov/ Release 1.2.8 of 2026-09-15. F. W. J. Olver, A. B. Olde Daalhuis, D. W. Lozier, B. I. Schneider, R. F. Boisvert, C. W. Clark, B. R. Miller, B. V. Saunders, H. S. Cohl, and M. A. McClain, eds.

    dlmf.nist.gov