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": "ToothGrowth",
  "alpha": 0.05,
  "n": 60,
  "p": 2,
  "df_residuals": 57,
  "mse": 17.93956203007519,
  "train": {
    "predicted": [
      10.454285714285712,
      10.454285714285712,
      10.454285714285712,
      10.454285714285712,
      10.454285714285712,
      10.454285714285712,
      10.454285714285712,
      10.454285714285712,
      10.454285714285712,
      10.454285714285712,
      15.336071428571424,
      15.336071428571424,
      15.336071428571424,
      15.336071428571424,
      15.336071428571424,
      15.336071428571424,
      15.336071428571424,
      15.336071428571424,
      15.336071428571424,
      15.336071428571424,
      25.099642857142847,
      25.099642857142847,
      25.099642857142847,
      25.099642857142847,
      25.099642857142847,
      25.099642857142847,
      25.099642857142847,
      25.099642857142847,
      25.099642857142847,
      25.099642857142847,
      14.15428571428571,
      14.15428571428571,
      14.15428571428571,
      14.15428571428571,
      14.15428571428571,
      14.15428571428571,
      14.15428571428571,
      14.15428571428571,
      14.15428571428571,
      14.15428571428571,
      19.03607142857142,
      19.03607142857142,
      19.03607142857142,
      19.03607142857142,
      19.03607142857142,
      19.03607142857142,
      19.03607142857142,
      19.03607142857142,
      19.03607142857142,
      19.03607142857142,
      28.799642857142846,
      28.799642857142846,
      28.799642857142846,
      28.799642857142846,
      28.799642857142846,
      28.799642857142846,
      28.799642857142846,
      28.799642857142846,
      28.799642857142846,
      28.799642857142846
    ],
    "lower": [
      1.7535206687318254,
      1.7535206687318254,
      1.7535206687318254,
      1.7535206687318254,
      1.7535206687318254,
      1.7535206687318254,
      1.7535206687318254,
      1.7535206687318254,
      1.7535206687318254,
      1.7535206687318254,
      6.709440921242333,
      6.709440921242333,
      6.709440921242333,
      6.709440921242333,
      6.709440921242333,
      6.709440921242333,
      6.709440921242333,
      6.709440921242333,
      6.709440921242333,
      6.709440921242333,
      16.354698748762097,
      16.354698748762097,
      16.354698748762097,
      16.354698748762097,
      16.354698748762097,
      16.354698748762097,
      16.354698748762097,
      16.354698748762097,
      16.354698748762097,
      16.354698748762097,
      5.453520668731823,
      5.453520668731823,
      5.453520668731823,
      5.453520668731823,
      5.453520668731823,
      5.453520668731823,
      5.453520668731823,
      5.453520668731823,
      5.453520668731823,
      5.453520668731823,
      10.40944092124233,
      10.40944092124233,
      10.40944092124233,
      10.40944092124233,
      10.40944092124233,
      10.40944092124233,
      10.40944092124233,
      10.40944092124233,
      10.40944092124233,
      10.40944092124233,
      20.0546987487621,
      20.0546987487621,
      20.0546987487621,
      20.0546987487621,
      20.0546987487621,
      20.0546987487621,
      20.0546987487621,
      20.0546987487621,
      20.0546987487621,
      20.0546987487621
    ],
    "upper": [
      19.155050759839597,
      19.155050759839597,
      19.155050759839597,
      19.155050759839597,
      19.155050759839597,
      19.155050759839597,
      19.155050759839597,
      19.155050759839597,
      19.155050759839597,
      19.155050759839597,
      23.962701935900515,
      23.962701935900515,
      23.962701935900515,
      23.962701935900515,
      23.962701935900515,
      23.962701935900515,
      23.962701935900515,
      23.962701935900515,
      23.962701935900515,
      23.962701935900515,
      33.8445869655236,
      33.8445869655236,
      33.8445869655236,
      33.8445869655236,
      33.8445869655236,
      33.8445869655236,
      33.8445869655236,
      33.8445869655236,
      33.8445869655236,
      33.8445869655236,
      22.855050759839596,
      22.855050759839596,
      22.855050759839596,
      22.855050759839596,
      22.855050759839596,
      22.855050759839596,
      22.855050759839596,
      22.855050759839596,
      22.855050759839596,
      22.855050759839596,
      27.662701935900515,
      27.662701935900515,
      27.662701935900515,
      27.662701935900515,
      27.662701935900515,
      27.662701935900515,
      27.662701935900515,
      27.662701935900515,
      27.662701935900515,
      27.662701935900515,
      37.54458696552359,
      37.54458696552359,
      37.54458696552359,
      37.54458696552359,
      37.54458696552359,
      37.54458696552359,
      37.54458696552359,
      37.54458696552359,
      37.54458696552359,
      37.54458696552359
    ],
    "se_pred": [
      4.345026280071008,
      4.345026280071008,
      4.345026280071008,
      4.345026280071008,
      4.345026280071008,
      4.345026280071008,
      4.345026280071008,
      4.345026280071008,
      4.345026280071008,
      4.345026280071008,
      4.308004648621224,
      4.308004648621224,
      4.308004648621224,
      4.308004648621224,
      4.308004648621224,
      4.308004648621224,
      4.308004648621224,
      4.308004648621224,
      4.308004648621224,
      4.308004648621224,
      4.367088614590627,
      4.367088614590627,
      4.367088614590627,
      4.367088614590627,
      4.367088614590627,
      4.367088614590627,
      4.367088614590627,
      4.367088614590627,
      4.367088614590627,
      4.367088614590627,
      4.345026280071008,
      4.345026280071008,
      4.345026280071008,
      4.345026280071008,
      4.345026280071008,
      4.345026280071008,
      4.345026280071008,
      4.345026280071008,
      4.345026280071008,
      4.345026280071008,
      4.308004648621224,
      4.308004648621224,
      4.308004648621224,
      4.308004648621224,
      4.308004648621224,
      4.308004648621224,
      4.308004648621224,
      4.308004648621224,
      4.308004648621224,
      4.308004648621224,
      4.367088614590627,
      4.367088614590627,
      4.367088614590627,
      4.367088614590627,
      4.367088614590627,
      4.367088614590627,
      4.367088614590627,
      4.367088614590627,
      4.367088614590627,
      4.367088614590627
    ],
    "leverage": [
      0.05238095238095221,
      0.05238095238095239,
      0.0523809523809524,
      0.05238095238095239,
      0.05238095238095239,
      0.05238095238095239,
      0.05238095238095239,
      0.05238095238095239,
      0.05238095238095239,
      0.05238095238095239,
      0.03452380952380952,
      0.03452380952380952,
      0.03452380952380952,
      0.03452380952380952,
      0.03452380952380952,
      0.03452380952380952,
      0.03452380952380952,
      0.03452380952380952,
      0.03452380952380952,
      0.03452380952380952,
      0.06309523809523807,
      0.06309523809523807,
      0.06309523809523807,
      0.06309523809523807,
      0.06309523809523807,
      0.06309523809523807,
      0.06309523809523807,
      0.06309523809523807,
      0.06309523809523807,
      0.06309523809523807,
      0.0523809523809524,
      0.0523809523809524,
      0.0523809523809524,
      0.0523809523809524,
      0.0523809523809524,
      0.0523809523809524,
      0.0523809523809524,
      0.0523809523809524,
      0.0523809523809524,
      0.0523809523809524,
      0.034523809523809526,
      0.034523809523809526,
      0.034523809523809526,
      0.034523809523809526,
      0.034523809523809526,
      0.034523809523809526,
      0.034523809523809526,
      0.034523809523809526,
      0.034523809523809526,
      0.034523809523809526,
      0.06309523809523807,
      0.06309523809523807,
      0.06309523809523807,
      0.06309523809523807,
      0.06309523809523807,
      0.06309523809523807,
      0.06309523809523807,
      0.06309523809523807,
      0.06309523809523807,
      0.06309523809523807
    ]
  },
  "extrapolation": {
    "new_x": {
      "supp": [
        1.1,
        1.5,
        2.0
      ],
      "dose": [
        2.15,
        2.75,
        3.5
      ]
    },
    "predicted": [
      30.63417857142856,
      37.97232142857141,
      47.14499999999998
    ],
    "lower": [
      21.811385700635583,
      28.717126103536117,
      37.10959348668997
    ],
    "upper": [
      39.45697144222154,
      47.22751675360671,
      57.18040651331
    ],
    "se_pred": [
      4.405965071635629,
      4.621900109234439,
      5.011525400724341
    ],
    "leverage": [
      0.08210714285714289,
      0.19077380952380954,
      0.4
    ]
  }
}