Calculating moments in MS Excel

  • Thread starter Thread starter loom91
  • Start date Start date
  • Tags Tags
    Excel Moments
Click For Summary
SUMMARY

This discussion focuses on calculating skewness using Microsoft Excel for a dataset of 50 students across 6 subjects. The user, Molu, attempts to implement the standard estimator for skewness due to the limitations of Excel's built-in functions. The formula provided by Molu is: =(SQRT($A51*($A51-1))/(($A51-2)*$A51))*(SUM((D2:D51 - D53)^3)/POWER(D55,3)). Additionally, the discussion highlights the Excel function SKEW, which can also be used to calculate skewness, albeit with specific limitations regarding data points and error handling.

PREREQUISITES
  • Understanding of statistical concepts such as skewness and standard deviation.
  • Familiarity with Microsoft Excel formulas and functions.
  • Basic knowledge of data sampling and population characteristics.
  • Ability to interpret statistical outputs and error messages in Excel.
NEXT STEPS
  • Research the implications of using the standard estimator for skewness in non-normal distributions.
  • Learn how to effectively use the SKEW function in Excel for different datasets.
  • Explore advanced statistical analysis techniques in Excel, such as regression analysis.
  • Investigate alternative software tools for statistical calculations, such as R or Python's Pandas library.
USEFUL FOR

Students, educators, and data analysts who require practical guidance on calculating skewness and other statistical moments using Microsoft Excel.

loom91
Messages
404
Reaction score
0
Hi,

As part of a school project on statistics, I'm trying to calculate some parameters of collected data. I've the marks of 50 randomly sampled students in 6 subjects. I'm trying to calculate their skewness. Since the inbuilt Excel function to calculate skewness uses an estimator I've never seen, I'm using the standard estimator:

\frac {\sqrt{n (n-1)}}{n (n-2)} \frac {\Sigma_i (x_i - \bar{x})^3}{s^3}

Though this is not unbiased, it's the best I have as I can not assume normality (which is creating a load of problems) because the population is heavily (-)vely skewed .

In Excel, I've written the following formula:

=(SQRT($A51*($A51-1))/(($A51-2)*$A51))*(SUM((D2:D51 - D53)^3)/POWER(D55,3))

where D2:D51 contains the data, $A51 is n, D53 is the mean and D55 is the sd.

Is this correct? It seems a pity Excel has no in-built functions to calculate moments. Also, one of the values is coming out to be -1.099, and I can't remember whether odd-order standardized moments can be less than -1 :redface:

Thanks for your help. This is really important or me.

Molu
 
Physics news on Phys.org
From Excel help:

SKEW(number1,number2,...)

Number1, number2 ... are 1 to 30 arguments for which you want to calculate skewness. You can also use a single array or a reference to an array instead of arguments separated by commas.

Remarks

Arguments can either be numbers or names, arrays, or references that contain numbers.
Logical values and text representations of numbers that you type directly into the list of arguments are counted.
If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included.
Arguments that are error values or text that cannot be translated into numbers cause errors.
If there are fewer than three data points, or the sample standard deviation is zero, SKEW returns the #DIV/0! error value.
The equation for skewness is defined as:
\frac {n}{(n-1)(n-2)} \sum_i \left(\frac {x_i - \bar{x}}{s}\right)^3
If you have to use your formula, all you have to do is to multiply Excel's result with \frac {\sqrt{n (n-1)}}{n (n-2)}\times \frac{(n-1)(n-2)}{n}.
 
Last edited:

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
6K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
3K
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K