In statistics and in particular statistical theory, unbiased estimation of a standard deviation is the calculation from a statistical sample of an estimated value of the standard deviation (a measure of statistical dispersion) of a population of values, in such a way that the expected value 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. However, for statistical theory, it provides an exemplar problem in the context of estimation theory 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, the standard deviation 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=∑i=1n(xi−x‾)2n−1, where {x1,x2,…,xn} is the sample (formally, realizations from a random variable X) and x‾ 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 s2 is an unbiased estimator for the variance σ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, 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.
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)s2/σ2 has a chi square distribution with n−1 degrees of freedom and thus its square root, n−1s/σ has a chi distribution with n−1 degrees of freedom. Consequently, calculating the expectation of this last expression and rearranging constants,
E[s]=c4(n)σ where the correction factor c4(n) is the scale mean of the chi distribution with n−1 degrees of freedom, μ1/n−1. This depends on the sample size n, and is given as follows:
c4(n)=2n−1Γ(n2)Γ(n−12)=1−14n−732n2−19128n3+O(n−4) where Γ(·) is the gamma function. An unbiased estimator of σ can be obtained by dividing s by c4(n). As n grows large it approaches 1, and even for smaller values the correction is minor. The figure shows a plot of c4(n) versus sample size. The table below gives numerical values of c4(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 c4(n) is that the standard error of s is σ1−c42, while the standard error of the unbiased estimator is σc4−2−1.
Rule of thumb for the normal distribution If calculation of the function c4(n) appears too difficult, there is a simple rule of thumb to take the estimator
σ̂=1n−1.5∑i=1n(xi−x‾)2 The formula differs from the familiar expression for s2 only by having n − 1.5 instead of n − 1 in the denominator. This expression is only approximate; in fact,
E[σ̂]=σ⋅(1+116n2+316n3+O(n−4)). 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%. A closer approximation may be computed using a denominator of
k=n−1.5+18(n−1), which approximates the exact formula for the denominator
k=2(Γ(n2)Γ(n−12))2.
Other distributions In cases where statistically independent data are modelled by a parametric family of distributions other than the normal distribution, 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
σ̂=1n−1.5−14γ2∑i=1n(xi−x‾)2, 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
… excerpt ends here. Continue reading the full article.

