Linear Regression
- 68Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary purpose of linear regression when analyzing experimental data?
What is the primary purpose of linear regression when analyzing experimental data?
68 questions
- 1
What is the primary purpose of linear regression when analyzing experimental data?
- A
To deduce a model that fits observed data and predicts related behavior
- B
To divide unlabeled observations into naturally occurring groups
- C
To convert every numerical measurement into a categorical label
- D
To memorize every observed data point without creating a model
Correct answer
ATo deduce a model that fits observed data and predicts related behavior
Explanation
Linear regression fits a model to experimental data, such as spring mass-displacement measurements, and allows predictions about behavior under new conditions.
- A
- 2
How can validation help when the appropriate regression model is not known in advance?
- A
It guarantees that a linear model will outperform every other model
- B
It removes the need to collect experimental data before modeling
- C
It converts an unsupervised problem into a classification problem
- D
It can help compare linear, quadratic, cubic, and higher-order models
Correct answer
DIt can help compare linear, quadratic, cubic, and higher-order models
Explanation
Validation can be used to explore which model, such as a linear or polynomial model, best fits the data.
- A
- 3
Which statement best captures the course's broad view of machine learning?
- A
Machine learning requires every possible rule to be explicitly coded beforehand
- B
Machine learning gives a system the ability to infer useful patterns from examples
- C
Machine learning only applies when the input data has no labels
- D
Machine learning is limited to systems that use neural networks
Correct answer
BMachine learning gives a system the ability to infer useful patterns from examples
Explanation
The central idea is that a system learns from examples or experience and uses inferred patterns to make predictions or deduce new information.
- A
- 4
What distinguishes traditional programming from the machine-learning paradigm described?
- A
Traditional programming uses labeled examples, whereas machine learning only uses manually written rules
- B
Traditional programming produces data from programs, whereas machine learning cannot produce predictions
- C
Traditional programming provides rules to process data, whereas machine learning uses examples to produce a predictive program or model
- D
Traditional programming always uses more data, whereas machine learning never uses training data
Correct answer
CTraditional programming provides rules to process data, whereas machine learning uses examples to produce a predictive program or model
Explanation
In traditional programming, the programmer supplies a program that transforms input data into output. In machine learning, examples, labels, or characterizations are used to infer a program or model.
- A
- 5
Why is linear regression described as a simple form of machine learning?
- A
It infers a model from data that can then be used to predict unseen outcomes
- B
It automatically discovers every possible feature without human choices
- C
It groups observations without making assumptions about their generating process
- D
It works only when all examples have predefined class labels
Correct answer
AIt infers a model from data that can then be used to predict unseen outcomes
Explanation
A regression procedure can infer a curve or equation from observed data and use that model to predict new values, such as spring displacement for a new mass.
- A
- 6
What are the three components of the basic machine-learning paradigm presented?
- A
A feature vector, a distance metric, and a donation mechanism
- B
Training observations, an inference process that learns a model, and predictions for unseen cases
- C
A set of clusters, a confusion matrix, and a neural network
- D
A manually written program, a compiler, and a fixed database of answers
Correct answer
BTraining observations, an inference process that learns a model, and predictions for unseen cases
Explanation
The paradigm begins with training data, uses an inference engine or learning method to identify a model, and applies that model to make predictions about new examples.
- A
- 7
Which example best illustrates the difference between memorizing facts and inferring new information?
- A
Inferring new information means storing more facts without changing the original rules
- B
Memorizing labels for known cases stores declarative knowledge, whereas learning patterns supports deductions about new cases
- C
Memorizing facts always produces better generalization than identifying patterns
- D
Declarative knowledge refers to procedures, while inference refers only to memorized statements
Correct answer
BMemorizing labels for known cases stores declarative knowledge, whereas learning patterns supports deductions about new cases
Explanation
Memorized facts are examples of declarative knowledge. Inferring new information from existing information is closer to imperative knowledge and generalization.
- A
- 8
What did Arthur Samuel's checkers program demonstrate about machine learning?
- A
A program could learn only by clustering unlabeled board positions
- B
A program needed all successful moves to be explicitly programmed in advance
- C
A program could improve its play by using experience from previous games
- D
A program could solve every search problem without evaluating prior outcomes
Correct answer
CA program could improve its play by using experience from previous games
Explanation
Samuel's checkers program learned to improve its methods by observing game results and inferring changes, illustrating learning without explicit programming of every strategy.
- A
- 9
Which sequence correctly describes how a learned model is used?
- A
Predictions are made first, examples are discarded, and labels are assigned afterward
- B
Features are removed, rules are memorized, and only known cases are classified
- C
Examples are provided, a model is inferred, and the model predicts outcomes for new examples
- D
Clusters are fixed first, labels are manually written, and no new cases are considered
Correct answer
CExamples are provided, a model is inferred, and the model predicts outcomes for new examples
Explanation
Machine learning uses observations to infer a model and then applies that model to unseen instances.
- A
- 10
Which field was identified as relying heavily on machine learning in addition to dedicated machine-learning subjects?
- A
Natural language processing
- B
Manual statistical tabulation
- C
Numerical filing systems
- D
Traditional compiler construction
Correct answer
ANatural language processing
Explanation
Natural language processing, computational biology, computer vision, and robotics were identified as fields that heavily rely on machine learning.
- A
- 11
Which application is an example of machine learning used for recommendations?
- A
A calculator applying a fixed arithmetic operation
- B
Netflix suggesting programs based on user preferences
- C
A compiler translating source code using predefined syntax rules
- D
A scale displaying a measured weight without interpretation
Correct answer
BNetflix suggesting programs based on user preferences
Explanation
Recommendation systems such as those used by Netflix and Amazon apply machine-learning algorithms to suggest items based on preferences and patterns.
- A
- 12
Which application uses machine learning to recognize handwritten characters?
- A
Mechanical spring-displacement instruments
- B
Postal character-recognition systems
- C
Manual sorting based only on envelope size
- D
Traditional fixed-function calculators
Correct answer
BPostal character-recognition systems
Explanation
Postal systems use character recognition, supported by machine learning and computer vision, to interpret handwritten characters.
- A
- 13
How can machine learning support driver-assistance systems?
- A
It determines braking only from the vehicle's paint color and model year
- B
It can analyze visual information and trigger actions such as braking when a collision is likely
- C
It guarantees that a vehicle will never need a human driver in every situation
- D
It replaces all sensors with a fixed list of manually entered road locations
Correct answer
BIt can analyze visual information and trigger actions such as braking when a collision is likely
Explanation
Computer-vision systems with machine-learning components can detect situations such as closing too quickly on a vehicle and assist by applying the brakes.
- A
- 14
Which pairing correctly matches a machine-learning application with its function?
- A
Face recognition and spring-constant measurement
- B
Netflix and handwritten envelope sorting
- C
IBM Watson and cancer diagnosis
- D
AlphaGo and online advertisement placement only
Correct answer
CIBM Watson and cancer diagnosis
Explanation
Cancer diagnosis was presented as an example of machine learning used by IBM Watson.
- A
- 15
What achievement illustrates the use of machine learning in Go?
- A
AlphaGo demonstrated that chess cannot be played by computers
- B
AlphaGo defeated a world-class Go player
- C
AlphaGo learned only from unlabeled football-player data
- D
AlphaGo replaced all computer vision systems
Correct answer
BAlphaGo defeated a world-class Go player
Explanation
AlphaGo was described as a Google machine-learning system that defeated a world-class Go player.
- A
- 16
How might machine learning be used in advertising systems?
- A
It prevents systems from collecting or analyzing preference information
- B
It can use inferred preferences to select advertisements likely to interest a user
- C
It displays advertisements in a fixed order unrelated to user behavior
- D
It assigns advertisements solely according to the user's eye color
Correct answer
BIt can use inferred preferences to select advertisements likely to interest a user
Explanation
The content describes online advertisements as being selected by algorithms that examine user preferences.
- A
- 17
What is the defining characteristic of supervised learning?
- A
Every training example becomes its own cluster regardless of similarity
- B
Training examples include known labels that guide prediction of labels for unseen inputs
- C
The system is given only a distance formula and no examples
- D
Training examples have no labels, so the system searches for natural groupings
Correct answer
BTraining examples include known labels that guide prediction of labels for unseen inputs
Explanation
Supervised learning uses labeled training examples and seeks a rule that predicts the label of an unseen example.
- A
- 18
What is the defining characteristic of unsupervised learning?
- A
The system receives the correct label for every example before learning begins
- B
The system memorizes a fixed mapping from each input to a supplied answer
- C
The system receives examples without known labels and searches for natural groupings
- D
The system can only estimate numerical quantities using a known linear equation
Correct answer
CThe system receives examples without known labels and searches for natural groupings
Explanation
Unsupervised learning works with unlabeled examples and attempts to identify natural groups or models within the data.
- A
- 19
A researcher has measurements of animals but no species labels and wants to discover natural groups. Which approach is most appropriate?
- A
Supervised classification
- B
Confusion-matrix evaluation without a model
- C
Unsupervised clustering
- D
Manual label lookup
Correct answer
CUnsupervised clustering
Explanation
Because the examples have no labels and the goal is to discover groupings, unsupervised clustering is appropriate.
- A
- 20
A football team has labeled players by position and wants to predict the position of a new player from height and weight. Which approach is being used?
- A
Distance measurement without inference
- B
Unsupervised clustering
- C
Unrestricted memorization
- D
Supervised classification
Correct answer
DSupervised classification
Explanation
The known player positions are labels, and the goal is to predict a label for a new player, making this supervised classification.
- A
- 21
What is the main goal of classification?
- A
To learn a rule that assigns new examples to known classes
- B
To find groups without using any information about class membership
- C
To minimize the number of features by deleting all measurements
- D
To ensure that every example has a unique numerical value
Correct answer
ATo learn a rule that assigns new examples to known classes
Explanation
Classification uses labeled examples to learn how to assign unseen examples to classes.
- A
- 22
What is the main goal of clustering?
- A
To predict a known label using examples whose labels are already supplied
- B
To create the most complicated boundary possible between every pair of examples
- C
To guarantee that each group contains exactly the same number of examples
- D
To group examples so that members of the same group are close and different groups are separated
Correct answer
DTo group examples so that members of the same group are close and different groups are separated
Explanation
Clustering seeks groups with small within-group distances and relatively large distances between groups.
- A
- 23
Why might a clustering problem require deciding the number of clusters?
- A
The number of clusters has no effect on the resulting assignments
- B
Increasing the number of clusters always improves generalization
- C
A clustering algorithm can operate only when every example has a distinct cluster
- D
Different choices of cluster count produce different groupings and different levels of model complexity
Correct answer
DDifferent choices of cluster count produce different groupings and different levels of model complexity
Explanation
The chosen number of clusters constrains the grouping and affects whether the model captures meaningful structure or overfits.
- A
- 24
In a distance-based clustering algorithm with two clusters, what is the first major step?
- A
Choose two examples as initial exemplars or representatives
- B
Assign every example to its own cluster permanently
- C
Draw a boundary using labels that are not available
- D
Calculate classification accuracy from known test labels
Correct answer
AChoose two examples as initial exemplars or representatives
Explanation
The algorithm begins by selecting two examples as initial exemplars, ideally choosing examples that are relatively far apart.
- A
- 25
After initial exemplars are selected, how are the remaining training examples assigned?
- A
Each example is assigned according to its alphabetical name
- B
Each example is assigned randomly and never reconsidered
- C
Each example is assigned using labels that clustering does not possess
- D
Each example is assigned to the exemplar to which it is closest
Correct answer
DEach example is assigned to the exemplar to which it is closest
Explanation
The algorithm assigns each remaining example to the group represented by the closest exemplar.
- A
- 26
How are new exemplars selected after the first assignments in the described clustering method?
- A
A labeled test example is selected as the new exemplar
- B
The first example in the data file is selected for every cluster
- C
The median element of each cluster is selected as its new exemplar
- D
The farthest element from each cluster is selected as its new exemplar
Correct answer
CThe median element of each cluster is selected as its new exemplar
Explanation
Once clusters are formed, the algorithm identifies the median element, meaning the example closest to the cluster's center, and uses it as the next exemplar.
- A
- 27
When can the iterative clustering process described stop?
- A
As soon as the first exemplar is selected
- B
Only after every example has been assigned to a separate cluster
- C
Only when all clusters contain identical feature vectors
- D
After a chosen number of iterations or when assignments stop changing
Correct answer
DAfter a chosen number of iterations or when assignments stop changing
Explanation
The process may stop after a predetermined number of repetitions or when further repetitions produce no change.
- A
- 28
Why did clustering football players using both height and weight produce a better separation than using height alone?
- A
The two-dimensional feature space captured a more useful pattern distinguishing the groups
- B
Height is never relevant to football-player classification
- C
Weight and height were converted into labels before clustering began
- D
Using two features guarantees perfect classification for every dataset
Correct answer
AThe two-dimensional feature space captured a more useful pattern distinguishing the groups
Explanation
Using both features placed players in a space where the groups were more naturally separated than when only height was considered.
- A
- 29
What is the significance of the equidistant line between two cluster centers?
- A
The line is chosen using labels that are unavailable during clustering
- B
Every point on the line belongs to both classes simultaneously
- C
Every point on the line is equally distant from the two centers
- D
The line contains all training examples used to create the clusters
Correct answer
CEvery point on the line is equally distant from the two centers
Explanation
The line is the boundary where the distance to one cluster center equals the distance to the other center.
- A
- 30
Why could adding a third cluster improve the football-player grouping?
- A
A third cluster always prevents overfitting in every dataset
- B
The new examples could form a distinct group rather than being forced into an ambiguous existing cluster
- C
Adding a cluster removes the need to measure distances
- D
A third cluster guarantees that all original labels were correct
Correct answer
BThe new examples could form a distinct group rather than being forced into an ambiguous existing cluster
Explanation
The running-back examples were not clearly represented by the two existing clusters, and a third cluster could capture their natural grouping.
- A
- 31
Why might a cluster containing only one example be a poor solution when there are many observations?
- A
Single-example clusters cannot be assigned any feature values
- B
Although within-cluster distance is minimal, the model may fail to provide useful generalization
- C
A one-example cluster always has the largest possible average distance
- D
A one-example cluster necessarily uses supervised labels
Correct answer
BAlthough within-cluster distance is minimal, the model may fail to provide useful generalization
Explanation
Making every example its own cluster produces excellent within-cluster proximity but does not meaningfully organize or label new data.
- A
- 32
What is the main purpose of a separating surface in supervised classification?
- A
To divide feature space so that examples with different labels fall on different sides
- B
To create a separate cluster for each individual training example
- C
To place all examples at the same distance from every class
- D
To remove labels from the training examples before prediction
Correct answer
ATo divide feature space so that examples with different labels fall on different sides
Explanation
A separating surface, such as a line in two dimensions or a plane in higher dimensions, divides examples according to their labels.
- A
- 33
Why might a classifier tolerate some incorrectly labeled training examples?
- A
A classifier cannot use a boundary unless at least half the labels are wrong
- B
Incorrect labels are always more informative than correct labels
- C
Tolerating errors guarantees perfect performance on unseen data
- D
Allowing a few errors can avoid an unnecessarily complicated boundary and reduce overfitting
Correct answer
DAllowing a few errors can avoid an unnecessarily complicated boundary and reduce overfitting
Explanation
When classes overlap, a highly complex boundary may fit the training data but overfit. A simpler boundary with some errors may generalize better.
- A
- 34
How would a classifier trained on the labeled football-player data classify two new players that both fall below the learned weight boundary?
- A
It would classify both as more likely to be receivers
- B
It would classify both as more likely to be linemen
- C
It would assign both to whichever class has more training examples
- D
It would leave both unclassified because they are new examples
Correct answer
AIt would classify both as more likely to be receivers
Explanation
The learned labeled boundary classified players below the weight threshold as more likely to be receivers.
- A
- 35
What is the basic idea of k-nearest-neighbor classification?
- A
Fit a polynomial of degree k regardless of the feature values
- B
Find the k closest labeled examples and use their labels to vote on the new example
- C
Find k unlabeled clusters and assign the new example to all of them
- D
Choose k arbitrary examples and copy the label of the first one
Correct answer
BFind the k closest labeled examples and use their labels to vote on the new example
Explanation
k-nearest neighbors classifies a new example by examining the labels of its k closest labeled examples and taking a vote.
- A
- 36
Under the described k-nearest-neighbor rule, when might a new example remain unclassified?
- A
When the closest neighbors do not provide a sufficiently strong majority
- B
When the value of k is smaller than the total number of training examples
- C
When the training data contains any labeled examples
- D
When the new example has more than one feature
Correct answer
AWhen the closest neighbors do not provide a sufficiently strong majority
Explanation
The example may remain unclassified if no label receives enough of the neighbor vote, such as the stated cases requiring a clear majority.
- A
- 37
Which set lists essential design components of a machine-learning method?
- A
Training data and evaluation, representation, distance measurement, objective function, and optimization method
- B
A compiler, a database, a screen display, a keyboard, and a network cable
- C
A prediction, a donation, a citation, a page number, and a chapter title
- D
A class label, a random seed, a file name, a plot color, and a lecture schedule
Correct answer
ATraining data and evaluation, representation, distance measurement, objective function, and optimization method
Explanation
The content identifies training data and evaluation, instance representation, distance measurement, the objective to optimize, and the optimization method as essential components.
- A
- 38
What does feature engineering require a designer to decide?
- A
Which programming language should replace the training data
- B
Which measurable attributes represent each example and how those attributes should be scaled or weighted
- C
Which examples should be removed after the model has made predictions
- D
Which labels should be hidden from a supervised-learning algorithm
Correct answer
BWhich measurable attributes represent each example and how those attributes should be scaled or weighted
Explanation
Feature engineering involves selecting useful features for the representation and deciding how their scales or relative importance affect comparisons.
- A
- 39
Why might GPA and prior programming experience be useful features for predicting course performance?
- A
They determine performance exactly for every student
- B
They eliminate the need for training and testing data
- C
They are unrelated measurements that only help because they increase feature count
- D
They may carry information related to performance, although neither is a perfect predictor
Correct answer
DThey may carry information related to performance, although neither is a perfect predictor
Explanation
GPA and prior programming experience were presented as potentially informative predictors, while also emphasizing that they are not perfect predictors.
- A
- 40
Why would month of birth or eye color generally be undesirable features for predicting programming performance?
- A
They are not expected to carry meaningful information about programming ability
- B
They are always more strongly correlated with performance than GPA
- C
They cannot be represented in a feature vector
- D
They are numerical features and machine learning cannot process numbers
Correct answer
AThey are not expected to carry meaningful information about programming ability
Explanation
The content treats birth month and eye color as features with little or no meaningful relationship to programming performance.
- A
- 41
What is the danger of including many irrelevant features in a model?
- A
The model may discover spurious correlations and overfit the training data
- B
The model will automatically discard every useful feature
- C
The model will necessarily become less complex and more general
- D
The model will be unable to calculate any distance between examples
Correct answer
AThe model may discover spurious correlations and overfit the training data
Explanation
Irrelevant features can create accidental correlations, such as relationships among eye color, birth month, and GPA, leading to overfitting.
- A
- 42
What does maximizing the signal-to-noise ratio mean in feature selection?
- A
Giving identical importance to all features regardless of their usefulness
- B
Keeping features that carry useful information while removing features that mainly add irrelevant variation
- C
Adding every available feature so that the model has maximum input
- D
Replacing measured features with random values to avoid bias
Correct answer
BKeeping features that carry useful information while removing features that mainly add irrelevant variation
Explanation
Feature selection aims to emphasize informative signals and reduce noise from features that do not help distinguish or predict the target.
- A
- 43
What lesson does the reptile example illustrate about feature selection?
- A
A small set of informative features may classify better than a larger set of poorly chosen features
- B
A classifier should use only the number of legs because it is numerical
- C
Adding more features always makes classification perfect
- D
Features are unnecessary when examples have labels
Correct answer
AA small set of informative features may classify better than a larger set of poorly chosen features
Explanation
The reptile examples showed that different feature combinations changed the model's ability to distinguish reptiles from non-reptiles.
- A
- 44
Why could the original reptile rule fail on a boa constrictor?
- A
The rule required egg-laying and poisonous characteristics that the boa constrictor did not satisfy
- B
The rule classified every legless animal as a non-reptile
- C
The rule ignored all features except the animal's name
- D
The boa constrictor had no scales or cold-blooded characteristics
Correct answer
AThe rule required egg-laying and poisonous characteristics that the boa constrictor did not satisfy
Explanation
The initial rule included egg-laying and poisonous as required features, but the boa constrictor was described as not egg-laying and not poisonous.
- A
- 45
Why did the chicken serve as a useful negative example in refining the reptile model?
- A
It was classified positively because it was cold-blooded
- B
It was not a reptile and did not satisfy the selected combination of scales, cold-bloodedness, and legs
- C
It was a reptile that disproved the need for labels
- D
It lacked scales, which showed that all birds are reptiles
Correct answer
BIt was not a reptile and did not satisfy the selected combination of scales, cold-bloodedness, and legs
Explanation
The chicken reinforced the model because it was not a reptile and did not satisfy the relevant combination of features.
- A
- 46
What conflict was revealed by comparing a python and a salmon using only scales, cold-bloodedness, and number of legs?
- A
Those features could not distinguish the python as a reptile from the salmon as a non-reptile
- B
The number of legs alone perfectly separated the two animals
- C
The python and salmon had completely different values for every feature
- D
The salmon was incorrectly classified because it lacked scales and was warm-blooded
Correct answer
AThose features could not distinguish the python as a reptile from the salmon as a non-reptile
Explanation
The python and salmon shared the relevant values for scales, cold-bloodedness, and legs, so those features could not separate their labels.
- A
- 47
What classification trade-off was chosen in the final reptile example?
- A
Avoid both errors by using every available feature
- B
Avoid false positives, even though some reptiles may be missed
- C
Avoid false negatives, even though some false positives such as salmon may occur
- D
Treat every animal as a reptile to maximize specificity
Correct answer
CAvoid false negatives, even though some false positives such as salmon may occur
Explanation
The final rule was designed to produce no false negatives, accepting that some non-reptiles, particularly salmon, could be classified as reptiles.
- A
- 48
What is the Minkowski distance between vectors oldsymbol{x} and oldsymbol{y} with power p?
- A
[0m\sum_i (x_i+y_i)^p
- B
[0m\sum_i x_i^p-y_i^p
- C
[0m\left(\sum_i |x_i-y_i|\right)^p
- D
[0m\left(\sum_i |x_i-y_i|^p\right)^{1/p}
Correct answer
D[0m\left(\sum_i |x_i-y_i|^p\right)^{1/p}
Explanation
The Minkowski metric takes the absolute component-wise differences, raises them to the power p, sums them, and takes the pth root.
- A
- 49
What does the Minkowski metric become when p=1?
- A
The Euclidean distance, obtained by taking the square root of squared differences
- B
The categorical distance, obtained by counting only matching components
- C
The Manhattan distance, obtained by summing absolute component-wise differences
- D
The maximum-coordinate distance, obtained by selecting the largest component
Correct answer
CThe Manhattan distance, obtained by summing absolute component-wise differences
Explanation
When p=1, the Minkowski metric is the Manhattan metric: ∑i​∣xi​−yi​∣.
- A
- 50
What does the Minkowski metric become when p=2?
- A
Hamming distance
- B
Manhattan distance
- C
Euclidean distance
- D
A label-counting distance
Correct answer
CEuclidean distance
Explanation
When p=2, the metric becomes Euclidean distance: ∑i​(xi​−yi​)2​.
- A
- 51
Why can Euclidean distance be misleading when a feature has a much larger numerical scale than other features?
- A
Euclidean distance ignores numerical features entirely
- B
Differences in the large-scale feature are always treated as irrelevant
- C
Differences in the large-scale feature can dominate the total distance
- D
Euclidean distance automatically converts all features to binary values
Correct answer
CDifferences in the large-scale feature can dominate the total distance
Explanation
In Euclidean distance, a feature whose values differ by a larger numerical amount can dominate the distance, even if that feature should not have greater conceptual importance.
- A
- 52
Why did the number-of-legs feature distort the animal distances in the example?
- A
It had identical values for the alligator and dart frog
- B
It was the only feature that had a binary representation
- C
It was ignored by the Euclidean metric but used by the Manhattan metric
- D
It could differ by as much as four, whereas binary features differed only by zero or one
Correct answer
DIt could differ by as much as four, whereas binary features differed only by zero or one
Explanation
The number-of-legs dimension ranged from zero to four, so its numerical differences were much larger than the zero-to-one differences of binary features.
- A
- 53
How could converting number of legs into a binary feature improve the animal classification?
- A
It would guarantee that the salmon receives a negative label
- B
It would add more distinct information about exact leg counts
- C
It would make every animal have the same distance from every other animal
- D
It would prevent the numerical leg count from dominating distances relative to the other features
Correct answer
DIt would prevent the numerical leg count from dominating distances relative to the other features
Explanation
Representing legs as either absent or present reduces the scale of that dimension and makes it more comparable to the other binary features.
- A
- 54
Why might Manhattan distance be preferable to Euclidean distance for the animal feature vectors?
- A
It ignores all categorical features and uses only the number of legs
- B
It always produces a smaller distance than Euclidean distance for every pair
- C
It guarantees perfect separation of reptiles and non-reptiles
- D
It can reflect the count of differing features without allowing a large numerical leg-count difference to dominate as strongly
Correct answer
DIt can reflect the count of differing features without allowing a large numerical leg-count difference to dominate as strongly
Explanation
Manhattan distance sums component differences directly, so the number-of-legs dimension is less disproportionately influential than it can be under squared Euclidean differences.
- A
- 55
What does it mean for two feature vectors to be close under a chosen distance metric?
- A
They have the same number of dimensions but unrelated values
- B
They were collected at the same time and place
- C
Their feature values are similar according to the metric and its feature scaling
- D
They necessarily have the same class label in every dataset
Correct answer
CTheir feature values are similar according to the metric and its feature scaling
Explanation
Closeness is defined by the selected distance function applied to the feature values, including the effects of feature scales.
- A
- 56
What is a confusion matrix used to compare?
- A
Training examples with the program that generated them
- B
Feature scales with the number of clusters
- C
Cluster centers with the number of model parameters
- D
Predicted class labels with the actual class labels
Correct answer
DPredicted class labels with the actual class labels
Explanation
A confusion matrix organizes classifier predictions against actual labels, showing correct and incorrect outcomes for each class.
- A
- 57
Which outcomes are represented on the diagonal of a binary confusion matrix?
- A
All predictions made on unlabeled examples
- B
Correct predictions, including true positives and true negatives
- C
Predictions that were excluded from evaluation
- D
False positives and false negatives only
Correct answer
BCorrect predictions, including true positives and true negatives
Explanation
The diagonal records cases where predicted and actual labels agree: true positives and true negatives.
- A
- 58
How is classification accuracy calculated?
- A
all predictionsfalse positives+false negatives​
- B
all predictionstrue positives+true negatives​
- C
true positives+true negativesall predictions​
- D
false positives+false negativestrue positives​
Correct answer
Ball predictionstrue positives+true negatives​
Explanation
Accuracy is the proportion of all predictions that are correct: TP+TN+FP+FNTP+TN​.
- A
- 59
What is a false positive?
- A
The classifier correctly rejects an example outside the target class
- B
The classifier predicts that an example belongs to the target class when it does not
- C
The classifier rejects an example that truly belongs to the target class
- D
The classifier correctly identifies an example in the target class
Correct answer
BThe classifier predicts that an example belongs to the target class when it does not
Explanation
A false positive occurs when the system labels an example as a positive instance even though its actual label is negative.
- A
- 60
What is a false negative?
- A
The classifier correctly rejects an example outside the target class
- B
The classifier correctly accepts an example in the target class
- C
The classifier rejects an example that truly belongs to the target class
- D
The classifier accepts an example that does not belong to the target class
Correct answer
CThe classifier rejects an example that truly belongs to the target class
Explanation
A false negative occurs when the system labels an example as negative even though it is actually positive.
- A
- 61
What does positive predictive value measure?
- A
The proportion of predicted positives that are truly positive
- B
The proportion of actual negatives that the classifier successfully rejects
- C
The proportion of actual positives that the classifier successfully finds
- D
The proportion of all predictions that are correct
Correct answer
AThe proportion of predicted positives that are truly positive
Explanation
Positive predictive value is the number of true positives divided by all predicted positives: TP+FPTP​.
- A
- 62
What does sensitivity measure?
- A
The proportion of all examples that receive any prediction
- B
The proportion of actual negative examples that are correctly rejected
- C
The proportion of actual positive examples that are correctly identified
- D
The proportion of predicted positive examples that are truly positive
Correct answer
CThe proportion of actual positive examples that are correctly identified
Explanation
Sensitivity measures how many actual positives are correctly found: TP+FNTP​.
- A
- 63
What does specificity measure?
- A
The proportion of actual positive examples that are correctly identified
- B
The proportion of all classifications that are correct
- C
The proportion of predicted positives that are truly positive
- D
The proportion of actual negative examples that are correctly rejected
Correct answer
DThe proportion of actual negative examples that are correctly rejected
Explanation
Specificity measures the ability to correctly reject negatives: TN+FPTN​.
- A
- 64
What happens to sensitivity and specificity when a classifier labels every example as positive?
- A
Both sensitivity and specificity become 1
- B
Sensitivity becomes 1, while specificity becomes 0
- C
Both sensitivity and specificity become 0
- D
Sensitivity becomes 0, while specificity becomes 1
Correct answer
BSensitivity becomes 1, while specificity becomes 0
Explanation
Labeling every example positive finds all actual positives, giving sensitivity 1, but incorrectly accepts all negatives, giving specificity 0.
- A
- 65
What happens to sensitivity and specificity when a classifier labels every example as negative?
- A
Sensitivity becomes 1, while specificity becomes 0
- B
Both sensitivity and specificity become 0
- C
Both sensitivity and specificity become 1
- D
Sensitivity becomes 0, while specificity becomes 1
Correct answer
DSensitivity becomes 0, while specificity becomes 1
Explanation
Rejecting every example correctly rejects all actual negatives, giving specificity 1, but misses every actual positive, giving sensitivity 0.
- A
- 66
Why should a complex classifier that performs well on training data also be tested on separate data?
- A
Its strong training performance may reflect overfitting rather than useful generalization
- B
Separate test data is needed to increase the number of training errors
- C
Testing data determines the labels that were missing from training data
- D
A complex classifier cannot make predictions on data it has not seen
Correct answer
AIts strong training performance may reflect overfitting rather than useful generalization
Explanation
A complicated model may fit peculiarities of the training set. Test data helps determine whether performance generalizes to unseen examples.
- A
- 67
What did the complex sequence-of-line-segments classifier illustrate?
- A
A sequence of line segments is equivalent to using no features
- B
A more complicated boundary always improves performance on unseen data
- C
A more complicated boundary can reduce training error while still performing poorly on test data
- D
Training accuracy is sufficient to establish that a model generalizes
Correct answer
CA more complicated boundary can reduce training error while still performing poorly on test data
Explanation
The complex classifier achieved higher training accuracy but lower test accuracy, illustrating overfitting.
- A
- 68
What does an ROC curve help analyze?
- A
The median exemplar selected in an unsupervised cluster
- B
The number of features required to represent each example
- C
The trade-off between sensitivity and specificity as the classifier changes
- D
The difference between Manhattan and Euclidean formulas
Correct answer
CThe trade-off between sensitivity and specificity as the classifier changes
Explanation
An ROC, or Receiver Operating Characteristic, curve helps examine how sensitivity changes relative to specificity under different classification choices.
- A

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