scipy.stats.mstats.samplevar

scipy.stats.mstats.samplevar(data, axis=0)

Returns a biased estimate of the variance of the data, as the average of the squared deviations from the mean.

Parameters:

data : sequence

Input data

axis : {0, int} optional

Axis along which to compute. If None, the computation is performed on a flat version of the array.