In an article I found the formula for the standard deviation of a sample size $N$


where $\overline{R}$ is the average range of subsamples (size $6$) from the main sample. How the number $2.534$ is calculated? This is the correct number?

  • 6
    $\begingroup$ References please. More importantly: 1. There can't be a "correct number" here independently of the kind of distribution you are drawing from. 2. These rules usually come from interest in short-cut methods of estimating the SD from the range. Now we have computers.... Do you want to do that and why? Why not just use the data? $\endgroup$
    – Nick Cox
    Commented Sep 9, 2013 at 16:28
  • 3
    $\begingroup$ @Nick Sorry: you were correct. A value around $4$ works for the standard deviation when the sample size is around $15$ to $50$; $3$ works for sample sizes around $10$, etc. I will delete my previous comment so it does not confuse anyone other than myself! $\endgroup$
    – whuber
    Commented Sep 9, 2013 at 17:03
  • 1
    $\begingroup$ @NickCox it is old russian source and I didn't see the formula before. $\endgroup$
    – Andy
    Commented Sep 10, 2013 at 6:35
  • 4
    $\begingroup$ Giving references is rarely a bad idea. Let readers decide for themselves whether they are interesting or accessible. (There are plenty of people here who can read Russian, for example.) $\endgroup$
    – Nick Cox
    Commented Sep 10, 2013 at 10:53

3 Answers 3


In an a sample $x$ of $n$ independent values from a distribution $F$ with pdf $f$, the pdf of the joint distribution of the extremes $\min(x)=x_{[1]}$ and $\max(x)=x_{[n]}$ is proportional to

$$f(x_{[1]})\left(F(x_{[n]})-F(x_{[1]})\right)^{n-2}f(x_{[n]})dx_{[1]}dx_{[n]} = H_F(x_{[1]}, x_{[n]})dx_{[1]}dx_{[n]}.$$

(The constant of proportionality is the reciprocal of the multinomial coefficient $\binom{n}{1,n-2,1} = n(n-1)$. Intuitively, this joint PDF expresses the chance of finding the smallest value in the range $[x_{[1]},x_{[1]}+dx_{[1]})$, the largest value in the range $[x_{[n]},x_{[n]}+dx_{[n]})$, and the middle $n-2$ values between them within the range $[x_{[1]}+dx_{[1]}, x_{[n]})$. When $F$ is continuous, we may replace that middle range by $(x_{[1]}, x_{[n]}]$, thereby neglecting only an "infinitesimal" amount of probability. The associated probabilities, to first order in the differentials, are $f(x_{[1]})dx_{[1]},$ $f(x_{[n]})dx_{[n]},$ and $F(x_{[n]})-F(x_{[1]}),$respectively, now making it obvious where the formula comes from.)

Taking the expectation of the range $x_{[n]} - x_{[1]}$ gives $2.53441\ \sigma$ for any Normal distribution with standard deviation $\sigma$ and $n=6$. The expected range as a multiple of $\sigma$ depends on the sample size $n$:


These values were computed by numerically integrating $\binom{n}{1,n-2,1}\left(y-x\right)H_F(x,y)dxdy$ over $\{(x,y)\in\mathbb{R}^2|x\le y\}$, with $F$ set to the standard Normal CDF, and dividing by the standard deviation of $F$ (which is just $1$).

A similar multiplicative relationship between the expected range and the standard deviation will hold for any location-scale family of distributions, because it is a property of the shape of the distribution alone. For instance, here is a comparable plot for uniform distributions:


and exponential distributions:


