Gui Guan’s BLOG

There’s more than one way to do it

Archive for the ‘Mathematics’ Category

Why divide by n-1 and not n?

n-1.png
n.png

“Some questions are more easily asked than answered” Edward Sapir(?)

Possibly the most frequently asked and least frequently answered question is why does the definition of the standard deviation involve division by n-1, when n might seem the obvious choice. This is a question which perplexes introductory statistics students and calculator manufacturers alike. The explanations given in calculator manuals tend to range from obscure to fanciful, and both options are given on the keypad, usually labelled sn-1 and sn to add to the confusion. (The symbol s is reserved for the standard deviation of a random variable or a population/distribution, an entity which lecturers valiantly try but usually fail to keep distinct from its sample counterpart.) Australian students first meet the standard deviation in secondary school, where the definition given does indeed involve division by n. This definition is preferred to avoid the question about the n-1 being raised it would seem. Secondary school teachers have a hard enough life as it is. And it must be remembered that the difference between the two definitions is largely academic for all but the smallest of sample sizes (say, less than 10 observations). So, don’t get too agitated by the revamped definition. The truth can be told but the telling usually quells the desire to know. If the fire still burns in your belly, read on.
(more…)

  • 7 Comments
  • Filed under: Mathematics
  • Several Useful M files for Matlab

    cmult.m

      cmult.m (2.5 KiB, 1,538 hits)

    colop.m

      colop.m (3.5 KiB, 1,297 hits)

    cswap.m

      cswap.m (735 bytes, 1,633 hits)

    pivot.m

      pivot.m (391 bytes, 1,062 hits)

    rmult.m

      rmult.m (2.5 KiB, 1,316 hits)

    rowop.m

      rowop.m (3.6 KiB, 1,799 hits)

    rswap.m

      rswap.m (725 bytes, 1,325 hits)

    surfcv.m 

    SURFCV(X,Y,Z,F,CONST) draws a surface of constant value for a function of three variables:  F(X,Y,Z) = CONST .

      surfcv.m (10.2 KiB, 1,451 hits)

  • 0 Comments
  • Filed under: Matlab