Statistics and inference
The methods that turn data into estimates, tests and intervals, and that say how far to trust them.
- Point estimation
- Hypothesis testing and intervals
- Nonparametric, resampling and robust methods
- Regression and diagnostics
- Bayesian statistics
- Time series and sequential analysis
- Causal inference and design of experiments
- Survival analysis
Problems
- Multiple comparisons problem
Testing many hypotheses at once inflates the chance of false rejections. The problem is to control an error rate over the whole family while keeping power.
intro - Bandwidth selection
Choose the bandwidth of a kernel estimator, by a rule of thumb, by cross-validation or by plug-in estimates of the integrated squared error.
1 languagescore - Change-point detection
Find the times at which the distribution of a sequence changes, offline from a whole series or online with a small delay and few false alarms.
core - Sample size determination
Find the smallest sample size for which a level-alpha test reaches a target power at a stated effect, or an interval reaches a target width. Closed form for z; numerical for t.
1 languagescore - Optimal experimental design
Choose design points that optimize a criterion of the information matrix, such as its determinant for D-optimality or the trace of its inverse for A-optimality.
advanced
Algorithms
- Binomial test
Tests H_0 p = p_0 from x successes in n independent trials with the exact Binomial(n, p_0) law. Valid for every n; size at most alpha; O(n) time.
1 languagesintro - Bonferroni correction
Tests each of m hypotheses at level alpha / m. By the union bound the family-wise error rate is at most alpha under any dependence.
1 languagesintro - Chi-squared test of independence
Tests whether two categorical variables are independent by comparing a contingency table with the product of its margins, with (r - 1)(c - 1) degrees of freedom.
1 languagesintro - F-test for nested linear models
Compares a linear model with a nested smaller one by the drop in residual sum of squares per extra parameter over the residual variance. Exact F law under normal errors. One QR, O(n p^2).
1 languagesintro - One-way analysis of variance
Tests whether k group means are equal by the ratio of the between-group to the within-group mean square. Exact F law under normal errors with equal variances. O(N).
1 languagesintro - Pearson's chi-squared goodness-of-fit test
Compares observed category counts with expected counts by the sum of (O - E)^2 / E, which is asymptotically chi-squared under the null.
1 languagesintro - Sign test
Tests a median, or paired differences, by the number of positive signs, which is Binomial(n, 1/2) under the null once zeros are dropped. Exact for every n and needs almost no assumptions.
1 languagesintro - Stepwise regression
Chooses the columns of a regression by adding or dropping one column at a time while a criterion such as AIC improves. It is fast and greedy, and it can miss the best subset.
1 languagesintro - Student t confidence interval
The interval x-bar plus or minus t_(n-1, 1-alpha/2) S/sqrt(n) for a normal mean with unknown variance. Exact coverage 1 - alpha under normal iid data; asymptotic otherwise. O(n).
1 languagesintro - Student's t-test
Tests a normal mean, or two means, by the estimate over its estimated standard error. Exact t null law under normal iid data; the pooled form needs equal variances. O(n).
1 languagesintro - Trimmed mean
The mean of the sample after removing a fixed fraction of the smallest and of the largest values. Its breakdown point tends to that fraction as the sample grows.
1 languagesintro - Z-test
Tests a mean or proportion with a statistic that is standard normal under the null. Exact for normal data with known sigma, asymptotic for proportions. O(n) time.
1 languagesintro - Anderson-Darling test
A goodness-of-fit test by a weighted squared distance between the empirical and the model CDF, with weights that stress the tails.
1 languagescore - Augmented Dickey-Fuller test
Tests the null of a unit root by the t-statistic of the lagged level in a regression of differences, with lagged differences added. Its null law is nonstandard.
1 languagescore - Benjamini-Hochberg procedure
Sort the p-values and reject the k smallest, for the largest k with p_(k) <= k q / m. With independent null p-values the FDR is exactly (m_0/m) q, so at most q.
1 languagescore - Binary segmentation
Cuts a series at its single best change point, then repeats on each part while the split statistic exceeds a threshold. Cost O(n(m+1)) for m changes, O(n²) in the worst case.
1 languagescore - Bootstrap percentile interval
A confidence interval whose endpoints are the alpha/2 and 1 - alpha/2 quantiles of the bootstrap replicates of the statistic. Simple and transformation respecting, but only first-order accurate.
1 languagescore - Breusch-Pagan test
Tests for heteroscedasticity by regressing the squared residuals on the predictors; n times the R-squared of that regression is chi-squared under the null.
1 languagescore - CUSUM
Page's online detector that sums log likelihood ratios, clips the sum at zero and alarms above a threshold. Lorden proved it asymptotically optimal, Moustakides exactly optimal.
1 languagescore - Clopper-Pearson interval
A confidence interval for a binomial p that inverts two one-sided exact tests. Its endpoints are Beta quantiles, and its coverage is at least 1 - alpha for every p.
1 languagescore - Durbin-Watson test
Tests for first-order autocorrelation of regression residuals by the sum of squared successive differences over the sum of squares. Values near 2 mean none.
1 languagescore - Fisher scoring
Maximizes a likelihood by Newton steps that use the expected information in place of the observed one. For GLMs it is IRLS, and for canonical links it equals Newton's method.
1 languagescore - Fisher's exact test
Tests independence in a 2 x 2 table exactly, from the hypergeometric distribution of one cell given the margins. It stays valid for small counts.
1 languagescore - Fisher's method
Combines k independent p-values into minus two times the sum of their logs, which has a chi-squared law with 2k degrees of freedom under the global null.
1 languagescore - Friedman test
A rank test for k treatments in a randomized block design. It ranks within each block and compares the treatment rank sums.
1 languagescore - Generalized least squares
Least squares after whitening by the error covariance, b = (X^T V^(-1) X)^(-1) X^T V^(-1) y. It is best linear unbiased for known V; with V estimated it is feasible GLS.
1 languagescore - Heteroscedasticity-consistent standard errors
Estimate the covariance of least squares as (X^T X)^(-1) X^T diag(e_i^2) X (X^T X)^(-1), which stays consistent when the error variance varies.
1 languagescore - Hochberg procedure
A step-up form of Holm: find the largest k with p_(k) <= alpha / (m - k + 1) and reject H_(1) to H_(k). It controls the FWER when the Simes inequality holds, as under independence or MTP2.
1 languagescore - Holm-Bonferroni method
Sort the p-values and reject while the k-th smallest is at most alpha / (m - k + 1). It controls the FWER under any dependence and is uniformly more powerful than Bonferroni.
1 languagescore - Holt-Winters method
Forecasts by exponentially smoothed updates of a level, a trend and a seasonal component. Holt's method has level and trend only.
1 languagescore - Horvitz-Thompson estimator
Estimates a population total by summing each sampled value divided by its inclusion probability. It is unbiased for any design in which every unit can be sampled.
1 languagescore - Huber M-estimator
Huber's M-estimator with a loss that is quadratic near zero and linear beyond a threshold. It is minimax for the variance under the contamination model.
1 languagescore - Inverse probability weighting
Weights each unit by one over the probability of the treatment it received, so the weighted sample mimics a randomized experiment.
1 languagescore - Iteratively reweighted least squares
Solves a sequence of weighted least squares problems whose weights come from the current fit. It fits generalized linear models and robust M-estimators.
1 languagescore - Jackknife
Recompute a statistic with each observation left out in turn, and combine the n values to estimate its bias and variance. It fails for nonsmooth statistics like the median.
1 languagescore - KPSS test
Tests the null of stationarity around a level or trend against a unit root, by the partial sums of residuals. It complements the Dickey-Fuller test.
1 languagescore - Kaplan-Meier estimator
Estimates the survival function under right censoring as the product over event times of one minus the deaths over the number at risk. It is the nonparametric MLE.
1 languagescore - Kernel density estimation
Estimates a density by averaging a kernel, such as a Gaussian bump, centred at each data point. The bandwidth trades bias against variance.
1 languagescore - Kolmogorov-Smirnov test
Tests whether a sample comes from a given distribution, or two samples from the same one, by the largest distance between distribution functions.
1 languagescore - Kruskal-Wallis test
Extends the Mann-Whitney test to k groups by comparing the mean ranks of the groups in the pooled sample. The statistic is roughly chi-squared with k - 1 degrees of freedom.
1 languagescore - Likelihood ratio test
Compares the maximized likelihood under the null with that under the full model, and rejects when twice the log ratio is large. Wilks' theorem gives its null distribution.
1 languagescore - Ljung-Box test
Tests whether the first h autocorrelations of a series or of model residuals are jointly zero by a weighted sum of their squares, which is approximately chi-squared under IID noise.
1 languagescore - Local polynomial regression
Fits a low-degree polynomial by weighted least squares around each point. It removes the boundary bias of kernel regression; LOWESS adds robust reweighting.
1 languagescore - Log-rank test
Compares survival curves of groups by the observed minus expected events at each event time, summed over time. It is the locally most powerful rank test under proportional hazards.
1 languagescore - Mann-Whitney U test
Compares two independent samples by the number of pairs in which the first sample's value exceeds the second's, equivalently the rank sum of one sample.
1 languagescore - McNemar's test
Tests a change in a paired binary outcome using only the discordant pairs, whose split is binomial with p = 1/2 under the null.
1 languagescore - Nadaraya-Watson estimator
Estimates a regression function at x by a weighted average of the responses, with kernel weights that fall with the distance of each x_i from x.
1 languagescore - Nelson-Aalen estimator
Estimates the cumulative hazard as the sum over event times of the deaths over the number at risk. It is a counting process martingale estimator.
1 languagescore - Permutation test
Get the null distribution of a statistic by recomputing it over permutations of the labels, which are exchangeable under the null. The test is exact at any sample size.
1 languagescore - Propensity score matching
Pairs each treated unit with one or more control units of close propensity score and estimates the effect from the matched differences.
1 languagescore - STL decomposition
Cleveland's decomposition of a series into trend, seasonal and remainder parts by alternating LOESS smoothers in an inner and a robust outer loop.
1 languagescore - Scheffe's method
Simultaneous confidence intervals for all contrasts of k group means, with multiplier sqrt((k-1)F). Exact coverage 1 - alpha, even for contrasts chosen after seeing the data.
1 languagescore - Score test
Tests a null by the size of the score at the restricted estimate, scaled by the Fisher information. It needs only the fit under the null.
1 languagescore - Sequential probability ratio test
Wald's test that reads one observation at a time and stops when the likelihood ratio leaves an interval (B, A). No test with its error rates has a smaller expected sample size.
1 languagescore - Shapiro-Wilk test
Tests normality by the squared correlation of the ordered sample with weights built from the means and covariances of normal order statistics. It is a powerful omnibus test.
1 languagescore - Theil-Sen estimator
Estimates the slope of a line by the median of the slopes through all pairs of points. It breaks down at about 29 percent and can be computed in O(n log n) time.
1 languagescore - Tukey's biweight
A redescending M-estimator whose psi function goes to zero beyond a threshold, so gross outliers get no weight. Fitted by iteratively reweighted least squares.
1 languagescore - Tukey's range test
Compares all pairs of k group means with the studentized range law. Family-wise error rate exactly alpha for balanced normal data, at most alpha with unequal sizes.
1 languagescore - Two-stage least squares
First regress the treatment on the instruments, then regress the outcome on the fitted treatment. It is the standard instrumental variables estimator.
1 languagescore - Two-way analysis of variance
Tests the main effects of two factors and their interaction by F ratios of nested residual sums of squares. Exact F laws under normal errors; unbalanced data need type I, II or III.
1 languagescore - Wald test
Tests a parameter by the squared distance of its estimate from the null value, scaled by the estimated variance. It needs only the unrestricted fit.
1 languagescore - Weighted least squares
Least squares with each squared residual weighted, usually by the inverse of its variance. It is the best linear unbiased estimator when the variances are known.
1 languagescore - Welch's t-test
Compares two normal means without assuming equal variances, using separate variance estimates and Welch-Satterthwaite degrees of freedom. Approximate, not exact. O(m + n).
1 languagescore - Welford's algorithm
Computes the mean and variance of a stream in one pass, updating the mean and the sum of squared deviations per item. It avoids the cancellation of the textbook formula.
1 languagescore - Wilcoxon signed-rank test
Tests whether paired differences are symmetric about zero by the sum of the ranks of their absolute values that belong to positive differences.
1 languagescore - Wilson score interval
A confidence interval for a binomial p that inverts the score test by solving a quadratic. Coverage is near 1 - alpha on average but dips below it for some p.
1 languagescore - Yule-Walker equations
Estimates an AR(p) model by solving the Toeplitz system of sample autocovariances Gamma_p phi = gamma_p, in O(p^2) by the Levinson-Durbin recursion.
1 languagescore - ABC rejection algorithm
Draw a parameter from the prior, simulate a data set, and accept the parameter when its summaries lie within epsilon of the observed ones. The accepted draws approximate the posterior.
1 languagesadvanced - Aalen-Johansen estimator
Estimates the transition probabilities of a finite-state Markov process under censoring, and so the cumulative incidence of each cause with competing risks.
1 languagesadvanced - Augmented inverse probability weighting
Combines an outcome regression with inverse probability weighting of its residuals. It is consistent if either model is right and efficient if both are.
1 languagesadvanced - BCa bootstrap interval
Efron's bootstrap interval that shifts the percentiles by a bias correction and an acceleration from the jackknife. It is second-order accurate.
1 languagesadvanced - Benjamini-Yekutieli procedure
Run Benjamini-Hochberg at level q / (1 + 1/2 + ... + 1/m). This controls the FDR at (m_0/m) q under any dependence, at a level about ln m times smaller.
1 languagesadvanced - Block bootstrap
Resamples blocks of consecutive observations of a time series to keep their dependence. The stationary bootstrap of Politis and Romano uses blocks of random length.
1 languagesadvanced - Bootstrap-t interval
Bootstraps the studentized statistic, estimate minus original over its standard error, and inverts its quantiles. It is second-order accurate when the standard error is stable.
1 languagesadvanced - Breslow estimator
Estimates the cumulative baseline hazard of a Cox model by summing the deaths over the risk-weighted sum of exp(x^T beta) of those at risk at each event time.
1 languagesadvanced - Bridge sampling
Estimates a ratio of normalizing constants, such as a marginal likelihood, from draws of two distributions linked by a bridge function. The optimal bridge is found iteratively.
1 languagesadvanced - Chan-Golub-LeVeque parallel variance algorithm
Merges the counts, means and sums of squared deviations of two partitions into those of their union, so that variance can be computed in parallel or by divide and conquer.
1 languagesadvanced - Cluster-robust standard errors
A sandwich covariance that sums score contributions within clusters, so that inference stays valid when errors are correlated inside groups.
1 languagesadvanced - Engle-Granger test
Tests for cointegration by regressing one series on the others and applying a unit root test to the residuals.
1 languagesadvanced - Fedorov exchange algorithm
Builds an exact D-optimal design by swapping a design point for a candidate point whenever the swap increases the determinant of the information matrix.
1 languagesadvanced - Henderson's mixed model equations
A linear system whose solution gives at once the GLS estimates of the fixed effects and the best linear unbiased predictions of the random effects.
1 languagesadvanced - Hodges-Lehmann estimator
Estimates a location as the median of all pairwise averages, or a shift as the median of all pairwise differences. It inverts the Wilcoxon test and breaks down at 29 percent.
1 languagesadvanced - Innovations algorithm
Computes one-step predictors and their error variances from a covariance function by orthogonalizing the observations. It gives the exact Gaussian likelihood.
1 languagesadvanced - James-Stein estimator
Shrinks the sample means of three or more normal means toward zero by a data-driven factor. It has lower total squared error than the sample means for every parameter value.
1 languagesadvanced - Johansen test
Finds the number of cointegrating relations in a vector autoregression by the canonical correlations between differences and lagged levels.
1 languagesadvanced - Leaps and bounds algorithm
An exact branch and bound search for the subsets of each size with the smallest residual sum of squares. It cuts every branch whose bound shows that it cannot win.
1 languagesadvanced - Least median of squares
Rousseeuw's regression that minimizes the median of the squared residuals. It has breakdown point near 1/2 but converges slowly, at rate n^(-1/3).
1 languagesadvanced - Least trimmed squares
Regression that minimizes the sum of the h smallest squared residuals. FAST-LTS finds it by random starts and concentration steps that never increase the objective.
1 languagesadvanced - MM-estimator
Yohai's regression estimator that starts from a high-breakdown S-estimate of scale and then solves an efficient M-estimation step. It has both high breakdown and high efficiency.
1 languagesadvanced - Minimum covariance determinant
Estimates location and scatter from the h points whose covariance matrix has the least determinant. FAST-MCD uses concentration steps; the result flags multivariate outliers.
1 languagesadvanced - Multiple imputation by chained equations
Fills each incomplete column in turn with draws from a regression on the other columns, repeats the cycle, and returns m completed tables for Rubin's rules.
1 languagesadvanced - Nested sampling
Skilling's estimator of the marginal likelihood that replaces the worst of a set of live points by a new prior draw of higher likelihood and integrates over the shrinking prior mass.
1 languagesadvanced - O'Brien-Fleming boundary
The group sequential boundary c_k = C sqrt(K/k), very strict at early looks and near the fixed-sample value at the last. C comes from recursive integration and bisection.
1 languagesadvanced - PC algorithm
Learns the Markov equivalence class of a causal DAG by deleting edges by conditional independence tests of growing size, then orienting colliders and further edges.
1 languagesadvanced - PELT
Finds the change points that minimize a penalized cost exactly. It runs the optimal partitioning recursion and prunes start points that can never be optimal again.
1 languagesadvanced - Repeated median regression
Siegel's slope estimate: for each point take the median of its slopes to the others, then the median of those. It is the first regression estimator with breakdown point 1/2.
1 languagesadvanced - Restricted maximum likelihood
Estimates variance components by maximizing the likelihood of error contrasts that do not depend on the fixed effects. It removes the downward bias of ML variance estimates.
1 languagesadvanced - Storey's q-value method
Estimate the share of true nulls as #{p > lambda} / (m (1 - lambda)) and run BH at q / pi0. The q-value of a test is the smallest estimated FDR at which it is rejected.
1 languagesadvanced - Synthetic control method
Builds a weighted mix of control units that matches the treated unit before the intervention, and estimates the effect by the gap after it.
1 languagesadvanced - Turnbull estimator
The nonparametric MLE of the distribution of interval-censored times, found by self-consistency iterations, an EM algorithm, over Turnbull's innermost intervals.
1 languagesadvanced - Westfall-Young procedure
Compare each statistic, largest first, with the permutation law of the maximum over the hypotheses not yet rejected. This controls the FWER strongly and gains power from the dependence.
1 languagesadvanced - ABC sequential Monte Carlo
Runs ABC over a falling sequence of tolerances, moving and reweighting a population of particles, so far fewer simulations are wasted than in rejection ABC.
1 languagesresearch - Bayesian online change-point detection
Adams and MacKay's recursion for the posterior of the run length since the last change, from a hazard rate and a conjugate model for each segment.
1 languagesresearch - CUPED
Reduces the variance of an online experiment's estimate by subtracting theta times a pre-experiment covariate, with theta the regression coefficient, as in control variates.
1 languagesresearch - Double machine learning
Estimates a causal parameter with machine learning for the nuisance functions, using orthogonal scores and cross-fitting so that the parameter is root-n consistent.
1 languagesresearch - FCI algorithm
Extends the PC algorithm to allow latent confounders, and outputs a partial ancestral graph of the features all compatible models share.
1 languagesresearch - Filter algorithm for robust mean estimation
Estimates a high-dimensional mean under epsilon contamination by repeatedly removing points far along the top eigenvector of the covariance. Its error does not grow with the dimension.
1 languagesresearch - Greedy equivalence search
Chickering's score-based causal discovery that adds and then deletes edges over Markov equivalence classes. It finds the true class in the limit under faithfulness and no hidden confounders.
1 languagesresearch - Integrated nested Laplace approximation
Rue, Martino and Chopin's deterministic approximation of posterior marginals of latent Gaussian models by nested Laplace approximations and numerical integration.
1 languagesresearch - Knockoff filter
Build copies of the features that keep their correlations but not their link to the response, and select features that beat their copies. Knockoff+ keeps the FDR at most q in finite samples.
1 languagesresearch - LiNGAM
Identifies the full causal DAG of a linear model with non-Gaussian noise, by independent component analysis or by DirectLiNGAM's search for exogenous variables.
1 languagesresearch - Mixture sequential probability ratio test
An SPRT whose alternative is a mixture over effect sizes. Its likelihood ratio is a test martingale, so its test and its p-values stay valid at any stopping time.
1 languagesresearch - Pareto smoothed importance sampling leave-one-out cross-validation
Estimates leave-one-out predictive accuracy from one set of posterior draws, by importance weights whose tail is smoothed with a fitted generalized Pareto law.
1 languagesresearch - Simulation-based calibration
Checks a Bayesian sampler by drawing parameters from the prior, simulating data, and testing that the rank of the true parameter among posterior draws is uniform.
1 languagesresearch - Split conformal prediction
Fit the model on one part of the data, compute residual scores on the other, and widen predictions by their quantile. It gives finite-sample marginal coverage cheaply.
1 languagesresearch - Targeted maximum likelihood estimation
Van der Laan's estimator that fits an initial outcome model and then updates it along the efficient influence function, giving a doubly robust plug-in estimate.
1 languagesresearch - Tukey median
The point of maximal halfspace depth, a multivariate median with breakdown point at least 1/(d + 1). In the plane it can be computed in O(n log n) expected time.
1 languagesresearch
Techniques
- Bootstrap
Estimate the sampling distribution of a statistic by recomputing it on many samples drawn with replacement from the data. It gives standard errors, bias and intervals.
1 languagesintro - Method of moments
Estimate parameters by setting the first few sample moments equal to the population moments and solving for the parameters. Simple and consistent, but often not efficient.
intro - Q-Q plot
Plots the ordered sample against the matching quantiles of a reference distribution. Points near a line mean the distributions agree up to location and scale.
intro - Box-Cox transformation
Transforms a positive response by (y^lambda - 1) / lambda, or log y at lambda = 0, choosing lambda by profile likelihood to make errors closer to normal with constant variance.
1 languagescore - Box-Jenkins method
The cycle of identifying an ARIMA model from the ACF and PACF, estimating it, and checking its residuals, repeated until the residuals look like white noise.
core - Difference in differences
Estimates an effect by the change over time in the treated group minus the change in a control group, valid under parallel trends.
1 languagescore - Empirical Bayes
Estimates the prior from many parallel cases, often by maximizing the marginal likelihood, and then applies the Bayes rule with that prior. The James-Stein estimator is one case.
1 languagescore - Fractional factorial design
Runs a chosen fraction of a factorial design, defined by generators, so that main effects are aliased only with high-order interactions. Resolution measures this.
1 languagescore - Instrumental variables estimation
Identifies a causal effect under unmeasured confounding with a variable that moves the treatment but affects the outcome only through it.
1 languagescore - Laplace approximation
Approximates a posterior by a normal law centred at its mode with covariance the inverse Hessian of minus the log posterior. It also approximates the marginal likelihood.
1 languagescore - Multiple imputation
Fill in missing values several times from a predictive model, analyse each completed data set, and pool the results with Rubin's rules so the variance reflects the missingness.
1 languagescore - Parametric bootstrap
Fit a parametric model, simulate new data sets from the fitted model, and recompute the statistic on each. Accurate when the model is right, and misleading when it is wrong.
1 languagescore - Posterior predictive check
Checks a Bayesian model by comparing a statistic of the data with its distribution in replicated data drawn from the posterior predictive.
1 languagescore - Regression discontinuity design
When treatment is assigned by a score crossing a cutoff, estimate the effect by the jump in the outcome regression at the cutoff, using local linear fits.
1 languagescore - Alpha spending function
Lan and DeMets's rule that spends the type I error as a function of the information fraction, so the timing and number of interim looks need not be fixed in advance.
1 languagesadvanced - Approximate Bayesian computation
Bayesian inference without a likelihood: simulate data from parameters drawn from the prior and keep those whose summary statistics are close to the observed ones.
1 languagesadvanced - Bayesian model averaging
Average predictions or estimates over a set of models, each weighted by its posterior probability, instead of choosing one model.
advanced - Conformal prediction
Turns any predictor into prediction sets with coverage at least 1 - alpha, assuming only exchangeable data, by ranking a nonconformity score of a new point among those of the data.
1 languagesadvanced - Generalized estimating equations
Liang and Zeger's method for correlated responses: solve GLM-type score equations with a working correlation, and use the sandwich for valid standard errors.
1 languagesadvanced - Generalized method of moments
Hansen's estimator that minimizes a weighted quadratic form in sample moment conditions. With the optimal weight matrix it is efficient among such estimators.
1 languagesadvanced - Group sequential design
A trial plan that analyses the data at a few interim points and may stop early, with boundaries chosen so that the overall type I error stays at alpha.
advanced - Mediation analysis
Splits a total effect into the part that goes through a mediator and the part that does not, defined by nested counterfactuals and identified under strong assumptions.
advanced - Partial likelihood
Cox's likelihood for beta that multiplies, over event times, the chance that the unit that failed is the one to fail among those at risk. The baseline hazard drops out.
1 languagesadvanced - Quasi-likelihood
Wedderburn's estimation that specifies only the mean and the variance function of the response. It gives GLM-like estimates and standard errors with overdispersion.
advanced - Response surface methodology
Box and Wilson's sequence of designed experiments and fitted quadratic models that climbs toward the optimum of a response. Central composite designs fit the quadratic.
advanced - Rosenbaum sensitivity analysis
Asks how strong an unmeasured confounder, measured by a bound Gamma on the odds of treatment in matched pairs, would have to be to explain away a finding.
1 languagesadvanced - Subsampling
Approximate the sampling distribution from statistics on subsamples of size m much smaller than n. It is consistent in cases where the bootstrap fails.
1 languagesadvanced - Whittle likelihood
Approximates the Gaussian likelihood of a stationary series by a sum over Fourier frequencies of log f plus the periodogram over f, with f the spectral density.
1 languagesadvanced - Empirical likelihood
Owen's nonparametric likelihood that puts weights on the data points subject to moment constraints. Its ratio has a chi-squared limit, so it gives tests and intervals without a model.
1 languagesresearch
Concepts
- Heteroscedasticity
Errors whose variance changes with the predictors. Least squares stays unbiased but its usual standard errors are wrong.
intro - Randomized experiment
An experiment in which chance assigns the treatments, so treatment is independent of the potential outcomes and simple contrasts estimate causal effects.
intro - Sampling distribution
The distribution of a statistic over repeated samples from the same population. Standard errors, tests and intervals all come from it.
intro - Simpson's paradox
An association that holds in every subgroup can reverse when the groups are pooled. Which answer is causal depends on the causal structure, not on the data.
intro - Statistical hypothesis test
A rule that decides from data whether to reject a null hypothesis in favour of an alternative, with a bound alpha on the chance of rejecting a true null.
intro - Statistical decision theory
Wald's framework in which an estimator or test is a decision rule judged by its risk, the expected loss. It defines admissible, minimax and Bayes rules.
core - Competing risks
Several kinds of event can end follow-up, and one prevents the others. One minus Kaplan-Meier then overstates the risk of each kind.
advanced - Post-selection inference
Valid tests and intervals for a model chosen from the same data, by conditioning on the selection event or by simultaneous inference over all models.
research
Definitions
- Average treatment effect
The mean over a population of the difference between the outcome under treatment and under control. The ATT averages only over the treated units.
intro - Bias of an estimator
The difference between the expected value of an estimator and the true parameter. An estimator is unbiased when this difference is zero for every parameter.
intro - Censoring
Partial knowledge of an event time, such as knowing only that it exceeds the end of follow-up. Survival methods use censored times without discarding them.
intro - Coefficient of determination
The fraction of the variance of the response that the regression explains, one minus the residual sum of squares over the total sum of squares.
intro - Confidence interval
A random interval computed from the data that contains the true parameter with a stated probability, such as 95 percent, over repeated samples.
intro - Credible interval
An interval that holds the parameter with a stated posterior probability. Unlike a confidence interval, the probability is about the parameter given the data.
intro - Effect size
A scale-free measure of how large an effect is, such as a mean difference divided by a standard deviation. Unlike a p-value it does not grow with n.
intro - Empirical distribution function
The step function that gives, at each x, the fraction of the sample at most x. It is the nonparametric MLE of the distribution function.
intro - Estimator
A function of the sample used to guess an unknown parameter. Its quality is judged by its sampling distribution, through bias, variance and risk.
intro - Hazard function
The instantaneous event rate at t among those still at risk, f(t) / S(t). The cumulative hazard H(t) satisfies S(t) = exp(-H(t)).
intro - Likelihood function
The probability or density of the observed data, viewed as a function of the parameter with the data held fixed. Its logarithm is the log-likelihood.
intro - Median absolute deviation
The median of the absolute deviations from the median. Scaled by 1.4826 it estimates the normal standard deviation with breakdown point 1/2.
intro - P-value
The probability, under the null hypothesis, of a test statistic at least as extreme as the one observed. Rejecting when it is at most alpha gives a level-alpha test.
intro - Randomized complete block design
Groups similar units into blocks of t and randomizes each of t treatments once within every block, so differences between blocks drop out of the treatment comparisons.
1 languagesintro - Sample variance
The sum of squared deviations from the sample mean divided by n - 1. Dividing by n - 1 instead of n makes it unbiased for the population variance.
intro - Spearman's rank correlation coefficient
The Pearson correlation of the ranks of two variables. It measures monotone association and is the basis of a rank test of independence.
intro - Standard error
The standard deviation of the sampling distribution of an estimator, or an estimate of it. For the sample mean it is sigma divided by the square root of n.
intro - Stationary process
A process whose mean is constant and whose autocovariance depends only on the lag. Strict stationarity asks that all joint laws be shift invariant.
intro - Statistical power
The probability that a test rejects the null hypothesis when a given alternative is true. It grows with the sample size and the effect size.
intro - Survival function
S(t) = P(T > t), the probability that the event time T exceeds t. It equals one minus the distribution function.
intro - Type I and type II errors
A type I error rejects a true null hypothesis and a type II error keeps a false one. The size of a test bounds the first; its power is one minus the second.
intro - Akaike information criterion
AIC = -2 log L + 2k. It estimates how well a fitted model will predict new data from the same source. Lower is better, and only differences on the same data mean anything.
core - Bayes estimator
The estimator that minimizes posterior expected loss: the posterior mean for squared loss, the median for absolute loss. It minimizes the Bayes risk.
core - Bayes factor
The ratio of the marginal likelihoods of the data under two models. It turns prior odds into posterior odds and does not depend on the prior probabilities of the models.
core - Bayesian information criterion
BIC = -2 log L + k log n. It approximates -2 times the log marginal likelihood up to a bounded error, and it picks the true model among a fixed finite list as n grows.
core - Breakdown point
The smallest fraction of the data that, when replaced by arbitrary values, can carry an estimator to infinity. The mean has 0, the median 1/2.
core - Consistent estimator
An estimator that converges in probability to the true parameter as the sample size grows. Strong consistency asks for almost sure convergence.
core - Cook's distance
A measure of the influence of one observation: how far all fitted values move when it is deleted, scaled by p times the residual variance.
core - Deviance
Twice the log-likelihood gap between the saturated model and a fitted model. It plays the part of the residual sum of squares for a generalized linear model.
core - Factorial design
An experiment that runs every combination of the levels of several factors, so that main effects and all interactions can be estimated.
1 languagescore - False discovery rate
The expected proportion of false rejections among all rejections, taken as zero when there are none. It is less strict and more powerful to control than the FWER.
core - Family-wise error rate
The probability of at least one false rejection among a family of tests. Strong control bounds it under every configuration of true and false nulls.
core - Granger causality
X Granger-causes Y when past values of X improve the prediction of Y beyond the past of Y alone. It is tested by an F-test in a vector autoregression.
core - Harrell's concordance index
The fraction of comparable pairs in which the unit with the higher predicted risk fails first. It extends the area under the ROC curve to censored data.
1 languagescore - Hat matrix
The matrix H = X (X^T X)^(-1) X^T that maps the responses to the fitted values. It is a projection; its diagonal holds the leverages.
core - Highest posterior density region
The smallest region with a given posterior probability, made of the points where the posterior density exceeds a level.
core - Ignorability
Treatment is independent of the potential outcomes given the covariates. With overlap, it lets observational data identify causal effects.
core - Improper prior
A prior measure with infinite total mass, such as a uniform prior on the real line. It is usable when the posterior it gives is proper.
core - Influence function
Hampel's measure of the effect of an infinitesimal contamination at a point on an estimator. Bounded influence means robustness to single outliers.
core - Jeffreys prior
The prior proportional to the square root of the determinant of the Fisher information. It is invariant under reparametrization.
core - Kullback-Leibler divergence
The expected log ratio of two densities under the first one. It is never negative, is zero only for equal laws, is not symmetric, and the MLE minimizes its empirical version.
core - Latin square design
Compares n treatments while blocking two nuisance factors with n levels each, by placing the treatments as the symbols of an n x n Latin square. Needs only n² runs.
1 languagescore - Leverage
The i-th diagonal entry of the hat matrix, which measures how far x_i lies from the other predictors and how much y_i pulls its own fitted value.
core - Minimum variance unbiased estimator
An unbiased estimator whose variance is no larger than that of any other unbiased estimator, for every value of the parameter.
core - Missing-data mechanism
The law of which values are missing given the data: missing completely at random, missing at random, or missing not at random. It decides which analyses of incomplete data stay valid.
core - Partial autocorrelation function
The correlation of X_t and X_(t+k) after removing the linear effect of the values between them. It cuts off after lag p for an AR(p) process.
core - Pivotal quantity
A function of the data and the parameter whose distribution does not depend on the parameter. Inverting its quantiles gives an exact confidence interval.
core - Posterior predictive distribution
The distribution of a new observation given the data, the model density averaged over the posterior of the parameters.
core - Prediction interval
An interval that contains a future observation, not a parameter, with a stated probability. It is wider than the confidence interval for the mean.
core - Propensity score
The probability of receiving treatment given the covariates. Rosenbaum and Rubin showed it is a balancing score, so adjusting for it removes confounding by those covariates.
core - Score function
The gradient of the log-likelihood with respect to the parameter. Under regularity it has mean zero, and its variance is the Fisher information.
core - Stable unit treatment value assumption
The assumption that a unit's outcome depends only on its own treatment, and that there is only one version of each treatment.
core - Studentized residual
A residual divided by an estimate of its standard deviation that accounts for its leverage. With the point left out of the variance estimate it has a t distribution.
core - Sufficient statistic
A statistic T such that the conditional distribution of the data given T does not depend on the parameter, so T holds all the information the sample has about it.
core - Uniformly most powerful test
A level-alpha test whose power is at least that of every other level-alpha test at every parameter value in the alternative. It exists for one-sided problems with a monotone likelihood ratio.
core - Variance inflation factor
1 / (1 - R_j^2), where R_j^2 is from regressing predictor j on the others. It is the factor by which collinearity inflates the variance of coefficient j.
core - Admissible estimator
An estimator that no other estimator dominates, that is, none has risk at most as large for every parameter and strictly smaller for some.
advanced - Balanced incomplete block design
Puts v treatments into b blocks of size k < v so that each pair of treatments shares exactly lambda blocks. Then bk = vr, lambda(v-1) = r(k-1), and b >= v (Fisher).
1 languagesadvanced - Cointegration
Nonstationary series are cointegrated when some linear combination of them is stationary, so they share a common stochastic trend.
advanced - Complete statistic
A statistic T such that E g(T) = 0 for every parameter forces g(T) = 0 almost surely. Completeness makes unbiased functions of T unique.
advanced - Halfspace depth
The depth of a point is the least number of data points in a closed halfspace that contains it. It orders multivariate data from the centre outward.
advanced - Local false discovery rate
Efron's posterior probability that a hypothesis is null given its z-value, from a two-group mixture of null and non-null densities estimated from all the tests.
advanced - M-estimator
An estimator that minimizes a sum of loss terms rho(X_i, theta) or solves a sum of estimating equations psi(X_i, theta) = 0. Its asymptotic covariance is the sandwich A^-1 B A^-T / n.
advanced - Orthogonal array
An N x k array over s symbols in which every N x t subarray has each t-tuple equally often. It is the combinatorial core of fractional designs.
1 languagesadvanced - Plackett-Burman design
Two-level screening designs for N - 1 factors in N runs, N a multiple of 4, built from Hadamard matrices. Main effects are estimated independently of each other.
1 languagesadvanced - Reference prior
Bernardo's prior that maximizes the expected Kullback-Leibler distance from prior to posterior, so the data dominate. In one dimension it is the Jeffreys prior.
advanced - Schoenfeld residuals
For each event, the covariate of the unit that failed minus its risk-weighted mean over the risk set. A trend in time signals a failure of proportional hazards.
advanced - Spike-and-slab prior
A prior that gives each coefficient a probability of being exactly zero (the spike) and otherwise spreads it out (the slab). The posterior gives each variable a probability of inclusion.
advanced - U-statistic
The average of a symmetric kernel over all subsets of size r of the sample. It is unbiased, has minimum variance in large nonparametric families, and is asymptotically normal.
advanced - Widely applicable information criterion
An estimate of out-of-sample predictive accuracy for Bayesian models. It is the log pointwise posterior predictive density minus the posterior variance of the log likelihood.
advanced - Confidence sequence
A sequence of confidence sets that contains the true parameter at all times at once with probability 1 - alpha, so it stays valid at any stopping time.
research - E-variable
A nonnegative statistic with expected value at most one under the null. By Markov's inequality, rejecting when it exceeds 1 / alpha gives a level-alpha test that survives optional continuation.
research - Horseshoe prior
A continuous shrinkage prior that is a normal scale mixture with half-Cauchy local scales. It pulls noise strongly to zero and leaves large signals almost unshrunk.
research - Test martingale
A nonnegative process that starts at 1 and is a martingale (or supermartingale) under the null. It is the wealth of a bettor against the null and can be checked at any time.
research
Theorems
- Asymptotic normality of the MLE
Under regularity conditions a consistent root of the likelihood equation satisfies sqrt(n)(theta-hat - theta_0) -> N(0, I(theta_0)^(-1)), so it attains the Cramer-Rao bound in the limit.
core - Cramer-Rao bound
Under regularity conditions, the variance of any unbiased estimator is at least the inverse of the Fisher information. An estimator that attains it is efficient.
core - Delta method
If sqrt(n)(T_n - theta) converges in distribution to N(0, sigma^2) and g is differentiable at theta, then sqrt(n)(g(T_n) - g(theta)) converges to N(0, g'(theta)^2 sigma^2).
core - Duality of tests and confidence sets
The parameter values that a level-alpha test does not reject form a confidence set of level 1 - alpha, and every confidence set defines a test this way.
core - Fisher-Neyman factorization theorem
T is sufficient if and only if the density factors as g(T(x), theta) h(x). It is the usual way to find sufficient statistics.
core - Gauss-Markov theorem
In a linear model with uncorrelated errors of equal variance, ordinary least squares has the least variance among all linear unbiased estimators.
core - Glivenko-Cantelli theorem
The empirical distribution function converges to the true distribution function uniformly in x, almost surely, as the sample size grows.
core - Greenwood's formula
Estimates the variance of the Kaplan-Meier estimate as S(t)^2 times the sum over event times of d / (n (n - d)), and gives pointwise confidence intervals.
core - Lehmann-Scheffe theorem
An unbiased estimator that is a function of a complete sufficient statistic is the unique minimum variance unbiased estimator.
core - Neyman-Pearson lemma
For a simple null against a simple alternative, the test that rejects when the likelihood ratio exceeds a threshold is the most powerful test of its size.
core - Rao-Blackwell theorem
Conditioning an estimator on a sufficient statistic never increases its mean squared error, and strictly lowers it unless the estimator is already a function of that statistic.
core - Slutsky's theorem
If X_n converges in distribution to X and Y_n converges in probability to a constant c, then X_n + Y_n and X_n Y_n converge in distribution to X + c and cX.
core - Wilks' theorem
Under regularity and a true null, twice the log likelihood ratio tends to a chi-squared law with degrees of freedom equal to the number of constrained parameters.
core - Bernstein-von Mises theorem
In regular parametric models the posterior tends to a normal law centred at the MLE with the inverse Fisher information over n as covariance, whatever smooth prior is used.
advanced - Closed testing principle
Reject an elementary hypothesis when every intersection hypothesis that contains it is rejected by a level-alpha test. This controls the FWER strongly, and Holm is a case.
advanced - De Finetti's theorem
An infinite exchangeable sequence of random variables is a mixture of i.i.d. sequences. This gives a reason to model data with a prior over a parameter.
advanced - Dvoretzky-Kiefer-Wolfowitz inequality
The probability that the empirical CDF is more than epsilon from the true CDF anywhere is at most 2 exp(-2 n epsilon^2), with Massart's tight constant. It gives a confidence band.
advanced - Fieller's theorem
Gives an exact confidence set for the ratio of two normal means by inverting a t-test. The set can be an interval, the union of two rays, or the whole line.
advanced - Front-door criterion
If a mediator set intercepts all directed paths from X to Y and has no unblocked back-door paths, the effect of X on Y is identified even with unmeasured confounding of X and Y.
advanced - Karlin-Rubin theorem
If a one-parameter family has a monotone likelihood ratio in a statistic T, then the test that rejects for large T is uniformly most powerful for a one-sided hypothesis.
advanced - Kiefer-Wolfowitz equivalence theorem
A design is D-optimal if and only if it is G-optimal, minimizing the largest prediction variance, which then equals the number of parameters at the support points.
advanced - Lindley paradox
With a diffuse prior and a large sample, data that reject a point null at any fixed significance level can still make a Bayes factor favour that null.
advanced - Local average treatment effect theorem
Under monotonicity, the instrumental variables estimand equals the average effect among compliers, the units whose treatment the instrument changes.
advanced - Savage-Dickey density ratio
For nested models with compatible priors, the Bayes factor for a point null equals the posterior density at the null value divided by the prior density there.
advanced - Wold decomposition theorem
Every weakly stationary process is the sum of a deterministic part and an infinite moving average of its one-step prediction errors.
advanced - Polyhedral lemma
The lasso selection event is a polyhedron in y, so a linear contrast of y given the event has a truncated normal law. This gives exact post-selection intervals.
1 languagesresearch - Ville's inequality
A nonnegative supermartingale that starts at 1 ever reaches 1 / alpha with probability at most alpha. It makes sequential tests valid under optional stopping.
research
Models
- Autoregressive model
A model in which each value is a linear combination of the previous p values plus white noise. It has a causal stationary solution when the roots of phi(z) lie outside the unit circle.
intro - Moving-average model
A model in which each value is a linear combination of the current and previous q white noise terms. Its autocorrelation is zero beyond lag q.
intro - Potential outcomes framework
Each unit has one outcome per treatment, of which only one is seen. Causal effects are contrasts of these potential outcomes, and causal inference is a missing data problem.
intro - ARIMA model
An ARMA model for the series differenced d times, used for series with stochastic trends. Seasonal ARIMA adds seasonal differences and lags.
core - ARMA model
A stationary model with an autoregressive part of order p and a moving-average part of order q, a parsimonious form for many autocorrelation patterns.
core - Accelerated failure time model
Models log T as a linear function of covariates plus an error, so covariates stretch or shrink time. The Weibull model is both AFT and proportional hazards.
core - Bayesian linear regression
Linear regression with a normal or normal-inverse-gamma prior on the coefficients and variance. The posterior and predictive laws are in closed form.
core - Cox proportional hazards model
Models the hazard as an unspecified baseline hazard times exp(x^T beta), so covariates scale the hazard by a constant factor over time.
core - Hierarchical Bayesian model
A model whose group parameters share a prior with its own hyperparameters, so groups borrow strength from each other and estimates shrink toward the common mean.
core - Huber contamination model
The data come from (1 - epsilon) F + epsilon G, where F is the model and G is an arbitrary distribution of outliers. Robust estimators are judged on it.
core - Linear mixed model
A linear model y = X b + Z u + e with fixed effects b and random effects u. It models grouped or repeated measures with correlated errors.
core - Vector autoregression
An autoregressive model for a vector of series, in which each series depends on lags of all of them. It is fitted equation by equation with least squares.
core - Errors-in-variables model
A regression model in which the predictors are observed with noise. Least squares is then biased toward zero, and Deming or orthogonal regression corrects it.
advanced - Frailty model
A survival model with an unobserved random factor that multiplies the hazard, shared within a cluster, to model heterogeneity and dependence between event times.
advanced - GARCH model
Bollerslev's model in which the conditional variance depends on past squared errors, as in Engle's ARCH, and on its own past values. It captures volatility clustering.
advanced - Fine-Gray model
A proportional hazards model for the subdistribution hazard of one cause, so covariate effects act directly on its cumulative incidence.
1 languagesresearch