Beta distribution Created 2026-09-24 Updated 2026-10-14
The beta distribution is an absolutely continuous probability distribution for a random variable between zero and one. It can describe uncertainty about a probability, such as an unknown coin's chance of heads. For any real , its probability density function is
and zero outside . The normalizer is the Euler beta function, related to the Gamma function by the beta--gamma identity:
Thus the probability density function integrates to one. [ref].
The endpoint behavior explains why the restrictions are exactly : near zero the probability density function behaves like a constant times , and near one like a constant times . These improper integrals converge for positive parameters, even when the probability density function diverges at zero for or at one for . There is no probability mass at either endpoint: . A probability density function's height is not a probability; an interval's probability is the area under it.
Some useful examples of the beta distribution are:
Figure 1.
Beta density shapes: uniform, central, asymmetric, and boundary singular
. Details.
The arcsine distribution curve is plotted only for ; its finite plotted ends do not represent finite endpoint values of the probability density function. Using the inverse sine, the shaded central interval has exact probability , calculated analytically rather than by treating the cropped curve as normalized.
To separate location from spread, write and . The mean and variance of the beta distribution are
The mean specifies the balance between the parameters; their sum controls concentration about that mean. Multiplying both parameters by the same positive number preserves the mean and changes the variance. Larger puts more area near and makes the probability density function taller there; the total area stays one. Small allows much greater spread, sometimes favoring the endpoints rather than the mean itself.
For example, keeping mean and taking gives the beta distributions , , and . Their variances are , , and , respectively. Parameters need not be integers.
Figure 2.
The same beta mean with three concentrations and decreasing variance
. Details.
The formulas follow from two short moment calculations. Multiplying the probability density function by or increases the first parameter of the Euler beta function:
Apply the Gamma function recurrence to the beta--gamma identity, then subtract from to obtain the variance.
The beta distribution is especially convenient as a prior distribution for the unknown success probability of Bernoulli trials. The Beta-binomial conjugacy says that successes and failures update a prior distribution to a posterior distribution . For example, suppose a coin has prior distribution and we observe eight heads and two tails. Its posterior distribution is then , with posterior mean . [ref].
Cantor distribution 2026-10-14
The Cantor distribution is the law of a random variable
where the are independent Bernoulli random variables taking values zero and one with equal probability. Its values lie in the Cantor set, and its cumulative distribution function is the Cantor function. Every individual value has probability zero, but the Cantor set has probability one despite having zero Lebesgue measure. A probability density function on that set would integrate to zero, so it cannot describe this law. The example motivates the distinction between a continuous probability distribution and an absolutely continuous probability distribution.
Continuous probability distribution Created 2026-09-24 Updated 2026-10-14
A real probability distribution with a continuous cumulative distribution function assigns probability zero to each individual value. Here this is the broad meaning of continuous probability distribution. Many elementary examples are more specifically absolutely continuous probability distributions, described by a probability density function with respect to Lebesgue measure. Some texts use "continuous" for that narrower class. The Cantor distribution shows why the distinction matters: its cumulative distribution function is continuous, yet no probability density function with respect to Lebesgue measure represents its whole law. [ref].
Cumulative distribution function Created 2026-09-24 Updated 2026-10-14
The cumulative distribution function of a real random variable is
It records the probability accumulated up to a threshold. It is a nondecreasing function and is right-continuous; its limits are zero at and one at . These properties follow from ordered threshold events, continuity from above of a measure, and continuity from below of a measure. A cumulative distribution function determines the entire probability distribution on the real line. [ref].
For ,
where is its left-hand limit. The second formula measures a jump. Thus ; changing an endpoint is harmless only when its point probability is zero.
For the finite example under probability distribution, is below zero, on , on , and on . In particular , but , so the jump gives . For the density example, on , and its increase from to is .
When an absolutely continuous probability distribution has probability density function , its cumulative distribution function is and almost everywhere. A continuous cumulative distribution function by itself does not guarantee such a density: the Cantor distribution is an important exception.
Cumulative hazard function Created 2026-09-24 Updated 2026-10-14
Suppose has an absolutely continuous probability distribution, with survival function . On an interval where , its cumulative hazard is
Here is the hazard function; its integral is dimensionless because the units of rate and time cancel. The identity follows by integrating the derivative of , so mere continuity of the survival function is not enough: the absolute continuity assumption supplies a probability density function. If reaches zero, interpret as . The normalization also matters; an initial probability mass at zero would require an initial term .
Accumulating hazard functions adds on the scale and multiplies survival factors on the scale. For and ,
For instance, a cumulative hazard increment of gives event probability , rather than a probability of . With per year, and . With the increasing hazard function per year when is expressed in years, , so gives . Its coefficient has units of inverse years squared.
Figure 1.
Constant and increasing hazard functions, their cumulative hazards, and their survival functions
. Details.
The constant hazard function produces an exponential distribution; the increasing example is a Weibull distribution. Their survival functions both decrease, although one hazard function stays constant and the other increases. At year ten both have and despite different earlier histories. The accumulation identity is described in Lu Tian's Stanford notes, Section 1.1.
For a discrete hazard at each possible event time , the exact counterpart is . Taking its negative logarithm sums , rather than . Therefore exponentiating a Nelson–Aalen estimator does not give exactly the Kaplan–Meier estimator; small-jump comparison of cumulative hazard estimators quantifies the difference.
Hazard function Created 2026-09-24 Updated 2026-10-14
For a survival time with an absolutely continuous probability distribution, probability density function , and survival function , the hazard function is
where , with the derivative identity holding almost everywhere. At points where the local limit exists, equivalently
The hazard function measures an instantaneous conditional rate. If time is in years, its units are inverse years, and its value can exceed one. A probability for a short interval is approximately , not ; for an absolutely continuous probability distribution, the probability of an occurrence at the single exact time is zero. The discrete hazard, by contrast, is a conditional probability at a possible event time.
The factorization distinguishes a probability density function for the original population from a hazard function for those still event-free. With an exponential distribution of rate per year, per year but per year: the latter also accounts for the probability of reaching year five. The exponential survival risk over an interval example computes finite-horizon probabilities from this rate.
Probability density function Created 2026-09-24 Updated 2026-10-14
A probability density function represents probabilities as areas under a nonnegative measurable function. For a real random variable with an absolutely continuous probability distribution, it satisfies
for every Borel set . Its height is probability per unit of the outcome variable, not the probability of that exact outcome. Thus a probability density function may exceed one, while the probability of a singleton is zero. NIST describes the interval-probability interpretation through integration. [ref].
For the example on , , but and . The cumulative distribution function is within that interval, connecting density height to the local accumulation rate.
Changing the scale changes the density height. If , then on . At the corresponding value , its height is , while is unchanged. The factor compensates for the wider integration variable. This is a change of variables, not a change in the underlying probabilities.
A probability density function is determined only almost everywhere: changing its values on a Lebesgue measure zero set changes no probabilities. The Cantor distribution has no such representation, and a mixed probability distribution can have both a point mass and a density component, so differentiating its cumulative distribution function does not recover all its mass.
Right censoring Created 2026-09-24 Updated 2026-10-14
An unobserved survival time is right-censored when it is known to exceed the last event-free follow-up time. For a potential survival time and potential observation-ending time , record
When , the occurrence was observed at ; when , only is known. An intact machine at the study's closing date and an event-free subject who stops attending follow-up can both yield right censoring, but the reasons for stopping matter for independent censoring. A subject right-censored at year two has contributed two years to person-time at risk and belongs to earlier risk sets. Neither recording a failure at year two nor discarding that subject preserves this information.
Under independent censoring and separate parameters for the observation mechanism, the part of the survival likelihood involving an absolutely continuous probability distribution for is . Thus a right-censored observation contributes the survival function , rather than the event probability density function . See Lu Tian's Stanford notes, Section 2.1, equations (2.1)–(2.2). The Kaplan–Meier six-subject cohort shows exactly how this distinction changes the calculation.