Skip to content
AI Ready · aiready.sg
Menu

Part 2 · How AI Actually Works

Predicting Numbers: Regression

3 minawareLesson 18 of 33Self-check inside
Predicting Numbers: Regression · narrated video

You have seen the seven steps that build an AI system, from deciding the dish to serving it. Once a model has learned, what does it produce? Often the answer is a single number, like a price, a wait time, or a demand figure.

Why This Matters

Predicting a number is one of the most common jobs organisations hand to AI, and one of the easiest to get wrong when the number looks confident but the pattern behind it was never there. This lesson strengthens your Understanding AI foundation. By the end, you will be able to:

  • Explain what regression does and the kind of output it produces
  • Identify everyday tasks where regression applies
  • Describe why some numbers can be predicted and others cannot

What Regression Actually Does

Regression is AI predicting a number. It learns the relationship between inputs (the things you already know) and an outcome you want to estimate, from past examples where both were recorded. Give it the size, location, and age of many houses alongside their final sale prices, and it works out how those inputs move the price. Show it a new house, and it estimates a price. Add more useful inputs and the estimate usually sharpens.

This also tells you where regression works and where it does not. It works when a genuine, repeating relationship sits in the past data: larger homes cost more, so the pattern is learnable. It fails when no such pattern exists: no amount of data lets a model predict next week's lottery draw, because nothing in the past connects to the next one. That limit sits in the data, and no computer moves it. Events that leave no trace in history stay unpredictable, for any system, human or machine.

Regression: predicting a number: learn a pattern from the past, then apply it to a new case
  • What it does: estimates a number from inputs it has seen paired with real outcomes
  • Where it works: tasks with a stable pattern, like price, demand, delivery time
  • Where it fails: genuinely new events with no pattern in past data to learn from

Key Takeaway

A confident number is not the same as a correct one.

Check your understanding

Self-check only. Nothing is scored and nothing is recorded; open an answer to compare it with your own.

  1. Your company's operations team wants to use AI to predict how many customer service calls they will receive each Monday, so they can schedule the right number of staff. They have two years of daily call volume data along with variables like public holidays, weather, and recent product launches. Is this a regression problem, and why?

    • No, predicting call volumes is too complex for regression.
    • Yes, the output is a number (call count) and the inputs (holidays, weather, launches) have a meaningful relationship to that number.
    • Yes, but only after every unusual day is removed from the data, because regression needs perfectly uniform data.
    • No, call volumes are random, so there is no pattern for any system to learn.
    Show the answer

    Yes, the output is a number (call count) and the inputs (holidays, weather, launches) have a meaningful relationship to that number.

  2. A colleague says: 'AI predicted my HDB flat is worth $450,000, so that must be what I will get when I sell it.' Based on what you learned about regression, what is the best response?

    • The prediction is probably accurate. AI is very good at property valuations.
    • The prediction is useless. AI cannot value property.
    • The prediction is a useful estimate based on patterns in past transactions, but the actual sale price could differ, regression finds average patterns, not certainties.
    • The prediction would be accurate only if the model used at least ten input features.
    Show the answer

    The prediction is a useful estimate based on patterns in past transactions, but the actual sale price could differ, regression finds average patterns, not certainties.

Saved in this browser only. Carry progress between devices with the resume link on the course page.