Skip to main content

models.pearson_terms()

Each row’s Pearson term w (y - mu)^2 / V(mu), V the family’s

Usage

models.pearson_terms(
    family,
    y,
    mu,
    weights,
    theta=None,
    power=None,
)

variance function.

Parameters

family: str
y: list of float
mu: list of float
weights: list of float
theta: float = None
power: float = None

Returns

list of float