Use this regression calculator to calculate the line of best fit on your input data
Accepts csv, parquet, arrow, json and tsv
Open csv, parquet, arrow, json and tsv files straight from your desktop
Or
Share your graphs and data sets. Or embed them directly into web pages.
Open csv, parquet, arrow, json and tsv files directly from Drive, Gmail and Classroom by installing the Google Workspace App
Regression is used to determine how one dependent variable is related to one or more independent variables.
Dependant variables change as the independent variables change. Usually, the independent variable is shown on the horizontal x-axis and the dependent variable is shown on the vertical y-axis.
For example, you could use a regression analysis to determine the relationship between the age of a car and how far it has driven. You could use the regression fit to understand how mileage changes with car age, or predict how far the car will be driven in the next year.
Regression is a useful tool for understanding relationships between variables and forecasting.
If you understand the relationship between an independent and dependent variable then you can make changes to the independent variable to influence the dependent variable. If you understand how the independent variable will change with time, then you can use the regression fit to forecast the value of the dependent variable over time.
Linear regression fits a line of best fit to the input data points using a linear model.
Linear regression can be used to fit a straight line to the input data points using the regression line equation.
Where
A linear regression model fits the slope of the line, , and the intercept .
The linear regression calculator can be used to fit straight lines to input data.
Linear regression equation can be extended to fit polynomials (a quadratic function) to input data points.
The general form of the linear regression equation is:
Where and are all coefficients fit by the linear regression model.
The polynomial regression calculator can be used to fit polynomials to input data.
The exponential regression calculator can be used to fit an exponential function to input data points.
The exponential regression equation is:
Where:
The exponential regression calculator can be used to fit an exponential function to input data.