Supervised, unsupervised and reinforcement learning
Learning from labels, from structure alone, or from rewards.
Supervised learning uses labelled examples and learns to predict from . Regression and classification are supervised. Examples: spam detection, price prediction, diagnosing disease from an X-ray.
Unsupervised learning uses only inputs , with no labels, and looks for structure: groups (clustering), lower-dimensional summaries (PCA), unusual points (anomaly detection) or a model of the data distribution itself (generative models).
Reinforcement learning (RL) has an agent that acts in an environment and receives rewards. There are no correct answers to copy — only a reward signal, often delayed. The agent learns a policy that maximises total reward. Examples: game-playing agents, robot control, recommendation that adapts to user feedback.
Formula to remember
SIR model
Flow between Susceptible, Infected and Recovered compartments.
- transmission rate
- recovery rate
- population size