Statistics › Moments ›

# Kurtosis

Calculates the kurtosis of a given set of data.

Controller: **CodeCogs**

**Contents**

## Dependents

## Interface

C++

## Kurtosis

template<class T> doublekurtosis( | int | n | |

T* | data | ) |

*x*is the actual population and is the standard deviation. This way the standard normal distribution has a kurtosis of zero. Positive kurtosis indicates a

*peaked*distribution and negative kurtosis indicates a

*flat*distribution.

## References:

NIST/SEMATECH e-Handbook of Statistical Methods, http://www.itl.nist.gov/div898/handbook/eda/section3/eda35b.htm### Example 1

#include <codecogs/statistics/moments/kurtosis.h> #include <iostream> int main() { float x[5] = {3.4 , 7.1 , 1.5 , 8.6 , 4.9}; double kurt = Stats::Moments::kurtosis<float>(5, x); std::cout << "The population kurtosis is: " << kurt << std::endl; return 0; }

Output:The population kurtosis is: -0.928457

### Parameters

n the size of the population data the actual population data given as an array

### Returns

- the kurtosis of the given set of data

### Authors

*Anca Filibiu (August 2005)*

##### Source Code

Source code is available when you agree to a GP Licence or buy a Commercial Licence.

Not a member, then Register with CodeCogs. Already a Member, then Login.