December 2017
Intermediate to advanced
386 pages
10h 42m
English
A moment is a specific quantitative measure of the shape of a set of points. It is often used to calculate coefficients of skewness and kurtosis.
The kth moment of a distribution is calculated with the following formula:
Note that the preceding formula is equivalent to a mean-shifted average when k=1.
Similarly, the same preceding formula is equivalent to the variance of an array when k=2.
Furthermore, k=3 represents the skewness and k=4 represents the kurtosis of the array.
In the following section, let us look at calculating the kth moment of a distribution:
from scipy.stats ...
Read now
Unlock full access