What divisor does Microsoft Excel use for standard deviation?

In summary, the command "STDEV" in Microsoft Excel gives 'N-1' as the divisor for standard deviation. This may not be a major issue to many of the people, but it can be misleading to those who are expecting standard deviation to have a divisor of 'N'.
  • #1
ssd
268
6
By definition standard deviation has divisor 'N' .
sdmjgp.png

But in Microsoft Excel the "STDEV" function gives 'N-1' as divisor.
This may not be major issue to many of the people. But the command "STDEV"
makes many users feel that this is standard deviation, i.e. it has divisor 'N'. Misleading...is not it?
 
Physics news on Phys.org
  • #3
In texts you will see the one with divisor N defined as the population standard deviation: the one with divisor N-1 is referred to as the sample standard deviation.

There is no single "standard deviation formula" - the appropriate formula depends on context.
 
  • #4
Excel has STDEV, the sample standard deviation, and STDEVP, the population standard deviation. Usually you want the sample standard deviation, which is why the commands are named as they are.

I'm pretty sure this is all in the Excel help.
 
  • #5
At the very outset of this reply let me say that all of you are correct from your
respective point of view. But my point was a little different which EnumaElish has got almost correctly.
To clarify my point I will say a word or two.

EnumaElish said:
"the square root of the bias-corrected variance [estimator] is
sometimes also known as the standard deviation"
http://mathworld.wolfram.com/StandardDeviation.html

True. You rightly got it: "sometimes" not in general- or I may say, not commonly.
That is why I used the term "misleading" instead of "bugged".

CRGreathouse said:
Excel has STDEV, the sample standard deviation,
and STDEVP, the population standard deviation. Usually you want the sample
standard deviation, which is why the commands are named as they are.

Point well taken.

statdad said:
In texts you will see the one with divisor N defined as the population
standard deviation: the one with divisor N-1 is referred to as the sample standard deviation.
There is no single "standard deviation formula" - the appropriate formula depends on context.


In the first step of stating the descriptive measures of dispersion all the textbooks, as I have gone through
( ex: attachment -1), use a single and unique "standard deviation formula" (and no context dependent definition). And this is done much before coming to the chapters of "point estimation" or "sample survey" (where we start talking about "expectation/unbiasedness" or "population/sample".

Then again, as learned from textbooks( attachment-2), the sample variance (also) have divisor
n, not n-1). Hence it is stated, sample variance is not unbiased estimator of population variance.

30nf95w.jpg

attachment -1

2rdu3h5.jpg

attachment-2
 
Last edited by a moderator:
  • #6
The standard deviation with the divisor of n is the MLE when the Gaussian model is assumed and both [tex] \mu [/tex] and [/tex] \sigma [/tex] are unknown. (It is a function of the variance, the MLE of [tex] \sigma ^2 [/tex], so is the MLE of the standard deviation. The sample variance with the divisor of n -1 comes from the unbiased estimator of variance.

But: this expression
[tex]
\frac 1 n \sum_{i=1}^n (x_i-\bar x)^2,
[/tex]

are also given as formulas for population variance and sample variance, respectively, for discrete populations, since in this case the population mean is defined as

[tex]
\mu = \sum 1 n \sum_{i=1}^n
[/tex]

and so is identical in form to the arithmetic mean.

So, when you use the variance with n in the denominator, you must be clear whether you are dealing with a sample or population: the interpretation differs. That is the context.
 
  • #7
statdad said:
The standard deviation with the divisor of n is the MLE when the Gaussian model is assumed and both [tex] \mu [/tex] and [/tex] \sigma [/tex] are unknown. (It is a function of the variance, the MLE of [tex] \sigma ^2 [/tex], so is the MLE of the standard deviation. The sample variance with the divisor of n -1 comes from the unbiased estimator of variance.

But: this expression
[tex]
\frac 1 n \sum_{i=1}^n (x_i-\bar x)^2,
[/tex]

are also given as formulas for population variance and sample variance, respectively, for discrete populations, since in this case the population mean is defined as

[tex]
\mu = \sum 1 n \sum_{i=1}^n
[/tex]

and so is identical in form to the arithmetic mean.

So, when you use the variance with n in the denominator, you must be clear whether you are dealing with a sample or population: the interpretation differs. That is the context.

Agree. But my point differs a little from yours.

What if you are given with 20 no.s and asked to find their mean, variance, skewness and kurtosis... without any reference to population/estimation. Remember what we did in our stating course of descriptive statistics. What I am trying to say is that, there are situations when one can look upon variance as a purely descriptive measure (of dispersion). And this measure itself is meaningful some times (apart from the fact that this measure will be used for inferential data analysis).
 
  • #8
"without any reference to population/estimation" - I can't imagine why you you would want any set of statistics without wondering about any descriptive or inferential purpose (unless it is simply an exercise in calculation) - but so be it.
 
  • #9
statdad said:
"without any reference to population/estimation" - I can't imagine why you you would want any set of statistics without wondering about any descriptive or inferential purpose (unless it is simply an exercise in calculation) - but so be it.

Right. I was more concerned about my students who are going through the initial stages of learning descriptive statistics. Most of them (if not all) use excel for their course work.
 

1. What is standard deviation in Excel?

Standard deviation in Excel is a measure of how spread out a set of data points is from the mean or average value. It is a statistical calculation that helps to understand the variability or dispersion of the data.

2. How do I calculate standard deviation in Excel?

To calculate standard deviation in Excel, you can use the STDEV function. This function takes a range of cells as input and returns the standard deviation for that data set. You can also use the STDEV.S function for a sample or STDEV.P function for a population.

3. Can I calculate standard deviation for a specific set of data in Excel?

Yes, you can calculate standard deviation for a specific set of data in Excel by using the STDEV function. Simply select the cells containing the data you want to calculate the standard deviation for as the input for the function.

4. How is standard deviation useful in Excel?

Standard deviation is useful in Excel because it helps to understand the spread of data points in a data set. It can also be used to identify outliers and anomalies in the data. Additionally, standard deviation can be used to compare the variability of different data sets.

5. Can standard deviation in Excel be negative?

No, standard deviation in Excel cannot be negative. It is a measure of dispersion and therefore, by definition, cannot be negative. If you get a negative value for standard deviation in Excel, it is likely due to a calculation error or incorrect data input.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
887
  • Set Theory, Logic, Probability, Statistics
Replies
24
Views
3K
  • Calculus and Beyond Homework Help
Replies
3
Views
894
  • Set Theory, Logic, Probability, Statistics
Replies
15
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
3K
  • Set Theory, Logic, Probability, Statistics
Replies
7
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
2K
Back
Top