AdvancedTopic 94 of 104Software & Computing

Supervised and unsupervised learning

Learning from labelled data or discovering structure without labels.

In depth

Supervised learning predicts labels from examples (regression, classification) with algorithms like linear/logistic regression, trees, SVM, boosting. Unsupervised learning finds structure without labels: clustering (k-means), dimensionality reduction (PCA), anomaly detection. Metrics: accuracy, precision/recall, F1, RMSE.

Key points

  • Cross-validation
  • Confusion matrix
  • Class imbalance
Example

Clustering customers into segments is unsupervised learning.

Why it matters

Supervised and unsupervised learning solve different problems, so knowing which one fits your data determines the whole approach.

Where this is used

  • Predicting a yes or no outcome from labelled past records.
  • Grouping customers by behaviour when no labels exist.
  • Finding anomalies in sensor data with an unsupervised method.

Frequently asked questions

What is Supervised and unsupervised learning?

Learning from labelled data or discovering structure without labels.

Why is it important to understand supervised and unsupervised learning?

Supervised and unsupervised learning solve different problems, so knowing which one fits your data determines the whole approach.

What is supervised learning?

Learning from examples that include the correct answer, such as labelled images or known outcomes.

What is clustering?

Grouping data points by similarity without labels, which can reveal structure that was not known before.

How is Supervised and unsupervised learning used in practice?

Typical applications include predicting a yes or no outcome from labelled past records, grouping customers by behaviour when no labels exist and finding anomalies in sensor data with an unsupervised method.

What should I learn before Supervised and unsupervised learning?

Study "Machine learning basics" first (topic 93 of 104 in Software & Computing). It covers the groundwork this topic builds on.

What are the key points of Supervised and unsupervised learning?

Cross-validation. Confusion matrix. Class imbalance.

Can you give an example of Supervised and unsupervised learning?

Clustering customers into segments is unsupervised learning.

What comes after Supervised and unsupervised learning?

The next topic is "Neural networks", which builds directly on this one.

How difficult is Supervised and unsupervised learning?

It is classed as Advanced in Software & Computing (topic 94 of 104). It is an advanced topic. It assumes you are comfortable with the intermediate topics in Software & Computing.

Learning path

Want to practise? Open the interactive course for quick checks, quizzes, simulations and progress tracking.

Related topics