Probability and Federalist Papers
- 22Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
State the formula for the cumulative distribution function (CDF) of a normal random variable X with mean μ and variance σ2.
22 questions
- 1
State the formula for the cumulative distribution function (CDF) of a normal random variable X with mean μ and variance σ2.
Model answer
F(x)=Φ(σx−μ) where Φ is the CDF of the standard normal.
Explanation
The CDF gives P(X≤x) and is computed by standardizing x to a z-score and evaluating the standard normal CDF Φ.
- 2
Given P(X≤r)=0.99999 for a normal random variable X, explain how to find r using the inverse Phi function.
Model answer
We have Φ(σr−μ)=0.99999, so σr−μ=Φ−1(0.99999). Then r=μ+σ⋅Φ−1(0.99999).
Explanation
The inverse Phi function returns the z-score corresponding to a given cumulative probability, allowing us to solve for the original value.
- 3
In the server capacity problem, what is the relationship between the number of servers k, the number of requests you can handle R, and the number of requests per server?
Model answer
R=10000k, because each server can handle 10,000 requests.
Explanation
The total request capacity is the product of the number of servers and the capacity per server.
- 4
Why is it important to use logarithms when working with products of probabilities in computer science?
Model answer
Multiplying many small probabilities can cause numerical underflow, but adding log probabilities avoids this because computers can represent smaller numbers in log space.
Explanation
Logarithms convert products into sums, which are more numerically stable for very small values.
- 5
State the logarithmic identity for the product of terms: log(ab).
Model answer
log(ab)=loga+logb.
Explanation
This identity converts multiplication into addition, which is key for numerical stability.
- 6
How many permutations are there of the letters in the word MISSISSIPPI? Express your answer in terms of factorials.
Model answer
4!4!2!1!11!
Explanation
This is the multinomial coefficient for a multiset with 4 I's, 4 S's, 2 P's, and 1 M.
- 7
What is the joint probability mass function (PMF) for two discrete random variables X and Y?
Model answer
The joint PMF is pX,Y(x,y)=P(X=x,Y=y) for all possible values x and y.
Explanation
It gives the probability of every combination of outcomes for the two random variables.
- 8
What is one property that any valid joint PMF must satisfy?
Model answer
The sum of the joint PMF over all possible pairs (x,y) must equal 1.
Explanation
Since the events are mutually exclusive and exhaustive, their probabilities sum to 1.
- 9
Explain how to obtain the marginal PMF of X from the joint PMF of X and Y.
Model answer
pX(x)=∑ypX,Y(x,y) by summing over all values of Y.
Explanation
This process, called marginalization, uses the law of total probability to eliminate Y.
- 10
Why are the terms "marginal" and "marginalization" used?
Model answer
Historically, when working with joint probability tables by hand, the sums for one variable were written in the margins of the table.
Explanation
The name comes from the physical location of the computed sums.
- 11
How does the law of total probability relate to marginalization?
Model answer
Marginalization is a direct application of the law of total probability: P(X=x)=∑yP(X=x,Y=y)=∑yP(X=x∣Y=y)P(Y=y).
Explanation
The law of total probability provides the theoretical foundation for summing over mutually exclusive and exhaustive events.
- 12
Suppose a joint probability table has n random variables, each taking k values. How many entries does the table have?
Model answer
kn entries.
Explanation
Each combination of values corresponds to one cell, leading to exponential growth.
- 13
Why is a joint probability table impractical for a large number of random variables?
Model answer
The number of entries grows exponentially with the number of variables, making storage and estimation infeasible.
Explanation
This is the curse of dimensionality; we need more efficient representations.
- 14
State the probability mass function of the multinomial distribution for n independent trials with m outcomes, probabilities p1,…,pm, and counts x1,…,xm.
Model answer
P(X1=x1,…,Xm=xm)=x1!⋯xm!n!p1x1⋯pmxm where ∑xi=n and ∑pi=1.
Explanation
This generalizes the binomial to multiple categories, with a multinomial coefficient for orderings.
- 15
What is the relationship between the binomial and multinomial distributions?
Model answer
The binomial is a special case of the multinomial with m=2 outcomes (success and failure).
Explanation
When there are only two categories, the multinomial coefficient reduces to the binomial coefficient.
- 16
In the context of text modeling, what does each outcome of the multinomial represent?
Model answer
Each outcome represents a word type, and the count xi is the number of times word i appears in the document.
Explanation
The multinomial models a bag of words, assuming each word is drawn independently from a fixed vocabulary distribution.
- 17
When using Bayes' theorem for authorship attribution, why is it easier to compute the ratio of posterior probabilities P(Madison∣document)P(Hamilton∣document) than the individual probabilities?
Model answer
The ratio cancels the normalizing constant P(document) and the multinomial coefficient, leaving only P(document∣Madison)P(Madison)P(document∣Hamilton)P(Hamilton).
Explanation
The evidence P(document) is the same for both hypotheses and the coefficient depends only on the same document, so they divide out.
- 18
In the authorship attribution example, what assumption is made about the prior probabilities P(Hamilton) and P(Madison)?
Model answer
They are set equal to 1/2, representing no prior bias.
Explanation
A uniform prior is often used when there is no reason to favor one author over the other before seeing the data.
- 19
Why did the initial multinomial calculation yield zero probability for both authors in the Federalist Papers example?
Model answer
Because multiplying many small probabilities (each pixi) underflows to zero in finite-precision arithmetic.
Explanation
Even though the true probability is positive, the product of many tiny numbers becomes indistinguishable from zero computationally.
- 20
In Bayesian inference, what is the role of the denominator P(document) in P(author∣document)?
Model answer
It normalizes the posterior so that the probabilities sum to 1. It is computed as ∑authorP(document∣author)P(author).
Explanation
This is the law of total probability applied to the evidence.
- 21
How does the multinomial coefficient affect the ratio of two multinomial likelihoods for the same document?
Model answer
It cancels because the same document has the same word counts, so the coefficient is identical for both authors.
Explanation
The coefficient depends only on the observed counts, not on the author's word probabilities.
- 22
What is a major challenge when using a multinomial model for text that has many rare words?
Model answer
Rare words have very small probabilities, so their likelihood contributions can cause numerical underflow when multiplied.
Explanation
This is the same issue that motivated using logarithms in computational probability.

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