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_simple_linear",
  "formula": "x ~ y",
  "n": 100,
  "k": 1,
  "df_residual": 98,
  "variable_names": [
    "Intercept",
    "y"
  ],
  "coefficients": [
    -0.5477298145816423,
    0.32834276868358614
  ],
  "std_errors": [
    0.06496257613112023,
    0.0034072335865154503
  ],
  "t_stats": [
    -8.43146696455058,
    96.36638062709976
  ],
  "p_values": [
    3.019411865760516e-13,
    6.75198848315718e-99
  ],
  "r_squared": 0.9895572256372697,
  "adj_r_squared": 0.989450666715201,
  "f_statistic": 9286.479315167073,
  "f_p_value": 6.751988483157012e-99,
  "mse": 0.09059302297084497,
  "std_error": 0.30098674882932136,
  "log_likelihood": -20.814814052072194,
  "aic": 45.62962810414439,
  "bic": 50.839968476120575,
  "conf_int_lower": [
    -0.6766459326748799,
    0.321581224521238
  ],
  "conf_int_upper": [
    -0.41881369648840466,
    0.3351043128459343
  ],
  "residuals": [
    -0.27204822302956067,
    -0.0620453470107768,
    -0.31859498599392544,
    -0.6044946856719902,
    -0.026023986159843804,
    -0.024517084499160346,
    -0.618405077061197,
    -0.3503513203127976,
    0.05729113546322029,
    -0.27349075881068563,
    0.05832704871052563,
    0.06059848945920976,
    -0.17025477713122905,
    0.5389158101483884,
    0.4785806665469621,
    0.09835170613328215,
    0.2477967285636562,
    -0.18642759261350528,
    0.21640867792835183,
    0.383497538776975,
    -0.559945051128818,
    -0.003065568500434601,
    -0.09785768947868068,
    0.3936327646691342,
    0.10608342384310676,
    -0.10756904504779019,
    0.30828429543307045,
    -0.19148155772924325,
    0.13060383254783803,
    0.030676287854342732,
    0.13397906175224783,
    -0.6702568083981393,
    -0.05613065246616644,
    0.2882416585922103,
    -0.32761445777651144,
    0.3448296925094132,
    -0.12309205039481164,
    0.5904426071655542,
    0.3846116699246913,
    -0.1146142856111676,
    -0.29093419151731315,
    -0.10321927365367767,
    -0.007467168192254903,
    0.05493806796364087,
    0.4430471430879068,
    0.19545307193436656,
    0.11185713326725111,
    -0.38497642242825947,
    -0.1491902720837066,
    0.544028086713765,
    -0.13975173467732205,
    0.0946101675607185,
    0.1919459215192303,
    -0.2296437161420659,
    -0.3658131753356253,
    -0.33155873802033486,
    0.2512836521310655,
    0.0787725869446847,
    -0.13001072056609875,
    -0.34004366403246067,
    0.13911521223675294,
    0.04425389104764754,
    0.3480634893936152,
    0.37908448812339124,
    -0.2789559925786147,
    -0.4559683280891411,
    0.014499572902344049,
    -0.33713490763141074,
    -0.12486041887424193,
    0.20721285352325136,
    -0.12175689422087821,
    -0.506586152770093,
    0.011692544990372866,
    -0.5122978135170273,
    0.863128269476352,
    -0.26539954280217337,
    -0.022602782000643806,
    0.10566768701727725,
    -0.02112590939754444,
    0.6631192507142689,
    0.08415533851740786,
    -0.10371537548089016,
    -0.4702035751723148,
    0.18673481801141634,
    0.2835398599722243,
    0.1843374211504507,
    -0.27946424921359814,
    -0.08532934066383824,
    0.19806893325097796,
    -0.14288935653772405,
    -0.004724125486013975,
    -0.2893846999010119,
    0.2606892270867185,
    0.1392729592049715,
    0.1619456317391812,
    0.515246597513979,
    -0.06100461188216677,
    -0.04797897877631563,
    0.037569957877250815,
    0.11778620557682729
  ],
  "vif": []
}