GroupFit#

class pypillometry.signal.gaussmarkov.GroupFit(bank, mu, Sigma, fits, individual, history=list(), converged=False)[source]#

Bases: object

Result of fit_group().

Attributes:
bankTimescaleBank
mu(p,) array

group mean of the parameter vector

Sigma(p, p) array

covariance of the parameter vector between the recordings

fitslist of BankFit

shrunk estimates of the recordings (prior: the group distribution)

individuallist of BankFit

estimates of the recordings without pooling (wide prior)

historylist of (mu, Sigma)

the group parameters at the start and after each iteration

convergedbool

whether the group mean changed by less than the tolerance in the last iteration

Details

property prior: GaussianPrior#

The group distribution as a prior (GaussianPrior), e.g. for the fit of a new recording of the same kind.

property sd: ndarray#

standard deviations of the parameters between the recordings

property thetas: ndarray#

(N, p) array of the shrunk estimates