Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Kurtosis is the "peakedness" of a distribution.
- The kurtosis of a normal distribution is 3.
- If a given distribution has a kurtosis less than 3, it is said to be platykurtic, which means it tends to produce fewer and less extreme outliers than the normal distribution.
- If a given distribution has a kurtosis greater than 3, it is said to be leptokurtic, which means it tends to produce more outliers than the normal distribution.
- from scipy.stats import kurtosis
- # Creating a dataset
- dataset = [88, 85, 82, 97, 67, 77, 74, 86,
- 81, 95, 77, 88, 85, 76, 81]
- # Calculate the kurtosis
- print(kurtosis(dataset, axis=0, bias=False))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement