The prediction workflow
- Collect past data (hours studied, exam scores).
- Train a model to map hours → score.
- 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.