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": "wls",
  "method": "statsmodels",
  "dataset": "synthetic_small",
  "formula": "x ~ y",
  "n": 15,
  "k": 1,
  "df_residual": 13,
  "df_model": 1,
  "variable_names": [
    "Intercept",
    "y"
  ],
  "coefficients": [
    -0.8298342415358086,
    0.6178610693096358
  ],
  "std_errors": [
    0.16853276072956203,
    0.016552115166656993
  ],
  "t_stats": [
    -4.923874966169999,
    37.328224404471946
  ],
  "p_values": [
    0.0002780371769779736,
    1.307082746331089e-14
  ],
  "r_squared": 0.990756517450857,
  "adj_r_squared": 0.9900454803316922,
  "f_statistic": 1393.3963371906157,
  "f_p_value": 1.3070827463310823e-14,
  "mse": 0.06626296189145184,
  "rmse": 0.25741593169703353,
  "mae": 0.20790136501552556,
  "residual_std_error": 0.25741593169703353,
  "log_likelihood": 0.14510969469454316,
  "aic": 3.7097806106109137,
  "bic": 5.125881012815334,
  "conf_int_lower": [
    -1.1939271354030976,
    0.5821023985054277
  ],
  "conf_int_upper": [
    -0.46574134766851966,
    0.6536197401138439
  ],
  "fitted_values": [
    7.813778049657696,
    4.589404453299052,
    4.610767223388031,
    1.3875204845393996,
    1.082929714089579,
    7.265858698507811,
    5.289282361092216,
    4.206457028123497,
    7.628045988145486,
    7.416838813170337,
    1.872034443389599,
    5.830566844182318,
    0.9114163275183362,
    7.642677725638297,
    6.722126706264774
  ],
  "residuals": [
    0.21265504829940873,
    -0.007535585920125598,
    0.21892149746552114,
    -0.05272076037996176,
    -0.2769145765183325,
    0.01353437122984058,
    -0.32467083753921777,
    0.16204999802829967,
    -0.33296370162151856,
    0.2382901767407608,
    -0.2829527666960634,
    0.27168465059409463,
    0.44212449525851905,
    -0.12892686534784037,
    -0.15257514359337865
  ],
  "weights": [
    1.0,
    1.0,
    1.0,
    1.0,
    1.0,
    1.0,
    1.0,
    1.0,
    1.0,
    1.0,
    1.0,
    1.0,
    1.0,
    1.0,
    1.0
  ]
}