bayesplain.core.regression.LineFit

class bayesplain.core.regression.LineFit(n, slope, intercept, residual_sd, x_mean, sxx, r_squared)[source]

The sufficient statistics of a least-squares line.

Variables:
n : int

Number of complete pairs.

intercept : slope,

Least-squares estimates.

residual_sd : float

\(s\), with n - 2 degrees of freedom.

x_mean : float

Mean of the predictor.

sxx : float

Sum of squared deviations of the predictor.

r_squared : float

Share of the variance in y the line accounts for.

Methods

at(x0)

Fitted value of the line at x0.

at(x0)[source]

Fitted value of the line at x0.

intercept[source]
n[source]
r_squared[source]
residual_sd[source]
slope[source]
property slope_se[source]

Standard error of the slope.

sxx[source]
property t[source]

The slope’s t statistic.

x_mean[source]