1. Home
  2. Explore
  3. Computer Science
  4. Probabilistic Classification

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Probabilistic Classification

  • 45Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Classifier Outputs

What distinguishes a point classifier from a probabilistic classifier?

45 questions

  1. 1

    What distinguishes a point classifier from a probabilistic classifier?

    1. A

      A point classifier requires numerical inputs, whereas a probabilistic classifier requires categorical inputs

    2. B

      A point classifier always uses neighbors, whereas a probabilistic classifier always uses trees

    3. C

      A point classifier returns one class, whereas a probabilistic classifier returns probabilities for all possible classes

    4. D

      A point classifier predicts several rankings, whereas a probabilistic classifier predicts only one class

    Correct answer
    C

    A 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.

  2. 2

    What is the output of a list classifier?

    1. A

      A single numerical loss for the input record

    2. B

      An ordered list of possible target values

    3. C

      A continuous vector unrelated to target classes

    4. D

      A single target value with probability one

    Correct answer
    B

    An ordered list of possible target values

    Explanation

    A list classifier produces multiple guesses, usually ordered from most likely to least likely.

  3. 3

    Why might a classifier produce a ranked list instead of one prediction?

    1. A

      The classifier is unable to represent any categorical target

    2. B

      The classifier must always avoid using probability values

    3. C

      The classifier has been trained without any labeled examples

    4. D

      The classifier may be uncertain among several plausible classes

    Correct answer
    D

    The 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.

  4. 4

    Which example best represents a probabilistic prediction?

    1. A

      A pedestrian probability of 0.90.90.9, a scooter probability of 0.050.050.05, and a bicycle probability of 0.050.050.05

    2. B

      A numerical feature vector describing the object's color and position

    3. C

      A prediction that the object is exactly one pedestrian and no other output is provided

    4. D

      A list containing pedestrian, scooter, and bicycle without any ordering

    Correct answer
    A

    A pedestrian probability of 0.90.90.9, a scooter probability of 0.050.050.05, and a bicycle probability of 0.050.050.05

    Explanation

    A probabilistic classifier assigns a probability to each possible class, with the probabilities summing to one.

  5. 5

    How can a probabilistic weather prediction be made actionable?

    1. A

      Convert every nonzero probability into a separate physical action

    2. B

      Ignore the probabilities and always choose the most frequent historical outcome

    3. C

      Choose an action based on which weather outcome has the greater predicted probability

    4. D

      Treat the probability of rain as a guaranteed prediction

    Correct answer
    C

    Choose 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.

  6. 6

    How can a list classifier be constructed from nearest-neighbor unembedding?

    1. A

      Return the representatives closest to the predicted embedded value in ranked order

    2. B

      Return the representatives with the largest numerical class labels

    3. C

      Return the representatives farthest from the predicted embedded value in random order

    4. D

      Return only the average of all representatives in the embedding space

    Correct answer
    A

    Return 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.

  7. 7

    What does it mean for a list classifier to have a variable number of guesses?

    1. A

      It always produces exactly one guess for certain inputs and ten for uncertain inputs

    2. B

      It produces more guesses when uncertainty is greater and fewer guesses when confidence is stronger

    3. C

      It produces a random number of guesses independently of prediction confidence

    4. D

      It changes the number of target classes during every prediction

    Correct answer
    B

    It 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.

  8. 8

    Which condition must a probability distribution on a target set satisfy?

    1. A

      Every probability is nonnegative and all probabilities sum to one

    2. B

      Every probability is positive and all probabilities sum to zero

    3. C

      At least one probability is negative and the largest probability equals one

    4. D

      All probabilities are equal regardless of the target set

    Correct answer
    A

    Every 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.

  9. 9

    If the target set consists of rain and shine, what does p(rain)=0.15p(\text{rain})=0.15p(rain)=0.15 and p(shine)=0.85p(\text{shine})=0.85p(shine)=0.85 imply?

    1. A

      The prediction is invalid because the two probabilities must be equal

    2. B

      Rain and shine are assigned probabilities that form a valid distribution

    3. C

      Rain is predicted with certainty because it has a nonzero probability

    4. D

      The prediction is invalid because one probability is less than 0.50.50.5

    Correct answer
    B

    Rain and shine are assigned probabilities that form a valid distribution

    Explanation

    Both probabilities are nonnegative and their sum is 0.15+0.85=10.15+0.85=10.15+0.85=1, so they form a valid distribution.

  10. 10

    If there are kkk target classes, how can their probability distribution be represented in vector notation?

    1. A

      As a scalar containing only the largest class probability

    2. B

      As a kkk-dimensional vector whose entries are unrestricted real numbers

    3. C

      As a matrix with one row for every training example

    4. D

      As a kkk-dimensional vector whose entries are the class probabilities

    Correct answer
    D

    As a kkk-dimensional vector whose entries are the class probabilities

    Explanation

    Listing the probabilities for classes v1v_1v1​ through vkv_kvk​ produces a kkk-dimensional probability vector.

  11. 11

    What does the vector inequality p≥0p\geq 0p≥0 mean for a probability vector?

    1. A

      The vector ppp is greater than a scalar in a geometric ordering

    2. B

      Every entry of ppp is strictly greater than one

    3. C

      Every entry of ppp is nonnegative

    4. D

      The sum of the entries of ppp is greater than zero but not necessarily one

    Correct answer
    C

    Every entry of ppp is nonnegative

    Explanation

    The inequality is interpreted elementwise, so each component probability must be nonnegative.

  12. 12

    What does the equation 1Tp=1\mathbf{1}^{\mathsf T}p=11Tp=1 express?

    1. A

      The entries of the probability vector ppp sum to one

    2. B

      The vector ppp contains exactly one nonzero entry

    3. C

      The number of classes represented by ppp is one

    4. D

      Every entry of ppp is equal to one

    Correct answer
    A

    The entries of the probability vector ppp sum to one

    Explanation

    Multiplying by the all-ones vector and transposing computes the sum of all entries, which must equal one.

  13. 13

    What does a probabilistic classifier return for an input uuu?

    1. A

      A list of input features sorted by magnitude

    2. B

      A predicted probability distribution p^\hat{p}p^​ over the target classes

    3. C

      A single embedded target representative only

    4. D

      A training loss without any class-specific information

    Correct answer
    B

    A predicted probability distribution p^\hat{p}p^​ over the target classes

    Explanation

    A probabilistic classifier can be written as p^=G(u)\hat{p}=G(u)p^​=G(u), where p^\hat{p}p^​ assigns a probability to each possible target class.

  14. 14

    What does evaluating p^\hat{p}p^​ at viv_ivi​ represent?

    1. A

      The probability that the input features equal the target label

    2. B

      The predicted probability that the target equals viv_ivi​ for the given input

    3. C

      The number of training examples whose target is not viv_ivi​

    4. D

      The distance between the input and the class representative viv_ivi​

    Correct answer
    B

    The predicted probability that the target equals viv_ivi​ for the given input

    Explanation

    The value p^(vi)\hat{p}(v_i)p^​(vi​) is the probability assigned to class viv_ivi​ by the distribution predicted for the input.

  15. 15

    Why is GGG described as a function that returns a function?

    1. A

      It applies two unrelated classifiers to the same input and returns both class labels

    2. B

      It returns a list of functions because probability distributions cannot be evaluated

    3. C

      It maps every input to a scalar and then converts that scalar into an input vector

    4. D

      It maps an input to a probability distribution, and a distribution itself maps each class to a probability

    Correct answer
    D

    It maps an input to a probability distribution, and a distribution itself maps each class to a probability

    Explanation

    The output G(u)=p^G(u)=\hat{p}G(u)=p^​ is itself a function from target classes to probabilities, so GGG returns a function-valued object.

  16. 16

    How can a point classifier be represented as a probabilistic classifier?

    1. A

      Assign equal probability to every class regardless of the point prediction

    2. B

      Assign probability one to the predicted class and zero to every other class

    3. C

      Assign the predicted class its numerical label as its probability

    4. D

      Assign negative probability to incorrect classes and positive probability to the predicted class

    Correct answer
    B

    Assign probability one to the predicted class and zero to every other class

    Explanation

    A point prediction v^\hat{v}v^ corresponds to the distribution that gives 111 to v^\hat{v}v^ and 000 to all other classes.

  17. 17

    Why does converting a point classifier into a probabilistic classifier usually add no information?

    1. A

      The conversion changes the target classes into continuous variables

    2. B

      The resulting distribution expresses complete certainty in the same single guess

    3. C

      The conversion estimates uncertainty from the classifier's training errors

    4. D

      The resulting distribution contains probabilities for every class learned from data

    Correct answer
    B

    The 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.

  18. 18

    How can a point prediction be extracted from a probabilistic classifier?

    1. A

      Choose the class that maximizes the predicted probability

    2. B

      Choose a class uniformly at random from the target set

    3. C

      Choose the class with the smallest predicted probability

    4. D

      Choose the average of all class labels without considering probabilities

    Correct answer
    A

    Choose the class that maximizes the predicted probability

    Explanation

    The maximum-likelihood conversion selects v^=arg⁡max⁡vp^(v)\hat{v}=\arg\max_v \hat{p}(v)v^=argmaxv​p^​(v).

  19. 19

    What is the maximum-likelihood rule for converting probabilities into a point prediction?

    1. A

      Select the most probable target class

    2. B

      Select the class whose label has the largest numerical value

    3. C

      Select every class with nonzero probability

    4. D

      Select the least probable target class

    Correct answer
    A

    Select the most probable target class

    Explanation

    Maximum likelihood chooses the class having the highest predicted probability.

  20. 20

    How can a list classifier be generated from a probabilistic classifier?

    1. A

      Repeat the most probable target value until the desired list length is reached

    2. B

      Sort the target values from highest predicted probability to lowest predicted probability

    3. C

      Return only the target value with the smallest predicted probability

    4. D

      Sort the target values alphabetically and discard their probabilities

    Correct answer
    B

    Sort the target values from highest predicted probability to lowest predicted probability

    Explanation

    Ordering classes by their predicted probabilities produces a ranked list of guesses.

  21. 21

    What does a tree-based probabilistic classifier store at its leaves?

    1. A

      Probability distributions rather than single point predictions

    2. B

      Only the feature thresholds used at internal nodes

    3. C

      The complete training data set without any class information

    4. D

      A ranked list of input features rather than target classes

    Correct answer
    A

    Probability 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.

  22. 22

    How does a nearest-neighbor probabilistic classifier estimate probabilities?

    1. A

      It assigns probability according to the numerical distance alone

    2. B

      It assigns equal probability to every class before examining neighbors

    3. C

      It uses the class proportions among the kkk nearest neighbors

    4. D

      It uses only the single nearest neighbor and ignores the others

    Correct answer
    C

    It uses the class proportions among the kkk nearest neighbors

    Explanation

    The classifier examines the kkk nearest neighbors and uses the empirical distribution of their target classes.

  23. 23

    If three of the eight nearest neighbors belong to one class, what probability does the nearest-neighbor classifier assign to that class?

    1. A

      83\frac{8}{3}38​

    2. B

      58\frac{5}{8}85​

    3. C

      38\frac{3}{8}83​

    4. D

      35\frac{3}{5}53​

    Correct answer
    C

    38\frac{3}{8}83​

    Explanation

    The empirical probability is the number of neighbors in the class divided by the total number of neighbors, giving 38\frac{3}{8}83​.

  24. 24

    In a two-class nearest-neighbor classifier, why is only one class probability needed?

    1. A

      The other class probability equals one minus the first class probability

    2. B

      The two classes must always have equal probabilities

    3. C

      The classifier predicts only one of the two classes

    4. D

      The other class is always assigned probability zero

    Correct answer
    A

    The other class probability equals one minus the first class probability

    Explanation

    For two classes, if one has probability ppp, the other must have probability 1−p1-p1−p because the probabilities sum to one.

  25. 25

    Which additional model families can be used to construct probabilistic classifiers?

    1. A

      Only models that use exactly two target classes

    2. B

      Linear predictors and neural-network predictors

    3. C

      Only decision trees and nearest-neighbor predictors

    4. D

      Only models that produce deterministic real-valued outputs

    Correct answer
    B

    Linear predictors and neural-network predictors

    Explanation

    Probabilistic classifiers can be based on trees, nearest neighbors, linear predictors, or neural networks.

  26. 26

    How can a list classifier be evaluated using list rank?

    1. A

      Measure only whether the classifier produced a list of fixed length

    2. B

      Measure how often the true class appears within the top one, top two, top three, or other ranks

    3. C

      Count how many classes were excluded from the list without checking the true class

    4. D

      Compare the numerical values of the listed class labels

    Correct answer
    B

    Measure 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.

  27. 27

    Why is the accuracy for the top three guesses at least as large as the accuracy for the top one guess?

    1. A

      The top-three metric assigns extra probability to the true class

    2. B

      Every true class in the top one is also contained in the top three

    3. C

      The top-three accuracy ignores examples correctly classified at rank one

    4. D

      The classifier becomes more certain whenever three guesses are reported

    Correct answer
    B

    Every 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.

  28. 28

    How can a ranked list be scored when the true class is first, second, or third?

    1. A

      Assign one point for first place, two for second place, and three for third place

    2. B

      Assign three points for first place, two for second place, and one for third place

    3. C

      Assign points only when the true class is absent from the list

    4. D

      Assign the same score regardless of the true class's rank

    Correct answer
    B

    Assign 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.

  29. 29

    What information is available for evaluating a probabilistic classifier on a test example?

    1. A

      The true class viv_ivi​ and the predicted distribution p^i\hat{p}_ip^​i​

    2. B

      Only the number of classes in the target set

    3. C

      The input features without the observed target value

    4. D

      Only the predicted class with the largest probability

    Correct answer
    A

    The true class viv_ivi​ and the predicted distribution p^i\hat{p}_ip^​i​

    Explanation

    For each test example, evaluation compares the observed target value with the full probability distribution predicted for that input.

  30. 30

    What behavior indicates that a probabilistic weather classifier is well calibrated in the described sense?

    1. A

      It assigns low rain probabilities on rainy days and high probabilities on dry days

    2. B

      It assigns high rain probabilities on days that actually rain and low rain probabilities on days that do not

    3. C

      It assigns a rain probability of one on every day with any cloud cover

    4. D

      It assigns the same rain probability to every day regardless of the weather

    Correct answer
    B

    It 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.

  31. 31

    Under the independence assumption, how is the likelihood of an entire test data set computed?

    1. A

      Multiply the predicted probabilities assigned to each observed target value

    2. B

      Add the predicted probabilities assigned to each observed target value

    3. C

      Average the class labels appearing in the test data set

    4. D

      Multiply the predicted probabilities of all unobserved target values

    Correct answer
    A

    Multiply 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)\prod_{i=1}^{n}\hat{p}_i(v_i)∏i=1n​p^​i​(vi​).

  32. 32

    What is the distinction between probability and likelihood in this setting?

    1. A

      Probability describes predictions, whereas likelihood ignores the observed data

    2. B

      Likelihood is always a sum, whereas probability is always a difference

    3. C

      Probability refers only to continuous variables, whereas likelihood refers only to categorical variables

    4. D

      The same product is called probability when viewing outcomes and likelihood when evaluating distributions

    Correct answer
    D

    The 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.

  33. 33

    Why is the logarithm applied to the likelihood?

    1. A

      It converts a product of individual probabilities into a sum of logarithms

    2. B

      It ensures that every class receives probability one

    3. C

      It removes the need for the probabilities to sum to one

    4. D

      It converts categorical targets into continuous input features

    Correct answer
    A

    It converts a product of individual probabilities into a sum of logarithms

    Explanation

    The identity log⁡(∏iai)=∑ilog⁡(ai)\log\left(\prod_i a_i\right)=\sum_i\log(a_i)log(∏i​ai​)=∑i​log(ai​) makes the objective easier to work with.

  34. 34

    Why is the negative log likelihood used as a loss or performance measure?

    1. A

      It gives the same value for every valid probability distribution

    2. B

      It is always negative and becomes smaller when predictions are less accurate

    3. C

      It is nonnegative and becomes smaller when the assigned probability to observed outcomes is larger

    4. D

      It removes all dependence on the observed target values

    Correct answer
    C

    It 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.

  35. 35

    Why is the average negative log likelihood used instead of the unnormalized negative log likelihood?

    1. A

      Averaging guarantees that every class has equal probability

    2. B

      Averaging eliminates the need to use logarithms

    3. C

      Averaging makes scores comparable across data sets of different sizes

    4. D

      Averaging changes a probabilistic classifier into a point classifier

    Correct answer
    C

    Averaging makes scores comparable across data sets of different sizes

    Explanation

    The unnormalized sum grows with the number of observations, whereas dividing by nnn provides a size-normalized metric.

  36. 36

    For a data set with observations (ui,vi)(u_i,v_i)(ui​,vi​), what is the average negative log likelihood?

    1. A

      −∑i=1np^i(vi)-\sum_{i=1}^{n}\hat{p}_i(v_i)−∑i=1n​p^​i​(vi​)

    2. B

      1n∏i=1nlog⁡p^i(vi)\frac{1}{n}\prod_{i=1}^{n}\log\hat{p}_i(v_i)n1​∏i=1n​logp^​i​(vi​)

    3. C

      −1n∑i=1nlog⁡p^i(vi)-\frac{1}{n}\sum_{i=1}^{n}\log\hat{p}_i(v_i)−n1​∑i=1n​logp^​i​(vi​)

    4. D

      1n∑i=1np^i(vi)\frac{1}{n}\sum_{i=1}^{n}\hat{p}_i(v_i)n1​∑i=1n​p^​i​(vi​)

    Correct answer
    C

    −1n∑i=1nlog⁡p^i(vi)-\frac{1}{n}\sum_{i=1}^{n}\log\hat{p}_i(v_i)−n1​∑i=1n​logp^​i​(vi​)

    Explanation

    The average negative log likelihood is the negative average of the log probabilities assigned to the observed target values.

  37. 37

    What is the best constant probabilistic classifier under average negative log likelihood?

    1. A

      The empirical distribution of the observed target classes

    2. B

      A uniform distribution over the target classes

    3. C

      A point distribution on the most frequent target class

    4. D

      A distribution assigning probability according to class-label magnitude

    Correct answer
    A

    The 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.

  38. 38

    How is the empirical distribution of a target class defined?

    1. A

      The reciprocal of the class's numerical label

    2. B

      The fraction of data points whose target equals that class

    3. C

      The distance from that class to the average input

    4. D

      The fraction of features that mention that class

    Correct answer
    B

    The fraction of data points whose target equals that class

    Explanation

    For class vjv_jvj​, the empirical probability is its count divided by the total number of observations.

  39. 39

    What is the cross entropy of an empirical distribution qqq relative to a predicted distribution p^\hat{p}p^​?

    1. A

      H(q,p^)=∑j=1klog⁡(qj+p^j)H(q,\hat{p})=\sum_{j=1}^{k}\log(q_j+\hat{p}_j)H(q,p^​)=∑j=1k​log(qj​+p^​j​)

    2. B

      H(q,p^)=−∑j=1kp^jlog⁡qjH(q,\hat{p})=-\sum_{j=1}^{k}\hat{p}_j\log q_jH(q,p^​)=−∑j=1k​p^​j​logqj​

    3. C

      H(q,p^)=−∑j=1kqjlog⁡p^jH(q,\hat{p})=-\sum_{j=1}^{k}q_j\log\hat{p}_jH(q,p^​)=−∑j=1k​qj​logp^​j​

    4. D

      H(q,p^)=∑j=1kqjp^jH(q,\hat{p})=\sum_{j=1}^{k}q_j\hat{p}_jH(q,p^​)=∑j=1k​qj​p^​j​

    Correct answer
    C

    H(q,p^)=−∑j=1kqjlog⁡p^jH(q,\hat{p})=-\sum_{j=1}^{k}q_j\log\hat{p}_jH(q,p^​)=−∑j=1k​qj​logp^​j​

    Explanation

    Grouping the data by target class transforms the average negative log likelihood into the cross-entropy expression −∑jqjlog⁡p^j-\sum_j q_j\log\hat{p}_j−∑j​qj​logp^​j​.

  40. 40

    What is the entropy of a probability distribution ppp?

    1. A

      H(p)=−∑j=1kpjlog⁡pjH(p)=-\sum_{j=1}^{k}p_j\log p_jH(p)=−∑j=1k​pj​logpj​

    2. B

      H(p)=∑j=1kpj2H(p)=\sum_{j=1}^{k}p_j^2H(p)=∑j=1k​pj2​

    3. C

      H(p)=−∑j=1klog⁡pjH(p)=-\sum_{j=1}^{k}\log p_jH(p)=−∑j=1k​logpj​

    4. D

      H(p)=∏j=1kpjlog⁡pjH(p)=\prod_{j=1}^{k}p_j\log p_jH(p)=∏j=1k​pj​logpj​

    Correct answer
    A

    H(p)=−∑j=1kpjlog⁡pjH(p)=-\sum_{j=1}^{k}p_j\log p_jH(p)=−∑j=1k​pj​logpj​

    Explanation

    Entropy is the special case of cross entropy in which the predicted and reference distributions are the same.

  41. 41

    How is the Kullback–Leibler divergence between qqq and ppp related to cross entropy and entropy?

    1. A

      DKL(q∥p)=H(q,p)H(q)D_{\mathrm{KL}}(q\|p)=H(q,p)H(q)DKL​(q∥p)=H(q,p)H(q)

    2. B

      DKL(q∥p)=H(q,p)−H(q)D_{\mathrm{KL}}(q\|p)=H(q,p)-H(q)DKL​(q∥p)=H(q,p)−H(q)

    3. C

      DKL(q∥p)=H(q)+H(p)D_{\mathrm{KL}}(q\|p)=H(q)+H(p)DKL​(q∥p)=H(q)+H(p)

    4. D

      DKL(q∥p)=H(p)−H(q,p)D_{\mathrm{KL}}(q\|p)=H(p)-H(q,p)DKL​(q∥p)=H(p)−H(q,p)

    Correct answer
    B

    DKL(q∥p)=H(q,p)−H(q)D_{\mathrm{KL}}(q\|p)=H(q,p)-H(q)DKL​(q∥p)=H(q,p)−H(q)

    Explanation

    The divergence is defined as the cross entropy of qqq relative to ppp minus the entropy of qqq.

  42. 42

    Why does minimizing cross entropy over ppp have the same solution as minimizing KL divergence over ppp?

    1. A

      The entropy H(q)H(q)H(q) changes whenever ppp changes

    2. B

      The KL divergence does not depend on either distribution

    3. C

      The cross entropy and KL divergence are always numerically equal

    4. D

      The entropy H(q)H(q)H(q) is constant with respect to ppp

    Correct answer
    D

    The entropy H(q)H(q)H(q) is constant with respect to ppp

    Explanation

    Since DKL(q∥p)=H(q,p)−H(q)D_{\mathrm{KL}}(q\|p)=H(q,p)-H(q)DKL​(q∥p)=H(q,p)−H(q) and H(q)H(q)H(q) does not depend on ppp, subtracting it does not change the minimizing ppp.

  43. 43

    What is a fundamental property of KL divergence?

    1. A

      It is always nonnegative and equals zero when the two distributions are the same

    2. B

      It can be negative whenever the predicted distribution is more concentrated

    3. C

      It is always negative and equals zero only for uniform distributions

    4. D

      It is always equal to one for two valid distributions

    Correct answer
    A

    It is always nonnegative and equals zero when the two distributions are the same

    Explanation

    KL divergence satisfies DKL(q∥p)≥0D_{\mathrm{KL}}(q\|p)\geq 0DKL​(q∥p)≥0, with equality when q=pq=pq=p under the usual conditions.

  44. 44

    What does KL divergence measure conceptually?

    1. A

      The number of target classes in a classification problem

    2. B

      The proportion of correctly ranked predictions

    3. C

      The distance between two input records in feature space

    4. D

      A measure of the difference between two probability distributions

    Correct answer
    D

    A 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.

  45. 45

    Which statement summarizes the relationship between the best constant predictor and the empirical distribution?

    1. A

      The distribution with the largest entropy always minimizes average negative log likelihood

    2. B

      The uniform distribution always minimizes average negative log likelihood

    3. C

      The empirical distribution minimizes average negative log likelihood among constant probabilistic predictors

    4. D

      The most frequent class alone always minimizes average negative log likelihood

    Correct answer
    C

    The empirical distribution minimizes average negative log likelihood among constant probabilistic predictors

    Explanation

    The optimal constant probabilistic prediction is p^=q\hat{p}=qp^​=q, where qqq is the empirical distribution of the observed target values.

Question 1 of 45
Question 1 of 45

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent