Probabilistic Classification
- 45Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What distinguishes a point classifier from a probabilistic classifier?
What distinguishes a point classifier from a probabilistic classifier?
45 questions
- 1
What distinguishes a point classifier from a probabilistic classifier?
- A
A point classifier requires numerical inputs, whereas a probabilistic classifier requires categorical inputs
- B
A point classifier always uses neighbors, whereas a probabilistic classifier always uses trees
- C
A point classifier returns one class, whereas a probabilistic classifier returns probabilities for all possible classes
- D
A point classifier predicts several rankings, whereas a probabilistic classifier predicts only one class
Correct answer
CA point classifier returns one class, whereas a probabilistic classifier returns probabilities for all possible classes
Explanation
A point classifier makes one specific guess, while a probabilistic classifier assigns probabilities to the possible target classes.
- A
- 2
What is the output of a list classifier?
- A
A single numerical loss for the input record
- B
An ordered list of possible target values
- C
A continuous vector unrelated to target classes
- D
A single target value with probability one
Correct answer
BAn ordered list of possible target values
Explanation
A list classifier produces multiple guesses, usually ordered from most likely to least likely.
- A
- 3
Why might a classifier produce a ranked list instead of one prediction?
- A
The classifier is unable to represent any categorical target
- B
The classifier must always avoid using probability values
- C
The classifier has been trained without any labeled examples
- D
The classifier may be uncertain among several plausible classes
Correct answer
DThe classifier may be uncertain among several plausible classes
Explanation
A ranked list is useful when several classes are plausible and the classifier can identify their relative likelihoods without making one definitive choice.
- A
- 4
Which example best represents a probabilistic prediction?
- A
A pedestrian probability of 0.9, a scooter probability of 0.05, and a bicycle probability of 0.05
- B
A numerical feature vector describing the object's color and position
- C
A prediction that the object is exactly one pedestrian and no other output is provided
- D
A list containing pedestrian, scooter, and bicycle without any ordering
Correct answer
AA pedestrian probability of 0.9, a scooter probability of 0.05, and a bicycle probability of 0.05
Explanation
A probabilistic classifier assigns a probability to each possible class, with the probabilities summing to one.
- A
- 5
How can a probabilistic weather prediction be made actionable?
- A
Convert every nonzero probability into a separate physical action
- B
Ignore the probabilities and always choose the most frequent historical outcome
- C
Choose an action based on which weather outcome has the greater predicted probability
- D
Treat the probability of rain as a guaranteed prediction
Correct answer
CChoose an action based on which weather outcome has the greater predicted probability
Explanation
For example, someone might carry an umbrella when rain is more likely than sunshine, although many other decision rules are possible.
- A
- 6
How can a list classifier be constructed from nearest-neighbor unembedding?
- A
Return the representatives closest to the predicted embedded value in ranked order
- B
Return the representatives with the largest numerical class labels
- C
Return the representatives farthest from the predicted embedded value in random order
- D
Return only the average of all representatives in the embedding space
Correct answer
AReturn the representatives closest to the predicted embedded value in ranked order
Explanation
If nearest-neighbor unembedding normally returns the closest representative, it can produce a list by returning the three, ten, or other number of closest representatives.
- A
- 7
What does it mean for a list classifier to have a variable number of guesses?
- A
It always produces exactly one guess for certain inputs and ten for uncertain inputs
- B
It produces more guesses when uncertainty is greater and fewer guesses when confidence is stronger
- C
It produces a random number of guesses independently of prediction confidence
- D
It changes the number of target classes during every prediction
Correct answer
BIt produces more guesses when uncertainty is greater and fewer guesses when confidence is stronger
Explanation
Some predictors use a fixed list size, while others vary the number of guesses according to the certainty of the prediction.
- A
- 8
Which condition must a probability distribution on a target set satisfy?
- A
Every probability is nonnegative and all probabilities sum to one
- B
Every probability is positive and all probabilities sum to zero
- C
At least one probability is negative and the largest probability equals one
- D
All probabilities are equal regardless of the target set
Correct answer
AEvery probability is nonnegative and all probabilities sum to one
Explanation
A probability distribution assigns nonnegative real numbers to the possible outcomes, and those numbers must add to one.
- A
- 9
If the target set consists of rain and shine, what does p(rain)=0.15 and p(shine)=0.85 imply?
- A
The prediction is invalid because the two probabilities must be equal
- B
Rain and shine are assigned probabilities that form a valid distribution
- C
Rain is predicted with certainty because it has a nonzero probability
- D
The prediction is invalid because one probability is less than 0.5
Correct answer
BRain and shine are assigned probabilities that form a valid distribution
Explanation
Both probabilities are nonnegative and their sum is 0.15+0.85=1, so they form a valid distribution.
- A
- 10
If there are k target classes, how can their probability distribution be represented in vector notation?
- A
As a scalar containing only the largest class probability
- B
As a k-dimensional vector whose entries are unrestricted real numbers
- C
As a matrix with one row for every training example
- D
As a k-dimensional vector whose entries are the class probabilities
Correct answer
DAs a k-dimensional vector whose entries are the class probabilities
Explanation
Listing the probabilities for classes v1 through vk produces a k-dimensional probability vector.
- A
- 11
What does the vector inequality p≥0 mean for a probability vector?
- A
The vector p is greater than a scalar in a geometric ordering
- B
Every entry of p is strictly greater than one
- C
Every entry of p is nonnegative
- D
The sum of the entries of p is greater than zero but not necessarily one
Correct answer
CEvery entry of p is nonnegative
Explanation
The inequality is interpreted elementwise, so each component probability must be nonnegative.
- A
- 12
What does the equation 1Tp=1 express?
- A
The entries of the probability vector p sum to one
- B
The vector p contains exactly one nonzero entry
- C
The number of classes represented by p is one
- D
Every entry of p is equal to one
Correct answer
AThe entries of the probability vector p sum to one
Explanation
Multiplying by the all-ones vector and transposing computes the sum of all entries, which must equal one.
- A
- 13
What does a probabilistic classifier return for an input u?
- A
A list of input features sorted by magnitude
- B
A predicted probability distribution p^ over the target classes
- C
A single embedded target representative only
- D
A training loss without any class-specific information
Correct answer
BA predicted probability distribution p^ over the target classes
Explanation
A probabilistic classifier can be written as p^=G(u), where p^ assigns a probability to each possible target class.
- A
- 14
What does evaluating p^ at vi represent?
- A
The probability that the input features equal the target label
- B
The predicted probability that the target equals vi for the given input
- C
The number of training examples whose target is not vi
- D
The distance between the input and the class representative vi
Correct answer
BThe predicted probability that the target equals vi for the given input
Explanation
The value p^(vi) is the probability assigned to class vi by the distribution predicted for the input.
- A
- 15
Why is G described as a function that returns a function?
- A
It applies two unrelated classifiers to the same input and returns both class labels
- B
It returns a list of functions because probability distributions cannot be evaluated
- C
It maps every input to a scalar and then converts that scalar into an input vector
- D
It maps an input to a probability distribution, and a distribution itself maps each class to a probability
Correct answer
DIt maps an input to a probability distribution, and a distribution itself maps each class to a probability
Explanation
The output G(u)=p^ is itself a function from target classes to probabilities, so G returns a function-valued object.
- A
- 16
How can a point classifier be represented as a probabilistic classifier?
- A
Assign equal probability to every class regardless of the point prediction
- B
Assign probability one to the predicted class and zero to every other class
- C
Assign the predicted class its numerical label as its probability
- D
Assign negative probability to incorrect classes and positive probability to the predicted class
Correct answer
BAssign probability one to the predicted class and zero to every other class
Explanation
A point prediction v^ corresponds to the distribution that gives 1 to v^ and 0 to all other classes.
- A
- 17
Why does converting a point classifier into a probabilistic classifier usually add no information?
- A
The conversion changes the target classes into continuous variables
- B
The resulting distribution expresses complete certainty in the same single guess
- C
The conversion estimates uncertainty from the classifier's training errors
- D
The resulting distribution contains probabilities for every class learned from data
Correct answer
BThe resulting distribution expresses complete certainty in the same single guess
Explanation
Although the output is formally a probability distribution, it contains only the original point prediction: probability one for one class and zero elsewhere.
- A
- 18
How can a point prediction be extracted from a probabilistic classifier?
- A
Choose the class that maximizes the predicted probability
- B
Choose a class uniformly at random from the target set
- C
Choose the class with the smallest predicted probability
- D
Choose the average of all class labels without considering probabilities
Correct answer
AChoose the class that maximizes the predicted probability
Explanation
The maximum-likelihood conversion selects v^=argmaxvp^(v).
- A
- 19
What is the maximum-likelihood rule for converting probabilities into a point prediction?
- A
Select the most probable target class
- B
Select the class whose label has the largest numerical value
- C
Select every class with nonzero probability
- D
Select the least probable target class
Correct answer
ASelect the most probable target class
Explanation
Maximum likelihood chooses the class having the highest predicted probability.
- A
- 20
How can a list classifier be generated from a probabilistic classifier?
- A
Repeat the most probable target value until the desired list length is reached
- B
Sort the target values from highest predicted probability to lowest predicted probability
- C
Return only the target value with the smallest predicted probability
- D
Sort the target values alphabetically and discard their probabilities
Correct answer
BSort the target values from highest predicted probability to lowest predicted probability
Explanation
Ordering classes by their predicted probabilities produces a ranked list of guesses.
- A
- 21
What does a tree-based probabilistic classifier store at its leaves?
- A
Probability distributions rather than single point predictions
- B
Only the feature thresholds used at internal nodes
- C
The complete training data set without any class information
- D
A ranked list of input features rather than target classes
Correct answer
AProbability distributions rather than single point predictions
Explanation
A decision tree can use feature and threshold tests at its nodes and store a class distribution at each leaf.
- A
- 22
How does a nearest-neighbor probabilistic classifier estimate probabilities?
- A
It assigns probability according to the numerical distance alone
- B
It assigns equal probability to every class before examining neighbors
- C
It uses the class proportions among the k nearest neighbors
- D
It uses only the single nearest neighbor and ignores the others
Correct answer
CIt uses the class proportions among the k nearest neighbors
Explanation
The classifier examines the k nearest neighbors and uses the empirical distribution of their target classes.
- A
- 23
If three of the eight nearest neighbors belong to one class, what probability does the nearest-neighbor classifier assign to that class?
- A
38
- B
85
- C
83
- D
53
Correct answer
C83
Explanation
The empirical probability is the number of neighbors in the class divided by the total number of neighbors, giving 83.
- A
- 24
In a two-class nearest-neighbor classifier, why is only one class probability needed?
- A
The other class probability equals one minus the first class probability
- B
The two classes must always have equal probabilities
- C
The classifier predicts only one of the two classes
- D
The other class is always assigned probability zero
Correct answer
AThe other class probability equals one minus the first class probability
Explanation
For two classes, if one has probability p, the other must have probability 1−p because the probabilities sum to one.
- A
- 25
Which additional model families can be used to construct probabilistic classifiers?
- A
Only models that use exactly two target classes
- B
Linear predictors and neural-network predictors
- C
Only decision trees and nearest-neighbor predictors
- D
Only models that produce deterministic real-valued outputs
Correct answer
BLinear predictors and neural-network predictors
Explanation
Probabilistic classifiers can be based on trees, nearest neighbors, linear predictors, or neural networks.
- A
- 26
How can a list classifier be evaluated using list rank?
- A
Measure only whether the classifier produced a list of fixed length
- B
Measure how often the true class appears within the top one, top two, top three, or other ranks
- C
Count how many classes were excluded from the list without checking the true class
- D
Compare the numerical values of the listed class labels
Correct answer
BMeasure how often the true class appears within the top one, top two, top three, or other ranks
Explanation
Rank-based evaluation reports the fraction of test examples for which the true class is among the first one, two, three, or more guesses.
- A
- 27
Why is the accuracy for the top three guesses at least as large as the accuracy for the top one guess?
- A
The top-three metric assigns extra probability to the true class
- B
Every true class in the top one is also contained in the top three
- C
The top-three accuracy ignores examples correctly classified at rank one
- D
The classifier becomes more certain whenever three guesses are reported
Correct answer
BEvery true class in the top one is also contained in the top three
Explanation
The top-three set contains the top-one choice, so any example correct at rank one is also correct within the top three.
- A
- 28
How can a ranked list be scored when the true class is first, second, or third?
- A
Assign one point for first place, two for second place, and three for third place
- B
Assign three points for first place, two for second place, and one for third place
- C
Assign points only when the true class is absent from the list
- D
Assign the same score regardless of the true class's rank
Correct answer
BAssign three points for first place, two for second place, and one for third place
Explanation
A rank-weighted score rewards better placement by giving three, two, or one point for the first, second, or third position.
- A
- 29
What information is available for evaluating a probabilistic classifier on a test example?
- A
The true class vi and the predicted distribution p^i
- B
Only the number of classes in the target set
- C
The input features without the observed target value
- D
Only the predicted class with the largest probability
Correct answer
AThe true class vi and the predicted distribution p^i
Explanation
For each test example, evaluation compares the observed target value with the full probability distribution predicted for that input.
- A
- 30
What behavior indicates that a probabilistic weather classifier is well calibrated in the described sense?
- A
It assigns low rain probabilities on rainy days and high probabilities on dry days
- B
It assigns high rain probabilities on days that actually rain and low rain probabilities on days that do not
- C
It assigns a rain probability of one on every day with any cloud cover
- D
It assigns the same rain probability to every day regardless of the weather
Correct answer
BIt assigns high rain probabilities on days that actually rain and low rain probabilities on days that do not
Explanation
A useful probabilistic prediction gives high probability to the outcome that occurs and low probability to outcomes that do not occur.
- A
- 31
Under the independence assumption, how is the likelihood of an entire test data set computed?
- A
Multiply the predicted probabilities assigned to each observed target value
- B
Add the predicted probabilities assigned to each observed target value
- C
Average the class labels appearing in the test data set
- D
Multiply the predicted probabilities of all unobserved target values
Correct answer
AMultiply the predicted probabilities assigned to each observed target value
Explanation
If the examples are treated as independent, the probability of observing the whole sequence is ∏i=1np^i(vi).
- A
- 32
What is the distinction between probability and likelihood in this setting?
- A
Probability describes predictions, whereas likelihood ignores the observed data
- B
Likelihood is always a sum, whereas probability is always a difference
- C
Probability refers only to continuous variables, whereas likelihood refers only to categorical variables
- D
The same product is called probability when viewing outcomes and likelihood when evaluating distributions
Correct answer
DThe same product is called probability when viewing outcomes and likelihood when evaluating distributions
Explanation
The numerical quantity is the same, but the interpretation changes: probability concerns the chance of observed outcomes, while likelihood evaluates how plausible the predicted distributions are.
- A
- 33
Why is the logarithm applied to the likelihood?
- A
It converts a product of individual probabilities into a sum of logarithms
- B
It ensures that every class receives probability one
- C
It removes the need for the probabilities to sum to one
- D
It converts categorical targets into continuous input features
Correct answer
AIt converts a product of individual probabilities into a sum of logarithms
Explanation
The identity log(∏iai)=∑ilog(ai) makes the objective easier to work with.
- A
- 34
Why is the negative log likelihood used as a loss or performance measure?
- A
It gives the same value for every valid probability distribution
- B
It is always negative and becomes smaller when predictions are less accurate
- C
It is nonnegative and becomes smaller when the assigned probability to observed outcomes is larger
- D
It removes all dependence on the observed target values
Correct answer
CIt is nonnegative and becomes smaller when the assigned probability to observed outcomes is larger
Explanation
Because probabilities are at most one, their logarithms are nonpositive; negating them produces a nonnegative quantity, with better predictions yielding smaller values.
- A
- 35
Why is the average negative log likelihood used instead of the unnormalized negative log likelihood?
- A
Averaging guarantees that every class has equal probability
- B
Averaging eliminates the need to use logarithms
- C
Averaging makes scores comparable across data sets of different sizes
- D
Averaging changes a probabilistic classifier into a point classifier
Correct answer
CAveraging makes scores comparable across data sets of different sizes
Explanation
The unnormalized sum grows with the number of observations, whereas dividing by n provides a size-normalized metric.
- A
- 36
For a data set with observations (ui,vi), what is the average negative log likelihood?
- A
−∑i=1np^i(vi)
- B
n1∏i=1nlogp^i(vi)
- C
−n1∑i=1nlogp^i(vi)
- D
n1∑i=1np^i(vi)
Correct answer
C−n1∑i=1nlogp^i(vi)
Explanation
The average negative log likelihood is the negative average of the log probabilities assigned to the observed target values.
- A
- 37
What is the best constant probabilistic classifier under average negative log likelihood?
- A
The empirical distribution of the observed target classes
- B
A uniform distribution over the target classes
- C
A point distribution on the most frequent target class
- D
A distribution assigning probability according to class-label magnitude
Correct answer
AThe empirical distribution of the observed target classes
Explanation
When the classifier ignores the inputs, the minimizing distribution assigns each class its observed frequency in the data.
- A
- 38
How is the empirical distribution of a target class defined?
- A
The reciprocal of the class's numerical label
- B
The fraction of data points whose target equals that class
- C
The distance from that class to the average input
- D
The fraction of features that mention that class
Correct answer
BThe fraction of data points whose target equals that class
Explanation
For class vj, the empirical probability is its count divided by the total number of observations.
- A
- 39
What is the cross entropy of an empirical distribution q relative to a predicted distribution p^?
- A
H(q,p^)=∑j=1klog(qj+p^j)
- B
H(q,p^)=−∑j=1kp^jlogqj
- C
H(q,p^)=−∑j=1kqjlogp^j
- D
H(q,p^)=∑j=1kqjp^j
Correct answer
CH(q,p^)=−∑j=1kqjlogp^j
Explanation
Grouping the data by target class transforms the average negative log likelihood into the cross-entropy expression −∑jqjlogp^j.
- A
- 40
What is the entropy of a probability distribution p?
- A
H(p)=−∑j=1kpjlogpj
- B
H(p)=∑j=1kpj2
- C
H(p)=−∑j=1klogpj
- D
H(p)=∏j=1kpjlogpj
Correct answer
AH(p)=−∑j=1kpjlogpj
Explanation
Entropy is the special case of cross entropy in which the predicted and reference distributions are the same.
- A
- 41
How is the Kullback–Leibler divergence between q and p related to cross entropy and entropy?
- A
DKL(q∥p)=H(q,p)H(q)
- B
DKL(q∥p)=H(q,p)−H(q)
- C
DKL(q∥p)=H(q)+H(p)
- D
DKL(q∥p)=H(p)−H(q,p)
Correct answer
BDKL(q∥p)=H(q,p)−H(q)
Explanation
The divergence is defined as the cross entropy of q relative to p minus the entropy of q.
- A
- 42
Why does minimizing cross entropy over p have the same solution as minimizing KL divergence over p?
- A
The entropy H(q) changes whenever p changes
- B
The KL divergence does not depend on either distribution
- C
The cross entropy and KL divergence are always numerically equal
- D
The entropy H(q) is constant with respect to p
Correct answer
DThe entropy H(q) is constant with respect to p
Explanation
Since DKL(q∥p)=H(q,p)−H(q) and H(q) does not depend on p, subtracting it does not change the minimizing p.
- A
- 43
What is a fundamental property of KL divergence?
- A
It is always nonnegative and equals zero when the two distributions are the same
- B
It can be negative whenever the predicted distribution is more concentrated
- C
It is always negative and equals zero only for uniform distributions
- D
It is always equal to one for two valid distributions
Correct answer
AIt is always nonnegative and equals zero when the two distributions are the same
Explanation
KL divergence satisfies DKL(q∥p)≥0, with equality when q=p under the usual conditions.
- A
- 44
What does KL divergence measure conceptually?
- A
The number of target classes in a classification problem
- B
The proportion of correctly ranked predictions
- C
The distance between two input records in feature space
- D
A measure of the difference between two probability distributions
Correct answer
DA measure of the difference between two probability distributions
Explanation
KL divergence quantifies how different one probability distribution is from another, although it is not generally a symmetric distance.
- A
- 45
Which statement summarizes the relationship between the best constant predictor and the empirical distribution?
- A
The distribution with the largest entropy always minimizes average negative log likelihood
- B
The uniform distribution always minimizes average negative log likelihood
- C
The empirical distribution minimizes average negative log likelihood among constant probabilistic predictors
- D
The most frequent class alone always minimizes average negative log likelihood
Correct answer
CThe empirical distribution minimizes average negative log likelihood among constant probabilistic predictors
Explanation
The optimal constant probabilistic prediction is p^=q, where q is the empirical distribution of the observed target values.
- A

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