December 2017
Intermediate to advanced
386 pages
10h 42m
English
The summary statistics of a dataset can be obtained using the describe function within scipy.stats.
The process to obtain the summary statistics of a dataset is as follows:
from scipy import stats
a = np.arange(10)
In the preceding code, we have initialized a one-dimensional array.
stats.describe(a)DescribeResult(nobs=10, minmax=(0, 9), mean=4.5, variance=9.1666666666666661, skewness=0.0, kurtosis=-1.2242424242424244)
Note that the result of the describe function is all the summary statistics of the dataset.
The preceding output is for a one-dimensional dataset. In the following example, let us look at calculating ...
Read now
Unlock full access