Textbook answers: 7-1 The Basics of Machine Learning
Suggested answers by the site team, the book has no answer key.
try 1
1What is the term for the technology that learns patterns and regularities from large amounts of data so that judgments and predictions can be made on new data?
Show answer
Machine learning.
Machine learning learns patterns from data to build a model that makes judgments and predictions on new data, instead of people writing every rule.
Note: Arabic edition: The Arabic question still uses the older definition ("a technology that learns patterns and regularities from large amounts of data"), while the Arabic lesson body revised it to "a field that uses algorithms which learn patterns from data to build a model that performs a specific task". The answer is the same in both editions.
2In machine learning, what is the term for the information in the input data that serves as a clue useful for prediction?
Show answer
A feature.
A feature is information in the input data that serves as a useful clue for prediction, such as the words, the sender's address and the text length in spam classification.
3What is the term for the representative method of unsupervised learning that groups similar items together?
Show answer
Clustering.
Clustering is the representative example of unsupervised learning: it splits unlabelled data into clusters of similar items using a similarity measure chosen by the designer.
4In reinforcement learning, what is the term for the numerical value that represents the evaluation given as a result of an action?
Show answer
The reward.
The reward is a numerical signal the agent receives from the environment after an action; it scores how good the action was and steers learning towards the goal.
try 2
(1)From the following options (A–D), choose the one that is NOT an appropriate situation in which machine learning is used.
A - Distinguishing the type of animal in a photograph.
B - Transcribing audio into text.
C - Calculating the sum of two integers.
D - Distinguishing whether an email is spam.
Show answer
C: Calculating the sum of two integers.
Adding two numbers has a simple, known rule a programmer writes directly, so there is nothing to learn from data. Recognising animals in photos, transcribing speech and spotting spam have rules too complex to write, and they are the book's examples of where machine learning is used.
(2)For each of purposes (a–c), choose the most appropriate learning method from the choices below (A–C). a Predict, from past purchase history data and whether or not a purchase was made, whether a new customer will buy the product. b Find groups of customers with similar purchase tendencies from customer purchase data. c Have a robot walk and learn movements that allow it to advance without falling through trial and error.
A - Unsupervised learning
B - Supervised learning
C - Reinforcement learning
Show answer
1 → B (supervised learning), 2 → A (unsupervised learning), 3 → C (reinforcement learning).
(1) Past data recording whether a purchase was made (labels), predicting for a new customer: supervised. (2) Looking for similar groups with no answers: unsupervised. (3) A robot learning to move by trial and error: reinforcement.
Note: Arabic edition: The Arabic edition numbers the purposes 1–3 with options أ–جـ; the English edition uses a–c and A–C. The answer is the same: a→B, b→A, c→C.
(3)From the following options (A–D), choose the one that most appropriately describes the difference between classification and clustering.
A - Classification divides data into a small number of groups, and clustering divides data into many groups.
B - Classification handles only numerical data, and clustering handles only text data.
C - Classification learns from data with correct answers (labels), and clustering learns from data without correct answers.
D - Classification is unsupervised learning, and clustering is supervised learning.
Show answer
C: Classification learns from data with correct answers (labels), and clustering learns from data without correct answers.
The essential difference is whether labels exist. A is wrong because the number of groups is not the difference, B is wrong because both can handle different kinds of data, and D reverses the truth: classification is supervised and clustering is unsupervised.
(4)From the following options (A–D), choose the one that is NOT an appropriate point of caution when using machine learning.
A - If the training data is biased, the model's judgments may also be biased.
B - The basis for a machine learning model's judgments may be hard to see, so for important judgments human checking is needed.
C - Machine learning is a panacea and can make more accurate judgments than humans on any problem.
D - It is important to use machine learning as a tool that supports human judgment.
Show answer
C: Machine learning is a panacea and can make more accurate judgments than humans on any problem.
The book stresses that machine learning is not a magic solution: its performance depends on data quality and bias, training and evaluation. A, B and D are valid cautions: bias, the black box, and using it to support human judgment.
exercise 1
1Cover the Point! section with a red plastic sheet and quiz yourself in your notebook in numerical order.
Show answer
Cover the Point! (key points) section, answer, then check: (1) What is machine learning? A field using algorithms that learn patterns from data to build a model that performs a task on new data. (2) How does it differ from conventional programming? There people supply the rules; in ML the computer finds them from data. (3) When is it used? When rules are hard to put into words, e.g. images, spam, speech-to-text. (4) The three types? Supervised (labels), unsupervised (no labels), reinforcement (rewards). (5) Classification and feature? Predicting the class of data; a feature is a useful clue for prediction. (6) Clustering? Splitting unlabelled data into clusters by a similarity measure; it doesn't prove natural groups exist. (7) Elements of reinforcement learning? State, action, reward; the aim is a policy that maximises total reward. (8) Limits? Bias and the black box, so it supports human judgment.
This exercise is a self-review instruction with no printed questions, so we suggest questions covering the key points in order, with their answers.
This question allows more than one reading
Note: Arabic edition: The English edition says to cover the Point! section with a red plastic sheet and quiz yourself in your notebook in numerical order; the Arabic edition says to answer without looking at «ملحوظة مهمة» and then check.
exercise 2
1Read the following passage and answer each question. Machine learning is a technology that learns patterns and regularities from large amounts of data so that judgments and predictions can be made on new data. Machine learning is broadly divided into three types depending on the form of data given and the method of learning. There is ( a ) learning, which learns from pairs of input and correct answer; ( b ) learning, which finds structure or groups from data without correct answers; and ( c ) learning, which learns how to choose better actions based on the ( d ) obtained as a result of an action. In ( e ), a representative example of supervised learning, the choice of ( f ), which serves as a clue for prediction, greatly affects the result. In ( g ), a representative example of unsupervised learning, the computer itself finds “what is similar” and discovers natural groups. 1. Fill in the blanks (a)–(g).
Examples with known targets = supervised; finding structure with no targets = unsupervised; learning from rewards through interaction = reinforcement. Predicting a class using features = classification; splitting data into clusters by a similarity measure = clustering.
Note: Arabic edition: The passages are worded differently: Arabic has blanks (1)–(7) in a rewritten text, English has (a)–(g); the required terms are the same, in the same order.
exercise 3
(1)From the following options (A–D), choose the one that most appropriately describes the difference between conventional programming and machine learning.
A - In conventional programming, humans provide the decision rules; in machine learning, the computer finds the decision rules from data on its own.
B - Conventional programming requires large amounts of data, and machine learning requires only rules.
C - Conventional programming is included in AI, but machine learning is not included in AI.
D - Conventional programming can handle new problems, but machine learning can handle only fixed problems.
Show answer
A: In conventional programming, humans provide the decision rules; in machine learning, the computer finds the decision rules from data on its own.
B swaps the roles, C is wrong because machine learning is one of the main approaches to AI, and D is wrong because machine learning is used precisely to judge new data.
(2)For each of situations (a–c), choose the most appropriate term from the choices below (A–C). a There are large amounts of news article texts and their categories (politics, economics, sports, etc.), and you want to automatically determine the category of new articles. b You have records of products purchased by users of an online shop and want to find groups of users with similar purchasing tendencies. c You want a computer to play a game and learn the operations that lead to high scores through trial and error.
A - Reinforcement learning
B - Clustering
C - Classification
Show answer
1 → C (classification), 2 → B (clustering), 3 → A (reinforcement learning).
(1) Articles with known categories, and we want a new article's category: classification. (2) Users with no categories, and we want similar groups: clustering. (3) A computer learning a game by trial and error for high scores: reinforcement learning.
Note: Arabic edition: The Arabic edition numbers the situations 1–3, the English edition a–c; the answer is the same: a→C, b→B, c→A.
(3)From the following options (A–D), choose the one that is NOT an appropriate description of the characteristics and limitations of machine learning.
A - Machine learning is used for problems where it is difficult for humans to express the rules in words.
B - Machine learning models are affected in their results by the quality and bias of the training data.
C - A machine learning model's basis for judgment is always shown to humans in an easy-to-understand way.
D - It is important to use machine learning not as a replacement for human judgment, but as a tool that supports human judgment.
Show answer
C: A machine learning model's basis for judgment is always shown to humans in an easy-to-understand way.
This is the opposite of the black-box problem: the basis of a model's judgment is often hard to see. A, B and D are correct characteristics and limits.
Exam-style question
Explain why machine learning should support human judgment rather than replace it. [6] Refer to: bias in data and the black‑box problem. [6]
Model answer
Machine learning finds the rules from data instead of having people write them, so the quality of its judgments depends on the quality of the data and the training. [1] • Bias: skewed data leads to skewed judgments; the model only knows what it has seen. [1] • Example: a face-recognition system trained mostly on photos of one group of people works poorly on others, treating them unfairly without anyone intending it. [1] • The black-box problem: it is hard for people to see the basis of the model's judgment, i.e. why it decided what it did. [1] • Example: if a teacher or a bank officer acts on a model's flag without understanding the reason, they may make an unfair decision or miss the real cause, and cannot justify it to the person affected. [1] • So machine learning is used as a tool that supports human judgment: a human stays in the loop to review the output and own the decision, oversight increases as the stakes for people rise, and the data is improved to be representative. [1]