What formula does Excel use to calculate sample skewness?

  • Thread starter Thread starter FrostScYthe
  • Start date Start date
AI Thread Summary
Excel calculates sample skewness using a different formula than the one provided, which leads to discrepancies in results. The formula used by Excel incorporates a factor of n/(n-1)(n-2) and standard deviation in its calculation. The example provided shows that while the manual calculation yields 1.33630621, Excel returns 1.619847741. The difference arises from the distinct methodologies employed in calculating skewness. Understanding these variations is crucial for accurate data analysis in Excel.
FrostScYthe
Messages
80
Reaction score
0
Hi everyone,

I'm using the following formula to calculate sample skewness:

g_1 = \frac{m_3}{m_2^{3/2}} <br /> = \frac{\tfrac{1}{n} \sum_{i=1}^n (x_i-\overline{x})^3}{\left(\tfrac{1}{n} \sum_{i=1}^n (x_i-\overline{x})^2\right)^{3/2}}\ ,

However, when I try excel on to calculate skewness I get a different results. For example this set:

1
1
1
1
1
1
1
9
9

I get: 1.33630621
Excel gets: 1.619847741

Is excel using a different formula, or am I doing something wrong? O_o

Ted.
 
Physics news on Phys.org
I ran your example in octave and got your result. Excel code is virtually unreadable so it's hard to catch errors. There is a trick for naming cells, but that only helps so much.
 
Oops. I misunderstood. The excel skew function is

<br /> \frac{n}{(n-1)(n-2)}\sum{\left(\frac{x-\bar{x}}{s}\right)^3}<br />

where s is the stdev. Who knows how they came up with that. Probably dates back to the 80's.
 
I don't get how to argue it. i can prove: evolution is the ability to adapt, whether it's progression or regression from some point of view, so if evolution is not constant then animal generations couldn`t stay alive for a big amount of time because when climate is changing this generations die. but they dont. so evolution is constant. but its not an argument, right? how to fing arguments when i only prove it.. analytically, i guess it called that (this is indirectly related to biology, im...
Back
Top