Teaching Machines to Predict

Supervised learning: learn from labeled examples, then predict new outcomes.

The prediction workflow

  1. Collect past data (hours studied, exam scores).
  2. Train a model to map hours → score.
  3. Predict score for a new student who studied N hours.

Regression predicts numbers. Classification predicts categories (spam/ham).

Prediction Simulator

Study Hours: 5
↓
Model (learned rule)
↓
Predicted Marks: 72
score ≈ 25 + 7 × hours
A model is just a learned function. Training finds the best function; prediction applies it to new inputs.