AIExplainer
Machine Learning Intermediate 2 min read

What is linear regression?

A statistical method to model the relationship between a dependent variable and one or more independent variables

Linear regression is a way to analyze the relationship between variables. It helps to understand how changes in one variable affect another variable. The goal is to create a line that best predicts the value of the dependent variable based on the values of the independent variables.

Imagine trying to predict how much ice cream you'll sell at a store based on the outside temperature. You can draw a line on a graph to show how the temperature affects ice cream sales. Linear regression is like finding the best line to make that prediction.

A company uses linear regression to analyze the relationship between the amount spent on advertising and the resulting sales. They find that for every dollar spent on advertising, sales increase by a certain amount.

Linear regression is used in many fields, such as business, economics, and social sciences, to forecast outcomes, identify relationships, and make informed decisions.

One common misconception is that linear regression assumes a perfect linear relationship between variables, but in reality, it can handle some non-linear relationships and outliers.

Linear regression has its roots in the 19th century, when mathematicians like Carl Friedrich Gauss and Pierre-Simon Laplace developed the method. It has since become a fundamental tool in statistics and data analysis.

ordinary least squares linear least squares linear model

Three products for different needs — explore what’s relevant to you.