Linear regression

Can we predict something with a straight line?

Linear regression

Can we predict something with a straight line?

Imagine you're trying to guess how many apples you'll sell based on the temperature outside. You notice that on warmer days, you sell more apples.

You can guess the number of apples sold by drawing a straight line through your sales data. This line helps you predict sales on days with different temperatures.

Example

If you sold 10 apples on 70°F and 20 apples on 80°F, drawing a straight line through these points helps guess sales at 75°F.

Remember this

Drawing a straight line through your data helps predict future outcomes by finding a simple relationship between two things.

Related concepts

Swipe through more Machine Learning concepts

Open Pocket Polymath