1. Home
  2. Explore
  3. Computer Science
  4. Probabilistic Brain & Generative Models

Study methods

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

Probabilistic Brain & Generative Models

  • 15Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Probability Fundamentals

What is a probability distribution?

15 questions

  1. 1

    What is a probability distribution?

    1. A

      A function that maps each possible state to a positive number between 0 and 1, with all numbers summing to 1

    2. B

      A list of all possible outcomes of an experiment

    3. C

      A function that assigns the same probability to all outcomes

    4. D

      A function that maps each possible state to a number between 0 and 1, with no constraints

    Correct answer
    A

    A function that maps each possible state to a positive number between 0 and 1, with all numbers summing to 1

    Explanation

    A probability distribution assigns a probability (between 0 and 1) to each state, and the sum over all states equals 1.

  2. 2

    Which interpretation of probability treats probability as a degree of belief?

    1. A

      Propensity interpretation

    2. B

      Classical interpretation

    3. C

      Frequentist interpretation

    4. D

      Bayesian interpretation

    Correct answer
    D

    Bayesian interpretation

    Explanation

    The Bayesian interpretation views probability as a degree of belief, suitable for non-repeatable events like weather forecasts.

  3. 3

    According to the frequentist interpretation, how is the probability of rolling a 3 on a fair die determined?

    1. A

      By logical deduction that each side is equally likely

    2. B

      By assigning a belief of 1/6

    3. C

      By measuring the physical properties of the die

    4. D

      By rolling the die many times and observing the ratio of times it lands on 3

    Correct answer
    D

    By rolling the die many times and observing the ratio of times it lands on 3

    Explanation

    Frequentism defines probability as the long-run frequency of an event in repeated trials.

  4. 4

    For a continuous variable like height, what condition must a probability distribution satisfy?

    1. A

      The integral of the probability density over all values equals 1

    2. B

      The probability density function is constant

    3. C

      The probability of each exact value is 1

    4. D

      The sum of probabilities over all discrete values equals 1

    Correct answer
    A

    The integral of the probability density over all values equals 1

    Explanation

    For continuous distributions, the probability density integrates to 1 over the range of possible values.

  5. 5

    What is sampling in the context of probability distributions?

    1. A

      Fitting a distribution to data

    2. B

      Calculating the average of outcomes

    3. C

      Generating an outcome from a distribution according to its probabilities

    4. D

      Counting the frequency of outcomes

    Correct answer
    C

    Generating an outcome from a distribution according to its probabilities

    Explanation

    Sampling is the process of drawing a random outcome from a distribution, such as rolling a die to get a number.

  6. 6

    What is the mathematical expression for the surprise of an event with probability ppp?

    1. A

      log⁡(1/p)\log(1/p)log(1/p)

    2. B

      −log⁡(p)-\log(p)−log(p)

    3. C

      1/p1/p1/p

    4. D

      1−p1-p1−p

    Correct answer
    A

    log⁡(1/p)\log(1/p)log(1/p)

    Explanation

    Surprise is defined as log⁡(1/p)\log(1/p)log(1/p), which is large for small probabilities and zero for p=1p=1p=1.

  7. 7

    Why is the logarithm used to define surprise?

    1. A

      Because it makes calculations easier

    2. B

      Because it relates to entropy

    3. C

      Because it ensures surprise is always positive

    4. D

      Because surprise should add when probabilities multiply for independent events

    Correct answer
    D

    Because surprise should add when probabilities multiply for independent events

    Explanation

    For independent events, probabilities multiply, so the surprise function should add. The logarithm achieves this: log⁡(1/(p1p2))=log⁡(1/p1)+log⁡(1/p2)\log(1/(p_1 p_2)) = \log(1/p_1) + \log(1/p_2)log(1/(p1​p2​))=log(1/p1​)+log(1/p2​).

  8. 8

    What does entropy measure?

    1. A

      The variance of the distribution

    2. B

      The average surprise of a probability distribution

    3. C

      The number of possible states

    4. D

      The maximum probability in a distribution

    Correct answer
    B

    The average surprise of a probability distribution

    Explanation

    Entropy is the expected value of surprise: H(p)=∑pilog⁡(1/pi)H(p) = \sum p_i \log(1/p_i)H(p)=∑pi​log(1/pi​).

  9. 9

    Consider a trick coin that lands heads 49%, tails 49%, and on its side 2%. What is the approximate entropy of this distribution?

    1. A

      1.5

    2. B

      1.0

    3. C

      0.8

    4. D

      0.5

    Correct answer
    C

    0.8

    Explanation

    Entropy = 0.49×log⁡(1/0.49)+0.49×log⁡(1/0.49)+0.02×log⁡(1/0.02)≈0.80.49 \times \log(1/0.49) + 0.49 \times \log(1/0.49) + 0.02 \times \log(1/0.02) \approx 0.80.49×log(1/0.49)+0.49×log(1/0.49)+0.02×log(1/0.02)≈0.8. Options: (0.49+0.49)0.7 + 0.024 ≈ 0.686+0.08=0.766, but the exact calculation is around 0.8.

  10. 10

    What is cross-entropy?

    1. A

      The sum of entropies of two distributions

    2. B

      The entropy of the true distribution

    3. C

      The difference between two probability distributions

    4. D

      The average surprise when using a model distribution QQQ to predict outcomes from a true distribution PPP

    Correct answer
    D

    The average surprise when using a model distribution QQQ to predict outcomes from a true distribution PPP

    Explanation

    Cross-entropy H(P,Q)=∑P(x)log⁡(1/Q(x))H(P,Q) = \sum P(x) \log(1/Q(x))H(P,Q)=∑P(x)log(1/Q(x)) measures the average surprise if we believe QQQ but the true distribution is PPP.

  11. 11

    Which of the following is always true about cross-entropy H(P,Q)H(P,Q)H(P,Q) and entropy H(P)H(P)H(P)?

    1. A

      H(P,Q)=H(P)H(P,Q) = H(P)H(P,Q)=H(P)

    2. B

      H(P,Q)≥H(P)H(P,Q) \geq H(P)H(P,Q)≥H(P)

    3. C

      H(P,Q)≤H(P)H(P,Q) \leq H(P)H(P,Q)≤H(P)

    4. D

      H(P,Q)<H(P)H(P,Q) < H(P)H(P,Q)<H(P)

    Correct answer
    B

    H(P,Q)≥H(P)H(P,Q) \geq H(P)H(P,Q)≥H(P)

    Explanation

    Cross-entropy is always at least the entropy of the true distribution; it equals entropy only when P=QP=QP=Q.

  12. 12

    What does Kullback-Leibler divergence DKL(P∣∣Q)D_{KL}(P||Q)DKL​(P∣∣Q) represent?

    1. A

      The total surprise of using QQQ

    2. B

      The extra surprise incurred by using QQQ instead of PPP

    3. C

      The difference between entropy and cross-entropy

    4. D

      The probability that PPP and QQQ are equal

    Correct answer
    B

    The extra surprise incurred by using QQQ instead of PPP

    Explanation

    DKL(P∣∣Q)=H(P,Q)−H(P)D_{KL}(P||Q) = H(P,Q) - H(P)DKL​(P∣∣Q)=H(P,Q)−H(P) quantifies the additional uncertainty from using an incorrect model.

  13. 13

    Why is minimizing cross-entropy equivalent to minimizing KL divergence when training a model QQQ to match a true distribution PPP?

    1. A

      Because H(P)H(P)H(P) is constant with respect to QQQ

    2. B

      Because QQQ cannot affect H(P)H(P)H(P)

    3. C

      Because H(P,Q)H(P,Q)H(P,Q) and DKL(P∣∣Q)D_{KL}(P||Q)DKL​(P∣∣Q) are always equal

    4. D

      Because cross-entropy is easier to compute

    Correct answer
    A

    Because H(P)H(P)H(P) is constant with respect to QQQ

    Explanation

    Since DKL(P∣∣Q)=H(P,Q)−H(P)D_{KL}(P||Q) = H(P,Q) - H(P)DKL​(P∣∣Q)=H(P,Q)−H(P) and H(P)H(P)H(P) does not depend on QQQ, minimizing either yields the same optimal QQQ.

  14. 14

    In generative modeling, what is the typical objective for training a neural network to approximate a data distribution?

    1. A

      Maximizing the variance of the model

    2. B

      Maximizing the entropy of the model

    3. C

      Minimizing the number of parameters

    4. D

      Minimizing cross-entropy between the model and the true data distribution

    Correct answer
    D

    Minimizing cross-entropy between the model and the true data distribution

    Explanation

    Generative models often minimize cross-entropy (or equivalently KL divergence) to make the model distribution match the data distribution.

  15. 15

    Which of the following best describes the asymmetry of cross-entropy?

    1. A

      H(P,Q)H(P,Q)H(P,Q) is symmetric only if PPP and QQQ are Gaussian

    2. B

      H(P,Q)H(P,Q)H(P,Q) always equals H(Q,P)H(Q,P)H(Q,P)

    3. C

      H(P,Q)H(P,Q)H(P,Q) is symmetric only for discrete distributions

    4. D

      H(P,Q)H(P,Q)H(P,Q) is generally not equal to H(Q,P)H(Q,P)H(Q,P)

    Correct answer
    D

    H(P,Q)H(P,Q)H(P,Q) is generally not equal to H(Q,P)H(Q,P)H(Q,P)

    Explanation

    Cross-entropy is asymmetric: H(P,Q)≠H(Q,P)H(P,Q) \neq H(Q,P)H(P,Q)=H(Q,P) in general, as shown in the coin example where swapping roles changes the value.

Question 1 of 15
Question 1 of 15

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent