Numerical Computing
linreg-core
A Rust regression core that ships to the browser, Python, and Excel/VBA from one implementation. Published on crates.io, exposed through Wasm/PyO3/FFI, and validated against R and Python outputs.
How it works
Built to replace one-off spreadsheet and notebook regression code with a single tested numerical core. It implements ordinary, weighted, ridge, and lasso regression plus fit diagnostics: residual standard error, R², adjusted R², t-stats, F-stat, leverage, and Cook’s distance.
The same core runs browser-side through wasm-bindgen, in notebooks through PyO3, and in legacy Excel workflows through a small FFI dll callable from VBA. Outputs are checked against R and statsmodels coefficients and standard errors within numerical tolerance.
- Rust
- WebAssembly
- PyO3
- wasm-bindgen
- FFI
- VBA
- Python


