43 exam-style questions on Machine learning fundamentals — topic A4.1 of Machine learning in the IB Computer Science syllabus — with answers and explanations. Samples below; the full set is free with an account.
A dataset is divided into three parts before a model is built. What is the third part, which is not looked at until the very end, used for?
Answer: To estimate performance on data the model has never influenced
The first part trains the model and the second is used to choose between settings, so both have influenced the finished model and neither can give an honest estimate of its performance. Only a part that was never used for any decision provides that estimate, which is why looking at it repeatedly and adjusting the model destroys its purpose.
A model is built to predict which subscribers will cancel. One of its features is the date on which the subscriber opened the cancellation form. The model scores 99 % on data held back from training but is useless in service. Identify the reason.
Answer: The feature is only known once the outcome has happened, so it cannot be available when a prediction is needed.
A feature that only exists after the event being predicted leaks the answer into the training data. The high score is produced by reading the outcome, not by anticipating it, and in service the field is still empty.
Two systems sort incoming photographs into categories. Identify the single observation that shows that a system is rule-based rather than machine-learned.
Answer: Its behaviour changes only when a developer edits the program, never when further labelled photographs are supplied.
A rule-based program holds the decision explicitly in code, so only an edit changes it. A learned system changes its behaviour when it is given more labelled examples, without anyone rewriting a rule.
A team doubles the number of measurements recorded about each customer before a model is built. State what this decision costs, given that the number of customers stays the same.
Answer: The model gains more ways to fit chance patterns in the same examples, so more examples are needed to tell a real pattern from a coincidence.
More features give the model more freedom, and freedom is only safe when there are enough examples to constrain it. With the sample size unchanged, the risk of fitting noise instead of the pattern rises.
A team collects ten times as many training examples from the same source as before, and the model's error on a new population is unchanged. Identify the most likely reason.
Answer: The extra examples repeat the same bias in what was sampled, so the new population is still not represented.
Enlarging a sample reduces random variation, not a systematic gap between who was sampled and who the model is used on. That gap closes only when the missing population is sampled.
___ occurs when a model is too simple to capture the pattern in the data, so it performs poorly on the training data as well as on new data. (one word)
Answer: underfitting
The tell-tale sign is that both scores are weak at the same time, which separates it from overfitting, where only the unseen score collapses. The cure is a more expressive model or better features, not more training rounds.
That was 6 of 43 Machine learning fundamentals questions.
Practise all 43 freeOutlineAO1 · 1–2 marks
A brief account or summary: the main points in two or three sentences, no evaluation.
DistinguishAO2 · 2–4 marks
Make the difference clear for BOTH terms — a definition of one of them is only half an answer.
DescribeAO1 · 1–2 marks
Give a detailed account of what it is or how it happens — steps, features, pattern — without saying why.
43 Machine learning fundamentals questions — free with an account. Spaced repetition, streaks and full exam simulations included.
Practise them freeThis platform is independently developed and is not endorsed by, affiliated with, or sponsored by the International Baccalaureate Organization. “International Baccalaureate” and “IB” are registered trademarks of the IBO.