Unbiased Estimation Of Standard Deviation
   HOME

TheInfoList



OR:

In
statistics Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
and in particular
statistical theory The theory of statistics provides a basis for the whole range of techniques, in both study design and data analysis, that are used within applications of statistics. The theory covers approaches to statistical-decision problems and to statistica ...
, unbiased estimation of a standard deviation is the calculation from a
statistical sample In this statistics, quality assurance, and survey methodology, sampling is the selection of a subset or a statistical sample (termed sample for short) of individuals from within a statistical population to estimate characteristics of the whole ...
of an estimated value of the
standard deviation In statistics, the standard deviation is a measure of the amount of variation of the values of a variable about its Expected value, mean. A low standard Deviation (statistics), deviation indicates that the values tend to be close to the mean ( ...
(a measure of
statistical dispersion In statistics, dispersion (also called variability, scatter, or spread) is the extent to which a distribution is stretched or squeezed. Common examples of measures of statistical dispersion are the variance, standard deviation, and interquartil ...
) of a
population Population is a set of humans or other organisms in a given region or area. Governments conduct a census to quantify the resident population size within a given jurisdiction. The term is also applied to non-human animals, microorganisms, and pl ...
of values, in such a way that the
expected value In probability theory, the expected value (also called expectation, expectancy, expectation operator, mathematical expectation, mean, expectation value, or first Moment (mathematics), moment) is a generalization of the weighted average. Informa ...
of the calculation equals the true value. Except in some important situations, outlined later, the task has little relevance to applications of statistics since its need is avoided by standard procedures, such as the use of significance tests and confidence intervals, or by using
Bayesian analysis Thomas Bayes ( ; c. 1701 – 1761) was an English statistician, philosopher, and Presbyterian Presbyterianism is a historically Reformed Protestant tradition named for its form of church government by representative assemblies of elde ...
. However, for statistical theory, it provides an exemplar problem in the context of
estimation theory Estimation theory is a branch of statistics that deals with estimating the values of Statistical parameter, parameters based on measured empirical data that has a random component. The parameters describe an underlying physical setting in such ...
which is both simple to state and for which results cannot be obtained in closed form. It also provides an example where imposing the requirement for unbiased estimation might be seen as just adding inconvenience, with no real benefit.


Motivation

In
statistics Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
, the
standard deviation In statistics, the standard deviation is a measure of the amount of variation of the values of a variable about its Expected value, mean. A low standard Deviation (statistics), deviation indicates that the values tend to be close to the mean ( ...
of a population of numbers is often estimated from a random sample drawn from the population. This is the sample standard deviation, which is defined by :s = \sqrt, where \ is the sample (formally, realizations from a
random variable A random variable (also called random quantity, aleatory variable, or stochastic variable) is a Mathematics, mathematical formalization of a quantity or object which depends on randomness, random events. The term 'random variable' in its mathema ...
''X'') and \overline is the sample mean. One way of seeing that this is a biased estimator of the standard deviation of the population is to start from the result that ''s''2 is an
unbiased estimator In statistics, the bias of an estimator (or bias function) is the difference between this estimator's expected value and the true value of the parameter being estimated. An estimator or decision rule with zero bias is called ''unbiased''. In stat ...
for the
variance In probability theory and statistics, variance is the expected value of the squared deviation from the mean of a random variable. The standard deviation (SD) is obtained as the square root of the variance. Variance is a measure of dispersion ...
σ2 of the underlying population if that variance exists and the sample values are drawn independently with replacement. The square root is a nonlinear function, and only linear functions commute with taking the expectation. Since the square root is a strictly concave function, it follows from Jensen's inequality that the square root of the sample variance is an underestimate. The use of ''n'' − 1 instead of ''n'' in the formula for the sample variance is known as
Bessel's correction In statistics, Bessel's correction is the use of ''n'' − 1 instead of ''n'' in the formula for the sample variance and sample standard deviation, where ''n'' is the number of observations in a sample. This method corrects the bias in ...
, which corrects the bias in the estimation of the population ''variance,'' and some, but not all of the bias in the estimation of the population ''standard deviation.'' It is not possible to find an estimate of the standard deviation which is unbiased for all population distributions, as the bias depends on the particular distribution. Much of the following relates to estimation assuming a
normal distribution In probability theory and statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real-valued random variable. The general form of its probability density function is f(x) = \frac ...
.


Bias correction


Results for the normal distribution

When the random variable is normally distributed, a minor correction exists to eliminate the bias. To derive the correction, note that for normally distributed ''X'', Cochran's theorem implies that (n-1) s^2/\sigma^2 has a chi square distribution with n-1
degrees of freedom In many scientific fields, the degrees of freedom of a system is the number of parameters of the system that may vary independently. For example, a point in the plane has two degrees of freedom for translation: its two coordinates; a non-infinite ...
and thus its square root, \sqrt s/\sigma has a
chi distribution In probability theory and statistics, the chi distribution is a continuous probability distribution over the non-negative real line. It is the distribution of the positive square root of a sum of squared independent Gaussian random variables. E ...
with n-1 degrees of freedom. Consequently, calculating the expectation of this last expression and rearranging constants, :\operatorname = c_4(n)\sigma where the correction factor c_4(n) is the scale mean of the chi distribution with n-1 degrees of freedom, \mu_1/\sqrt. This depends on the sample size ''n,'' and is given as follows: :c_4(n) = \sqrt \frac = 1 - \frac - \frac - \frac + O(n^) where Γ(·) is the
gamma function In mathematics, the gamma function (represented by Γ, capital Greek alphabet, Greek letter gamma) is the most common extension of the factorial function to complex numbers. Derived by Daniel Bernoulli, the gamma function \Gamma(z) is defined ...
. An unbiased estimator of ''σ'' can be obtained by dividing s by c_4(n). As n grows large it approaches 1, and even for smaller values the correction is minor. The figure shows a plot of c_4(n) versus sample size. The table below gives numerical values of c_4(n) and algebraic expressions for some values of n; more complete tables may be found in most textbooks on statistical quality control. It is important to keep in mind this correction only produces an unbiased estimator for normally and independently distributed ''X''. When this condition is satisfied, another result about ''s'' involving c_4(n) is that the standard error of ''s'' is \sigma\sqrt, while the standard error of the unbiased estimator is \sigma\sqrt .


Rule of thumb for the normal distribution

If calculation of the function ''c''4(''n'') appears too difficult, there is a simple rule of thumb to take the estimator : \hat\sigma = \sqrt The formula differs from the familiar expression for ''s''2 only by having instead of in the denominator. This expression is only approximate; in fact, : \operatorname \left hat\sigma \right = \sigma\cdot\left ( 1 + \frac + \frac + O(n^) \right). The bias is relatively small: say, for n=3 it is equal to 2.3%, and for n=9 the bias is already 0.1%.


Other distributions

In cases where
statistically independent Independence is a fundamental notion in probability theory, as in statistics and the theory of stochastic processes. Two event (probability theory), events are independent, statistically independent, or stochastically independent if, informally s ...
data are modelled by a parametric family of distributions other than the
normal distribution In probability theory and statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real-valued random variable. The general form of its probability density function is f(x) = \frac ...
, the population standard deviation will, if it exists, be a function of the parameters of the model. One general approach to estimation would be maximum likelihood. Alternatively, it may be possible to use the Rao–Blackwell theorem as a route to finding a good estimate of the standard deviation. In neither case would the estimates obtained usually be unbiased. Notionally, theoretical adjustments might be obtainable to lead to unbiased estimates but, unlike those for the normal distribution, these would typically depend on the estimated parameters. If the requirement is simply to reduce the bias of an estimated standard deviation, rather than to eliminate it entirely, then two practical approaches are available, both within the context of resampling. These are jackknifing and bootstrapping. Both can be applied either to parametrically based estimates of the standard deviation or to the sample standard deviation. For non-normal distributions an approximate (up to ''O''(''n''−1) terms) formula for the unbiased estimator of the standard deviation is : \hat\sigma = \sqrt, where ''γ''2 denotes the population excess kurtosis. The excess kurtosis may be either known beforehand for certain distributions, or estimated from the data.


Effect of autocorrelation (serial correlation)

The material above, to stress the point again, applies only to independent data. However, real-world data often does not meet this requirement; it is autocorrelated (also known as serial correlation). As one example, the successive readings of a measurement instrument that incorporates some form of “smoothing” (more correctly, low-pass filtering) process will be autocorrelated, since any particular value is calculated from some combination of the earlier and later readings. Estimates of the variance, and standard deviation, of autocorrelated data will be biased. The expected value of the sample variance is :\left ^2\right= \sigma ^2 \left 1- \frac \sum_^ \left( 1-\frac \right)\rho _k \right/math> where ''n'' is the sample size (number of measurements) and ''\rho_k'' is the autocorrelation function (ACF) of the data. (Note that the expression in the brackets is simply one minus the average expected autocorrelation for the readings.) If the ACF consists of positive values then the estimate of the variance (and its square root, the standard deviation) will be biased low. That is, the actual variability of the data will be greater than that indicated by an uncorrected variance or standard deviation calculation. It is essential to recognize that, if this expression is to be used to correct for the bias, by dividing the estimate s^2 by the quantity in brackets above, then the ACF must be known analytically, not via estimation from the data. This is because the estimated ACF will itself be biased.


Example of bias in standard deviation

To illustrate the magnitude of the bias in the standard deviation, consider a dataset that consists of sequential readings from an instrument that uses a specific digital filter whose ACF is known to be given by :\rho _k = (1 - \alpha)^k where ''α'' is the parameter of the filter, and it takes values from zero to unity. Thus the ACF is positive and geometrically decreasing. The figure shows the ratio of the estimated standard deviation to its known value (which can be calculated analytically for this digital filter), for several settings of ''α'' as a function of sample size ''n''. Changing ''α'' alters the variance reduction ratio of the filter, which is known to be : =\frac so that smaller values of ''α'' result in more variance reduction, or “smoothing.” The bias is indicated by values on the vertical axis different from unity; that is, if there were no bias, the ratio of the estimated to known standard deviation would be unity. Clearly, for modest sample sizes there can be significant bias (a factor of two, or more).


Variance of the mean

It is often of interest to estimate the variance or standard deviation of an estimated mean rather than the variance of a population. When the data are autocorrelated, this has a direct effect on the theoretical variance of the sample mean, which is :\left \overline x \right = \frac \left 1+2 \sum_^ \right. The variance of the sample mean can then be estimated by substituting an estimate of ''σ''2. One such estimate can be obtained from the equation for E 2given above. First define the following constants, assuming, again, a known ACF: :\gamma_1 \equiv 1 - \frac \sum_^ \rho _k :\gamma _2 \equiv 1 + 2 \sum_^ \rho_k so that :\left ^2\right= \sigma ^2 \gamma _1 \Rightarrow \left \frac \right= \sigma ^2 This says that the expected value of the quantity obtained by dividing the observed sample variance by the correction factor \gamma_1 gives an unbiased estimate of the variance. Similarly, re-writing the expression above for the variance of the mean, : \left \right= \frac \gamma _2 and substituting the estimate for \sigma^2 givesLaw and Kelton, p.285 :\left \overline \right= \left \frac \left( \frac \right) \right= \left \frac \left\ \right/math> which is an unbiased estimator of the variance of the mean in terms of the observed sample variance and known quantities. If the autocorrelations \rho_k are identically zero, this expression reduces to the well-known result for the variance of the mean for independent data. The effect of the expectation operator in these expressions is that the equality holds in the mean (i.e., on average).


Estimating the standard deviation of the population

Having the expressions above involving the variance of the population, and of an estimate of the mean of that population, it would seem logical to simply take the square root of these expressions to obtain unbiased estimates of the respective standard deviations. However it is the case that, since expectations are integrals, : ne \sqrt \ne \sigma \sqrt Instead, assume a function ''θ'' exists such that an unbiased estimator of the standard deviation can be written : =\sigma \theta \sqrt \Rightarrow \hat \sigma= \frac and ''θ'' depends on the sample size ''n'' and the ACF. In the case of NID (normally and independently distributed) data, the radicand is unity and ''θ'' is just the ''c''4 function given in the first section above. As with ''c''4, ''θ'' approaches unity as the sample size increases (as does ''γ1''). It can be demonstrated via simulation modeling that ignoring ''θ'' (that is, taking it to be unity) and using : \approx \sigma \sqrt \Rightarrow \hat \sigma \approx \frac removes all but a few percent of the bias caused by autocorrelation, making this a ''reduced''-bias estimator, rather than an ''un''biased estimator. In practical measurement situations, this reduction in bias can be significant, and useful, even if some relatively small bias remains. The figure above, showing an example of the bias in the standard deviation vs. sample size, is based on this approximation; the actual bias would be somewhat larger than indicated in those graphs since the transformation bias ''θ'' is not included there.


Estimating the standard deviation of the sample mean

The unbiased variance of the mean in terms of the population variance and the ACF is given by :\left \right= \frac \gamma _2 and since there are no expected values here, in this case the square root can be taken, so that :\sigma_= \frac \sqrt Using the unbiased estimate expression above for ''σ'', an estimate of the standard deviation of the mean will then be :\hat \sigma_ = \frac \frac If the data are NID, so that the ACF vanishes, this reduces to :\hat \sigma_ =\frac In the presence of a nonzero ACF, ignoring the function ''θ'' as before leads to the ''reduced''-bias estimator :\hat \sigma _ \approx \frac \frac = \frac \sqrt which again can be demonstrated to remove a useful majority of the bias.


See also

*
Bessel's correction In statistics, Bessel's correction is the use of ''n'' − 1 instead of ''n'' in the formula for the sample variance and sample standard deviation, where ''n'' is the number of observations in a sample. This method corrects the bias in ...
* Sample mean and sample covariance


References

* Douglas C. Montgomery and George C. Runger, ''Applied Statistics and Probability for Engineers'', 3rd edition, Wiley and sons, 2003. (see Sections )


External links

*
Java interactive graphic
showing the Helmert PDF from which the bias correction factors are derived.
Monte-Carlo simulation demo for unbiased estimation of standard deviation.
* http://www.itl.nist.gov/div898/handbook/pmc/section3/pmc32.htm What are Variables Control Charts? {{DEFAULTSORT:Unbiased Estimation Of Standard Deviation Estimation methods Summary statistics Covariance and correlation