Stat

class nbi_stat.Stat(covar=None, ddof=0)[source]

Bases: ABC

Base class for statistics classes

Parameters:

ddof (int (>=0)) – Delta degrees of freedom (1 for unbiased sample estimators)

See also

West, Welford

Attributes Summary

cov

Possible get covariance

mean

Return the mean(s)

rho

Possibly get correlation

sem

Return the standard error on the mean(s)

std

Get the standard deviation

var

Return the variance(s)

Methods Summary

update(x[, w])

Update statistics with observation x (and possible weight)

Attributes Documentation

cov

Possible get covariance

mean

Return the mean(s)

rho

Possibly get correlation

sem

Return the standard error on the mean(s)

std

Get the standard deviation

var

Return the variance(s)

Methods Documentation

abstract update(x, w=None)[source]

Update statistics with observation x (and possible weight)

Parameters:
  • x (array) – Observation. If this is a two dimensional array, then we interpret each row as a single observation

  • w (array (optional)) – Weights