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
{
  "dataset": "longley",
  "alpha": 0.05,
  "n": 16,
  "p": 6,
  "df_residuals": 9,
  "mse": 1.4271113668658895,
  "train": {
    "predicted": [
      83.60081557540398,
      86.94972678449467,
      88.09677127976262,
      90.73064861508993,
      96.53551391486369,
      97.83066549298648,
      98.12232410031723,
      99.87775705678034,
      103.20861213165152,
      105.08598261423325,
      107.33368709033216,
      109.57250942077154,
      112.98358207068019,
      113.92897848668744,
      115.50214310348673,
      117.54028226419592
    ],
    "lower": [
      80.31110098732093,
      83.7654319773935,
      84.94083594755762,
      87.47045859122322,
      92.98986048267372,
      94.589755214578,
      94.85281544406867,
      96.56391071123434,
      100.3191217272025,
      101.71048833151562,
      104.28616979373922,
      106.41214470155757,
      109.79544425968004,
      110.93011026294752,
      112.18179724608899,
      114.00868752366941
    ],
    "upper": [
      86.89053016348704,
      90.13402159159584,
      91.25270661196762,
      93.99083863895665,
      100.08116734705365,
      101.07157577139496,
      101.39183275656579,
      103.19160340232634,
      106.09810253610054,
      108.46147689695087,
      110.3812043869251,
      112.73287413998551,
      116.17171988168033,
      116.92784671042736,
      118.82248896088447,
      121.07187700472244
    ],
    "se_pred": [
      1.4542378483460197,
      1.4076364097489844,
      1.395099937075078,
      1.4411863424963653,
      1.5673771361585387,
      1.432663614838288,
      1.445305700253013,
      1.4649054357270521,
      1.2773163788419029,
      1.4921572749609209,
      1.3471730982879957,
      1.397057974079544,
      1.409335231130313,
      1.3256674892662519,
      1.467778583296521,
      1.5611624082985054
    ],
    "leverage": [
      0.4818799490094712,
      0.3884272160220368,
      0.36380655330439104,
      0.4554001334594062,
      0.7214291357987648,
      0.438237464108429,
      0.46373199435118373,
      0.5037004016970501,
      0.14324443735659265,
      0.5601678922287192,
      0.2717124948255198,
      0.3676374726280587,
      0.3917805153967251,
      0.23143458380332316,
      0.5096046598768318,
      0.7078050961340452
    ]
  },
  "extrapolation": {
    "new_x": {
      "GNP": [
        586.9545,
        715.1965,
        875.499
      ],
      "Unemployed": [
        509.96000000000004,
        627.4000000000001,
        774.2
      ],
      "Armed Forces": [
        380.78,
        466.29999999999995,
        573.1999999999999
      ],
      "Population": [
        132.32829999999998,
        141.3175,
        152.55399999999997
      ],
      "Year": [
        1963.5,
        1969.5,
        1977.0
      ],
      "Employed": [
        71.589,
        75.741,
        80.93100000000001
      ]
    },
    "predicted": [
      125.27814839122084,
      141.14546339165372,
      160.97960714219516
    ],
    "lower": [
      116.07487768864621,
      127.57725826104488,
      141.83728376589738
    ],
    "upper": [
      134.48141909379547,
      154.71366852226257,
      180.12193051849295
    ],
    "se_pred": [
      4.068360371638465,
      5.997905511047061,
      8.461977524324983
    ],
    "leverage": [
      10.597942878044273,
      24.20817320546882,
      49.17482537430461
    ]
  }
}