algorithms.statistics.models.family.varfuncs

Module: algorithms.statistics.models.family.varfuncs

Inheritance diagram for nipy.algorithms.statistics.models.family.varfuncs:

Inheritance diagram of nipy.algorithms.statistics.models.family.varfuncs

Classes

Binomial

class nipy.algorithms.statistics.models.family.varfuncs.Binomial(n=1)

Bases: object

Binomial variance function

p = mu / n; V(mu) = p * (1 - p) * n

INPUTS:

n – number of trials in Binomial

__init__(n=1)
clean(p)
tol = 1e-10

Power

class nipy.algorithms.statistics.models.family.varfuncs.Power(power=1.0)

Bases: object

Power variance function:

V(mu) = fabs(mu)**power

INPUTS:

power – exponent used in power variance function

__init__(power=1.0)

VarianceFunction

class nipy.algorithms.statistics.models.family.varfuncs.VarianceFunction

Bases: object

Variance function that relates the variance of a random variable to its mean. Defaults to 1.

__init__(*args, **kwargs)