Probabilistic Brain & Generative Models
- 15Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is a probability distribution?
What is a probability distribution?
15 questions
- 1
What is a probability distribution?
- A
A function that maps each possible state to a positive number between 0 and 1, with all numbers summing to 1
- B
A list of all possible outcomes of an experiment
- C
A function that assigns the same probability to all outcomes
- D
A function that maps each possible state to a number between 0 and 1, with no constraints
Correct answer
AA 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.
- A
- 2
Which interpretation of probability treats probability as a degree of belief?
- A
Propensity interpretation
- B
Classical interpretation
- C
Frequentist interpretation
- D
Bayesian interpretation
Correct answer
DBayesian interpretation
Explanation
The Bayesian interpretation views probability as a degree of belief, suitable for non-repeatable events like weather forecasts.
- A
- 3
According to the frequentist interpretation, how is the probability of rolling a 3 on a fair die determined?
- A
By logical deduction that each side is equally likely
- B
By assigning a belief of 1/6
- C
By measuring the physical properties of the die
- D
By rolling the die many times and observing the ratio of times it lands on 3
Correct answer
DBy 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.
- A
- 4
For a continuous variable like height, what condition must a probability distribution satisfy?
- A
The integral of the probability density over all values equals 1
- B
The probability density function is constant
- C
The probability of each exact value is 1
- D
The sum of probabilities over all discrete values equals 1
Correct answer
AThe 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.
- A
- 5
What is sampling in the context of probability distributions?
- A
Fitting a distribution to data
- B
Calculating the average of outcomes
- C
Generating an outcome from a distribution according to its probabilities
- D
Counting the frequency of outcomes
Correct answer
CGenerating 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.
- A
- 6
What is the mathematical expression for the surprise of an event with probability p?
- A
log(1/p)
- B
−log(p)
- C
1/p
- D
1−p
Correct answer
Alog(1/p)
Explanation
Surprise is defined as log(1/p), which is large for small probabilities and zero for p=1.
- A
- 7
Why is the logarithm used to define surprise?
- A
Because it makes calculations easier
- B
Because it relates to entropy
- C
Because it ensures surprise is always positive
- D
Because surprise should add when probabilities multiply for independent events
Correct answer
DBecause 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).
- A
- 8
What does entropy measure?
- A
The variance of the distribution
- B
The average surprise of a probability distribution
- C
The number of possible states
- D
The maximum probability in a distribution
Correct answer
BThe average surprise of a probability distribution
Explanation
Entropy is the expected value of surprise: H(p)=∑pilog(1/pi).
- A
- 9
Consider a trick coin that lands heads 49%, tails 49%, and on its side 2%. What is the approximate entropy of this distribution?
- A
1.5
- B
1.0
- C
0.8
- D
0.5
Correct answer
C0.8
Explanation
Entropy = 0.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.
- A
- 10
What is cross-entropy?
- A
The sum of entropies of two distributions
- B
The entropy of the true distribution
- C
The difference between two probability distributions
- D
The average surprise when using a model distribution Q to predict outcomes from a true distribution P
Correct answer
DThe average surprise when using a model distribution Q to predict outcomes from a true distribution P
Explanation
Cross-entropy H(P,Q)=∑P(x)log(1/Q(x)) measures the average surprise if we believe Q but the true distribution is P.
- A
- 11
Which of the following is always true about cross-entropy H(P,Q) and entropy H(P)?
- A
H(P,Q)=H(P)
- B
H(P,Q)≥H(P)
- C
H(P,Q)≤H(P)
- D
H(P,Q)<H(P)
Correct answer
BH(P,Q)≥H(P)
Explanation
Cross-entropy is always at least the entropy of the true distribution; it equals entropy only when P=Q.
- A
- 12
What does Kullback-Leibler divergence DKL(P∣∣Q) represent?
- A
The total surprise of using Q
- B
The extra surprise incurred by using Q instead of P
- C
The difference between entropy and cross-entropy
- D
The probability that P and Q are equal
Correct answer
BThe extra surprise incurred by using Q instead of P
Explanation
DKL(P∣∣Q)=H(P,Q)−H(P) quantifies the additional uncertainty from using an incorrect model.
- A
- 13
Why is minimizing cross-entropy equivalent to minimizing KL divergence when training a model Q to match a true distribution P?
- A
Because H(P) is constant with respect to Q
- B
Because Q cannot affect H(P)
- C
Because H(P,Q) and DKL(P∣∣Q) are always equal
- D
Because cross-entropy is easier to compute
Correct answer
ABecause H(P) is constant with respect to Q
Explanation
Since DKL(P∣∣Q)=H(P,Q)−H(P) and H(P) does not depend on Q, minimizing either yields the same optimal Q.
- A
- 14
In generative modeling, what is the typical objective for training a neural network to approximate a data distribution?
- A
Maximizing the variance of the model
- B
Maximizing the entropy of the model
- C
Minimizing the number of parameters
- D
Minimizing cross-entropy between the model and the true data distribution
Correct answer
DMinimizing 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.
- A
- 15
Which of the following best describes the asymmetry of cross-entropy?
- A
H(P,Q) is symmetric only if P and Q are Gaussian
- B
H(P,Q) always equals H(Q,P)
- C
H(P,Q) is symmetric only for discrete distributions
- D
H(P,Q) is generally not equal to H(Q,P)
Correct answer
DH(P,Q) is generally not equal to H(Q,P)
Explanation
Cross-entropy is asymmetric: H(P,Q)=H(Q,P) in general, as shown in the coin example where swapping roles changes the value.
- A

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