Jump to content

Nonparametric statistics

From Wikipedia, the free encyclopedia
(Redirected from Nonparametric)

Template:Short description 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 nonparametric. Hypothesis (d) is also nonparametric 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 "nonparametric" to test procedures that we have just termed "distribution-free", thereby losing a useful classification.

The second meaning of nonparametric 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:

  • nonparametric regression, which is modeling whereby the structure of the relationship between variables is treated nonparametrically, but where nevertheless there may be parametric assumptions about the distribution of model residuals.
  • nonparametric 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

Nonparametric methods are widely used for studying populations that have a ranked order (such as movie reviews receiving one to five "stars"). The use of nonparametric 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, nonparametric methods result in ordinal data.

As nonparametric 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, nonparametric methods are more robust.

Nonparametric 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. Nonparametric 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 nonparametric tests comes at a cost: in cases where a parametric test's assumptions are met, nonparametric tests have less statistical power. In other words, a larger sample size can be required to draw conclusions with the same degree of confidence.

Nonparametric models

Nonparametric models differ from parametric models in that the model structure is not specified à priori but is instead determined from data. The term nonparametric 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.

Nonparametric tests

Nonparametric (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

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 <math>\theta_1,\dots,\theta_p\in\R</math>, nonparametric models aim to directly estimate the data distribution/regression function.Template:SfnTemplate:Sfn

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 <math>\Theta</math>, one searches for a (measurable) function <math>T_n:\mathcal X^n\to\Theta</math> that estimates the "true" parameter based on data points <math>x_1,\dots,x_n\in\mathcal X</math>. The key difference between parametric and nonparametric approaches is that in the former <math>\Theta\subset\R^d</math> for some <math>d\in\N</math>, while in the latter <math>\Theta</math> 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.Template:Sfn

Consistency

As in parametric statistics, a desirable property for an estimator <math>\hat{f_n}</math> is that it converges to the target function <math>f</math> as the sample size <math>n</math> goes to infinity, that is, the approximation error converges to zero. Usually, the approximation is measured in terms of <math>L^2</math>-norm distance between <math>\hat{f_n}</math> and <math>f</math>. Since the estimator is a function of the randomly drawn data <math>X=(X_1,\dots,X_n)</math>, the approximation is a random variable as well, and so we distinguish two different modes of convergence:

Weak consistency: <math>\lim_{n\to\infty}\mathbb{E}[\lVert \hat{f_n}(X)-f\rVert_{L^2}^2]=0</math>.

Strong consistency: <math>\lim_{n\to\infty}\lVert \hat{f_n}(X)-f\rVert_{L^2}^2=0</math> almost surely.

If an estimator is consistent for all square-integrable <math>f</math>, then it is called universally consistent.Template:Sfn

Many common nonparametric estimators are weakly universally consistent under suitable choice of model hyperparameters, for example, the Nadarya-Watson estimator, kNNs and certain local polynomial estimators.Template:Sfn

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 <math>f</math> 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 <math>f</math>, 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 <math>f</math> is assumed to belong to some class of functions <math>\mathcal H</math>, called the hypothesis class, inducing a distribution <math>\mathbb P_f</math> on <math>\mathcal X</math>, and the approximation quality of an estimator <math>\hat{f_n}: \mathcal X^n\to\mathcal H</math> is measured by some function <math>L:\mathcal H\times\mathcal H\to [0,\infty)</math>. The minimax convergence rate of <math>\hat{f_n}</math> is a sequence <math>(\psi_n)_{n\in\mathbb N}</math> of real numbers for which it holds<math display="block">\begin{align} \limsup_{n\to\infty}\frac{1}{\psi_n} \sup_{f\in\mathcal H}\mathbb{E}_f\big[L\big(f,\hat{f_n}(X_1,\dots,X_n)\big)\big] &<\infty, \\ \liminf_{n\to\infty}\frac{1}{\psi_n} \sup_{f\in\mathcal H}\mathbb{E}_f\big[L\big(f,\hat{f_n}(X_1,\dots,X_n)\big)\big] &>0, \end{align}</math>where <math>\mathbb{E}_f[\cdot]</math> indicates that the random variables <math>X_1,\dots,X_n</math>, which draw the data points, have distribution <math>\mathbb P_f</math>.

A universal lower bound on estimation for a hypothesis class <math>\mathcal H</math> is a sequence <math>(\psi_n)_{n\in\N}</math> for which it holds<math display="block">\begin{align} \limsup_{n\to\infty}\frac{1}{\psi_n} \inf_{\hat{\rho_n}}\sup_{f\in\mathcal H}\mathbb E_f\big[L\big(f,\hat \rho_n(X_1,\dots,X_n)\big)\big] &<\infty, \\ \liminf_{n\to\infty}\frac{1}{\psi_n} \inf_{\hat{\rho_n}}\sup_{f\in\mathcal H}\mathbb E_f\big[L\big(f,\hat \rho_n(X_1,\dots,X_n)\big)\big] &>0, \end{align}</math>where the infima are taken over all possible estimators <math>\hat \rho_n</math> (that is, measurable functions) based on <math>n</math> observations.

The detailed analysis of nonparametric estimators then separates into the estimation of probability densities and regressions functions.

Density estimation

The setting of density estimation typically involves a normed space of functions <math>(\mathcal F,\lVert\cdot\rVert)</math>, a subset of density functions <math>\mathcal H = \{f\in\mathcal{F}: f\geq 0, \int_{\mathcal X} f(x)dx=1, \lVert f\rVert\leq 1\}</math> and independent random variables <math>X_1,\dots,X_n\in\mathcal X\subset\R^d</math> distributed according to the measure with density <math>f\in\mathcal H</math>, which generates the data.

Minimax lower bounds are known for different pairs of function classes <math>\mathcal F</math> and comparison metrics <math>L</math>. Common choices for <math>\mathcal F</math> are:

  • <math>\mathcal F=C^\alpha(\mathcal X), \alpha>0</math>: The space of <math>\lfloor\alpha\rfloor</math>-times differentiable functions with the highest derivative being <math>(\alpha-\lfloor\alpha\rfloor)</math>-Hölder-smooth.
  • <math>\mathcal F= H^s(\mathcal X)=W^{s,2}(\mathcal X), s>0</math>: The space of Sobolev-smooth functions with square-integrable weak derivatives.
  • <math>\mathcal F= B^s_{p,q}(\mathcal X), s>0, p,q\in(0,\infty]</math>: The space of Besov-smooth functions.

In fact, the Hölder spaces and the Sobolev spaces are special cases of some Besov spaces, namely <math>C^\alpha(\mathcal X)=B^\alpha_{\infty,\infty}(\mathcal X)</math> for <math>\alpha\notin\mathbb{Z}</math> and <math>H^s(\mathcal X)=B^s_{2,2}(\mathcal X)</math>.[5] Thus, it often suffices to derive lower bounds under Besov-smoothness assumptions.

Common choices for <math>L</math> are:

  • <math>L(f,g)=(f(x_0)-g(x_0))^2, x_0\in\mathcal X</math>: The pointwise squared error (MSE).
  • <math>L(f,g)=\lVert f-g\rVert_{L^2(\mathcal X)}^2</math>: The Mean Integrated Square Error (MISE).
  • <math>L(f,g)=\lVert f-g\rVert_{L^\infty(\mathcal X)}</math>: The supremum-norm-distance.
  • <math>L(f,g)=\mathrm{KL}(\mathbb{P}_f\lVert \mathbb{P}_g)</math>: The Kullback-Leibler divergence of the distributions induced by <math>f</math> and <math>g</math>.
  • <math>L(f,g)=\mathrm{TV}(\mathbb{P}_f,\mathbb{P}_g)</math>: The total variation distance of the distributions induced by <math>f</math> and <math>g</math>.
  • <math>L(f,g)=W_\beta(\mathbb{P}_f, \mathbb{P}_g), \beta\geq 1</math>: The Wasserstein-<math>\beta</math> distance of the distributions induced by <math>f</math> and <math>g</math>.

By Scheffé's theorem, the total variation distance <math>\mathrm{TV}(\mathbb{P}_f,\mathbb{P}_g)</math> is equivalent to the <math>L^1</math>-distance of <math>f</math> and <math>g</math>.

Most lower bound results are formulated for the case <math>\mathcal X=[0,1]^d</math>, which can typically be extended to more general bounded sets.

Smoothness class <math>\lVert f-g\rVert_{L^2(\mathcal X)}^2 </math> <math>W_\beta(\mathbb{P}_f, \mathbb{P}_g)</math> <math>\mathrm{TV}(\mathbb{P}_f, \mathbb{P}_g)</math> <math>\mathrm{KL}(\mathbb{P}_f\lVert \mathbb{P}_g)</math>
<math>B^s_{p,q}([0,1])</math> <math>n^{-\frac{2s}{2s+1}}</math>[6] <math>(p,q\geq 1,\, s>1/q)</math> <math>n^{-1/2}</math>[7] <math>(1\leq \beta\leq p<\infty, 1\leq q)</math> <math>n^{-\frac{s}{2s+1}}</math>[6] <math>n^{-\frac{2s}{2s+1}}</math>
<math>\begin{align}

&B^s_{p,q}([0,1]^d),\\ &\quad (d\geq 2) \end{align}</math>

<math>n^{-\frac{2s}{2s+d}}</math>[6]<math>(p,q\geq 1,\, s>d/q)</math> <math>n^{-\frac{s+1}{2s+d}}</math>[7] (up logarithmic factors)<math>(1\leq \beta\leq p<\infty, 1\leq q)</math> <math>n^{-\frac{s}{2s+d}}</math>[6] <math>n^{-\frac{2s}{2s+d}}</math>
<math>L^2(\R)\cap C^{\infty}(\R)</math> <math>n^{-1}</math>[8] - - -

The lower bound of the MISE is sometimes compared to the Cramér–Rao bound from parametric statistics, which is a lower bound for the mean-squared error of regular unbiased estimators of a parameter <math>\theta</math>:<math display="block">\begin{align} \sup_{\theta\in\Theta} \mathbb{E}&[\lVert\theta - \hat\theta_n\rVert^2] \geq n^{-1} \underbrace{\sup_{\theta\in\Theta}\mathrm{tr}( I(\theta)^{-1})}_{=const.}, \\ \sup_{f\in B_{p,q}^s(\mathcal X)} \mathbb{E}&[\lVert f-\hat{f_n}\rVert^2_{L^2(\mathcal X)}] \geq c n^{-2s/(2s+d)}, \end{align}</math>where <math>I(\theta)</math> is the Fisher information of the parametric model and <math>c>0</math> is some constant. The nonparametric rate is thus slower than the parametric rate <math>n^{-1}</math>, especially in large dimensions, and approaches the parametric rate as the smoothness of the density tends to infinity.

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.Template:Sfn More recently, also score-based generative models have been shown to achieve minimax convergence rates in total variation and in Wasserstein-1 distance for <math>B^s_{p,q}([0,1]^d)</math>-smooth distributions, <math>s>(1/p-1/2)_+</math>, that are bounded away from zero from below.[9]

Regression

In the regression setting, the data arises in pairs <math>(X_1,Y_1),\dots,(X_n,Y_n)</math>. Assuming that the data is independent and identically distributed, and <math>\mathbb{E}[|Y_1|]<\infty</math>, one can always write<math display="block">Y_i = f(X_i) + \varepsilon_i,</math>with <math>f(x)=\mathbb{E}[Y_1\mid X_1=x]</math> being the regression function to be estimated and a noise variable <math>\varepsilon_i</math> fulfilling <math>\mathbb{E}[\varepsilon_i]=0</math> and <math>\mathbb{E}[\varepsilon^2]=\sigma^2>0</math>. Typically, the independent variables <math>X_i</math> are assumed to have values in the unit cube <math>[0,1]^d</math> and to be either deterministic points on a grid (deterministic design) or uniformly distributed (random design). Thus, <math>\mathcal X=[0,1]^d\times\R</math>.

The above setting applies to binary classification as well. In that case, the observations take only two values, say 0 and 1, such that <math>f(x)=\mathbb{E}[\mathbb{1}_{\{Y_1=1\}}\mid X=x] = \mathbb{P}(Y_1=1\mid X=x)</math> and given an estimator <math>\hat{f_n}</math> of <math>f</math>, the classifiers are assumed to have the form <math>C(x)=\mathbb{1}_{[1/2,1]}(\hat{f_n}(x))</math>, that is, they classify a point as 1 if the estimated probability of <math>Y=1</math> is greater than <math>1/2</math> (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 <math>\mathcal H = \{f\in\mathcal{F}: \lVert f\rVert\leq 1\}</math> for some normed space of functions <math>(\mathcal F,\lVert\cdot\rVert)</math> and expectations <math>\mathbb{E}_f</math> are taken with respect to the joint distribution of <math>X</math> and <math>Y</math> (or just <math>Y</math> if the <math>X_i</math> are deterministic).

In nonparametric regression, the hypothesis class necessarily requires some strong assumptions on the regression function, otherwise, the minimax lower bound can be arbitrarily slow. For example, if <math>\mathcal F=L^\infty([0,1])</math>, that is, the set of bounded functions, then for any estimator <math>\hat{f_n}</math> and any zero sequence <math>(\psi_n)_{n\in\N}</math>, there exists <math>f\in\mathcal H</math> such thatTemplate:Sfn

<math display="block">\limsup_{n\to\infty}\frac{\mathbb E[\lVert f-\hat{f_n}\rVert_{L^2([0,1])}^2]}{\psi_n}\geq 1.</math>

Thus, common choices for <math>\mathcal F</math> are:

  • <math>\mathcal F=C^\alpha([0,1]^d), \alpha>0</math>: The space of <math>\lfloor\alpha\rfloor</math>-times differentiable functions with the highest derivative being <math>(\alpha-\lfloor\alpha\rfloor)</math>-Hölder-smooth.
  • <math>\mathcal F= W^{k,q}([0,1]^d), k\in\N, q>d</math>: The space of Sobolev-smooth functions with <math>L^q</math>-integrable weak derivatives.

Common choices for <math>L</math> are:

  • <math>L(f,g)=(f(x_0)-g(x_0))^2, x_0\in[0,1]^d</math>: The pointwise squared error (MSE).
  • <math>L(f,g)=\lVert f-g\rVert_{L^p([0,1]^d)}, p\in[1,\infty)</math>: The <math>p</math>-th norm.
  • <math>L(f,g)=\lVert f-g\rVert_{L^\infty([0,1]^d)}</math>: The supremum-norm-distance.

Under certain technical assumptions, the following lower bounds are known.

Smoothness class <math>(f(x_0)-g(x_0))^2</math> <math>L^p([0,1]^d)</math> <math>L^\infty([0,1]^d)</math>
<math>C^\alpha([0,1]^d)</math> <math>n^{-\frac{2\alpha}{2\alpha+d}}</math>Template:Sfn (determ. design) <math>n^{-\frac{\alpha}{2\alpha+d}}</math>Template:Sfn[10] <math>(\log n/n)^{\frac{\alpha}{2\alpha+d}}</math>Template:Sfn[10]
<math>W^{k,q}([0,1]^d)</math> - <math>n^{-\frac{k}{2k+d}}</math>[10] <math>(\sqrt{n}/\sigma\geq 1)</math> <math>n^{-\frac{k}{2k+d}}</math>[10] <math>(\sqrt{n}/\sigma\geq 1)</math>

Some local polynomial estimators are minimax optimal w.r.t. the MSE, <math>L^2</math> and <math>L^\infty</math> under <math>\mathcal H=C^\alpha([0,1]^d)</math> for arbitrary <math>\alpha>0</math> when the bandwidth is of order <math>\mathcal O(n^{-\frac{1}{2\alpha+d}})</math>.Template:Sfn kNNs are also minimax optimal w.r.t. the MSE under <math>\mathcal H=C^2([0,1]^d)</math> and w.r.t. <math>L^2</math> under <math>\mathcal H=C^1([0,1]^d)</math> when the number of considered neighbors is of order <math>\mathcal O(n^{\frac{1}{d+4}})</math> and <math>\mathcal O(n^{\frac{1}{d+2}})</math> respectively.Template:Sfn

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 <math>\mathcal H=\bigcup_{\beta>0}\mathcal H_\beta</math> (for example <math>\mathcal H_\beta=C^\beta([0,1]^d)</math> or <math>\mathcal H_\beta=H^\beta([0,1]^d)</math>) and let <math>\psi_n^\beta</math> be optimal convergence rate in <math>\mathcal H_\beta</math>. Then, a family of estimators <math>(\hat{f_n})_{n\in\N}</math> is called adaptive in the minimax sense, if there exists a constant <math>C(\beta)</math> depending only on <math>\beta</math> such thatTemplate:Sfn

<math display="block">\sup_{f\in{\mathcal H}_\beta}\mathbb{E}[L(\hat{f_n},f)]\leq C(\beta)\psi_n^\beta,\quad \forall\beta>0,\quad\forall n\in\N.</math>

In other words, an adaptive estimator is required to achieve the minimax convergence rate in all hypothesis classes <math>\mathcal H_\beta</math>, but without taking the unknown parameter <math>\beta</math> 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 cross-validation, or by complexity penalization.Template:Sfn

History

Early nonparametric statistics include the median (13th century or earlier, use in estimation by Edward Wright, 1599; see Template:Slink) and the sign test by John Arbuthnot (1710) in analyzing the human sex ratio at birth (see Template:Slink).[11][12]

See also

Notes

Template:Reflist

General references

Template:Authority control

  1. ↑ Template:Cite journal
  2. ↑ Template:Cite journal
  3. ↑ 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).
  4. ↑ Template:Cite journal
  5. ↑ Template:Cite book
  6. ↑ 6.0 6.1 6.2 6.3 Template:Cite journal
  7. ↑ 7.0 7.1 Template:Cite journal
  8. ↑ Template:Cite journal
  9. ↑ Template:Cite journal
  10. ↑ 10.0 10.1 10.2 10.3 Template:Cite book
  11. ↑ Template:Citation
  12. ↑ Template:Citation