Skip to main content

NumPy Statistical Methods

NumPy provides methods to calculate statistics on array data, such as the mean, median and standard deviation.

std() computes standard deviation of given numbers

percentile() computes q-th percentile of the data

max() returns the largest element of an array

min() returns the smallest element of an array.

average() computes the weighted average of array

computes cross-correlation of two 1D sequences

median() finds the median along specified axis.

var() computes the variance along specified axis

quantile() computes the q-th quantile of the data

nanmean() computes arithmetic mean, ignoring NaNs

computes range of values(maximum-minimum) in array

estimate covariance matrix, given data and weights

mean() computes arithmetic mean of a given set