Linear Regression
Linear regression is a statistical modeling technique that fits a straight line of best fit to paired coordinate datasets (X, Y). It is used to explore quantitative relationships, estimate correlations, and predict future outcomes.
- best fit line: Linear regression solves the equation y = mx + c that best fits paired datasets using least squares.
- slope and intercept: Slope (m) measures the rate of change in y per unit of x, while intercept (c) is the starting point at x = 0.
- r-squared yield: R² values measure the proportion of variation in the dependent variable explained by the independent variable.
Linear Regression Fit Formula
| Symbol | Meaning & Description |
|---|---|
| y | Dependent variable |
| m | Slope of the regression line |
| c | y-Intercept of the regression line |
Mean X = 3.0000. Mean Y = 4.2000.
Calculate deviations from mean to determine slope and intercept.
Equation: y = 0.8000x + 1.8000
Linear Regression Calculator Sandbox
Tweak variables below to see the formula calculate instantly.
Correlation vs. Causation: A high R² value or strong correlation does not mean changes in X cause changes in Y. Both variables could be influenced by a third lurking variable.
Linear Regression Calculator
Calculate slope, intercept, correlation, and R² for a paired dataset.