Statistical inference Created 2026-09-24 Updated 2026-10-13
Statistical inference uses observed data and a statistical model to learn about unknown features of the process that generated them. In a parametric statistical model, write : the probability distribution depends on an unknown statistical parameter . An estimand specifies the target, such as a mean or a difference of means. A statistic is a function of the observations; an estimator is a statistic used to estimate the target. Uppercase denotes the random data before observation, while lowercase denotes their realized values.
Three questions lead to different outputs. Statistical estimation asks which target value the observations suggest. A confidence interval asks for a range produced by a procedure with calibrated coverage probability. A hypothesis test asks whether the observations depart sufficiently from a specified null hypothesis to enter its rejection region. These outputs complement one another: an estimated effect size describes magnitude, while a standard error describes the sampling distribution of an estimator. A p-value describes a tail probability under the null hypothesis.
The appeal of statistical inference is that it turns variable observations into reproducible uncertainty statements. In the normal mean confidence interval with known variance below, a sample mean of has standard error : both the estimated shift and its precision matter. The calibration depends on the statistical model, including independence and the specified probability distribution. Increasing sample size improves precision under those assumptions; it does not repair a systematically misleading sampling procedure. Bayesian inference provides another framework, using a prior distribution and a likelihood function to obtain a posterior distribution.
Statistical population 2026-11-05
A statistical population is the collection of units, outcomes or distributional cases about which an analysis seeks conclusions. A finite population may consist of fixed values , with population mean . A superpopulation model instead describes observations through a probability distribution.
These viewpoints support different sources of randomness. In sampling from a fixed finite population, selection is random even if each value is fixed. Under simple random sampling without replacement, every unit has inclusion probability , and the sample mean is unbiased for . The accessible sampling frame can differ from the target population, producing a coverage problem that a large sample alone cannot repair.
Statistical sampling 2026-11-05
Statistical sampling selects observations from a target statistical population through an explicit selection procedure or statistical model. It links observed values to the larger collection about which conclusions are sought. The accessible sampling frame and the statistical population need not coincide, which can cause sampling bias even in a large statistical sample.
For a finite statistical population with values , suppose every unit has known positive inclusion probability . If is the selected statistical sample, then
is an unbiased estimator of the total . Indeed, writing the sum with inclusion indicator functions gives . Under simple random sampling without replacement of size , , so is the sample mean. The selection procedure also determines dependence between selected units and the resulting sampling variability; unbiasedness alone does not specify its size.
Statistics Created 2026-10-24 Updated 2026-11-05
Statistics studies how to learn from data while accounting for variation and uncertainty. Descriptive statistics summarizes observations; statistical inference uses an explicit statistical model to estimate unknown quantities or assess claims. For example, the sample mean estimates a population mean, while its standard error describes variation across hypothetical repeated statistical samples. A large dataset does not automatically remove bias from statistical sampling or confounding. The design generating the observations is part of the reasoning, rather than an optional prelude to calculating a formula.
A concrete idealized implementation uses a Stern-Gerlach experiment twice: a preparation filter along passes only its plus spin channel, and a analyzer resolves both output channels for many fresh atoms. This prepares the spin one-half along an axis state . The authored apparatus description uses slit collimation, a nonuniform magnetic field with a pointed pole, and counters at the separated outputs.[ref] The two-channel spin one-half preparation and analyzer are described separately; the source's recombining “improved” apparatus is explicitly idealized, so the setup here is a proposed estimation model, not a report of observed counts.[ref]
Count every accepted analyzer event in its calibrated or channel and compute from the count difference. The magnetic field gradient separates trajectories through their magnetic moments; calibrated channel labels convert positions into spin eigenvalues. The readout is a population imbalance, not an intermediate trajectory carrying spin . Beam position also depends on flight time and field geometry, so averaging raw positions alone does not establish a calibrated spin expectation value.
As controls, feed known and preparations to check the channel assignment and leakage, hold the analyzer axis fixed, and repeat short blocks to check preparation drift. Measure background counts and relative channel efficiencies. With efficiencies and and negligible background, the detected plus fraction is
Unequal efficiencies bias the naive sample mean, even for arbitrarily many counts. For example, , , and give detected fraction and naive mean , rather than . Background, overlapping beams, detector saturation, angle misalignment, unwanted internal states, and preparation correlations require a better measurement in quantum mechanics model. Increasing only reduces the independent sampling contribution; it cannot remove these systematic errors. The selected preparation beam is the population being estimated, so losses in preparing it must be distinguished from losses in reading its two outcomes.
Strong law for adjacent products Created 2026-10-05 Updated 2026-10-06
For independent and identically distributed random variables with and , the sample mean of tends to almost surely. Split into odd and even indexed products; each subsequence consists of independent and identically distributed random variables that are integrable random variables. Apply the strong law of large numbers separately.
Strong law of large numbers Created 2026-09-24 Updated 2026-10-14
Let be real independent and identically distributed random variables with , and let be their expected value. Their sample mean satisfies
This is almost sure convergence: with probability one, an entire infinite sequence of observations has averages that eventually stay within every prescribed positive tolerance of . The variance need not be finite. The strong law of large numbers implies the weak law of large numbers, which asserts convergence in probability at each increasing sample size.
For independent trials with a Bernoulli distribution of parameter , is one for success and zero for failure. Then is the observed success proportion, and the strong law of large numbers says almost surely. This turns a theoretical probability into a quantity one can estimate by repetition. It does not say that each new trial improves the estimate: a long string of failures can move the proportion away from before later observations bring it back.
Figure 1.
Bernoulli averages approach their mean: sample paths and exact error probabilities
. The left panel shows four reproducibly simulated sequences of independent Bernoulli trials with success probability . The right panel calculates from the exact binomial distribution and compares it with the bound from the Chebyshev inequality. Small irregularities reflect integer-valued counts. The paths illustrate almost sure convergence; a finite simulation cannot prove it. Details.
The strong law of large numbers gives the limiting location of the sample mean, while the central limit theorem describes its fluctuations when the variance is finite and positive. The two assertions can hold together:
The first error shrinks to zero; the second has been enlarged enough to retain a nontrivial probability distribution. The second assertion is convergence in distribution, not a claim that the enlarged error along one sequence approaches a particular normal random variable.
The assumptions make a practical difference. If every observation repeats the same nonconstant Bernoulli random variable, , then for all : identical probability distributions alone do not make repeated observations informative. For independent observations with a Standard Cauchy distribution, the Cauchy sample mean has an unchanged distribution, so it does not concentrate around a constant. Its expected value is undefined, and ; neither example contradicts the stated strong law of large numbers.
A brief proof outline in the case of finite variance uses the Kolmogorov maximal inequality for the centered partial sums. The probability that their maximum up to exceeds is at most . These bounds are summable, so the Borel-Cantelli lemma controls all sufficiently large such blocks and hence every intermediate sample size. The general case requires truncation to control large observations; the argument using finite variance alone does not prove that full version.
Suppose , , are independent and identically distributed with normal distribution , where the mean and standard deviation are unknown. Define the sample mean and sample variance by
Under these assumptions,
Substitution gives the exact ratio
The unknown cancels. The denominator estimates the standard error of the sample mean; its sampling variability is precisely why the Student's t-distribution has wider tails than the standard normal distribution.
The crucial independence has a geometric explanation. Apply an orthogonal transformation to the standardized observations , choosing its first coordinate along . That coordinate is ; the remaining coordinates are independent standard normal random variables whose squared sum is . Their joint probability density factorizes because the transformation preserves the squared length. This also explains the loss of one statistical degree of freedom when estimating the mean. Uncorrelatedness alone would not establish the required independence for arbitrary data.
The result is exact for every under the stated normal distribution model. A small sample size by itself does not justify it: a sample from an arbitrary probability distribution need not have the displayed chi-squared distribution or the necessary independence.
Sub-Gaussian distribution Created 2026-10-13 Updated 2026-11-05
A real centered random variable is sub-Gaussian random variable with parameter if its moment-generating function satisfies
The parameter is an upper bound on fluctuation size, not necessarily the standard deviation. For and , exponential Markov inequality gives . Choosing and applying the same argument to yields the Chernoff bound
A centered normal distribution of variance attains equality in the moment-generating-function condition. A Rademacher distribution also satisfies it with , since . Products of moment-generating functions show that a sum of independent centered sub-Gaussian random variables with parameters is sub-Gaussian with parameter . Hence the sample mean of independent variables with a common parameter has tail bound . This gives normal-like concentration without assuming a normal distribution. For an uncentered variable, the convention is to apply the condition to .
Surrogate split 2026-10-14
A surrogate split uses another predictor to approximate the left-versus-right assignments made by a tree node's primary split. It can route observations whose primary predictor is missing. Surrogates are ranked by agreement with the primary split on observations where both predictors are known, accounting for trivial majority assignments. This differs from simply filling a missing predictor with its sample mean.
The tail assumptions needed for conservative Wald coverage concern the distribution of the standardized estimation error and the realized scale of its interval. An expected-value bound on a conservative variance estimator does not establish either property. The discrete and rare-large-variance counterexamples in conservative variance estimation does not guarantee Wald interval coverage isolate those failures. NIST similarly makes a normal-model qualification before interpreting an expanded uncertainty as approximately 95 percent coverage.[ref]
A precise sufficient asymptotic argument is the following. Let , take , and suppose
The first condition includes centring at the true parameter; asymptotically material bias would change it. The second condition is convergence in probability of a variance ratio, substantially more than an expectation inequality. By Slutsky's theorem, the Wald confidence interval with normal critical value then has limiting coverage probability
The limiting normal distribution has no mass on the interval boundary, which justifies passing to that probability. This is asymptotic conservative Wald coverage under variance-ratio convergence, not a finite-sample guarantee.
For an original exactly normal comparison, let a sample mean have true variance and use the deterministic scale . A nominal 95 percent Wald confidence interval uses a radius times the usual one and has exact coverage probability . The calculation uses an actual normal sampling law and a fixed ratio; it cannot be inferred from alone. The normal cdf and inverse-cdf implementations provide the numerical evaluation.[ref]
A samplewise variance upper bound supplies a separate finite-sample route when the centre is exactly normal, because each reported interval contains the known-variance normal interval. Without that shape assumption, use a justified tail inequality as in confidence bounds from a samplewise variance bound.
Tail measurability of limits of sample averages Created 2026-10-05 Updated 2026-10-14
Let be a sequence of finite real random variables, and write for its sample mean. For fixed and , put . Then, at each outcome,
Consequently . The right-hand limit superior is a measurable function of for every , so the extended-real random variable is measurable with respect to the tail sigma-algebra. The same holds for the limit inferior. Thus the event of convergence to a finite limit of a sequence, and the event for any specified real , are tail events.
For a worked deterministic example, let alternate , and replace its first three entries by . For every the two sample means differ by exactly , so both converge to . Finite edits can change small-sample answers while preserving the infinite limit of a sequence.
Under independence, Kolmogorov's zero–one law makes each specified convergence event have probability zero or one. It does not select which value occurs. If a finite random variable measurable with respect to the tail sigma-algebra exists, the events for rational each have probability zero or one; continuity of probability and their nesting force to be constant almost surely. For fair independent Bernoulli trials, the strong law of large numbers establishes almost surely; the zero–one conclusion alone proves neither convergence nor the value .
Tail sigma-algebra Created 2026-09-24 Updated 2026-10-14
For a sequence of random variables on a probability space , define
The decreasing sigma-algebras are generated by the listed random variables. Their intersection consists of events expressible after discarding every finite prefix. No independence is required.[ref]
The point is to distinguish a long observation record from a property of an infinite sequence. The event of seeing infinitely many heads and the event that sample means converge survive any finite change, while an exact first-head time does not. Kolmogorov's zero–one law adds the striking conclusion that under independence each tail event has probability zero or one; the tail sigma-algebra itself can still contain many nonempty sets.
Translation-invariant estimator Created 2026-09-28 Updated 2026-11-05
For a location estimator, the property historically called translation invariance in this setting is more explicitly called translation equivariance:
Changing the origin of the measurements changes the estimated location by exactly the same amount. Both the sample mean and sample median satisfy this identity. For example, adding to every observation adds to either estimated location.
Strict invariance would instead leave the numerical answer unchanged. The sample variance has that different property because shifting every observation also shifts their sample mean, leaving all centered differences unchanged. The distinction matters when specifying the admissible estimators in a minimax asymptotic bias problem. The older translation-invariant terminology appears in Peter J. Huber's original location analysis.[ref]
Trimmed mean Created 2026-09-28 Updated 2026-11-05
For , an -trimmed mean sorts observations, removes the smallest and largest , and averages the remaining values. It limits the effect of a small number of extreme observations while still averaging a central portion of the data.
For and , removing and gives trimmed mean , compared with sample mean . Replacing by a larger value leaves this trimmed mean unchanged. Replacing enough observations can still move the retained central values arbitrarily far.
For a probability distribution with quantile function , the population statistical functional is
The normalizing denominator is the retained fraction of probability. At a regular symmetric reference probability distribution, the influence function of a trimmed mean is a clipped version of the observation, scaled by this fraction. Centering and symmetry assumptions matter when using that simpler expression.
Two-sample FPCA mean statistic Created 2026-09-28 Updated 2026-11-05
Let and be two independent samples of independent and identically distributed Hilbert-space-valued random variables, with finite second moments and covariance operators . To test equality of their expectations, use the pooled covariance operator . This choice works even when the two population covariance operators differ: under the null hypothesis, the covariance operator of is exactly .
Let estimate the eigenvalues and orthonormal eigenvectors of , for example from the average of the two within-sample empirical covariance operators. For fixed , positive retained eigenvalues, a separated retained eigenspace and suitable statistical consistency of these estimates,
The proof applies the Hilbert-space central limit theorem to the difference of sample means, then standardizes its first coordinates and uses Slutsky's theorem. A sufficient simple-eigenvalue condition is with .[ref]
For unequal sample sizes , the scaling becomes and the relevant population covariance operator is . Thus a sample-size-weighted pooled estimate cannot automatically be reused for unequal sizes and unequal covariance operators: its weights must match the variance of the difference being tested.
Let be the weak typical set of a finite alphabet independent and identically distributed source with Shannon entropy , and let be any sets with . The asymptotic equipartition property and union bound give . Every word in the intersection has probability mass between and . Summing these bounds gives
For every fixed , the first probability eventually exceeds , proving the title bound. A sample mean within a fixed positive tolerance of the expected value supplies by the strong law of large numbers.
Uncentered empirical second-moment matrix Created 2026-10-06 Updated 2026-11-05
The uncentered empirical second-moment matrix averages the outer products of the observations. Its expected value is . It is an unbiased estimator of the covariance matrix when the population expected value is known to be zero. It differs from a sample covariance matrix centered at the sample mean.
Uncertainty in estimated inverse-variance weights arises when the variances used in inverse-variance weighting are themselves estimated. A very small estimated variance can give one observation or group a large random weight. The familiar variance formula for fixed, known weights cannot simply be reused with estimated variances treated as exact. NIST specifically warns that weights estimated from few replicates can substantially and unpredictably affect a weighted least squares analysis.[ref]
Suppose independent groups contain independent normal random variables with common mean and group variance . Let and be the group sample mean and unbiased sample variance, and form
For normal samples, each sample mean is independent of its sample variance. Conditional on the estimated weights, the estimator remains unbiased and has
Thus the law of total variance gives unconditional variance equal to the expectation of this expression. The true still appear; replacing them by the same random does not establish the actual conditional variance. Outside the independence assumptions, even conditional unbiasedness can fail.
An original two-group example takes and true , so each group mean has variance . If observed sample variances are and , the estimated normalized weights are and . For group means and , the combined estimate is . The plug-in variance is
but the true conditional variance under the stipulated model is
The corresponding standard deviations are about and . Equal weights would have variance . An accidentally small estimated variance has both overstated precision and moved the combination away from the optimal equal weights in this example.
Reciprocal moments of an estimated variance explain the unstable precision estimate. For a normal sample with , has a chi-squared distribution. Integrating its density gives
Consequently for , while the second moment requires . The density and its gamma-distribution parameterization are documented in the primary SciPy implementation notes.[ref] With , the inverse sample variance has a finite mean twice the true precision and an infinite variance; the normalized weights remain bounded, so this does not imply their variance is infinite.
More replication or a justified smooth variance model can stabilize weights. NIST describes direct replicate-based weight estimation and variance-function modeling as distinct approaches.[ref] A proposed validation repeats the complete weight-estimation and combination procedure on simulated or replicated groups, checking actual interval coverage as well as point estimates. A bootstrap must reproduce the weight-estimation stage; holding the fitted weights fixed tests a different procedure.
Unequal-cluster weighting in a cluster bootstrap must preserve the statistic's intended population target while resampling the independent groups. For group , let be its observed size, its observation sum, and . Two distinct estimates are
The first weights groups by their numbers of observations; the second gives each group equal weight. If group size is related to group response, the corresponding population targets need not agree. For identically distributed independent groups with suitable finite moments, they correspond to and , respectively.
For each cluster bootstrap replicate, draw group slots with replacement and recompute the selected statistic, including its denominator. The Stata manual explicitly notes that unequal group sizes cause replicate row counts to vary; keeping a fixed original row denominator would therefore compute a different statistic.[ref]
For an original two-group example, take and . The original pooled sample mean is , while the equally weighted group-mean estimate is . The four ordered two-group draws have equal probability. Their pooled sample means are , whereas their equally weighted group-mean estimates are .
Consequently the conditional bootstrap expectation of the pooled estimate is , not . This bootstrap ratio bias with unequal cluster sizes is visible with only two observed groups: averaging a random ratio does not generally give the ratio of the averages. It is not a reason to substitute the equally weighted estimate, which changes the estimand, or a claim that every large-group bootstrap is invalid.
Resampling groups in proportion to and then retaining all their rows introduces an additional size preference; that design needs its own justification. Replicated group copies also need distinct identifiers when the fitted model uses those identifiers. The correct resampling unit, the target mean, and the statistic recomputed in each draw must all be specified.