bayesplain.frequentist.one_mean

bayesplain.frequentist.one_mean(x, mu0=0.0, level=0.95)[source]

One-sample t-test and its confidence interval.

Parameters:
x : array_like

Observations.

mu0 : float, default 0.0

Null value for the mean.

level : float, default 0.95

Confidence level.

Returns:

The conventional result.

Return type:

FrequentistTwin

Notes

This interval will coincide, digit for digit, with the equal-tailed credible interval from the reference-prior posterior. That is not a coincidence to explain away: the arithmetic is the same, and only the licensed interpretation differs.