bayesplain.frequentist.simple_regression

bayesplain.frequentist.simple_regression(x, y, level=0.95)[source]

t-test and confidence interval for a least-squares slope.

Parameters:
x : array_like

Predictor and outcome. Rows where either is missing are dropped.

y : array_like

Predictor and outcome. Rows where either is missing are dropped.

level : float, default 0.95

Confidence level.

Returns:

The conventional result on the slope.

Return type:

FrequentistTwin

Notes

As with a mean, this interval coincides with the equal-tailed credible interval under the reference prior. Same arithmetic, different sentence.