Laboratory Formula

Linear Regression Formula

Models a straight-line relationship between two variables.

Calculate with Linear Regression calculator →

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

  1. Identify the known values from the problem statement.
  2. Convert all values into compatible units.
  3. Substitute the values into the equation and calculate the result.
  4. 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 →

Arithmetic Mean

x̄ = Σx ÷ n

Calculates the average of a set of observations.

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 →

More Laboratory Formulas

Percent Error

% error = |experimental − accepted| ÷ |accepted| × 100

View formula →

Percent Difference

% difference = |A − B| ÷ ((|A| + |B|) ÷ 2) × 100

View formula →

Arithmetic Mean

x̄ = Σx ÷ n

View formula →

Sample Standard Deviation

s = √(Σ(xᵢ − x̄)² ÷ (n − 1))

View formula →

Related Calculators

Related Guides

Open Linear Regression Calculator →