Laboratory Formula
Linear Regression Formula
Models a straight-line relationship between two variables.
Formula Summary
Linear Regression
Models a straight-line relationship between two variables.
- Category
- Laboratory
- Equation
- y = mx + b
- Calculator
- Use Linear Regression Calculator →
Equation
y = mx + b
Variables
- m = slope
- b = y-intercept
- x = input
- y = predicted output
How to Use This Formula
- Identify the known values from the problem statement.
- Convert all values into compatible units.
- Substitute the values into the equation and calculate the result.
- Check that the final answer has the correct unit and meaning.
Explanation
Linear regression finds the best-fitting straight line that represents the relationship between two variables. It is commonly used to identify trends and make predictions from experimental data.
Worked Example
For a line with slope 2 and y-intercept 3, the predicted value at x = 5 is y = (2 × 5) + 3 = 13.
Common Mistakes
- Confusing slope with the y-intercept.
- Using unrelated variables in the regression model.
- Assuming correlation always proves causation.
Applications
- Analyzing experimental data trends.
- Predicting values from measured observations.
- Creating scientific models from datasets.
Related Formulas
Average Rate of Change
rate = (y₂ − y₁) ÷ (x₂ − x₁)
Calculates the average change in one variable per unit change in another.
Learn formula →Sample Standard Deviation
s = √(Σ(xᵢ − x̄)² ÷ (n − 1))
Measures the spread of sample observations around their mean.
Learn formula →Coefficient of Variation
CV = s ÷ x̄ × 100
Expresses variability relative to the mean as a percentage.
Learn formula →