What is Supervised Learning?

Real-World Applications

Input (X) Output (Y) Application
Email Spam or not spam Spam filtering
Audio clip Text transcript Speech recognition
English text Text in another language Machine translation
Ad + user info Will user click? Online advertising
Image + sensor data Position of other cars Self-driving cars
Photo of product Defect present? Visual inspection (manufacturing)

Online advertising is currently the most lucrative application, platforms predict which ads you'll click on, and each click generates revenue.

Example: Housing Price Prediction

Given data on house sizes (square feet) and their sale prices, you can train a model to predict prices for new houses.

The algorithm might fit:

Choosing the right function to fit is a key skill covered in ML courses.

Two Types of Supervised Learning

  1. Regression — predicting a continuous number from infinitely many possibilities (e.g., house prices: $150,000, $183,000, etc.)
  2. Classification — predicting a category from a discrete set of options

Classification

Classification is the second major type of supervised learning. Unlike regression, which predicts a number from infinite possibilities, classification predicts discrete categories from a limited set of outputs.

Example: Breast Cancer Detection