Skip to main content

Module linear

Module linear 

Source
Expand description

Multiple linear regression (ISL ch 3) — ordinary least squares with full inference. Canonical implementation lives in [crate::solvers::statistics::regression::multiple]; this module is a thin learning-crate facade preserving LinearModel / fit names.

Structs§

LinearModel
A fitted OLS model with inferential output. When fit_intercept is true, coefficients[0] is the intercept and coefficients[1..] align with the predictor columns; the *_per_coef vectors are aligned the same way.

Functions§

fit
Fit OLS of y (length n) on a row-major n × p predictor matrix x.