Master the algorithms shaping tomorrow's intelligence

Machine Learning: Where Data Becomes Insight

From spam filters to medical diagnosis, machine learning powers the invisible decisions shaping modern life. This unit unpacks the mathematics, the mechanics, and the moral questions — preparing you to build, evaluate, and critique intelligent systems.

  • IBDP COMPUTER SCIENCE • TOPIC A4

This unit

Computer Science
Topic
1
Unit of Computer Science
5 / 8

Overview

A4 Machine learning

Topic A4 introduces the core paradigms of machine learning: supervised, unsupervised, and reinforcement learning. Students examine how algorithms generalise from training data, the architecture of neural networks, and the construction of decision trees. Practical considerations — bias, variance, overfitting, data quality, and ethical deployment — are woven throughout.

Assessment appears in Paper 1 (theory) through structured questions on algorithm behaviour, evaluation metrics, and societal impact. HL students encounter greater depth in network topology and optimisation. Internal Assessment options may incorporate ML techniques for the computational solution, rewarding rigorous design and reflection.

Key ideas

What A4 Machine learning covers

  1. 01

    Learning Paradigms

    Distinguish supervised, unsupervised, and reinforcement learning — and match each to real-world problem classes.

  2. 02

    Neural Network Fundamentals

    Trace forward propagation, activation functions, and backpropagation in feedforward networks.

  3. 03

    Decision Tree Construction

    Apply entropy and information gain to build interpretable classifiers from labelled datasets.

  4. 04

    Model Evaluation & Generalisation

    Use accuracy, precision, recall, F1-score, and ROC curves to diagnose overfitting and underfitting.

  5. 05

    Bias, Fairness & Ethics

    Interrogate how training data reflects societal bias and design mitigation strategies for responsible deployment.

  6. 06

    Data Pipeline Integrity

    Master train/validation/test splits, cross-validation, and feature scaling for reproducible experiments.

Outcomes

What you will learn

  • Select the right learning paradigm for a given problemIdentify whether a task calls for classification, regression, clustering, or reinforcement learning — and justify your choice.
  • Design and trace a simple neural networkCalculate outputs for a small feedforward network by hand; explain how weight updates reduce loss via gradient descent.
  • Construct a decision tree from raw dataCompute entropy and information gain at each split; prune to balance depth against generalisation.
  • Evaluate models with industry-standard metricsInterpret confusion matrices, plot ROC curves, and choose thresholds aligned with domain costs.
  • Audit a model for bias and fairness violationsApply demographic parity, equalised odds, and disparate impact tests; propose concrete remediation steps.
  • Document an ML workflow for Internal AssessmentStructure a reproducible pipeline — data sourcing, preprocessing, training, validation, and ethical reflection — meeting IB criteria.

FAQs

Common questions

Is Topic A4 examined differently for HL and SL students?

Both levels cover the same core concepts. HL students go deeper into network architectures, optimisation algorithms (e.g., Adam, RMSprop), and mathematical derivations of backpropagation. Paper 1 includes extension questions for HL only.

Can I use machine learning in my Internal Assessment?

Yes. Many high-scoring IAs incorporate ML — e.g., a classifier for medical images or a recommendation engine. The key is demonstrating algorithmic understanding, not just calling a library. Your write-up must explain design choices, evaluation, and limitations.

What programming background do I need before starting this topic?

Comfort with Python (lists, dictionaries, functions) and basic NumPy/pandas is expected. Familiarity with libraries like scikit-learn or TensorFlow helps, but the syllabus emphasises conceptual mastery over API fluency.

How much mathematics is required?

You need algebra, basic probability, and an intuitive grasp of gradients. The course does not require calculus proofs, but HL students should understand partial derivatives conceptually for backpropagation.

Ready to master A4 Machine learning?

From spam filters to medical diagnosis, machine learning powers the invisible decisions shaping modern life. This unit unpacks the mathematics, the mechanics, and the moral questions — preparing you to build, evaluate, and critique intelligent systems.