estimate_nuisance_distribution
estimate_nuisance_distribution(values, kind)
Fits a nuisance-parameter distribution to observed values, for use as nuisance_dists.
Parameters
| values |
|
Observed values of the nuisance parameter. |
required |
| kind |
str |
One of "Uniform", "Normal", "Lognormal" or "Weibull". |
required |
Returns
|
Tuple[str, Tuple] | None |
None for Uniform (the default, over the observed range), otherwise a |
|
Tuple[str, Tuple] | None |
(scipy_name, params) tuple. Normal uses the sample mean and standard |
|
Tuple[str, Tuple] | None |
deviation; Lognormal and Weibull are fitted by maximum likelihood with the |
|
Tuple[str, Tuple] | None |
location fixed at 0. |
Raises
|
ValueError |
For an unknown kind, too few values, or non-positive values with a Lognormal/Weibull distribution (both need positive data). |