What formula does Excel use to calculate sample skewness?

  • Thread starter Thread starter FrostScYthe
  • Start date Start date
Click For 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.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
9
Views
2K
Replies
1
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K