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 Basics
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is a probability distribution?

Tap to flipClick to flipspace

A function that maps each possible state to a probability value between 0 and 1, such that the sum of all probabilities equals 1.

Or swipe the card

15 cards

  1. What is a probability distribution?

    A function that maps each possible state to a probability value between 0 and 1, such that the sum of all probabilities equals 1.

  2. What is the frequentist interpretation of probability?

    The probability of an event is the limit of the ratio of occurrences to total trials as the number of trials goes to infinity.

  3. What is the Bayesian interpretation of probability?

    Probability is a degree of belief assigned to an event, representing subjective certainty. It must obey the rule that all probabilities sum to 1.

  4. For a fair six-sided die, what is the probability distribution?

    Uniform: each side has probability 16\frac{1}{6}61​.

  5. How is probability defined for continuous variables?

    The probability distribution is described by a probability density function (PDF) that must integrate to 1 over all possible values.

  6. What is sampling from a probability distribution?

    The process of generating a random outcome according to the probabilities defined by the distribution.

  7. Define 'surprise' in probability theory.

    A measure assigned to each possible outcome, equal to log⁡(1p)\log\left(\frac{1}{p}\right)log(p1​), where ppp is its probability. Surprise is larger for less likely events and additive for independent events.

  8. What is entropy of a probability distribution?

    The average surprise over all outcomes: H(P)=−∑xp(x)log⁡p(x)H(P) = -\sum_x p(x) \log p(x)H(P)=−∑x​p(x)logp(x) (or ∫−p(x)log⁡p(x)dx\int -p(x)\log p(x) dx∫−p(x)logp(x)dx for continuous).

  9. Compare the entropy of a fair coin to a biased coin that lands on its side 2% of the time.

    The biased coin has higher entropy because the rare side outcome increases average surprise.

  10. What is cross-entropy between two distributions PPP (true) and QQQ (model)?

    H(P,Q)=−∑xp(x)log⁡q(x)H(P,Q) = -\sum_x p(x) \log q(x)H(P,Q)=−∑x​p(x)logq(x) (or integral for continuous). It measures the average surprise when using QQQ to predict outcomes from PPP.

  11. Is cross-entropy symmetric? Give an example.

    No, H(P,Q)≠H(Q,P)H(P,Q) \neq H(Q,P)H(P,Q)=H(Q,P) in general. For example, believing a fair coin (Q) when it is actually rigged 99% heads (P) gives lower cross-entropy (~0.7) than the reverse (~2.3).

  12. What is the relationship between cross-entropy and entropy?

    H(P,Q)≥H(P)H(P,Q) \geq H(P)H(P,Q)≥H(P) always. Cross-entropy is the sum of entropy and KL divergence.

  13. Define Kullback–Leibler (KL) divergence.

    DKL(P∥Q)=∑xp(x)log⁡p(x)q(x)=H(P,Q)−H(P)D_{KL}(P \parallel Q) = \sum_x p(x) \log \frac{p(x)}{q(x)} = H(P,Q) - H(P)DKL​(P∥Q)=∑x​p(x)logq(x)p(x)​=H(P,Q)−H(P).

  14. Why is minimizing KL divergence equivalent to minimizing cross-entropy in practice?

    Because H(P)H(P)H(P) (entropy of the true data distribution) is constant with respect to the model parameters. So minimizing H(P,Q)H(P,Q)H(P,Q) also minimizes DKL(P∥Q)D_{KL}(P \parallel Q)DKL​(P∥Q).

  15. How are entropy and cross-entropy used in training generative models?

    Generative models are trained to minimize the cross-entropy (or KL divergence) between the model distribution and the true data distribution, often using gradient descent on neural network parameters.

Card 1 of 15
Card 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