Regression model

Simple Linear Regression

Finding the relationship between two variables by drawing a straight line through the data points.

Simple Linear Regression is a statistical method that models the relationship between a single independent variable (predictor) and a dependent variable (outcome) by fitting a linear equation to observed data. The equation takes the form y = mx + b, where m is the slope and b is the y-intercept.

Formula

y = β₀ + β₁x + ε

How it works

  • Collects paired data points (x, y) from observations
  • Calculates the line of best fit using the Least Squares method
  • Minimizes the sum of squared differences between observed and predicted values
  • Produces coefficients (slope and intercept) that define the linear relationship
  • Uses the fitted line to make predictions for new x values

When to use it

  • When you have one independent variable and one dependent variable
  • When the relationship between variables appears linear
  • When you need to predict continuous outcomes
  • When you want to understand the strength and direction of a relationship
  • For initial exploratory analysis before trying complex models

Advantages

  • Simple to understand and interpret
  • Fast to train and make predictions
  • Works well when relationship is truly linear
  • Provides clear coefficient interpretations
  • Low computational requirements

Limitations

  • Cannot capture non-linear relationships
  • Sensitive to outliers
  • Assumes constant variance (homoscedasticity)
  • Limited to one predictor variable
  • May oversimplify complex relationships

Example uses

  • Predicting house prices based on square footage
  • Estimating sales based on advertising spend
  • Forecasting weight based on height
  • Calculating salary based on years of experience
  • Trend analysis in time series data

Need a model built on your data?

Tell us the decision you want to improve. We will tell you whether your data can support it and which approach fits.