## credibility.BuhlmannStraubFit


A fitted Bühlmann-Straub model, from [buhlmann_straub](credibility.buhlmann_straub.md#prospicio.credibility.buhlmann_straub).


Usage


``` python
credibility.BuhlmannStraubFit()
```


## Attributes

| Name | Description |
|----|----|
| [between_variance](#between_variance) | The between-group variance [a](distributions.Beta.md#prospicio.distributions.Beta.a) (may be negative; the factors are |
| [collective_mean](#collective_mean) | The credibility-weighted collective mean. |
| [credibility](#credibility) | Each group's credibility factor. |
| [group_means](#group_means) | Each group's weighted mean. |
| [group_weights](#group_weights) | Each group's total weight. |
| [iterations](#iterations) | Iterations of the iterative estimator (0 for the unbiased one). |
| [k](#k) | Bühlmann's `k = s2 / a` (`inf` when `a <= 0`). |
| [premiums](#premiums) | Each group's credibility premium. |
| [within_variance](#within_variance) | The within-group variance `s2`. |

------------------------------------------------------------------------


#### between_variance


The between-group variance [a](distributions.Beta.md#prospicio.distributions.Beta.a) (may be negative; the factors are


`between_variance: float`


then 0).


------------------------------------------------------------------------


#### collective_mean


The credibility-weighted collective mean.


`collective_mean: float`


------------------------------------------------------------------------


#### credibility


Each group's credibility factor.


`credibility: list[float]`


------------------------------------------------------------------------


#### group_means


Each group's weighted mean.


`group_means: list[float]`


------------------------------------------------------------------------


#### group_weights


Each group's total weight.


`group_weights: list[float]`


------------------------------------------------------------------------


#### iterations


Iterations of the iterative estimator (0 for the unbiased one).


`iterations: int`


------------------------------------------------------------------------


#### k


Bühlmann's `k = s2 / a` (`inf` when `a <= 0`).


`k: float`


------------------------------------------------------------------------


#### premiums


Each group's credibility premium.


`premiums: list[float]`


------------------------------------------------------------------------


#### within_variance


The within-group variance `s2`.


`within_variance: float`
