TaskEaser
Back to home

Math

Linear Regression

y = a + bx, R² by OLS

Runs locally in your browser

Parameters

Results

y = a + bx
y = 1.08 + 0.9771x
0.9934
r
0.9967
Predict at x=0
1.08

How it works

Fit a least-squares linear regression line y = a + bx to paired data.

Who it's for: Students and analysts exploring linear relationships between two variables.

Returns intercept a, slope b, and coefficient of determination R².

Uses ordinary least squares (OLS).

X and Y lists must have equal length.

How to use

  1. Enter matching X and Y value lists.
  2. Read a (intercept), b (slope), and R² — values near 1 indicate strong linear fit.