Machine Learning Introduction
- 41Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Why is machine learning expected to create opportunities across many industries?
41 questions
- 1
Why is machine learning expected to create opportunities across many industries?
Model answer
The amount of available data and the number of effective machine learning tools have increased rapidly, creating opportunities to apply learning algorithms in technology, healthcare, manufacturing, logistics, law, education, and other fields.
Explanation
Machine learning is no longer limited to traditional technology companies; organizations in many sectors are seeking ways to use data and learning algorithms to improve valuable processes.
- 2
How are artificial intelligence, machine learning, and deep learning related?
Model answer
Artificial intelligence is the broadest area, machine learning is a major subfield of AI, and deep learning is a more specialized subset of machine learning based largely on neural networks.
Explanation
The content describes AI as broader than machine learning and machine learning as broader than deep learning.
- 3
State Arthur Samuel's definition of machine learning.
Model answer
Machine learning is the field of study that gives computers the ability to learn without being explicitly programmed.
Explanation
Samuel's definition emphasizes that the system improves its behavior through learning rather than relying entirely on manually written instructions.
- 4
What was significant about Arthur Samuel's checkers program?
Model answer
The program learned through self-play which board patterns were associated with winning or losing and eventually became better at checkers than its creator.
Explanation
This demonstrated that a computer could learn to perform better than the programmer on a task without the programmer explicitly specifying every strategy.
- 5
State Tom Mitchell's definition of a well-posed learning problem.
Model answer
A program learns from experience E with respect to a task T and performance measure P when its performance on T, measured by P, improves with experience E.
Explanation
The definition identifies three essential components: the experience used for learning, the task being performed, and the measure used to evaluate improvement.
- 6
For a checkers-playing program, identify the experience E, task T, and performance measure P in Mitchell's framework.
Model answer
The experience E is playing many games, often through self-play; the task T is playing checkers; and the performance measure P could be the probability of winning the next game.
Explanation
These three elements specify what the system learns from, what it must do, and how its success is assessed.
- 7
Why can machine learning be used for narrow tasks more successfully than for general intelligence?
Model answer
A system can often achieve or exceed human performance when the task is narrowly defined, such as speech recognition in a specific setting or playing Go, especially when given sufficient computation and data.
Explanation
Narrow tasks have clearly defined inputs, outputs, and objectives, making them more manageable than general-purpose intelligence.
- 8
What is the central goal of supervised learning?
Model answer
Given training examples containing inputs X and corresponding labels Y, supervised learning learns a mapping from X to Y so it can predict labels for new inputs.
Explanation
The defining feature of supervised learning is that the training data include both the input and the desired output.
- 9
How could supervised learning be applied to housing prices?
Model answer
A model could use house size as the input X and observed house price as the label Y, then learn a function that predicts the price of a new house.
Explanation
The housing example illustrates learning a relationship between an input feature and a continuous output.
- 10
Why might a learning algorithm fit a quadratic function instead of a straight line to housing data?
Model answer
A quadratic function may represent the observed relationship between house size and price more accurately than a straight line.
Explanation
Supervised learning allows different models to be considered, and model selection concerns choosing a function that fits the data appropriately.
- 11
What is a regression problem?
Model answer
Regression is a supervised learning problem in which the output being predicted is continuous, such as a house price.
Explanation
Although prices are recorded to finite precision, they are treated as continuous values for practical machine learning purposes.
- 12
What is a classification problem?
Model answer
Classification is a supervised learning problem in which the output takes one of a discrete set of possible values, such as benign or malignant.
Explanation
Binary outputs such as 0 and 1, as well as outputs selected from several categories, are classification outputs.
- 13
How does predicting whether a tumor is benign or malignant illustrate classification?
Model answer
The model uses tumor-related inputs to predict one of two discrete labels: benign or malignant, often represented as 0 and 1.
Explanation
The output is categorical rather than continuous, which makes the task classification rather than regression.
- 14
What is the difference between a feature and a label in supervised learning?
Model answer
A feature is an input measurement used to make a prediction, whereas a label is the desired output associated with a training example.
Explanation
For tumor prediction, size and patient age can be features, while the benign or malignant diagnosis is the label.
- 15
Why are real machine learning problems often represented with multidimensional input vectors?
Model answer
Real applications usually provide multiple measurements or features rather than a single input value, so an example is represented by a vector containing several numbers.
Explanation
For tumor diagnosis, features might include tumor size, patient age, clump thickness, cell-size uniformity, cell-shape uniformity, and cell adhesion.
- 16
How can a classification model use tumor size and patient age together?
Model answer
It can represent each patient as a two-dimensional input vector and learn a boundary, such as a line, that separates likely benign tumors from likely malignant tumors.
Explanation
The model uses multiple features jointly rather than relying on tumor size alone.
- 17
What does logistic regression do in the tumor-classification example?
Model answer
Logistic regression learns a classification boundary that separates positive and negative examples using input features such as tumor size and patient age.
Explanation
The lecture presents logistic regression as an algorithm that can fit a separating line in a two-feature classification problem.
- 18
Why is it difficult to visualize datasets with many features?
Model answer
Humans can readily visualize only a small number of dimensions, so datasets with many features cannot be directly plotted in an ordinary two- or three-dimensional diagram.
Explanation
Medical prediction problems may use many features, making the data high-dimensional even though the learning algorithm can still operate on it.
- 19
How can a support vector machine use an infinite-dimensional feature representation?
Model answer
Through kernel methods, a support vector machine can operate as if it were using infinitely many features without explicitly storing every coordinate of an infinite-dimensional vector.
Explanation
Kernels provide a computational way to work with high- or infinite-dimensional representations while avoiding direct storage of all features.
- 20
Describe the autonomous-driving example as a supervised learning problem.
Model answer
During training, the system receives camera images as inputs X and the human driver's steering direction as labels Y, then learns to predict steering from new images.
Explanation
The human demonstrations provide paired input-output examples, which is the defining structure of supervised learning.
- 21
How did the autonomous-driving system improve its steering predictions during training?
Model answer
A neural network adjusted its parameters using backpropagation and gradient descent so that its predicted steering directions increasingly matched those chosen by the human driver.
Explanation
The system initially produced poor predictions, but optimization reduced the difference between its outputs and the demonstrated labels.
- 22
Why did the autonomous-driving system use separate models for different road types?
Model answer
It trained different models for different road configurations, and an additional arbitrator selected the model most appropriate for the current situation.
Explanation
The example used specialized models for different lane structures and a decision mechanism to switch between them.
- 23
Why is machine learning strategy important when applying an algorithm?
Model answer
The same learning algorithm can produce very different results depending on decisions about data, features, models, computation, and evaluation, so strategic choices strongly affect effectiveness.
Explanation
Successful machine learning requires more than selecting an algorithm; practitioners must decide what to try next and how to diagnose failures.
- 24
Give three strategic decisions a practitioner may need to make during a machine learning project.
Model answer
The practitioner may decide whether to collect more data, change the learning algorithm, use faster hardware or longer training, or collect a different type of data.
Explanation
Machine learning projects involve many possible interventions, and choosing among them efficiently is a central engineering skill.
- 25
Why should machine learning be treated as a systematic engineering discipline rather than as black magic?
Model answer
Learning systems often fail on their first attempt, so systematic diagnosis and experimentation help practitioners identify problems and improve performance efficiently instead of relying only on intuition or tribal knowledge.
Explanation
The goal is to make decisions about data, models, and optimization in a structured way that can be explained and repeated.
- 26
How is debugging a learning algorithm similar to using a software profiler?
Model answer
Rather than changing everything at once, a practitioner should identify the main performance bottleneck and focus effort on the intervention most likely to improve it.
Explanation
A profiler finds which part of a program consumes the most resources; machine learning strategy similarly seeks to locate the main source of poor system performance.
- 27
What is unsupervised learning?
Model answer
Unsupervised learning uses inputs X without labeled outputs Y to discover interesting structure or patterns in the data.
Explanation
Unlike supervised learning, the algorithm is not told the correct category or target value for each example.
- 28
How does K-means clustering illustrate unsupervised learning?
Model answer
K-means receives unlabeled data and discovers groups, or clusters, of examples that are similar to one another.
Explanation
In the example, the algorithm identifies two apparent groups without being given labels for the data points.
- 29
How can clustering be used by a news-aggregation system?
Model answer
It can group articles from different sources that discuss the same event or topic, such as articles about an oil-well spill.
Explanation
The system identifies related documents based on their content rather than receiving manually assigned topic labels.
- 30
Describe two applications of clustering outside news aggregation.
Model answer
Clustering can group individuals with similar genetic characteristics, organize related computing machines or workflows, identify communities in social networks, or divide customers into market segments.
Explanation
These applications all involve discovering groups within data without requiring a predefined label for each example.
- 31
How can clustering support market segmentation?
Model answer
It can identify groups of customers with similar characteristics, allowing a company to design and target marketing strategies separately for each group.
Explanation
The clusters represent naturally occurring customer segments rather than categories specified in advance.
- 32
What is the cocktail party problem?
Model answer
It is the problem of separating overlapping voices recorded by multiple microphones in a noisy environment.
Explanation
Each microphone captures a mixture of speakers, and the objective is to recover cleaner recordings of the individual voices.
- 33
Why is the cocktail party problem an unsupervised learning problem?
Model answer
The microphones record mixtures of voices without labeled examples identifying each speaker's contribution, so the algorithm must discover the separate signals from unlabeled observations.
Explanation
The system receives observations but not target outputs specifying what each clean voice should be.
- 34
What algorithm is used in the course to solve the cocktail party problem?
Model answer
The algorithm is independent components analysis, or ICA.
Explanation
ICA is presented as a method for separating mixed signals into underlying independent components such as individual voices.
- 35
How can unsupervised learning discover linguistic analogies?
Model answer
By analyzing large amounts of unlabeled text, an algorithm can learn relationships such as "man is to woman as king is to queen" or "Tokyo is to Japan as Washington, D.C. is to the United States."
Explanation
The examples show that meaningful relationships can be extracted from text without manually labeling every analogy.
- 36
What is reinforcement learning?
Model answer
Reinforcement learning trains an agent to choose actions by allowing it to interact with an environment and using reward or penalty signals to encourage desirable behavior.
Explanation
The agent is not given the optimal action for every situation; it learns through the consequences of its actions.
- 37
How could reinforcement learning teach an autonomous helicopter to fly?
Model answer
The helicopter would try different control actions, receive positive rewards for desirable flight and negative feedback for poor performance or crashes, and gradually learn actions that maximize cumulative reward.
Explanation
The method is useful because humans do not know the optimal sequence of control-stick movements in every situation.
- 38
Why is reinforcement learning compared to training a dog?
Model answer
In both cases, the learner is not given a complete set of correct actions; instead, desirable behavior is reinforced with positive feedback and undesirable behavior with negative feedback.
Explanation
The dog analogy illustrates learning from rewards and penalties rather than from explicit instructions for every possible situation.
- 39
What is a reward signal in reinforcement learning?
Model answer
A reward signal is feedback indicating how desirable an agent's behavior or outcome was, which the learning algorithm uses to improve future decisions.
Explanation
Positive and negative signals guide the agent toward actions that produce more favorable results.
- 40
Why has reinforcement learning been successful in game playing?
Model answer
Games provide clear objectives and feedback, allowing an agent to evaluate actions and learn strategies that increase its chance of winning.
Explanation
Applications such as Atari games and Go demonstrate reinforcement learning's ability to optimize behavior through repeated interaction and reward.
- 41
Besides games, what types of applications can benefit from reinforcement learning?
Model answer
Reinforcement learning can optimize robotic behavior, helicopter control, and logistics systems where actions affect future outcomes.
Explanation
The content emphasizes that reinforcement learning is increasingly useful for real-world control and optimization, not only for game playing.

Ask anything
We've read this whole study set, so questions about it get the best answers.