Adam bias correction 2026-11-05
Adam bias correction compensates for the initial zero values in Adam's exponentially weighted gradient histories. The basic algorithm uses
These factors normalize the coefficient sums of the two running histories.[ref]
For a scalar coordinate, suppose and
Expanding the recurrence relation gives
If every has the same expectation , linearity of expectation and the geometric series yield
Thus is an unbiased estimator of under these assumptions. Correlation between different times is allowed by this argument. Applying the same calculation to squared gradients with constant raw second moment gives and .
For a constant supplied gradient of 2, choose and . The first uncorrected histories are and , while their corrected values are 2 and 4. The normalization removes the missing coefficient mass caused by initialization.
It does not make a changing history equal to the latest gradient. For an original deterministic example, let , and . Then , so
which differs from . More generally, changing moment expectations produce a weighted average of past expectations. State the moment assumptions before interpreting “bias-corrected” as unbiased for a present distribution. The nonlinear parameter update built from the corrected histories is a separate object from either moment estimator.
Antithetic variates 2026-10-14
Antithetic variates deliberately couple unbiased estimators of the same expectation with negative covariance. Their average can have smaller variance than an average using independent draws. For example, evaluating a monotone integrand at and , where has a uniform distribution, gives opposite fluctuations while preserving both marginal distributions.
Let be fixed and known, and let be independent and identically distributed Bernoulli random variables with common success probability . Their joint probability mass function, on the binary sample space , is
There are arrangements with successes, so has the binomial distribution. For and , its exact conditional full-data probability mass function is
This conditional distribution is uniform over arrangements, with no dependence on : the sum is a sufficient statistic. [ref]
Figure 1.
Four Bernoulli observations grouped by their sufficient sum
. All sixteen binary sequences are grouped by . Within each group the conditional distribution is uniform; changing changes the group's total probability, not the conditional weights within it. Details.
For , the group sizes are and the within-group conditional probabilities are respectively . For example, leaves exactly , each with conditional probability . At , each such sequence has unconditional probability and the group has probability . At , these values are and ; at they return to and . The conditional weights stay in all three cases.
At the boundary , only has positive probability; at , only does. Dividing by on the other groups would divide by zero. Nevertheless, the same uniform-on-arrangements Markov kernel is a valid common version for the entire family : it gives the correct point mass on the one observed group at each boundary and assigns permissible versions on its unobserved groups. Define the joint probability mass function there by the original product of the one-trial Bernoulli probability mass functions, or use the limiting convention in the compact formula.
The sample mean is an unbiased estimator of and retains the sufficient statistic because is known. By contrast, is also an unbiased estimator of but, for , is not sufficient: the conditional success probability of the independent given is still . Thus unbiasedness does not imply sufficiency.
Sufficiency also does not imply completeness of a statistic. For , the full-data sufficient statistic admits the nonzero function with expectation zero for every . Nor does minimality imply completeness of a statistic: for and the restricted statistical model , is a minimal sufficient statistic since the likelihood ratio distinguishes its three values. Yet has expectation at both parameter values and is never zero. Changing the parameter family can change completeness of a statistic even while preserving sufficiency.
Chapman estimator 2026-10-14
The Chapman estimator is a correction intended to reduce the small-sample bias of the Lincoln-Petersen estimator. Under the fixed-size hypergeometric sampling assumptions it is exactly an unbiased estimator when ; it can have nonzero bias otherwise. This qualification and the formula are stated in Barker, §1.1.1, equation (1.3), citing Chapman's work through Seber. For the toy observations,
It is an alternative estimator, not a maximum-likelihood estimate for this capture-recapture model. The Chapman estimator remains finite when , but a finite output does not supply the missing overlap information or repair unequal catchability, lost marks, or population change.
A conservative variance estimator, in the finite-sample expectation sense used here, is an estimator of a sampling variance satisfying
for every statistical parameter value in the stated statistical model. Assume and are finite. In design-based inference, the same definition applies for every permitted fixed population, with the sampling design supplying the randomness. The bias of an estimator is then nonnegative for this target. Aronow and Samii use this expectation criterion for their correction to the Horvitz-Thompson variance estimator when some pairs cannot be sampled together.[ref]
A samplewise variance upper bound would require the stronger inequality almost surely. An expectation bound allows some estimates below . It does not even require that every realized value be nonnegative; in practice a variance estimate is commonly chosen to be a nonnegative random variable.
One construction starts with an integrable random variable that is an unbiased estimator of and might take negative values. Its positive part satisfies , hence is a conservative variance estimator. The amount of upward bias of an estimator is exactly
The identity follows from the positive part and negative part decomposition . The Horvitz-Thompson variance estimator supplies a concrete setting in which the untruncated unbiased estimator can be negative.
A deliberately constructed example proves that conservative variance estimation does not guarantee Wald interval coverage. Observe from a normal distribution and an independent from a Bernoulli distribution with success probability . Use and . This nonnegative random variable has
Thus it is even an unbiased estimator of the sampling variance. Yet the usual Wald confidence interval
has coverage probability
where is the standard normal distribution function. When , the interval is the singleton , which contains with probability zero because is a continuous random variable. When , its conditional coverage probability is the bracketed expression. At , overall coverage probability is at most 1 percent, despite the nominal 95 percent rule and the exactly normal centre.
Figure 1.
An unbiased variance estimate can give a Wald interval with coverage at most one percent
. Original randomized variance-estimation counterexample. The variance estimate is zero with probability 0.99 and 100 with probability 0.01, so its expected value is the true variance 1. The interval can cover its target only in the rare second case. Details.
This example concerns the logical strength of the expectation criterion. Controlling the distribution of an estimated standard error, for example through an appropriate consistent estimator in an asymptotic argument, is additional work needed to justify confidence interval coverage.
Split independent observational blocks into two folds. Use one fold to estimate the combination weight for the two sample means in the other fold, and conversely. Each held-out combination is an unbiased estimator conditionally on its training fold because its two held-out sample means have the same expectation. A deterministic average of the two combinations remains unbiased. Under consistency of the moment estimates and balanced fold sizes, the weights approach those of the minimum-variance combination of unbiased sample means. Paired observations must stay together when splitting or bootstrapping so their covariance is preserved.
Cyrus Samii 2026-11-05
Cyrus Samii is a political scientist at New York University whose methodological work concerns quantitative field research and causal inference. His academic biography connects the design of randomized controlled trials to empirical social research.[ref]
Figure 1.
Cyrus Samii
. Portrait linked as cds_self from Samii's personal academic biography; served directly by the original website.
With Peter M. Aronow, Samii studied sampling designs in which every unit can be observed but some pairs can never be observed together. The distinction matters: positive individual inclusion probabilities suffice for an unbiased estimator of a finite population total, whereas the usual Horvitz-Thompson variance estimator also needs pairwise inclusion positivity.[ref]
An original two-unit example makes the single-draw variance identifiability obstruction explicit. Fix two unknown population values and choose one index with probabilities . The Horvitz-Thompson estimator is , so
An estimator based only on the selected index and its observed value has expected value of the form . Such an additive expression cannot equal for every pair of real values. Taking the mixed finite difference at gives zero for the additive expression but
for the desired variance. Thus a single draw permits an unbiased estimator of the total but no universally unbiased estimator of its sampling variance. Independent auxiliary randomization cannot repair this: averaging that randomness still gives functions and of the same observed data.
This is a restriction imposed by the observation mechanism, rather than a shortage of algebraic ingenuity. It motivates separating design-based inference about a total from the additional information needed to quantify its uncertainty.
Design-based inference 2026-11-05
Design-based inference evaluates an estimator by the random mechanism selecting a sample from a fixed finite population. Population values are held fixed; the selected subset is random under a known sampling design . Thus
The subscript identifies the source of randomness. An unbiased estimator of a finite population total has for each eligible fixed population. The unequal-probability total developed by D. G. Horvitz and D. J. Thompson is a central example.[ref]
For an original example, let the fixed population values be and sample one label uniformly. Every inclusion probability is , so the Horvitz-Thompson estimator is . Its three equally probable values are , while the actual total is . Consequently,
The estimator is unbiased even though none of its possible estimates equals the target. Unbiasedness describes averaging across the sampling design, rather than guaranteed accuracy in an individual sample.
A confidence interval with design-based coverage must likewise succeed at its stated rate across repeated selections under the specified design. That property requires a justified construction; unbiasedness of a point estimate alone supplies no coverage guarantee. Repeating a convenient calculation on the same selected units does not reproduce the selection process. Assumptions about measurement error or missing responses must also be stated separately, since knowledge of the original selection probabilities alone does not repair those later stages.
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 , define
Each 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 is
For 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.
Figure 1. . The chosen statistical sample is . Stacked marks retain the two observations at . Open circles show excluded heights and filled circles show the value at each jump of the right-continuous step function. The right axis gives the cumulative count, five times the empirical distribution function. Details.
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 , so
A 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 and
The 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]
Prepare a fresh copy of the same quantum state for each trial and measure the same observable. If preparations and readouts are independent, the outcomes are independent and identically distributed random variables with the Born rule probability distribution. Their sample mean is an unbiased estimator of the expectation value:
The law of large numbers explains convergence of the sample mean, while the standard error describes its finite-sample spread. It takes four times as many independent trials to halve that standard error. This reduces estimation error; it does not reduce the quantum uncertainty of a single prepared copy.
For the spin expectation value, let and be the two outcome counts, with . Then
The binomial distribution gives the exact sampling model. For , the standard error is : approximately for and for . A run can fluctuate away from the predicted mean even as its typical spread decreases.
Figure 1.
Simulated running spin means and exact sample mean probabilities
. Original independent-trial model with . Left: four seeded simulated sequences of fresh preparations, with one-theoretical-standard error curves about . These curves are not simultaneous bounds on trajectories. Right: exact binomial distribution masses for the sample mean at and ; each set sums to one. The possible sample means become more closely spaced as increases. All points are simulations or calculations, not measured observations. Source. Details.
Repeatedly measuring one surviving system is a different protocol. Under the ideal Lüders rule, outcome leaves when . With no intervening change of observable or dynamics moving the state out of that eigenspace, the next projective measurement returns with certainty. Such a record is correlated and does not sample the original Born rule distribution independently. The quantum nondemolition measurement discussion describes this repeatability; fresh quantum state preparations supply the ensemble needed for the estimator above.
Finite population total 2026-11-05
A finite population total adds a specified numerical value over every labelled unit in a fixed, finite population :
The target must specify both the population and the measured variable. It may be a total inventory mass, the total number of employees across establishments, or the sum of a binary property. If , the total counts units having the property; it is not automatically the population size . A finite population mean is , when is known and positive.
An original inventory has four containers holding of a material. The total is and the finite population mean is per container. Giving every container the same mass fraction of an analyte is a separate assumption: the total analyte mass instead requires summing each container's mass multiplied by its own mass fraction. The target follows the physical quantity being added.
When only a sample is observed, the unweighted sample sum is generally not an unbiased estimator of . Using inclusion indicators and inclusion probabilities gives
If every , the Horvitz-Thompson estimator instead satisfies
This is a consequence of the sampling design, without requiring the fixed population values to follow a statistical distribution.[ref] A full census removes sample-selection variation, but imperfect measurement can still make the recorded sum differ from the intended physical total.
Gauss-Markov theorem Created 2026-09-24 Updated 2026-11-05
Let with a fixed full column rank design matrix, and . Then ordinary least squares is a best linear unbiased estimator: every response-linear unbiased estimator has at least as much variance in every coefficient direction. A normal distribution is unnecessary.[ref]
For a proof put . A competing estimator is unbiased for every exactly when . Write ; then , so the cross terms vanish and
This positive semidefinite matrix inequality proves the simultaneous directional comparison. The scope is linear unbiased estimators, not all conceivable estimators: a biased ridge regression estimate may improve mean squared error for some signals. With correlated or unequal-variance errors, the corresponding known-covariance result uses generalized least squares.
Haar projection estimator in Gaussian white noise Created 2026-10-06 Updated 2026-10-07
In the Gaussian white noise model, estimate a Haar scaling function coefficient by . The resulting Haar projection estimator is an unbiased estimator with independent coefficient errors of variance . On each cell it is the observed path increment divided by the cell length. This gives a finite-dimensional estimator without imposing smoothness on the drift.
The Horvitz-Thompson estimator estimates a finite population total by expanding each observed unit's contribution by the reciprocal of its inclusion probability. D. G. Horvitz and D. J. Thompson introduced the general unequal-probability construction in 1952.[ref]
Let be fixed values attached to labelled population units. A sampling design selects a random subset , with known inclusion probabilities . Then
where is the inclusion indicator. This is inverse probability weighting for a finite population.[ref] Its expected value is immediately
The subscript emphasizes design-based inference: the fixed values are not assumed to follow a probability model; the sample-selection mechanism supplies the randomness. The inclusion indicators need not be independent. Dividing by known gives an unbiased estimator of the finite population mean.
For an original exact example, use values and choose samples , , with probabilities , respectively. The inclusion probabilities are . The corresponding estimates of the total are , and
Simply multiplying each sample mean by three instead gives totals , with expected value . Equal treatment of the observed values ignores the unequal chances of observing them.
Figure 1.
Inverse-inclusion weighting corrects the expected total in an unequal-probability sample
. Original exact enumeration of three possible two-unit samples from values 2, 4 and 6. The left panel shows their selection probabilities; the right compares the Horvitz-Thompson total with three times the sample mean. The population total is 12. Details.
The sampling variance depends on pair information. Put , including . Bilinearity of covariance gives
For the three-unit design it is , found directly from . Thus an unbiased estimator need not give a nearly correct total in each sample.
With pairwise inclusion positivity, the same expansion device applied to pairs constructs the Horvitz-Thompson variance estimator:
Its expected value equals the preceding population sum because . In the worked design its three possible values are , whose probability-weighted average is . This particular unbiased estimator of variance can therefore be negative for an individual sample. Its expected value identity is a statement about repeated selection.
If , an arbitrary unobserved cannot contribute to an unbiased total estimate. If a distinct pair has , its product cannot be recovered by the pair-expansion argument. Finally, dividing the weighted sum by the random sum of its inverse-probability weights changes the estimator into a ratio; the indicator proof above no longer establishes that this ratio is an unbiased estimator. The known population size and the actual sampling design are part of the result.
The Horvitz-Thompson variance estimator estimates the sampling variance of a Horvitz-Thompson estimator using observed values and known individual and joint inclusion probabilities. It is a random estimate of a fixed design-dependent variance, rather than the variance itself.
Let be an inclusion indicator, , and , with . For fixed population values , write . Bilinearity of covariance gives
Under pairwise inclusion positivity, a sample provides the estimator
The diagonal terms are included. Taking expected values replaces by 1, proving . This is the pairwise counterpart of inverse-probability expansion for the finite population total.[ref]
An original exact example uses fixed values . Select with probabilities , respectively. Then , and the possible total estimates are . Their expected value is the true total 4, with variance
For those same samples, the variance estimates are . Their expected value is also 2. In particular, for , the two diagonal contributions are 4 and 2, while the combined off-diagonal contribution is , giving .
Thus this unbiased estimator of variance can be negative in a realized sample. Replacing a negative result by zero changes its expected value; in this example that modification raises the mean estimate to . A positive square root is therefore not always available as a sample standard error from this particular formula. If some , dropping an unobservable cross-product does not preserve the proof; the missing term needs separate analysis.
For independent unbiased estimators of a common mean with known positive variances , the linear unbiased estimator with smallest variance has weights and variance . Unbiasedness requires . Minimizing by a Lagrange multiplier gives the weights, and the strictly positive diagonal Hessian matrix proves a unique global minimum. This conclusion requires no normality assumption.
Inverse-variance weighting combines estimates of the same quantity by giving a more precise estimate a larger weight. Suppose are independent, unbiased estimators of , with known variances . For normalized weights,
The inverse is taken after squaring the standard uncertainty: twice the standard uncertainty gives one quarter as much weight. The corresponding weighted least squares criterion is ; differentiating it with respect to gives the same weighted arithmetic mean.[ref]
The optimality statement is precise. Any linear unbiased estimator requires . By the Cauchy-Schwarz inequality,
Equality holds for the displayed weights. Thus they minimize variance among linear unbiased combinations under these assumptions; a normal distribution is not needed for that proof.
For an original example, combine observed values 10 and 14 with standard uncertainties 1 and 2 in the same units. The normalized weights are and , giving estimate , variance and standard uncertainty approximately . Equal weights give 12 and standard uncertainty .
Correlated errors change the problem. A contribution common to every reading survives every weighting whose coefficients sum to one; precision limits of weighting correlated repeats derives the resulting floor. More generally, use the full covariance matrix and generalized least squares rather than treating correlated readings as independent.[ref] Uncertainty in estimated inverse-variance weights is another limitation: variances estimated from the same data are not fixed known quantities, and an accidentally tiny estimated variance does not justify arbitrary confidence.
Jackknife bias correction Created 2026-09-24 Updated 2026-10-14
The jackknife bias correction uses jackknife resampling to estimate and subtract the bias of an estimator. Here denotes the original estimator, its version after deleting observation , and the mean of those versions. For sample size , define
The sign matters: a negative estimated bias increases the corrected value. The original estimator and all deletion versions must target the same estimand and use the same estimation rule at their respective sample sizes. The definition alone does not make an unbiased estimator.
For an exact worked example, take the empirical variance
On , the sample mean is and . Each deletion empirical variance is recomputed around its own deletion sample mean, with divisor , giving
For instance, deleting leaves , whose sample mean is and whose empirical variance is . The correction on the full statistical sample is
The same data thus give a jackknife variance estimator of for the sample mean, and a corrected empirical variance of ; these are different estimands.
Figure 1.
Two uses of the same deletions: sampling variance and jackknife bias correction
. The left panel plots contributions to the jackknife variance estimator of the sample mean, summing to . The right panel plots the five deletion empirical variances and their mean , then compares the original empirical variance with the corrected sample variance . Details.
The exact equality with the usual sample variance is not an accident of these numbers. For any data with , write . Removing changes this sum to , so
For independent and identically distributed random variables with finite second moment and population variance , the expectation is . Its bias is exactly ; jackknife bias correction removes it exactly in this example. Thus is an unbiased estimator of under these assumptions, including where each deletion empirical variance is zero.
More generally, suppose the bias has a regular expansion at both sample sizes and , with coefficients independent of :
Under independent and identically distributed sampling, each deletion estimator has the same expectation as . Hence the corrected bias is
The leading term cancels; the remaining bias need not vanish. The notation is big O notation. This argument presumes the expansion, rather than proving it for every statistic; the regularity conditions discussed for the jackknife variance estimator and statistical dependence still require care. Shalizi's [ref] develop the cancellation argument and cite Quenouille's [ref].