1. Home
  2. Explore
  3. Statistics
  4. Probabilistic Modeling

Study methods

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

Probabilistic Modeling

  • 61Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Joint Distributions
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What does a joint distribution specify?

Tap to flipClick to flipspace

The probability of every possible joint assignment to a set of random variables.

Or swipe the card

61 cards

  1. What does a joint distribution specify?

    The probability of every possible joint assignment to a set of random variables.

  2. Why is a joint distribution considered a complete description of a probabilistic model?

    Because it contains the probability of every possible assignment, from which other probabilities and inferences can be calculated.

  3. How many entries does a joint probability table need for nnn binary random variables?

    It has 2n2^n2n assignments; only 2n−12^n-12n−1 probabilities need to be stored if the probabilities must sum to 111.

  4. Why does a joint probability table become impractical as the number of binary variables grows?

    Its size grows exponentially: representing nnn binary variables requires probabilities for about 2n2^n2n assignments.

  5. What is an assignment to a joint distribution?

    A specification of a value for every random variable in the model.

  6. How can a categorical random variable be represented computationally?

    As a mapping from each possible value to its probability, such as a dictionary or table.

  7. What is the difference between a Bernoulli variable and a categorical variable with many possible values?

    A Bernoulli variable has two possible outcomes; a categorical variable can have more than two.

  8. What is inference in a probabilistic model?

    Updating beliefs about one or more random variables after observing values of other variables.

  9. What is the role of the prior, likelihood, and posterior in Bayesian updating?

    The prior is the belief before evidence; the likelihood is the probability of the evidence under a proposed state; the posterior is the updated belief.

  10. How does Bayes' theorem update the probability of a state aaa after observing evidence yyy?

    P(a∣y)=P(y∣a)P(a)P(y)P(a\mid y)=\frac{P(y\mid a)P(a)}{P(y)}P(a∣y)=P(y)P(y∣a)P(a)​

  11. How can you calculate a posterior over a variable with many possible values?

    Calculate the likelihood-times-prior numerator for each value, then normalize all the numerators so they sum to 111.

  12. Why can normalizing posterior numerators replace explicitly calculating the evidence probability?

    The sum of all likelihood-times-prior numerators equals the evidence probability, so normalization supplies the Bayes' theorem denominator.

  13. Why does inference over a variable with 100100100 possible values involve repeated Bayes updates?

    A posterior probability must be computed for each of the 100100100 possible values, typically by looping over them.

  14. In an elephant example, why can gender be modeled as Bernoulli while weight is observed?

    In the simplified model, gender has two possible values, while weight is a continuous observation used to update belief about gender.

  15. Why might visual acuity be modeled with many possible values rather than as a yes-or-no variable?

    Because vision has degrees of ability, so a model may need to represent beliefs across many levels of acuity.

  16. What is a Bayesian network?

    A graphical model that represents a joint distribution using directed relationships between random variables and probabilities conditioned on their parents.

  17. What does a node represent in a Bayesian network?

    A random variable.

  18. What does a directed arrow represent in a Bayesian network?

    A modeled direct influence or causal relationship from one variable to another.

  19. What are the parents of a node in a Bayesian network?

    The nodes with arrows pointing directly into it.

  20. How do you specify the probabilities for a root node in a Bayesian network?

    Give the node's probability distribution without conditioning on parents, because it has none.

  21. What information must be provided for a non-root node in a Bayesian network?

    Its probability distribution for every possible assignment to its parents.

  22. For a binary node with kkk binary parents, how many parent assignments must its conditional probability table cover?

    2k2^k2k assignments.

  23. How does a Bayesian network express the joint probability of an assignment?

    Multiply the probability of each variable conditioned on its parents: P(x1,…,xn)=∏iP(xi∣Parents(Xi))P(x_1,\ldots,x_n)=\prod_i P(x_i\mid \mathrm{Parents}(X_i))P(x1​,…,xn​)=∏i​P(xi​∣Parents(Xi​)).

  24. How can a Bayesian network reduce the number of probabilities needed compared with a full joint table?

    It represents the joint through local conditional probability tables and independence assumptions, rather than listing every full assignment.

  25. What happens to the size of a Bayesian network's conditional tables when more parents are added to a node?

    The number of parent configurations grows exponentially in the number of parents.

  26. What is the tradeoff when adding arrows to a Bayesian network?

    More arrows can capture more relationships, but they require more probabilities to estimate and can make the model harder to fit.

  27. What independence assumption is represented by having no arrow between two variables in a Bayesian network?

    The graph encodes assumptions that can make variables independent, such as flu and undergraduate status in the simplified example.

  28. What structural restriction must a Bayesian network's directed graph satisfy?

    It must be acyclic: following directed arrows cannot lead back to the starting node.

  29. What is the generative interpretation of a Bayesian network?

    Generate values for parentless variables first, then generate each child conditioned on its parents.

  30. How can a program represent a joint distribution through sampling?

    It can generate complete assignments to all variables with frequencies matching the joint distribution.

  31. In a Bayesian-network sampling program, why are variables sampled in an order consistent with the arrows?

    A child must be sampled after its parents so their sampled values can determine the child's conditional distribution.

  32. What does sampling a Bernoulli variable with parameter ppp produce?

    A 111 with probability ppp and a 000 with probability 1−p1-p1−p.

  33. What is the difference between sampling from a joint distribution and inference from evidence?

    Sampling generates a complete assignment without conditioning on a particular observed case; inference updates beliefs after evidence is observed.

  34. Where can the numerical probabilities in a probabilistic model come from?

    They can be estimated from data or supplied as informed estimates by experts.

  35. Why is a generative model called 'generative'?

    It describes a process for generating data or complete variable assignments.

  36. How can a joint distribution answer a conditional probability question?

    Use the definition of conditional probability: divide the joint probability of the query and evidence by the probability of the evidence.

  37. What is marginalization?

    Summing over the possible values of variables that are not specified in the probability being calculated.

  38. How do you calculate the probability of evidence when one binary variable is unobserved?

    Sum the joint probabilities for the evidence in both cases of that variable: P(E)=P(E,X=0)+P(E,X=1)P(E)=P(E,X=0)+P(E,X=1)P(E)=P(E,X=0)+P(E,X=1).

  39. How do you compute a posterior from a joint distribution when some variables are unobserved?

    Marginalize the unobserved variables to calculate the required joint and evidence probabilities, then divide the former by the latter.

  40. Why is a joint distribution sufficient to answer any inference question about the variables it contains?

    Any required marginal or conditional probability can be computed from the joint by summing and applying the conditional probability rule.

  41. What is the purpose of the denominator in P(Q∣E)=P(Q,E)P(E)P(Q\mid E)=\frac{P(Q,E)}{P(E)}P(Q∣E)=P(E)P(Q,E)​?

    It normalizes the probability of the query-and-evidence event relative to the probability of the evidence.

  42. What is the definition of independence for two events AAA and BBB?

    They are independent if P(A,B)=P(A)P(B)P(A,B)=P(A)P(B)P(A,B)=P(A)P(B).

  43. When are two random variables XXX and YYY independent?

    When P(X=x,Y=y)=P(X=x)P(Y=y)P(X=x,Y=y)=P(X=x)P(Y=y)P(X=x,Y=y)=P(X=x)P(Y=y) for every possible pair of values xxx and yyy.

  44. Why is independence of two random variables a stronger claim than independence of one pair of events?

    The random variables must satisfy the independence equation for every possible assignment of values, not just one selected pair.

  45. For two fair dice, are the events D1=1D_1=1D1​=1 and S=7S=7S=7 independent, where SSS is their sum?

    Yes. Each event has probability 16\frac{1}{6}61​, and their intersection has probability 136=16⋅16\frac{1}{36}=\frac{1}{6}\cdot\frac{1}{6}361​=61​⋅61​.

  46. For two fair dice, are the events D1=1D_1=1D1​=1 and S=5S=5S=5 independent?

    No. Their intersection has probability 136\frac{1}{36}361​, but the product of their probabilities is 16⋅19=154\frac{1}{6}\cdot\frac{1}{9}=\frac{1}{54}61​⋅91​=541​.

  47. Can two particular events be independent even if their associated random variables are not independent?

    Yes. Independence for the variables requires the equation to hold for every pair of values, not just the particular events.

  48. What does covariance measure?

    How two random variables vary together, including whether deviations from their means tend to have the same or opposite signs.

  49. What is the definition of covariance?

    Cov⁡(X,Y)=E[(X−E[X])(Y−E[Y])]\operatorname{Cov}(X,Y)=\mathbb{E}[(X-\mathbb{E}[X])(Y-\mathbb{E}[Y])]Cov(X,Y)=E[(X−E[X])(Y−E[Y])]

  50. What is an equivalent formula for covariance that is often convenient to calculate?

    Cov⁡(X,Y)=E[XY]−E[X]E[Y]\operatorname{Cov}(X,Y)=\mathbb{E}[XY]-\mathbb{E}[X]\mathbb{E}[Y]Cov(X,Y)=E[XY]−E[X]E[Y]

  51. What sign does a covariance contribution have when both variables are above their means?

    Positive, because both deviations are positive and their product is positive.

  52. What sign does a covariance contribution have when one variable is above its mean and the other is below its mean?

    Negative, because the deviations have opposite signs.

  53. What does covariance near zero indicate about the average co-variation of two variables?

    Positive and negative deviation products tend to cancel, leaving little average co-variation.

  54. How can covariance help when designing a probabilistic model from data?

    It can reveal which variables vary together and provide clues about relationships to investigate when constructing a model.

  55. In the music-preference example, what covariance patterns were observed for genres?

    Punk and rock had high positive covariance; metal and rock also had high positive covariance; metal and pop had negative covariance.

  56. Why is covariance not a complete causal story?

    It measures co-variation, but does not by itself show which variable causes another or explain the mechanism.

  57. What modeling challenge arose in analyzing beginner programmers' code?

    Identifying the misconceptions behind a student's short program from the code they wrote.

  58. Why were simple conditional statistics insufficient for diagnosing misconceptions in beginner code?

    Counting mistake patterns conditioned on features such as loops or if-statements did not capture enough of the structure of student solutions.

  59. What kind of model was proposed for understanding the mistakes in beginner-written code?

    A probabilistic generative model of how beginners produce code.

  60. What inspired the probabilistic model for beginner-written code?

    A probabilistic model describing the processes by which people create hand-drawn digits or characters.

  61. What was the reported result of applying a generative model to diagnosing bugs in student code?

    The model was reported to outperform human evaluators at identifying students' bugs.

Card 1 of 61
Card 1 of 61

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent