Nonparametric statistics is a type of statistical analysis that makes minimal assumptions about the underlying distribution of the data being studied. Often these models are infinite-dimensional, rather than finite dimensional, as in parametric statistics.1 Nonparametric statistics can be used for descriptive statistics or statistical inference. Nonparametric tests are often used when the assumptions of parametric tests are evidently violated.2
Definitions
The term "nonparametric statistics" has been defined imprecisely in the following two ways, among others:
The first meaning of nonparametric involves techniques that do not rely on data belonging to any particular parametric family of probability distributions. These include, among others:
- Methods which are distribution-free, which do not rely on assumptions that the data are drawn from a given parametric family of probability distributions.
- Statistics defined to be a function on a sample, without dependency on a parameter.
An example is order statistics, which are based on ordinal ranking of observations.
The discussion following is taken from Kendall's Advanced Theory of Statistics.3
Statistical hypotheses concern the behavior of observable random variables.... For example, the hypothesis (a) that a normal distribution has a specified mean and variance is statistical; so is the hypothesis (b) that it has a given mean but unspecified variance; so is the hypothesis (c) that a distribution is of normal form with both mean and variance unspecified; finally, so is the hypothesis (d) that two unspecified continuous distributions are identical.
It will have been noticed that in the examples (a) and (b) the distribution underlying the observations was taken to be of a certain form (the normal) and the hypothesis was concerned entirely with the value of one or both of its parameters. Such a hypothesis, for obvious reasons, is called parametric.
Hypothesis (c) was of a different nature, as no parameter values are specified in the statement of the hypothesis; we might reasonably call such a hypothesis non-parametric. Hypothesis (d) is also non-parametric but, in addition, it does not even specify the underlying form of the distribution and may now be reasonably termed distribution-free. Notwithstanding these distinctions, the statistical literature now commonly applies the label "non-parametric" to test procedures that we have just termed "distribution-free", thereby losing a useful classification.
The second meaning of non-parametric involves techniques that do not assume that the structure of a model is fixed. Typically, the model grows in size to accommodate the complexity of the data. In these techniques, individual variables are typically assumed to belong to parametric distributions, and assumptions about the types of associations among variables are also made. These techniques include, among others:
- non-parametric regression, which is modeling whereby the structure of the relationship between variables is treated non-parametrically, but where nevertheless there may be parametric assumptions about the distribution of model residuals.
- non-parametric hierarchical Bayesian models, such as models based on the Dirichlet process, which allow the number of latent variables to grow as necessary to fit the data, but where individual variables still follow parametric distributions and even the process controlling the rate of growth of latent variables follows a parametric distribution.
Applications and purpose
Non-parametric methods are widely used for studying populations that have a ranked order (such as movie reviews receiving one to five "stars"). The use of non-parametric methods may be necessary when data have a ranking but no clear numerical interpretation, such as when assessing preferences. In terms of levels of measurement, non-parametric methods result in ordinal data.
As non-parametric methods make fewer assumptions, their applicability is much more general than the corresponding parametric methods. In particular, they may be applied in situations where less is known about the application in question. Also, due to the reliance on fewer assumptions, non-parametric methods are more robust.
Non-parametric methods are sometimes considered simpler to use and more robust than parametric methods, even when the assumptions of parametric methods are justified. This is due to their more general nature, which may make them less susceptible to misuse and misunderstanding. Non-parametric methods can be considered a conservative choice, as they will work even when their assumptions are not met, whereas parametric methods can produce misleading results when their assumptions are violated.
The wider applicability and increased robustness of non-parametric tests comes at a cost: in cases where a parametric test's assumptions are met, non-parametric tests have less statistical power. In other words, a larger sample size can be required to draw conclusions with the same degree of confidence.
Non-parametric models
Non-parametric models differ from parametric models in that the model structure is not specified a priori but is instead determined from data. The term non-parametric is not meant to imply that such models completely lack parameters but that the number and nature of the parameters are flexible and not fixed in advance.
- A histogram is a simple nonparametric estimate of a probability distribution.
- Kernel density estimation is another method to estimate a probability distribution.
- Nonparametric regression and semiparametric regression methods have been developed based on kernels, splines, and wavelets.
- Data envelopment analysis provides efficiency coefficients similar to those obtained by multivariate analysis without any distributional assumption.
- KNNs classify the unseen instance based on the K points in the training set which are nearest to it.
- A support vector machine (with a Gaussian kernel) is a nonparametric large-margin classifier.
- The method of moments with polynomial probability distributions.
Methods
Non-parametric (or distribution-free) inferential statistical methods are mathematical procedures for statistical hypothesis testing which, unlike parametric statistics, make no assumptions about the probability distributions of the variables being assessed. The most frequently used tests include
- Analysis of similarities
- Anderson–Darling test: tests whether a sample is drawn from a given distribution
- Statistical bootstrap methods: estimates the accuracy/sampling distribution of a statistic
- Chi-squared test
- Cochran's Q: tests whether k treatments in randomized block designs with 0/1 outcomes have identical effects
- Cohen's kappa: measures inter-rater agreement for categorical items
- Friedman two-way analysis of variance (Repeated Measures) by ranks: tests whether k treatments in randomized block designs have identical effects
- Empirical likelihood
- Kaplan–Meier: estimates the survival function from lifetime data, modeling censoring
- Kendall's tau: measures statistical dependence between two variables
- Kendall's W: a measure between 0 and 1 of inter-rater agreement.
- Kolmogorov–Smirnov test: tests whether a sample is drawn from a given distribution, or whether two samples are drawn from the same distribution.
- Kruskal–Wallis one-way analysis of variance by ranks: tests whether > 2 independent samples are drawn from the same distribution.
- Kuiper's test: tests whether a sample is drawn from a given distribution, sensitive to cyclic variations such as day of the week.
- Logrank test: compares survival distributions of two right-skewed, censored samples.
- Mann–Whitney U or Wilcoxon rank sum test: tests whether two samples are drawn from the same distribution, as compared to a given alternative hypothesis.
- McNemar's test: tests whether, in 2 × 2 contingency tables with a dichotomous trait and matched pairs of subjects, row and column marginal frequencies are equal.
- Median test: tests whether two samples are drawn from distributions with equal medians.
- Pitman's permutation test: a statistical significance test that yields exact p values by examining all possible rearrangements of labels.
- Rank products: detects differentially expressed genes in replicated microarray experiments.
- Siegel–Tukey test: tests for differences in scale between two groups.
- Sign test: tests whether matched pair samples are drawn from distributions with equal medians.
- Spearman's rank correlation coefficient: measures statistical dependence between two variables using a monotonic function.
- Squared ranks test: tests equality of variances in two or more samples.
- Tukey–Duckworth test: tests equality of two distributions by using ranks.
- Wald–Wolfowitz runs test: tests whether the elements of a sequence are mutually independent/random.
- Wilcoxon signed-rank test: tests whether matched pair samples are drawn from populations with different mean ranks.
- Universal Linear Fit Identification: A Method Independent of Data, Outliers and Noise Distribution Model and Free of Missing or Removed Data Imputation.4
Mathematical Statistics
In mathematical statistics, nonparametric models are considered models that do not rely on a parametric assumption of the unknown data distribution (in density estimation problems) or of the regression function (in regression problems). While the goal of any parametric model is the estimation of a finite number of parameters , nonparametric models aim to directly estimate the data distribution/regression function.56
For the mathematical analysis, however, parametric and nonparametric approaches fit into the same setting: Assuming that the function that is to be estimated (data distribution or regression function) belongs to a set of functions parametrized by a set , one searches for a (measurable) function that estimates the "true" parameter based on data points . The key difference between parametric and nonparametric approaches is that in the former for some , while in the latter is typically the set of possible target functions itself, for example, the set of continuous functions or differentiable functions.
Relevant questions in this field regard the construction of reasonable estimators, consistency, rates of convergence and their optimality, and adaptive estimation.6
Consistency
As in parametric regression, a desirable property for an estimator is that it converges to the target function as the sample size goes to infinity, that is, the approximation error converges to zero. Usually, the approximation is measured in terms of -norm distance between and . Since the estimator is a function of the randomly drawn data , the approximation is a random variable as well, and so we distinguish two different modes of convergence:
Weak consistency: .
Strong consistency: almost surely.
If an estimator is consistent for all square-integrable , then it is called weakly/strongly universally consistent.5
Many common nonparametric estimators are weakly universally consistent, such as the Nadarya-Watson estimator, kNNs and certain local polynomial estimators.5
Minimax optimal rates of convergence
A central topic in the statistical analysis of nonparametric estimators is their speed of convergence towards the true target function and whether the speed is optimal, i.e., the convergence is as fast as possible. The most common way to measure the speed of convergence of an estimator is the minimax convergence rate, which considers the expected loss of the estimator in the worst case scenario. Under certain assumptions on the smoothness of , one can show that there is a minimal convergence rates that no estimator can undercut, and so any estimator achieving this minimal rate is called optimal.
Mathematically speaking, the target function is assumed to belong to some class of functions , called the hypothesis class, inducing a distribution on , and the approximation quality of an estimator is measured by some function . The minimax convergence rate of is a sequence of real numbers for which it holdswhere indicates that the random variables , which draw the data points, have distribution .
A universal lower bound on estimation for a hypothesis class is a sequence for which it holdswhere the infima are taken over all possible estimators (that is, measurable functions) based on observations.
The detailed analysis of nonparametric estimators then divides into the estimation of probability densities and regressions functions.
Density estimation
The setting of density estimation typically involves a normed space of functions , a subset of density functions and independent random variables distributed according to the measure with density , which generates the data.
Minimax lower bounds are known for different pairs of function classes and comparison metrics . Common choices for are:
- : The space of -times differentiable functions with the highest derivative being -Hölder-smooth.
- : The space of Sobolev-smooth functions with square-integrable weak derivatives.
- : The space of Besov-smooth functions.
In fact, the Hölder spaces and the Sobolev spaces are special cases of some Besov spaces, namely for and .7 Thus, it often suffices to derive lower bounds under Besov-smoothness assumptions.
Common choices for are:6
- : The pointwise squared error (MSE).
- : The Mean Integrated Square Error (MISE).
- : The supremum-norm-distance.
- : The Kullback-Leibler divergence of the distributions induced by and .
- : The total variation distance of the distributions induced by and .
- : The Wasserstein- distance of the distributions induced by and .
By Scheffé's theorem, the total variation distance is equivalent to the -distance of and .
| Smoothness class | ||||
|---|---|---|---|---|
| 8 | 9 | 8 | ||
| 10 | - | - | - |
Kernel density estimators, for instance, achieve the lower bound w.r.t. the MISE under a Sobolev hypothesis class under an appropriate bandwidth choice and is thus minimax optimal.6 More recently, also score-based generative models have been shown to achieve minimax convergence rates in total variation and in Wasserstein-1 distance for -smooth distributions, , that are bounded away from zero from below.11
Regression
In the regression setting, the data arises in pairs . Assuming that the data is independent and identically distributed, and , one can always writewith being the regression function to be estimated and a noise variable fulfilling and . Typically, the independent variables are assumed to have values in the unit cube and to be either determinsitic points on a grid (deterministic design) or uniformly distributed (random design). Thus, .
The above setting applies to binary classification as well. In that case, the observations take only two values, say 0 and 1, such that and given an estimator of , the classifiers are assumed to have the form , that is, they classify a point as 1 if the estimated probability of is greater than (and 0 otherwise). Indeed, many classification methods are of that form, for example logistic regression, linear discriminant analysis, quadratic discriminant analysis, and k-nearest-neighbors, and support vector machines.
Then, for the statistical analysis, the hypothesis class is of the form for some normed space of functions and expectations are taken with respect to the joint distribution of and (or just if the are deterministic).
In nonparametric regression, common choices for are:
- : The space of -times differentiable functions with the highest derivative being -Hölder-smooth.
- : The space of Sobolev-smooth functions with -integrable weak derivatives.
Common choices for are:
- : The pointwise squared error (MSE).
- : The -th norm.
- : The supremum-norm-distance.
Under certain technical assumptions, the following lower bounds are known.
| Smoothness class | |||
|---|---|---|---|
| 6 (determ. design) | 612 | 612 | |
| - | 12 | 12 |
Some local polynomial estimators are minimax optimal w.r.t. under for arbitrary when the bandwidth is of order .6 kNNs are also minimax optimal w.r.t. the MSE under and w.r.t. under when the number of considered neighbors is of order and respectively.5
Adaptivity
The choice of the model hyperparameters (e.g. bandwidth for kernel methods or number of neighbors for kNN) needed to achieve the optimal convergence rate typically depend on the smoothness parameter of the unknown target function, which means that, in practice, without an appropriate estimation of the hyperparameters, the methods named above are in fact not optimal.
Instead, one is interested in methods that achieve the minimax optimal convergence rates not only for one specific smoothness parameter, but across different values. Let the hypothesis class be of the form (for example or ) and let be optimal convergence rate in . Then, a family of estimators is called adaptive in the minimax sense, if there exists a constant depending only on such that6In other words, an adaptive estimator is required to achieve the minimax convergence rate in all hypothesis classes , but without taking the unknown parameter as argument. Adaptive estimators are often realized by taking estimators that are minimax optimal for a family of hypothesis classes and by estimating the hyperparameters via a higher-level procedure, such as unbiased risk estimation or cross-validation.56
History
Early nonparametric statistics include the median (13th century or earlier, use in estimation by Edward Wright, 1599; see Median § History) and the sign test by John Arbuthnot (1710) in analyzing the human sex ratio at birth (see Sign test § History).1314
See also
See also
Notes
Notes
- "All of Nonparametric Statistics". Springer Texts in Statistics. 2006. doi:10.1007/0-387-30623-4. ISBN 978-0-387-25145-5.
- Pearce, J; Derrick, B (2019). "Preliminary testing: The devil of statistics?". Reinvention: An International Journal of Undergraduate Research. 12 (2). doi:10.31273/reinvention.v12i2.339.
- Stuart A., Ord J.K, Arnold S. (1999), Kendall's Advanced Theory of Statistics: Volume 2A—Classical Inference and the Linear Model, sixth edition, §20.2–20.3 (Arnold).
- Adikaram, K. K. L. B.; Hussein, M. A.; Effenberger, M.; Becker, T. (16 November 2015). "Universal Linear Fit Identification: A Method Independent of Data, Outliers and Noise Distribution Model and Free of Missing or Removed Data Imputation". PLOS ONE. 10 (11) e0141486. Bibcode:2015PLoSO..1041486A. doi:10.1371/journal.pone.0141486. ISSN 1932-6203. PMC 4646355. PMID 26571035.
- Györfi, László; Kohler, Michael; Krzyzak, Adam; Walk, Harro (2002). A Distribution-Free Theory of Nonparametric Regression. New York: Springer-Verlag. ISBN 0-387-95441-4.
- Tsybakov, Alexandre (2009). Introduction to Nonparametric Estimation. Springer. ISBN 978-0-387-79051-0.
- Triebel, Hans (1983). Theory of Function Spaces. Monographs in mathematics. Birkhäuser Verlag. ISBN 9783764313814.
- Yang, Yuhong; Barron, Andrew (1999). "Information-Theoretic Determination of Minimax Rates of Convergence". Annals of Statistics. 27 (5): 1564–1599.
- Niles-Weed, Jonathan; Berthet, Quentin (2022). "Minimax estimation of smooth densities in Wasserstein distance". Annals of Statistics. 50 (3): 1519–1540.
- Boyd, David W.; Steele, J. Michael (1978). "Lower Bounds for Nonparametric Density Estimation Rates". Annals of Statistics. 6 (4): 932–934.
- Oko, Kazusato; Akiyama, Shunta; Suzuki, Taiji (2023). "Diffusion Models are Minimax Optimal Distribution Estimators". Proceedings of the 40th International Conference on Machine Learning. 202: 26517–26582.
- Nemirovski, Arkadi (2000). Topics in Non-Parametric Statistics. pp. 5–31.
- Conover, W.J. (1999), "Chapter 3.4: The Sign Test", Practical Nonparametric Statistics (Third ed.), Wiley, pp. 157–176, ISBN 0-471-16068-7
- Sprent, P. (1989), Applied Nonparametric Statistical Methods (Second ed.), Chapman & Hall, ISBN 0-412-44980-3
General references
- Bagdonavicius, V., Kruopis, J., Nikulin, M.S. (2011). "Non-parametric tests for complete data", ISTE & WILEY: London & Hoboken. ISBN 978-1-84821-269-5.
- Corder, G. W.; Foreman, D. I. (2014). Nonparametric Statistics: A Step-by-Step Approach. Wiley. ISBN 978-1-118-84031-3.
- Gibbons, Jean Dickinson; Chakraborti, Subhabrata (2003). Nonparametric Statistical Inference, 4th Ed. CRC Press. ISBN 0-8247-4052-1.
- Hettmansperger, T. P.; McKean, J. W. (1998). Robust Nonparametric Statistical Methods. Kendall's Library of Statistics. Vol. 5. London: Edward Arnold. ISBN 0-340-54937-8. MR 1604954. also ISBN 0-471-19479-4.
- Hollander M., Wolfe D.A., Chicken E. (2014). Nonparametric Statistical Methods, John Wiley & Sons.
- Sheskin, David J. (2003) Handbook of Parametric and Nonparametric Statistical Procedures. CRC Press. ISBN 1-58488-440-1
- Wasserman, Larry (2007). All of Nonparametric Statistics, Springer. ISBN 0-387-25145-6.