linreg-core 0.8.1

Lightweight regression library (OLS, Ridge, Lasso, Elastic Net, WLS, LOESS, Polynomial) with 14 diagnostic tests, cross validation, and prediction intervals. Pure Rust - no external math dependencies. WASM, Python, FFI, and Excel XLL bindings.
Documentation
{
  "test": "ols",
  "method": "statsmodels",
  "dataset": "synthetic_nonlinear",
  "formula": "x ~ y",
  "n": 100,
  "k": 1,
  "df_residual": 98,
  "variable_names": [
    "Intercept",
    "y"
  ],
  "coefficients": [
    -2.1867547487264636,
    0.5969565979968713
  ],
  "std_errors": [
    0.2534941854914555,
    0.047857726506936135
  ],
  "t_stats": [
    -8.6264493384215,
    12.473567834659946
  ],
  "p_values": [
    1.1480274749960393e-13,
    5.973272584624479e-22
  ],
  "r_squared": 0.6135492694484908,
  "adj_r_squared": 0.6096058946469447,
  "f_statistic": 155.5898945258632,
  "f_p_value": 5.973272584624479e-22,
  "mse": 3.352532449125818,
  "std_error": 1.8309922034585013,
  "log_likelihood": -201.36951871508495,
  "aic": 406.7390374301699,
  "bic": 411.9493778021461,
  "conf_int_lower": [
    -2.6898057097413934,
    0.5019844972970886
  ],
  "conf_int_upper": [
    -1.683703787711534,
    0.691928698696654
  ],
  "residuals": [
    -4.911045765000404,
    -4.691694744334233,
    -4.74674483839831,
    -4.100188096317257,
    -4.074089443402149,
    -3.702258027370249,
    -3.5090416295460862,
    -3.3485947735498884,
    -3.3129791354069353,
    -2.9132364963065305,
    -3.24405853172527,
    -2.41898618583773,
    -2.450648856873868,
    -2.199249208151974,
    -2.5901187465507665,
    -2.048276910201617,
    -2.132629567137599,
    -1.2199300836902083,
    -1.5853920421349268,
    -1.6172189991927617,
    -1.2258981406892873,
    -1.3726700318682115,
    -0.7572114550017672,
    -1.1928884915102658,
    -1.3226725629708915,
    -0.3961288851375362,
    -0.2430369100975116,
    -0.6850493582315091,
    -0.6016039891494946,
    0.14338157592686818,
    0.2265365737807541,
    0.2953727776237325,
    0.7190472846330545,
    0.6947929860851907,
    0.8194924130473098,
    0.8444775021349342,
    0.7175332196011803,
    0.7254919975208192,
    0.4171742784631458,
    1.2588625962884548,
    0.7443327940933352,
    1.1756043209220803,
    1.1964443006387069,
    1.04655418118327,
    1.6457195497869588,
    1.2554541517784952,
    1.3752420987551064,
    1.3296133000835928,
    1.4383091323145496,
    0.8361318061382427,
    1.8000486158798799,
    1.8052451294175031,
    1.866150513807582,
    1.8757025196211128,
    1.926244480632,
    1.4035417610826544,
    1.3532323753973623,
    1.9627076608543632,
    2.052268101027471,
    1.6709419960730956,
    1.9806427250388539,
    1.6274120750080627,
    1.7526182630921427,
    2.2588065367646353,
    1.3340420584292165,
    1.2458027691388616,
    1.946977448385339,
    1.8583794013133756,
    1.632265396989275,
    1.5890385687524515,
    1.4599276747447587,
    1.020454140838607,
    1.6335847394148115,
    1.7757030319064144,
    1.902129818126753,
    1.6579495856837312,
    1.3953659192813754,
    0.7918826008921735,
    1.4204013988002715,
    1.1338418274425806,
    1.136617105121207,
    0.704428713279662,
    0.228672449553887,
    1.0614739122684504,
    0.9655678550147213,
    0.42062667568434353,
    0.43790699822112344,
    -0.00426894260352384,
    0.27448507241076525,
    0.4542032377699634,
    0.06519761486231523,
    -0.19855023985882525,
    -0.22529841530063965,
    -0.2482430513045113,
    -0.5352969435918151,
    -0.6896664542160291,
    -0.8805954220484207,
    -0.7927251067639149,
    -0.6839209515522189,
    -0.9159501757977049
  ],
  "vif": []
}