The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Standard Deviation in Excel

whuppinswhuppins Registered User regular
edited May 2009 in Help / Advice Forum
I'm much more familiar with Excel than I am with statistics, but I just noticed that asking Excel to calculate the standard deviation on a single-value array causes a #DIV/0! error. Since when does calculating the standard deviation of a single value involve dividing by zero? Don't you end up taking the square root of 0/1 = 0?

whuppins on

Posts

  • RookRook Registered User regular
    edited May 2009
    whuppins wrote: »
    I'm much more familiar with Excel than I am with statistics, but I just noticed that asking Excel to calculate the standard deviation on a single-value array causes a #DIV/0! error. Since when does calculating the standard deviation of a single value involve dividing by zero? Don't you end up taking the square root of 0/1 = 0?

    My first guess would be that it uses n-1 rather than n. Either way, finding the deviation of a single value is tres dumb.

    edit: Try stdevp though, if you're desperate. stdev is for samples and stdevp is for populations.

    Rook on
  • whuppinswhuppins Registered User regular
    edited May 2009
    Obviously standard deviation is of little value with a single sample, but "tres dumb"? Au contraire!

    The worksheet is actually calculating the standard deviation for a range of values, the size of which can vary each time it's used. In some cases, that size can even be 1. I just wanted to see why I had to write additional logic into the formula just to handle this special case. stdevp() doesn't work because in 99% of cases I will be working with more common array sizes. Any other ideas?

    whuppins on
  • RookRook Registered User regular
    edited May 2009
    Why not just use STDEVP as it sounds like that's what you thought you were doing in the first place judging from your initial calculation.

    Rook on
  • whuppinswhuppins Registered User regular
    edited May 2009
    You're right; I had previously misunderstood the difference between the two functions. STDEVP() is the more appropriate function for what I'm trying to do.

    Thanks!

    whuppins on
Sign In or Register to comment.