## models.pearson_dispersion()


The Pearson dispersion `sum(w (y - mu)^2 / V(mu)) / n`.


Usage


``` python
models.pearson_dispersion(
    family,
    y,
    mu,
    weights,
    theta=None,
    power=None,
)
```


## Parameters


`family: str`  

`y: list of float`  

`mu: list of float`  

`weights: list of float`  

`theta: float = None`  

`power: float = None`  


## Returns


`float`  


## Examples

``` python
>>> from prospicio.models import pearson_dispersion
>>> pearson_dispersion("poisson", [1.0, 4.0], [2.0, 2.0], [1.0, 1.0])
```

1.25
