A JavaScript library for linear least-squares curve fitting and regression analysis.
regression-js is a JavaScript library that performs curve fitting and regression analysis using linear least-squares methods. It allows developers to fit data to various mathematical models, such as linear, exponential, logarithmic, power, and polynomial curves, to analyze trends and make predictions. The library provides statistical metrics like R² to evaluate model accuracy and a prediction function for forecasting values.
JavaScript developers, data scientists, and analysts who need to perform simple regression analysis directly in the browser or Node.js without relying on heavy statistical packages. It's ideal for applications involving data visualization, scientific computing, or educational tools.
Developers choose regression-js for its lightweight, dependency-free design and straightforward API that covers common regression types. It offers a practical solution for quick data fitting with built-in statistical evaluation, making it easier to integrate regression capabilities into web or Node.js projects compared to more complex libraries.
Curve Fitting in JavaScript.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
With no external dependencies and easy npm installation, it integrates quickly into any JavaScript project without bloating the build.
Functions like regression.linear() provide straightforward methods for common regression types, making it accessible for quick data fitting.
Supports linear, exponential, logarithmic, power, and polynomial regressions, covering a broad range of practical curve-fitting needs.
Includes R² calculation for model fit assessment, allowing immediate evaluation without additional coding.
Lacks support for confidence intervals, residual analysis, or multivariate regression, restricting in-depth statistical exploration.
Null values are silently ignored, which can lead to inaccurate models if data isn't preprocessed externally for missing values.
As a general-purpose JavaScript library, it may not scale efficiently for large datasets or real-time processing compared to specialized numeric libraries.