The values in the preceding two plots were obtained by exact--not numerical--integration, which is possible due to the relatively simple algebraic forms of $f$ and $F$ in each case. For the uniform distributions they equal $\frac{n-1}{(n+1)}\sqrt{12}$ and for the exponential distributions they are $\gamma + \psi(n) = \gamma + \frac{\Gamma'(n)}{\Gamma(n)}$ where $\gamma$ is Euler's constant and $\psi$ is the "polygamma" function, the logarithmic derivative of Euler's Gamma function.

Although they differ (because these distributions display a wide range of shapes), the three roughly agree around $n=6$, showing that the multiplier $2.5$ does not depend heavily on the shape and therefore can serve as an omnibus, robust assessment of the standard deviation when ranges of small subsamples are known. (Indeed, the very heavy-tailed Student $t$ distribution with three degrees of freedom still has a multiplier around $2.3$ for $n=6$, not far at all from $2.5$.)

  • 6
    $\begingroup$ Wonderful exposition! You may be interested to know that this appears to have been investigated back in the 1920s. See Tippet 1925. In Tippet's tables (Table X) the expected value for the range given a sample of size 6 is $2.53441\sigma$. He shows the derivation of the complete distribution of the range for the normal distribution. This was used by David et.al. (1954) to calculate probability points of the range distribution for a test for normality (see D'Agostino & Stephens $\endgroup$
    – Avraham
    Commented Sep 9, 2013 at 18:16
  • $\begingroup$ @Avraham Thank you for the illuminating comments. What struck me when I added the graphics is that the really clever part of this whole approach is the use of subsamples of size six because that's where the multipliers all tend to be about the same regardless of distributional shape. $\endgroup$
    – whuber
    Commented Sep 9, 2013 at 18:58
  • $\begingroup$ Thanks! Tippet's tables actually give the appropriate multiplier for all numbers between 2 and 1000. He does mention running into calculation issues; of course, this was back in 1925 a good 20 years before ENIAC. $\endgroup$
    – Avraham
    Commented Sep 9, 2013 at 19:03
  • $\begingroup$ @whuber can you show how the number (2.534) was calculated? $\endgroup$
    – Andy
    Commented Sep 10, 2013 at 6:51
  • $\begingroup$ I edited the answer to include explanations of the calculations. $\endgroup$
    – whuber
    Commented Sep 10, 2013 at 14:17

That approximation is very close to the true sample standard deviation. I wrote a quick R script to illustrate it:

x = sample(1:10000,6000,replace=TRUE)

B = 100000
R = rep(NA,B)
for(i in 1:B){
    samp = sample(x,6)
    R[i] = max(samp)-min(samp)



which yields:

> mean(R)/2.534
[1] 2819.238
> sd(x)
[1] 2880.924

Now I am not sure (yet) why this works but it at least looks like (at face value) that the approximation is a decent one.

Edit: See @Whuber's exceptional comment (above) on why this works

  • 1
    $\begingroup$ You are drawing subsamples of size $6$ from an approximately uniform distribution. For a truly uniform distribution the ratio is $10\sqrt{3}/7\approx 2.474$. Indeed, if you were to use that factor in your simulation you would obtain mean(R)/2.474 equal to $2887.6$, very close to sd(x). $\endgroup$
    – whuber
    Commented Sep 9, 2013 at 17:48
  • $\begingroup$ Very true! > mean(R)/2.474 [1] 2887.611 $\endgroup$
    – user25658
    Commented Sep 9, 2013 at 17:59

We know that for a Normal distribution Mean - 2SD TO Mean + 2SD accounts for 95% of the observations. This imply approximately Mean + 1.96SD - (Mean - 1.96SD) = Range Mean + 1.96SD - Mean + 1.96SD = Range 3.92*SD = Range or SD = Range/3.92

Example: 4 6 7 9 12 15 18 19 20 21 23 25 27 ON CALCULATION

Mean = 15.84 and SD = 7.614

Estimated SD from the range = Range / 3.92 = (27 - 4)/3.92 = 23/3.92 = 5.86

Example 2: 5 6 6 7 7 8 8 8 9 9 10 10 10 12

Mean = 8.08 and SD = 1.934

Estimated SD from the range = Range / 3.92 = (12 - 5)/3.92 = 7/3.92 = 1.786

So, we can see that for a distribution where values are repeated, or the distribution is symmetric, the SD estimated is quite close to that of actually calculated.

So, approximately SD = Range/3.92

I believe that this formula should hold good for sample size more than or equal to 30.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.