credible.bayesian.functors¶
Functors with standard credible region parameterisation.
Functions
|
|
|
|
|
|
|
|
|
Decorate a function to operate across the library, with array inputs. |
|
Decorate a function to operate across the library, with scalar inputs. |
- credible.bayesian.functors.make_functor(fun, lambda_=1.0, coverage=0.95)[source]¶
Decorate a function to operate across the library, with scalar inputs.
- Parameters:
fun – Function to be decorated.
lambda – The parameterisation of the Beta prior to consider. Use \(\lambda=1\) for a flat prior. Use \(\lambda=0.5\) for Jeffrey’s prior. Changes in this value do not significantly affect the outcome, unless
tporfpare very small (close to 1).coverage – A floating-point number between 0 and 1.0 indicating the coverage you’re expecting. A value of 0.95 will ensure 95% of the area under the probability density of the posterior is covered by the returned equal-tailed interval.
- Return type:
- Returns:
The decorated function.
- credible.bayesian.functors.make_array_functor(fun, lambda_=1.0, coverage=0.95)[source]¶
Decorate a function to operate across the library, with array inputs.
- Parameters:
fun – Function to be decorated.
lambda – The parameterisation of the Beta prior to consider. Use \(\lambda=1\) for a flat prior. Use \(\lambda=0.5\) for Jeffrey’s prior. Changes in this value do not significantly affect the outcome, unless
tporfpare very small (close to 1).coverage – A floating-point number between 0 and 1.0 indicating the coverage you’re expecting. A value of 0.95 will ensure 95% of the area under the probability density of the posterior is covered by the returned equal-tailed interval.
- Return type:
Callable[[Iterable[int],Iterable[int]],tuple[ndarray[tuple[int,...],dtype[float64]],ndarray[tuple[int,...],dtype[float64]],ndarray[tuple[int,...],dtype[float64]]]]- Returns:
The decorated function.
- credible.bayesian.functors.bayesian_flat_array(s, f)¶