๐Ÿงช The AI Labโ† All labs
Class 7 ยท AI Domains

๐Ÿ“ˆ Regression โ€” predicting a number

Classification sorts things into groups. Regression is different โ€” it predicts an actual number! ๐Ÿ“š How many marks? ๐Ÿ  What price? The AI looks at past data, learns how changing one thing changes the number, draws a straight trend line, and uses it to predict. Fit the line, then make a prediction!

Pick an example
โœ๏ธ Move the line to fit the dots
How close? ๐ŸŽฏ
0%
๐Ÿ”ฎ Now predict a NEW number
๐Ÿค– In a real AI โ€” this is regression A regression model looks at lots of past examples and learns the best trend line all by itself (it nudges the line until the gaps to the dots are as tiny as possible). Then it predicts a number for something brand-new: a house's price from its size, your next test marks from study time, tomorrow's temperature, and more. Real models use many clues at once and can bend the line โ€” but the idea is exactly this: the aim is to predict a numerical value.

Practice ๐ŸŽฏ

โ† Back to all labs