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

  • 60Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Prediction Types
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is a point classifier?

Tap to flipClick to flipspace

A classifier that makes a single prediction, such as [?].

Or swipe the card

60 cards

  1. What is a point classifier?

    A classifier that makes a single prediction, such as [?].

  2. What is a list classifier?

    A classifier that returns an ordered list of possible target values, ranked from most to least likely.

  3. Can a list classifier produce a fixed or variable number of guesses?

    Yes. It may always return a fixed number, such as the top three, or return a variable number depending on its certainty.

  4. How are list predictions commonly evaluated by rank?

    They can be evaluated by measuring how often the true value appears as the first, second, third, or another ranked guess.

  5. How can a list classifier be scored using rank-based points?

    Give more points when the true value is ranked higher—for example, three points for first place, two for second, and one for third—and sum the points across the test set.

  6. What is a probabilistic classifier?

    A classifier that returns a probability distribution over the possible target classes.

  7. Give an example of a probabilistic weather prediction.

    A prediction might assign probability 0.150.150.15 to rain and 0.850.850.85 to sunshine.

  8. Why are probabilistic classifiers useful compared with point classifiers?

    They communicate uncertainty and provide more information than a single guess.

  9. How can nearest-neighbor unembedding produce a list classifier?

    Return the several representatives closest to the predicted embedded point, ranking them by distance.

  10. What properties must a probability distribution on a target set have?

    Every probability must be nonnegative, and all probabilities must sum to 111.

  11. What does p(v)p(v)p(v) represent?

    The probability assigned to target value vvv.

  12. If the classes are v_1,[?], how can a probability distribution be represented?

    As a kkk-dimensional vector ppp whose jjjth entry is pj=p(vj)p_j = p(v_j)pj​=p(vj​).

  13. What does the vector inequality p≥0p \ge 0p≥0 mean for a probability vector?

    It means every entry satisfies pj≥0p_j \ge 0pj​≥0.

  14. How is the requirement that probability-vector entries sum to one written in vector notation?

    As 1Tp=1\mathbf{1}^{\mathsf{T}}p = 11Tp=1, where 1\mathbf{1}1 is the vector of all ones.

  15. What are the two equivalent ways to view a probability distribution?

    As a function from the target set to the real numbers, or as a vector containing one probability for each class.

  16. What does a probabilistic classifier output for an input uuu?

    It outputs a predicted probability distribution p^\hat pp^​ over the target set.

  17. How is a probabilistic classifier represented as a function?

    As p^=G(u)\hat p = G(u)p^​=G(u), where GGG maps an input uuu to a probability distribution.

  18. What does G(u)(vi)G(u)(v_i)G(u)(vi​) mean?

    It is the predicted probability that the target class is viv_ivi​ for input uuu.

  19. Why can a probabilistic classifier be described as a function that returns a function?

    Because GGG takes an input uuu and returns a probability distribution, and a distribution itself is a function of the target class.

  20. How is a point classifier represented as a special probabilistic classifier?

    Assign probability 111 to the predicted class v^\hat vv^ and probability 000 to every other class.

  21. Why is converting a point classifier into a probabilistic classifier usually not useful?

    It does not add information because it merely represents the original single guess with probability 111.

  22. How can a probabilistic classifier be converted into a point classifier?

    Choose the class with the largest predicted probability: v^=arg⁡max⁡vp^(v)\hat v = \arg\max_v \hat p(v)v^=argmaxv​p^​(v).

  23. What is the name for converting a probabilistic prediction to its most likely class?

    Maximum likelihood.

  24. How can a probabilistic classifier be converted into a list classifier?

    Sort the target values in descending order of their predicted probabilities.

  25. How can a decision tree be extended from point classification to probabilistic classification?

    Keep feature-and-threshold decision nodes, but place a probability distribution rather than a single class prediction at each leaf.

  26. How does a nearest-neighbor probabilistic classifier estimate probabilities?

    Find the kkk nearest neighbors to the query point and use the empirical class frequencies among those neighbors as the predicted probabilities.

  27. In a nearest-neighbor probabilistic classifier, what is the estimated probability of a class?

    The fraction of the selected kkk neighbors belonging to that class.

  28. What other predictor types can be extended to probabilistic classifiers?

    Linear predictors and neural-network predictors, in addition to tree-based and nearest-neighbor predictors.

  29. How does a two-class nearest-neighbor probabilistic classifier visualize predictions?

    The predicted probability of one class determines the color, with pure colors representing probability 111 for one class and intermediate colors representing mixtures.

  30. Why is only one probability needed for a two-class probabilistic classifier?

    Because if one class has probability ppp, the other has probability 1−p1-p1−p.

  31. What is top-kkk accuracy for a list classifier?

    The proportion of test examples for which the true class appears among the classifier's first kkk guesses.

  32. Why is top-kkk accuracy nondecreasing as kkk increases?

    Allowing more guesses cannot remove an example that was already counted as correct.

  33. What does a probabilistic classifier receive for each test example when it is evaluated?

    The true target value viv_ivi​ and a predicted probability distribution p^i\hat p_ip^​i​.

  34. What behavior indicates that a probabilistic classifier is well calibrated in a binary rain example?

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

  35. What is likelihood in probabilistic classification?

    The probability of the observed outcomes when viewed as a measure of how appropriate the predicted distributions are.

  36. Given independent examples with predictions p^1,…,p^n\hat p_1,\ldots,\hat p_np^​1​,…,p^​n​ and outcomes v1,…,vnv_1,\ldots,v_nv1​,…,vn​, what is the likelihood?

    L=∏i=1np^i(vi)L = \prod_{i=1}^{n} \hat p_i(v_i)L=∏i=1n​p^​i​(vi​)

  37. Why is a larger likelihood better?

    A larger likelihood means the predicted distributions assign greater probability to the outcomes that actually occurred.

  38. Why are log probabilities used instead of raw likelihoods?

    The logarithm converts the product of individual probabilities into a sum, making computation and optimization more convenient.

  39. What is the negative log likelihood for a data set?

    −log⁡L=−∑i=1nlog⁡p^i(vi)-\log L = -\sum_{i=1}^{n}\log\hat p_i(v_i)−logL=−∑i=1n​logp^​i​(vi​)

  40. Why is negative log likelihood minimized?

    Because a high likelihood corresponds to a low negative log likelihood.

  41. What is average negative log likelihood?

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

  42. What is the advantage of average negative log likelihood over total negative log likelihood?

    Average negative log likelihood can compare classifiers evaluated on data sets with different numbers of examples.

  43. What is the empirical distribution of a data set?

    For each class, it is the fraction of observed data points belonging to that class.

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

    The empirical distribution of the observed target values.

  45. How does the best constant probabilistic classifier compare with best constant predictors under other losses?

    The best constant predictor is the mean under squared loss, the median under absolute loss, and the empirical distribution under average negative log likelihood.

  46. How can average negative log likelihood be grouped by target class?

    If qjq_jqj​ is the empirical frequency of class vjv_jvj​, then ANLL⁡=−∑j=1kqjlog⁡p^j.\operatorname{ANLL} = -\sum_{j=1}^{k} q_j\log\hat p_j.ANLL=−∑j=1k​qj​logp^​j​.

  47. What is cross entropy between an empirical distribution qqq and a predicted distribution p^\hat pp^​?

    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​

  48. What do the two distributions in cross entropy represent?

    The first distribution, qqq, is the empirical or underlying target distribution; the second, p^\hat pp^​, is the distribution produced by the classifier.

  49. What is the entropy of a probability distribution ppp?

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

  50. Where are entropy and cross entropy widely used?

    They are fundamental in coding theory, information theory, and machine learning.

  51. What is the Kullback–Leibler divergence from qqq to ppp?

    DKL(q∥p)=H(q,p)−H(q)=∑j=1kqjlog⁡qjpjD_{\mathrm{KL}}(q\|p) = H(q,p)-H(q) = \sum_{j=1}^{k}q_j\log\frac{q_j}{p_j}DKL​(q∥p)=H(q,p)−H(q)=∑j=1k​qj​logpj​qj​​

  52. Why can minimizing cross entropy be replaced by minimizing KL divergence?

    Because H(q,p)=DKL(q∥p)+H(q)H(q,p)=D_{\mathrm{KL}}(q\|p)+H(q)H(q,p)=DKL​(q∥p)+H(q), and H(q)H(q)H(q) does not depend on the variable distribution ppp.

  53. What is the fundamental nonnegativity property of KL divergence?

    DKL(q∥p)≥0D_{\mathrm{KL}}(q\|p)\ge 0DKL​(q∥p)≥0.

  54. When is KL divergence equal to zero?

    When the two distributions are identical, so p=qp=qp=q.

  55. What inequality helps prove that KL divergence is nonnegative?

    For positive xxx, log⁡x≤x−1\log x\le x-1logx≤x−1.

  56. Why do the terms in the KL-divergence proof sum to zero?

    Because both ppp and qqq are probability distributions, so ∑jpj=1\sum_j p_j=1∑j​pj​=1 and ∑jqj=1\sum_j q_j=1∑j​qj​=1.

  57. What distribution minimizes the cross entropy H(q,p)H(q,p)H(q,p) over all valid ppp?

    The distribution p=qp=qp=q.

  58. What is the resulting minimum cross entropy when p=qp=qp=q?

    It is the entropy of qqq, namely H(q,q)=H(q)H(q,q)=H(q)H(q,q)=H(q).

  59. How should a probabilistic classifier be judged on test data?

    By its average negative log likelihood, or equivalently by how much probability it assigns to the true outcomes.

  60. What is the key difference between point and probabilistic classification?

    A point classifier makes one class prediction for input uuu, whereas a probabilistic classifier assigns a probability distribution over all target classes.

Card 1 of 60
Card 1 of 60

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent