1. Home
  2. Explore
  3. Computer Science
  4. Probability and Uncertainty in AI

Study methods

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

Probability and Uncertainty in AI

  • 65Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Uncertainty and Models

Why is probabilistic reasoning useful for artificial intelligence?

65 questions

  1. 1

    Why is probabilistic reasoning useful for artificial intelligence?

    Model answer

    It provides a formal way to represent and reason about uncertainty when a complete, deterministic model of the world is unavailable or impractical.

    Explanation

    Real-world events may be uncontrollable, difficult to compute, or not fully captured by a model.

  2. 2

    Why did early AI systems based on writing and chaining logical rules have difficulty scaling beyond some applications?

    Model answer

    Rule-based reasoning could work well in domains such as games, but it did not scale well when uncertainty had to be handled.

    Explanation

    Probabilistic methods were developed to cope with uncertainty that logical rules alone did not address effectively.

  3. 3

    How does machine learning relate to probabilistic models in the course framework?

    Model answer

    Machine learning can be viewed as learning the parameters of probabilistic models, or of models more generally, from data and experience.

    Explanation

    Probabilistic reasoning provides a way to use a model, while learning helps determine how the world works from observations.

  4. 4

    What does a probabilistic model describe about variables in a domain?

    Model answer

    It describes how variables relate probabilistically, including the likelihood of different assignments to them.

    Explanation

    The model combines relationships among variables with evidence to support inference and decisions.

  5. 5

    How are observed, query, and hidden variables distinguished in probabilistic reasoning?

    Model answer

    Observed variables have known values and form the evidence; query variables are the unknowns of interest; hidden variables are unknowns that are not part of the query.

    Explanation

    A model may contain all three kinds of variables, and inference uses them differently.

  6. 6

    Give examples of evidence variables in ghost localization and medical diagnosis.

    Model answer

    Ghost-localization evidence can be sensor readings, while medical-diagnosis evidence can be symptoms or lab-test results.

    Explanation

    Evidence consists of observed values about the state of the world.

  7. 7

    How does probabilistic reasoning support well-founded decisions?

    Model answer

    It uses a model and available evidence to compute probabilities, which can then inform decisions such as where to search or whether to take an action.

    Explanation

    Decision-making can depend on conditional probabilities or on expected utility calculated using them.

  8. 8

    How can uncertainty in a sensor be represented in a probabilistic model?

    Model answer

    Represent the sensor result as a random variable and specify probabilities for possible readings given the relevant conditions.

    Explanation

    A deterministic sensor assigns probability 111 to its specified reading, while a noisy sensor distributes probability across possible readings.

  9. 9

    Can probabilistic graphical-model methods apply to both time-independent and time-dependent models?

    Model answer

    Yes. The course uses graphical-model ideas for models both with and without time; hidden Markov models are an example of a time-dependent model.

    Explanation

    The same general infrastructure supports inference in different kinds of probabilistic models.

  10. 10

    What is a random variable, and why is it included in a model?

    Model answer

    A random variable represents an aspect of the world that is important enough to model, such as whether it is raining or where a ghost is.

    Explanation

    Variables can represent observed properties, quantities to infer, or other properties needed to describe how the world works.

  11. 11

    What is the difference between a random variable and one of its values in the notation used in the lecture?

    Model answer

    A capital letter denotes the variable, while a lowercase letter denotes a value of that variable.

    Explanation

    For example, RRR can denote the rain variable and rrr a particular value assigned to it.

  12. 12

    How are random variables similar to variables in a constraint satisfaction problem?

    Model answer

    Both have names and domains of possible values; random variables additionally assign probabilities to outcomes.

    Explanation

    A CSP distinguishes legal from illegal assignments, whereas a probability model describes how likely assignments are.

  13. 13

    What does the notation +R+R+R and −R-R−R mean when the variable RRR is Boolean?

    Model answer

    +R+R+R means RRR is true, and −R-R−R means RRR is false.

    Explanation

    This shorthand makes assignments to Boolean variables more compact.

  14. 14

    What kinds of domains can random variables have?

    Model answer

    They can have binary, discrete nonbinary, structured, or continuous domains.

    Explanation

    Examples include Boolean rain, categorical weather, ghost-board positions, and real-valued travel time.

  15. 15

    How do probability calculations for continuous variables differ mechanically from those for discrete variables?

    Model answer

    For continuous variables, sums are replaced by integrals, and additional technical cases may need to be considered.

    Explanation

    The underlying probability concepts extend to continuous variables, although the calculations are more involved.

  16. 16

    What does a probability distribution over one random variable specify?

    Model answer

    It assigns a probability to every possible value, or outcome, of that variable.

    Explanation

    For a discrete variable, the distribution can be represented as a table of probabilities.

  17. 17

    What two requirements must a discrete probability distribution satisfy?

    Model answer

    Its probabilities must be nonnegative and must sum to 111.

    Explanation

    These conditions make the table a normalized probability distribution.

  18. 18

    Why are exact zero probabilities usually avoided in practical models?

    Model answer

    A zero rules out an outcome entirely, even if later evidence would otherwise support it; small probabilities are safer for outcomes that are unlikely but possible.

    Explanation

    A zero should be used only when an outcome can never occur under any evidence.

  19. 19

    What is the difference between P(W)P(W)P(W) and P(W=rain)P(W = \text{rain})P(W=rain)?

    Model answer

    P(W)P(W)P(W) denotes the distribution over all values of WWW, while P(W=rain)P(W = \text{rain})P(W=rain) is one scalar probability from that distribution.

    Explanation

    The capital-variable expression refers to a table or vector; specifying one value selects a single entry.

  20. 20

    When may a variable name be omitted from a probability expression?

    Model answer

    It may be omitted when the value is unambiguous, such as when only one variable can take that value.

    Explanation

    If multiple variables could have the stated value, the variable name must be included to avoid ambiguity.

  21. 21

    What information does a joint distribution over several variables provide?

    Model answer

    It assigns a probability to every complete assignment of values to those variables, thereby representing their joint outcomes and interactions.

    Explanation

    A complete assignment specifies one value for each variable in the joint distribution.

  22. 22

    What is an outcome in a joint probability model?

    Model answer

    An outcome is a complete assignment of a value to every variable in the model.

    Explanation

    A joint distribution gives a probability for each such assignment.

  23. 23

    What does capital-letter notation such as P(X,Y)P(X,Y)P(X,Y) represent compared with lowercase-value notation such as P(X=x,Y=y)P(X=x,Y=y)P(X=x,Y=y)?

    Model answer

    P(X,Y)P(X,Y)P(X,Y) represents the full table of probabilities over the variables, whereas P(X=x,Y=y)P(X=x,Y=y)P(X=x,Y=y) is the scalar probability of one particular assignment.

    Explanation

    Capital letters indicate dimensions over possible values; specified values identify one entry.

  24. 24

    Why can a joint distribution answer many probability questions about its variables?

    Model answer

    It contains the probabilities of all complete assignments, so probabilities of events can be obtained by looking up or summing the relevant entries.

    Explanation

    For example, the probability of a single complete assignment is an entry, while the probability of a less specific event may require adding entries.

  25. 25

    How does the size of a joint-distribution table grow when there are NNN variables, each with domain size DDD?

    Model answer

    It has DND^NDN entries, so its size grows exponentially with the number of variables.

    Explanation

    Each variable adds another domain choice to every assignment already represented.

  26. 26

    What is a marginal distribution?

    Model answer

    A marginal distribution is a distribution over a subset of the variables, obtained by eliminating the other variables from a joint distribution.

    Explanation

    It retains probabilities for the variables of interest while summing over the values of variables being eliminated.

  27. 27

    How is the marginal probability of an event such as T=hotT=\text{hot}T=hot computed from a joint distribution over TTT and WWW?

    Model answer

    Add the probabilities of all joint assignments in which TTT is hot, regardless of the value of WWW.

    Explanation

    The entries for hot-and-sun and hot-and-rain are combined because both match the event.

  28. 28

    What does it mean for a joint-table row to be consistent with a partial assignment?

    Model answer

    The row is consistent if its values match every variable-value pair specified in the partial assignment.

    Explanation

    For example, rows with XXX true are consistent with the assignment +X+X+X, regardless of their values for other variables.

  29. 29

    How is the probability of an event containing several complete outcomes calculated?

    Model answer

    Add the probabilities of all complete outcomes that belong to the event.

    Explanation

    The event’s total probability includes each matching outcome, such as when calculating the probability of a partial assignment.

  30. 30

    How does a probability model differ from a CSP over the same variables?

    Model answer

    A CSP marks assignments as legal or illegal, while a probability model assigns probabilities that describe how likely assignments are.

    Explanation

    The CSP can be viewed as a truth table; a probabilistic model instead has numerical entries that sum to 111.

  31. 31

    What does a conditional probability P(A∣B)P(A\mid B)P(A∣B) measure?

    Model answer

    It measures the probability that event AAA occurs given that event BBB is known to have occurred.

    Explanation

    It focuses on outcomes in BBB and asks what proportion of them also belong to AAA.

  32. 32

    State the definition of conditional probability in terms of joint and marginal probabilities.

    Model answer

    For an event BBB with nonzero probability, P(A∣B)=P(A∩B)P(B)P(A\mid B)=\frac{P(A\cap B)}{P(B)}P(A∣B)=P(B)P(A∩B)​.

    Explanation

    The numerator counts outcomes in both events, and the denominator is the total probability of the conditioning event.

  33. 33

    In the joint distribution where P(S∩C)=0.2P(S\cap C)=0.2P(S∩C)=0.2 and P(C)=0.5P(C)=0.5P(C)=0.5, what is P(S∣C)P(S\mid C)P(S∣C)?

    Model answer

    P(S∣C)=0.4P(S\mid C)=0.4P(S∣C)=0.4.

    Explanation

    By the conditional-probability definition, divide the joint probability 0.20.20.2 by the conditioning probability 0.50.50.5.

  34. 34

    What is a conditional distribution?

    Model answer

    It is a probability distribution over a variable’s possible values given specified evidence.

    Explanation

    Its entries are conditional probabilities and sum to 111 across the query variable’s values.

  35. 35

    How does a conditional distribution differ from a marginal distribution over the same variable?

    Model answer

    A conditional distribution incorporates specified evidence, while a marginal distribution does not condition on that evidence.

    Explanation

    The distributions can therefore assign different probabilities to the same variable’s values.

  36. 36

    How can a conditional distribution be computed from a joint table using the select-and-normalize procedure?

    Model answer

    Select the entries consistent with the evidence, retain the query-variable distinctions, and divide the selected entries by their sum.

    Explanation

    Selection produces the relevant numerators; normalization makes the resulting distribution sum to 111.

  37. 37

    Why must selected joint probabilities be normalized when computing a conditional distribution?

    Model answer

    Selecting entries removes outcomes that do not match the evidence, so the remaining probabilities generally no longer sum to 111.

    Explanation

    Dividing each selected value by the selected total restores a valid distribution.

  38. 38

    In the select-and-normalize method, what does the sum of the selected entries represent?

    Model answer

    It is the probability of the evidence.

    Explanation

    The selected entries cover all outcomes matching the evidence, including every possible value of the query variable.

  39. 39

    If the joint probabilities for +X,−Y+X,-Y+X,−Y and −X,−Y-X,-Y−X,−Y are 0.30.30.3 and 0.10.10.1, respectively, what is the conditional distribution of XXX given −Y-Y−Y?

    Model answer

    P(+X∣−Y)=0.75P(+X\mid -Y)=0.75P(+X∣−Y)=0.75 and P(−X∣−Y)=0.25P(-X\mid -Y)=0.25P(−X∣−Y)=0.25.

    Explanation

    The selected entries sum to 0.40.40.4; normalizing gives 0.3/0.40.3/0.40.3/0.4 and 0.1/0.40.1/0.40.1/0.4.

  40. 40

    Why can a variable’s probabilities change when new evidence is observed?

    Model answer

    The evidence changes the set of outcomes being considered, so the conditional probabilities for the variable may differ from its prior or marginal probabilities.

    Explanation

    A probabilistic model updates beliefs by conditioning on the newly observed values.

  41. 41

    What is probabilistic inference?

    Model answer

    It is the computation of a desired probability from other probabilities in a model, usually to determine a query variable given evidence.

    Explanation

    Examples include inferring a ghost’s location from sensor readings or a condition from symptoms.

  42. 42

    In a general inference query, what roles do evidence, query, and hidden variables play?

    Model answer

    Evidence variables have known values, query variables are the unknowns to calculate, and hidden variables are unknown variables that are not part of the requested answer.

    Explanation

    Hidden variables must be accounted for even though their values are neither observed nor requested.

  43. 43

    What are the three main operations in inference by enumeration?

    Model answer

    Select assignments consistent with the evidence, sum out hidden variables, and normalize the remaining probabilities.

    Explanation

    The result is a distribution over the query variable conditioned on the evidence.

  44. 44

    Why are hidden variables summed out during inference by enumeration?

    Model answer

    Their values are unknown and are not part of the query, so the inference must combine the probabilities across all their possible values.

    Explanation

    Summing out removes their dimensions while preserving the total probability relevant to the query.

  45. 45

    What happens to the inference procedure when a previously hidden variable becomes observed evidence?

    Model answer

    Its value is selected as evidence rather than summed out, reducing the number of hidden-variable distinctions that must be combined.

    Explanation

    More evidence generally means more selection and less marginalization.

  46. 46

    Why is inference by enumeration usually impractical for large models?

    Model answer

    It operates on an exponentially large joint table and may require exponentially many computations.

    Explanation

    Both storing the full table and summing over its entries can become intractable as the number of variables grows.

  47. 47

    Why can learning the entries of a full joint distribution also require an impractical amount of data?

    Model answer

    The number of entries grows exponentially, and estimating each entry requires enough observations of the corresponding assignment.

    Explanation

    This motivates representing large models through smaller pieces rather than learning and storing the entire table.

  48. 48

    What is the purpose of more efficient inference algorithms if they return the same query probabilities as enumeration?

    Model answer

    They organize the computation so that it avoids constructing and processing the full joint distribution whenever possible.

    Explanation

    The goal is to preserve the desired calculation while making it tractable for large models.

  49. 49

    What does a rational agent’s belief about a query variable correspond to in a probabilistic model?

    Model answer

    It corresponds to the conditional distribution of that variable given the agent’s evidence.

    Explanation

    As new evidence arrives, the agent’s beliefs update through conditioning.

  50. 50

    State the product rule for constructing a joint distribution over XXX and YYY.

    Model answer

    P(X,Y)=P(X∣Y)P(Y)P(X,Y)=P(X\mid Y)P(Y)P(X,Y)=P(X∣Y)P(Y).

    Explanation

    The joint probability combines the probability of YYY with the probability of XXX given YYY.

  51. 51

    How can a marginal distribution over YYY and a conditional distribution of XXX given YYY be used to construct the joint distribution?

    Model answer

    Multiply the probability for each value of YYY by the corresponding conditional probabilities for the values of XXX.

    Explanation

    Applying the product rule yields a joint probability for every pair of assignments.

  52. 52

    Why is a table of conditional distributions such as P(D∣W)P(D\mid W)P(D∣W) not itself a single probability distribution?

    Model answer

    It contains a separate normalized distribution for each value of WWW, so summing all entries across the table gives the number of conditioning values rather than 111.

    Explanation

    The table is a family of conditional distributions, with each distribution normalized separately.

  53. 53

    State the chain rule for a joint distribution over X1,…,XNX_1,\ldots,X_NX1​,…,XN​.

    Model answer

    P(X1,…,XN)=P(X1)∏i=2NP(Xi∣X1,…,Xi−1)P(X_1,\ldots,X_N)=P(X_1)\prod_{i=2}^{N}P(X_i\mid X_1,\ldots,X_{i-1})P(X1​,…,XN​)=P(X1​)∏i=2N​P(Xi​∣X1​,…,Xi−1​).

    Explanation

    Each variable after the first is conditioned on all variables preceding it in the chosen ordering.

  54. 54

    Why does multiplying the conditional probabilities in the chain rule produce a joint probability?

    Model answer

    Each conditional contributes a joint probability divided by the joint probability of the variables already included, so the intermediate terms cancel.

    Explanation

    After cancellation, the remaining expression is the joint probability over all variables.

  55. 55

    How can Bayes’ rule be derived from the product rule?

    Model answer

    Write the joint distribution as both P(X∣Y)P(Y)P(X\mid Y)P(Y)P(X∣Y)P(Y) and P(Y∣X)P(X)P(Y\mid X)P(X)P(Y∣X)P(X), then rearrange to obtain P(X∣Y)=P(Y∣X)P(X)P(Y)P(X\mid Y)=\frac{P(Y\mid X)P(X)}{P(Y)}P(X∣Y)=P(Y)P(Y∣X)P(X)​.

    Explanation

    Bayes’ rule is a rearrangement of two factorizations of the same joint probability.

  56. 56

    Why is Bayes’ rule useful for probabilistic inference?

    Model answer

    It lets an agent compute a conditional probability in one direction from a conditional probability in the reverse direction and the relevant marginals.

    Explanation

    The reverse conditional may be easier to model or be the probability that is available.

  57. 57

    Why might it be easier to model an effect given a cause than a cause given an effect?

    Model answer

    A model can often describe how causes generate observable effects more naturally, while inference asks for the underlying cause given those effects.

    Explanation

    Bayes’ rule supports this backward inference from observations to their possible causes.

  58. 58

    In the meningitis example, which probability is wanted, and which kinds of probabilities can help compute it?

    Model answer

    The desired probability is meningitis given a stiff neck; useful inputs include the prior probability of meningitis, the probability of a stiff neck given meningitis, and the frequency of a stiff neck in the general population.

    Explanation

    Bayes’ rule combines causal and marginal probabilities to obtain the diagnostic probability.

  59. 59

    In ghost localization, what does the random variable for the ghost represent, and what role do sensor readings play?

    Model answer

    The ghost variable represents the ghost’s position, while sensor readings are observed evidence used to infer that position.

    Explanation

    The position is the query of interest, and the readings constrain the posterior distribution over possible locations.

  60. 60

    How does a noisy ghost sensor relate its reading to the ghost’s location?

    Model answer

    Its model specifies probabilities of readings, such as colors, given the distance from the probe to the ghost.

    Explanation

    A reading is uncertain: the same distance can produce different colors, and the same color can result from different distances.

  61. 61

    How does a prior distribution differ from a posterior distribution in the ghost example?

    Model answer

    The prior represents beliefs about the ghost’s location before sensor evidence, while the posterior represents beliefs after conditioning on the readings.

    Explanation

    A uniform prior assigns equal probability to each location when the game is set up that way; sensor evidence can make locations more or less likely.

  62. 62

    What is the value-of-information question raised by paying for additional sensing?

    Model answer

    It asks whether the expected benefit of information from another sensing action is worth its cost.

    Explanation

    In the game, each sensing action costs points, so the agent must decide when to stop sensing and act.

  63. 63

    Why is the most likely outcome not always the action with the highest expected utility?

    Model answer

    Expected utility depends on both probabilities and the consequences of outcomes, so a less likely outcome can have sufficiently serious consequences to affect the best action.

    Explanation

    The decision to seek medical attention can be sensible even when the probability of meningitis remains small, because missing it could be very costly.

  64. 64

    How can a posterior distribution support a decision about where to search for a ghost?

    Model answer

    An agent can choose the location with the highest posterior probability, or use the distribution in a calculation that accounts for the utility of possible actions.

    Explanation

    The full distribution provides more decision-relevant information than a single probability for one location.

  65. 65

    Give examples of queries that probabilistic inference can answer beyond locating a ghost.

    Model answer

    It can estimate the probability of a heart condition given evidence, whether a message is spam given its words, or whether a driver will arrive on time given conditions.

    Explanation

    In each case, inference computes a quantity of interest conditioned on observed evidence.

1 of 65
Question 1 of 65

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent