Module 1 · AI Foundations

Supervised vs Unsupervised vs Reinforcement Learning

Compare supervised, unsupervised, and reinforcement learning and learn when each machine learning approach is appropriate.

Core idea

The learning signal determines the approach

Supervised learning learns from examples that include expected answers. Unsupervised learning explores data without target labels to discover structure. Reinforcement learning improves a sequence of actions through rewards and penalties received from an environment.

Memory rule: supervised = answers provided, unsupervised = patterns discovered, reinforcement = actions improved through feedback.

Three-path diagram

How each learning type works

Supervised
Features + labelsLearn mappingPredict label or value
Examples: fraud classification, price prediction, demand forecasting.
Unsupervised
Features onlyDiscover structureClusters or representations
Examples: customer segmentation, anomaly exploration, topic grouping.
Reinforcement
State + actionEnvironmentReward + next state
Examples: robotics, game strategies, sequential resource decisions.

Labeled and unlabeled data

Labeled dataset

Transaction AFraud

Transaction BNot fraud

Transaction CFraud

The target teaches the model what output to predict.
Unlabeled dataset

Customer A?

Customer B?

Customer C?

The algorithm searches for useful similarity or structure.

Feedback loop

Reinforcement learning is sequential

The goal is usually to maximize cumulative reward over time—not merely obtain the largest immediate reward. Exploration tries unfamiliar actions; exploitation uses actions currently believed to work well.

Side-by-side comparison

QuestionSupervisedUnsupervisedReinforcement
Training signalKnown labels or valuesNo target labelsRewards and penalties
Typical goalPredict an outcomeDiscover structureChoose effective actions
Common outputClass or numberCluster or representationPolicy or strategy
Key challengeRepresentative labelsInterpreting discovered patternsReward design and safe exploration

Choose the right approach

Do historical examples contain the answer?Use supervised learning when the goal is to predict that label or value for new cases.
Do you need to explore unknown groups or structure?Use unsupervised learning when useful labels are absent and discovery is the goal.
Does an agent repeatedly act and receive consequences?Consider reinforcement learning when decisions affect later states and long-term reward.
Is the outcome an exact business rule?Traditional deterministic software may be more appropriate than any learning approach.

AWS Certified AI Practitioner

Exam signals

  • “Labeled historical examples” points toward supervised learning.
  • “Find natural customer groups” points toward unsupervised clustering.
  • “Agent, environment, actions, and rewards” points toward reinforcement learning.
  • Classification predicts categories; regression predicts numerical values.
  • Discovered clusters require interpretation; they are not automatically meaningful business segments.

Key takeaways

  • Supervised learning uses labeled data
  • Unsupervised learning discovers hidden patterns
  • Reinforcement learning optimizes actions through rewards
  • The business task determines the learning type

Check your understanding

  1. Can you explain this concept in two sentences without using jargon?
  2. Can you identify the input, process, output, and validation step in the example?
  3. Can you name one suitable use case and one case where another approach is better?
  4. Which risk or limitation should a responsible implementation address?

Research references

Public sources and further reading

This lesson is original educational writing informed by the public references below. Use the sources to explore definitions, technical details, and current AWS exam objectives.