Introduction to Probability
- 61Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Why is probability needed in addition to logic when reasoning about the real world?
61 questions
- 1
Why is probability needed in addition to logic when reasoning about the real world?
Model answer
The real world contains uncertainty that cannot always be resolved by deduction, such as whether a traveler will reach an airport on time. Probability provides a way to quantify that uncertainty.
Explanation
Logical deduction requires sufficient knowledge to determine whether a conclusion follows. Real-world situations often allow multiple possible outcomes, so probabilistic reasoning is needed.
- 2
What is meant by the complete state of the world?
Model answer
The complete state of the world contains every fact about the world at a particular time.
Explanation
In contrast to search problems, where the current state may be known, real-world agents generally lack information about many facts in the complete state.
- 3
Explain partial observability.
Model answer
Partial observability occurs when an agent observes some parts of the world but remains uncertain about the rest.
Explanation
An agent may know a few relevant facts while lacking access to the complete state of the world.
- 4
How do noisy sensors create uncertainty?
Model answer
Noisy sensors provide observations that may be incomplete or inaccurate, so an agent must remain uncertain even about what it senses.
Explanation
Examples include imperfect vision and traffic reports that describe conditions at a different time from when the agent is interested in traveling.
- 5
Why can computational limitations be a reason to use probability?
Model answer
Even if all relevant data were available, an agent might not be able to process the enormous amount of information about the world.
Explanation
Probabilistic assertions summarize many details instead of requiring the agent to represent and reason about every fact individually.
- 6
Why might an agent use probability when it does not fully understand how the world evolves?
Model answer
Probability allows the agent to represent uncertainty about complex processes whose precise causal details are difficult or impossible to model completely.
Explanation
For example, an agent may not know exactly whether or how a tire will be punctured after driving over a nail.
- 7
What does it mean to say that probabilistic assertions summarize the effects of ignorance and limited effort?
Model answer
Probabilistic assertions summarize uncertainty caused both by incomplete knowledge and by the practical inability to model or process every relevant detail.
Explanation
Probability is therefore useful not only for uncertainty inherent in the world but also for an agent's limited ability to comprehend it.
- 8
How is probability connected to decision-making through expected utility?
Model answer
An agent can choose the action that maximizes expected utility by weighting the utility of each possible state by the probability of reaching that state.
Explanation
This connects probabilistic beliefs with utility theory and decision theory.
- 9
What is a sample space, or set of possible worlds?
Model answer
A sample space, denoted by Ω, is the set of all possible outcomes or worlds under consideration.
Explanation
For a single die roll, the sample space contains the six possible outcomes 1 through 6.
- 10
What does a probability model assign to each possible world?
Model answer
A probability model assigns a numerical probability to each possible world ω in the sample space.
Explanation
The assigned number represents the model's belief in that particular outcome.
- 11
What two fundamental requirements must probability assignments satisfy?
Model answer
Every probability must be non-negative, and the probabilities of all possible worlds must sum to 1.
Explanation
These requirements also imply that no individual probability can exceed 1.
- 12
What is an atomic outcome?
Model answer
An atomic outcome is a basic possible outcome that cannot be divided into further outcomes within the model.
Explanation
For a die, each individual result such as 1 or 6 is an atomic possibility.
- 13
What is an event in probability?
Model answer
An event is a set of possible outcomes, or equivalently, a subset of the sample space.
Explanation
For a die roll, the event that the result is less than 4 is the set {1,2,3}.
- 14
How is the probability of an event calculated from the probabilities of its outcomes?
Model answer
The probability of an event is the sum of the probabilities of all outcomes contained in that event.
Explanation
For a fair die, the probability of rolling less than 4 is P(1)+P(2)+P(3)=21.
- 15
For a fair six-sided die, what is the probability of rolling an odd number?
Model answer
The probability is 21 because the odd outcomes are 1, 3, and 5, each with probability 61.
Explanation
Adding the three atomic probabilities gives 61+61+61=21.
- 16
Why can probability assignments that violate the probability laws lead to guaranteed losses in betting?
Model answer
Assignments that are negative, fail to sum to 1, or fail to make event probabilities equal the sums of their outcomes can be exploited through a sequence of bets that guarantees a loss.
Explanation
This demonstrates that the probability laws are necessary for internally consistent beliefs.
- 17
What is a random variable?
Model answer
A random variable is a deterministic function that maps each possible world to a value representing some aspect of that world.
Explanation
It is called random because its input outcome is selected according to a probability distribution, causing the output to vary probabilistically.
- 18
Why is a random variable technically neither random nor a variable in the formal definition?
Model answer
Formally, it is a fixed deterministic function; the randomness comes from the randomly selected outcome supplied as its input.
Explanation
The same outcome always produces the same random-variable value, even though different outcomes may produce different values.
- 19
How is a Boolean random variable different from a general random variable?
Model answer
A Boolean random variable has a range containing only two values, usually true and false.
Explanation
For example, the random variable indicating whether a die roll is odd maps outcomes 1, 3, and 5 to true and the others to false.
- 20
What are the domain and range of a random variable?
Model answer
The domain is the outcome space Ω, and the range is the set of values the random variable can output.
Explanation
For a temperature variable, the range might be {hot,cold}, while the domain remains the set of possible worlds.
- 21
Give two examples of random variables with potentially non-finite ranges.
Model answer
Travel time to an airport may range from 0 to infinity, and a location variable may range over ordered pairs of integers.
Explanation
A random variable's range does not have to contain only a finite list of values.
- 22
What is the probability distribution of a random variable?
Model answer
It specifies the probability associated with every value in the random variable's range.
Explanation
For example, a temperature distribution gives the probabilities that the temperature is hot or cold.
- 23
How is P(X=x) computed from the probabilities of possible worlds?
Model answer
P(X=x) is the sum of the probabilities of all worlds ω for which the random variable maps ω to x.
Explanation
The calculation combines all distinct worlds that produce the same random-variable value.
- 24
What can the abbreviated notation P(x) represent?
Model answer
P(x) can abbreviate P(X=x), the probability that random variable X takes value x, or refer to the complete probability distribution when used more generally.
Explanation
The context determines whether the notation refers to one value or the table of probabilities for all values.
- 25
What is a joint distribution?
Model answer
A joint distribution assigns probabilities to every combination of values taken by multiple random variables.
Explanation
For temperature and weather, it assigns probabilities to combinations such as hot and sunny or cold and rainy.
- 26
What are marginal distributions in relation to a joint distribution?
Model answer
Marginal distributions describe the individual variables that make up a joint distribution.
Explanation
A joint distribution over temperature and weather has separate marginal distributions for temperature and for weather.
- 27
Can marginal distributions generally determine a joint distribution?
Model answer
No. The marginal distributions do not generally determine how the variables relate to one another, although the marginals can be computed from the joint distribution.
Explanation
Different joint distributions can have the same marginals but different relationships between variables.
- 28
How are possible worlds constructed from random variables and their ranges?
Model answer
A possible world is constructed as an assignment of one value to every random variable.
Explanation
With temperature and weather variables, each combination of a temperature value and a weather value forms one possible world.
- 29
How many possible worlds are there for two independent six-sided die rolls?
Model answer
There are 62=36 possible worlds, one for each ordered pair of die results.
Explanation
The first die has six possibilities and the second die has six possibilities, so the total is their product.
- 30
How does the size of a complete joint distribution grow when there are n variables with d possible values each?
Model answer
The number of possible worlds grows as dn.
Explanation
Each of the n variables can independently take one of d values, producing a multiplicative number of combinations.
- 31
Why is explicitly representing a joint distribution often infeasible?
Model answer
The number of entries grows exponentially with the number of variables, making both storage and probability estimation impractical.
Explanation
For hundreds of Boolean attendance variables, the table would require approximately 2n entries.
- 32
How is a marginal probability obtained from a joint distribution?
Model answer
Sum the joint probabilities over all values of the variables that are not part of the marginal query.
Explanation
For example, to find the probability of sunny weather, sum the probabilities of sunny-hot, sunny-cold, and any other temperature combinations.
- 33
What is the definition of conditional probability?
Model answer
For P(B)>0, the conditional probability is P(A∣B)=P(B)P(A∩B).
Explanation
It measures the proportion of the probability of B that is also contained in event A.
- 34
How would you calculate the probability of cold weather given that it is rainy?
Model answer
Divide the joint probability of cold and rainy by the marginal probability of rainy: P(cold∣rainy)=P(rainy)P(cold∩rainy).
Explanation
The denominator includes all outcomes in which it is rainy, while the numerator includes only the rainy outcomes that are also cold.
- 35
What is a conditional distribution?
Model answer
A conditional distribution gives a complete probability distribution for one variable after fixing the value of another variable.
Explanation
For example, the distribution of weather given that the temperature is hot assigns probabilities to sunny, rainy, foggy, and meteor weather under that condition.
- 36
Why must a slice of a joint distribution be normalized to form a conditional distribution?
Model answer
A slice of a joint distribution usually sums to the probability of the conditioning event rather than to 1, so it must be divided by that total.
Explanation
Normalization converts the restricted probabilities into probabilities relative to the worlds consistent with the condition.
- 37
What is the normalization constant when normalizing values whose sum is s?
Model answer
The normalization constant is α=s1, so each value is multiplied by α.
Explanation
Multiplying by the reciprocal of the sum makes the resulting values add to 1.
- 38
State the product rule for two events.
Model answer
The product rule is P(A∩B)=P(A∣B)P(B), and equivalently P(A∩B)=P(B∣A)P(A).
Explanation
The rule follows directly by rearranging the definition of conditional probability.
- 39
How can a joint distribution over three variables be factored using conditional probabilities?
Model answer
It can be written as P(x1,x2,x3)=P(x1)P(x2∣x1)P(x3∣x1,x2).
Explanation
This results from repeatedly applying the product rule, first separating x3 and then separating x2 from x1.
- 40
State the general chain-rule factorization for a joint distribution over n variables.
Model answer
For any ordering, P(x1,…,xn)=∏i=1nP(xi∣x1,…,xi−1), where the first factor is simply P(x1).
Explanation
Each variable is conditioned on all variables that precede it in the chosen ordering.
- 41
What are evidence variables, query variables, and hidden variables in probabilistic inference?
Model answer
Evidence variables are observed, query variables are the variables whose probabilities are requested, and hidden variables are unobserved variables that may affect the relationships but are not directly queried.
Explanation
For example, observed weather could be evidence, arrival time could be a query, and an unobserved traffic condition could be hidden.
- 42
What is the first step in inference by enumeration when evidence is observed?
Model answer
Select or retain the entries in the joint distribution that are consistent with the observed evidence.
Explanation
Worlds contradicting the evidence are excluded from further calculation.
- 43
What is done with hidden variables during inference by enumeration?
Model answer
Sum out the hidden variables by adding the probabilities of all their possible values.
Explanation
This produces probabilities involving only the query variables and the evidence variables.
- 44
Why must the result of summing out hidden variables be normalized?
Model answer
Because inconsistent worlds were removed, the remaining values sum to the probability of the evidence rather than to 1.
Explanation
Dividing each remaining value by their total produces a valid conditional probability distribution.
- 45
What is the worst-case time complexity of inference by enumeration with respect to hidden variables?
Model answer
It is exponential in the number of hidden variables because all combinations of their possible values must be considered.
Explanation
Adding another hidden variable multiplies the number of assignments that may need to be enumerated.
- 46
Why is collecting data for a full joint distribution often impractical?
Model answer
An exponentially large table requires exponentially many probability entries, and estimating those entries from real-world observations would require an impractically large amount of data.
Explanation
The cost of gathering enough observations to populate every combination can be prohibitive even if the table could be stored.
- 47
State Bayes' rule.
Model answer
Bayes' rule is P(A∣B)=P(B)P(B∣A)P(A).
Explanation
It follows by equating the two product-rule expressions for the joint probability of A and B.
- 48
Why is Bayes' rule useful even though it follows from a simple definition?
Model answer
It converts a conditional probability that is difficult to determine into one involving probabilities that may be easier to learn, measure, or compute.
Explanation
In many applications, the likelihood of observed data given a hypothesis is easier to obtain than the probability of the hypothesis given the data.
- 49
In Bayesian inference, what do the prior, likelihood, and posterior represent?
Model answer
The prior is the belief in a hypothesis before observing data, the likelihood is the probability of the data given that hypothesis, and the posterior is the updated belief after observing the data.
Explanation
Bayes' rule combines the prior and likelihood and normalizes across possible hypotheses to obtain the posterior.
- 50
How does observing new evidence affect probabilistic beliefs?
Model answer
Observing evidence causes beliefs to be updated by conditioning on that evidence; the probability of an outcome may increase or decrease.
Explanation
For example, learning that it is early and that there are no accidents may increase the probability of arriving on time.
- 51
Why is P(meningitis∣stiff neck) not necessarily large even if stiff neck is common among people with meningitis?
Model answer
Because meningitis has a very low prior probability, and stiff neck is common among people without meningitis as well.
Explanation
Bayesian inference requires both the likelihood of the symptom under the disease and the disease's base rate.
- 52
What is the base-rate fallacy?
Model answer
The base-rate fallacy is the mistake of focusing on how typical evidence is under a hypothesis while ignoring the hypothesis's prior probability.
Explanation
A compelling-sounding explanation can still be less probable when its base rate is very low.
- 53
How can evidence change a small prior probability without making the hypothesis probable?
Model answer
Strong evidence can multiply the prior probability by a substantial factor, making it much larger than before while it may still remain small in absolute terms.
Explanation
In the meningitis example, a stiff neck increases the disease probability substantially relative to its prior, but the resulting probability is still low.
- 54
Define independence between two random variables.
Model answer
Random variables X and Y are independent if P(x,y)=P(x)P(y) for every pair of values x and y.
Explanation
The joint distribution factors into separate distributions for the two variables.
- 55
Give an equivalent conditional-probability definition of independence.
Model answer
Variables X and Y are independent if P(x∣y)=P(x) for all relevant values, meaning observing Y does not change beliefs about X.
Explanation
This follows by substituting the product form of the joint probability into the definition of conditional probability.
- 56
Why are two separate rolls of a fair die independent?
Model answer
The result of the first roll does not change the probability distribution of the second roll, which remains 61 for each face.
Explanation
For example, after observing a 4 on the first roll, the probability of rolling a 3 on the second is still 61.
- 57
How does independence reduce the representation size of a joint distribution?
Model answer
Independent variables can be represented by their individual distributions instead of by a full table containing every joint combination.
Explanation
For n independent coin flips, it is enough to specify the distribution of one flip rather than listing all 2n sequences.
- 58
Why is independence powerful but often unrealistic in real-world domains?
Model answer
Independence can reduce an exponential representation to a much smaller one, but many real-world variables influence one another and therefore are not independent.
Explanation
Traffic, rain, and umbrella use, for example, are related rather than mutually independent.
- 59
What is conditional independence?
Model answer
Two variables are conditionally independent given a third variable when, after conditioning on that variable, learning one of the two no longer changes beliefs about the other.
Explanation
Conditioning can block the informational connection between variables even when they are dependent without the condition.
- 60
In the traffic, rain, and umbrella example, why can traffic and umbrella use be conditionally independent given rain?
Model answer
Once whether it is raining is known, observing an umbrella provides no additional information about traffic, and observing traffic provides no additional information about umbrella use.
Explanation
Rain explains the apparent relationship between traffic and umbrellas, so conditioning on rain can remove their dependence.
- 61
Why is conditional independence important for probabilistic modeling?
Model answer
It allows complex relationships among many variables to be represented and inferred tractably without storing the full joint distribution.
Explanation
This idea is central to compact probabilistic models such as Bayesian networks.

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