Follow your curiosity

What discovery has been shared with you?

Start with one fact. Explore it, go deeper, then follow whichever branch catches your imagination.

Choose subjects for a surprise

Exploring any topic

Begin your discovery

Your next discovery is one click away.

Choose one or more subjects above, or leave Any Topic selected and let curiosity decide.

Mathematics

Beta and Gamma Functions: The Hidden Integrals Behind Probability

Quick fact

The beta function, B(a, b) = ∫₀¹ x^(a-1)(1-x)^(b-1)dx, is the normalizing constant for the Beta distribution—a distribution commonly used to model probabilities and proportions (e.g., click-through rates, Bayesian priors). The gamma function extends factorials to all positive real numbers, with Γ(1/2) = √π, making it appear in the probability density function of the normal distribution.

Why this is interesting

You've probably seen 5! and 10!, but what does 3.5! even mean? Or what's the area under a curve that never quite touches the axis? The gamma and beta functions are the hidden integrals that make these questions meaningful and appear all over probability and physics.

Read the full explanation

Understanding Beta and Gamma Functions: The Hidden Integrals Behind Probability

Think of the gamma function Γ(n) as a continuous version of the factorial. For integer n, Γ(n) = (n-1)!, but the integral definition Γ(t) = ∫₀^∞ x^(t-1)e^(-x)dx works for any positive real number t. It's like a smooth curve connecting the points (1,1), (2,1), (3,2), (4,6), and so on. So while we can't list all numbers between, we can still ask 'what is 3.5!?' and get a meaningful value! The beta function B(a,b) is a different but related integral from 0 to 1. It looks like a formula that depends on two numbers and can be thought of as a continuous generalization of binomial coefficients. If you have a 'chunk' of data that lies between 0 and 1, the beta function helps quantify relationships between the two parameters.

A deeper explanation

The gamma and beta functions are not just abstract curiosities; they are the workhorses behind many fundamental probability distributions. The gamma distribution, which models waiting times or sums of independent exponential random variables, has a probability density function of the form f(x) = [λ^α / Γ(α)] x^(α-1) e^(-λx). The gamma function in the denominator ensures that the total area under the curve is exactly 1, so f(x) is a legitimate probability density. Similarly, the beta distribution, used to model probabilities themselves, is defined by f(x; α, β) = [x^(α-1)(1-x)^(β-1)] / B(α, β), where B(α, β) is the beta function. The beta function is not just a normalization constant; it also encodes information about the variance and shape of the distribution. Crucially, the two functions are deeply connected by the identity B(a,b) = Γ(a)Γ(b) / Γ(a+b), which allows us to evaluate the beta function using gamma function tables or computational algorithms for Γ. This identity is derived from a change of variables in a double integral, showcasing the elegance of integration techniques. These functions enable us to compute probabilities, expectations, and variances for a wide range of continuous random variables, and they appear in Bayesian statistics, Bayesian inference, and even in physics (e.g., in string theory and quantum mechanics).

Keep FACTREE close

Internet access is required. Updates arrive when you reopen or reload the app. You may need to sign in again in the installed app.