Descriptive Statistics
Descriptive Statistics summaries a dataset, which helps in gaining insights, and making inferences about a dataset.
In general, we compute statistical measures of one or more samples, related to a population, and draw conclusions about the population.
Descriptive Statistics involves estimating centrality measures and measures of dispersion.
Centrality Measures
Centrality measures determine the center of a dataset.
The three major centrality measures are: mean, median, and mode.
Mean
Mean is the sum of all values divided by a total number of values, of a data set.
mean function of numpy is used to compute mean marks obtained by five students in a subject s1.
Example
import numpy as np
s1 = np.array([86, 47, 45, 47, 40])
print(np.mean(s1))
Output
53.0