Empirical distribution function Created 2026-09-24 Updated 2026-10-18
The empirical distribution function counts the fraction of observations at or below a threshold. For a statistical sample of real observations , defineEach indicator function contributes one exactly when its observation is counted. Equivalently, , where the empirical measure assigns probability mass to each observation, including repeated observations.[ref]
Choose the illustrative statistical sample . Its empirical distribution function isFor example, counts both observations equal to , , and . There is no observation at , so there is no jump there. The five observations produce only four distinct jump locations.
The convention makes the empirical distribution function right-continuous: once a threshold reaches an observation, that observation remains counted immediately to its right. For a finite statistical sample, the count is constant from any up to the next larger observed value, proving right continuity. Its left-hand limit counts observations strictly below , soA value occurring times causes one jump of size . At the jump is ; at , , and each jump is . All jumps sum to one. Thus the empirical distribution function is a nondecreasing step function with limits zero and one, and is itself a valid cumulative distribution function.
This turns many questions about data into simple cumulative distribution function operations. The observed fraction in is : for it is , counting and but excluding both s. Including the left endpoint gives . A sample quantile reads the same staircase in reverse: the smallest threshold reaching is . Unlike a histogram, this representation requires no choice of bins; its jumps retain every observation and its multiplicity.
The exact description of a finite statistical sample must be distinguished from a statistical model for how it was obtained. The empirical distribution function is defined for any finite list, with no independence assumption. Once the list is observed, its counts are fixed. For statistical inference, one often models as independent and identically distributed random variables with an unknown population cumulative distribution function . Then describes the sampling law, while varies across repeated statistical samples. The value is an observed fraction and an estimate of ; it does not establish that the population probability is . Even when is continuous, every finite is discrete.
For any threshold fixed before sampling, the indicator functions are independent Bernoulli random variables with success probability . Therefore the count has a binomial distribution andThe expected value follows by adding the expected values of the indicator functions; the variance follows by adding their variances using independence and dividing by . Thus is an unbiased estimator of at a fixed threshold. Controlling the error at every threshold at once requires more than a fixed-threshold calculation: the DKW inequality supplies such control, and the Glivenko-Cantelli theorem describes its uniform convergence almost surely as grows.
Comparing with a proposed cumulative distribution function also motivates goodness-of-fit tests, including the Kolmogorov-Smirnov test, the Anderson–Darling test, and the Cramér–von Mises criterion. A standard Kolmogorov-Smirnov test calibration assumes a fully specified continuous population law; fitting its statistical parameters from the same statistical sample changes that calibration.[ref]
1.3.5.16. Kolmogorov-Smirnov Goodness-of-Fit Test. NIST and SEMATECH e-Handbook of Statistical Methods; Characteristics and Limitations, items 1 and 3; Definition, test statistic and fully specified distribution requirement
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 37 3 ii Solution Created 2026-10-03 Updated 2026-10-14
Two distinct issues are:
- Exposure measurement and comparability. Infectious-dose estimates can have substantial error, and consumption categories may differ in infectivity or processing. If the assumed cohort exposure ratio is wrong, the expected allocation used in the goodness-of-fit test is wrong. The calendar distribution within the aggregated exposure period also matters for how many onsets have matured by the observation date.
- Ascertainment of outcomes. Clinical recognition, diagnostic testing, reporting and competing mortality may differ between cohorts. Unequal detection probabilities can alter the observed onset ratio even with equal biological susceptibility and incubation periods.
Thus the comparison must account for uncertainty in both its exposure denominator and its observed-disease numerator; a very small sampling p-value does not remove those model uncertainties.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 4 12J a Solution Created 2026-09-24 Updated 2026-10-05
The Poisson deviance tests overall fit against the saturated Poisson regression, not whether the single slope is zero. Under fit.1, its large-count approximation is . The observed value is 261.72, far above the one-percent upper critical value (about 85.95); its upper-tail probability is about . Thus reject fit.1 at the one-percent level. The slope's reported -value 0.421 only compares this inadequate log-linear trend with an intercept-only model; it is not a goodness-of-fit test.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 218 1 c Solution Created 2026-09-24 Updated 2026-09-25
The Pearson goodness-of-fit test has null hypothesis that the independent counts follow the fitted Poisson regression, in particular , against the alternative that the model does not fit; in this setting the scientifically relevant direction is overdispersion, . Under the null, is approximately chi-squared distribution with degrees of freedom. Its tiny -value decisively rejects the Poisson variance assumption.
The negative binomial regression keeps the logarithmic mean model but allows . It improves the residual deviance from to , close to its residual degrees of freedom, and lowers the Akaike information criterion from to . Both comparisons strongly favour the negative-binomial fit, although its dose coefficient remains statistically insignificant.
Power law Created 2026-09-24 Updated 2026-10-13
A power law is a relation , with fixed constants and . For positive , any real number is allowed. Its useful feature is a simple scaling rule:The same proportional change of input produces the same proportional change of output, independently of the starting value. The exponent controls that response; the coefficient fixes the magnitude.
For example, the area of a circle is . Doubling the radius multiplies its area by four, and tripling it multiplies the area by nine. The volume of a sphere is : the same changes multiply its volume by eight and twenty-seven. The distinction explains why similarly shaped objects do not preserve their ratio of surface area to volume when their size changes.
When the output is positive, a logarithm turns the power law into a straight-line relation. Using positive reference values and ,These ratios are dimensionless quantities, so the formula also applies to physical measurements with units. Plotting both ratios on a logarithmic scale gives a line of slope . Changing a unit changes the numerical coefficient, while the exponent stays the same. Positive describes increasing values; negative describes decreasing values; gives a constant. The zero coefficient is a degenerate case with no useful logarithmic slope.
Exact scaling is stronger than regular variation. The function has a doubling ratio tending to four, but its logarithmic correction keeps growing. The diagram contrasts it with the exact power law .
Exact quadratic scaling and a logarithmic correction have different finite doubling ratios, even though the correction leaves the limiting exponent unchanged
. Details. A power law for a probability density and a power law for a tail probability have different exponents. For a Pareto distribution with and lower endpoint one,The tail probability has exponent ; differentiating it and changing sign gives the probability density exponent . Confusing them changes the interpretation of a fitted exponent. The normalizing coefficient and lower endpoint also matter: a decreasing power law is not automatically a valid probability density over the entire positive real line.
The appearance of a line over a finite logarithmic range is evidence to investigate, rather than a proof of an exact power law or its mechanism. In their study of power-law distributions, Clauset, Shalizi and Newman combine maximum likelihood estimation, goodness-of-fit tests and comparisons with alternative models; their abstract explains why ordinary least-squares fitting can give misleading results for tail data. See Aaron Clauset, Cosma Rohilla Shalizi and M. E. J. Newman, Power-law distributions in empirical data, SIAM Review 51 (2009), 661–703. The scaling rule is mathematically exact when it defines a model; whether a dataset supports that model is a question of statistical inference.

