Linear Regression Calculator
How to Use?
- 1
Enter X and Y values as comma‑separated lists (e.g., 1,2,3 and 2,4,6).
- 2
Optionally, provide an X value to predict the corresponding Y.
- 3
The calculator will show the regression equation, slope, intercept, Pearson r, R², and predicted Y.
Worked Examples
Example: Linear fit for (1,2), (2,4), (3,6)
Given:inputs
xValuesInput:1,2,3
yValuesInput:2,4,6
predictX:4
Result:calculated
slope:2
intercept:0
equation:y = 2x + 0
predictedY:8
FAQs
1.What is linear regression?
+A statistical method to model the relationship between a dependent variable and one or more independent variables using a linear equation.
2.What does R² tell me?
+R² measures how well the regression line fits the data; higher values indicate a better fit.