Probability and Federalist Papers
- 18Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- βPrevious card
- βNext card
What is the formula for computing P(X<x) when X is a normal random variable with mean ΞΌ and variance Ο2?
P(X<x)=Ξ¦(ΟxβΞΌβ) where Ξ¦ is the CDF of the standard normal.
Or swipe the card
18 cards
What is the formula for computing P(X<x) when X is a normal random variable with mean ΞΌ and variance Ο2?
P(X<x)=Ξ¦(ΟxβΞΌβ) where Ξ¦ is the CDF of the standard normal.
What is the inverse Phi function and how is it used?
The inverse Phi function Ξ¦β1(p) returns the z such that Ξ¦(z)=p. It is used to find quantiles of a normal distribution, e.g., solving P(X<r)=0.99999 yields r=ΞΌ+Οβ Ξ¦β1(0.99999).
Why do computer scientists often work with log-probabilities instead of raw probabilities?
Multiplying many small probabilities causes underflow in computers. Adding log-probabilities avoids this because log(ab)=loga+logb, and the sum stays in a representable range.
What is the number of ways to order n objects where there are n1β of type 1, n2β of type 2, ..., nrβ of type r?
n1β!n2β!β―nrβ!n!β This is the multinomial coefficient, also used for counting permutations of multiset (like the word 'Mississippi').
Define the joint probability mass function (joint PMF) of two discrete random variables X and Y.
The joint PMF is pX,Yβ(x,y)=P(X=xΒ andΒ Y=y). It gives the probability that X takes value x and Y takes value y simultaneously.
What does a single cell in a joint probability table represent?
Each cell gives the probability of a specific joint assignment: P(X=xiβ,Y=yjβ).
Why must all entries in a joint probability table sum to 1?
Because the cells represent mutually exclusive events that cover all possible outcomes of the two random variables, so their probabilities must sum to 1.
What is marginalization and how is it performed?
Marginalization extracts the probability distribution of one random variable by summing the joint PMF over all values of the other variable(s). For example, P(X=a)=βyβP(X=a,Y=y).
How is the law of total probability related to marginalization?
Marginalization is a direct application of the law of total probability: P(X=a)=βyβP(X=aβ£Y=y)P(Y=y)=βyβP(X=a,Y=y).
What is the curse of dimensionality in the context of joint probability tables?
The number of entries in a joint table grows exponentially with the number of random variables. For k variables with m values each, the table has mk entries, making it infeasible for large k.
What is the multinomial distribution?
The multinomial distribution models the counts of m possible outcomes when n independent trials (like dice rolls) are performed, where each trial has outcome probabilities p1β,p2β,...,pmβ summing to 1.
Write the probability mass function (PMF) of the multinomial distribution.
P(C1β=c1β,...,Cmβ=cmβ)=c1β!β―cmβ!n!βp1c1βββ―pmcmββ where βi=1mβciβ=n and βi=1mβpiβ=1.
How is the binomial distribution a special case of the multinomial?
For m=2 outcomes (e.g., success/failure), the multinomial PMF reduces to the binomial: (knβ)pk(1βp)nβk, where c1β=k, c2β=nβk, p1β=p, p2β=1βp.
How can a multinomial model be used for text analysis?
Treat each word in a document as an independent draw from a vocabulary of m words, with probabilities p1β,...,pmβ reflecting word frequencies. The counts of each word in the document follow a multinomial distribution.
In the Federalist Papers authorship problem, how is Bayes' theorem used to compute P(authorβ£document)?
P(Hβ£D)=P(D)P(Dβ£H)P(H)β where P(Dβ£H) is the multinomial likelihood of the document given Hamilton wrote it, P(H) is the prior probability, and P(D) is the marginal probability of the document.
How can the ratio P(Mβ£D)P(Hβ£D)β be simplified to avoid computing P(D)?
P(Mβ£D)P(Hβ£D)β=P(Dβ£M)P(M)P(Dβ£H)P(H)β If P(H)=P(M)=0.5, then the ratio simplifies to P(Dβ£M)P(Dβ£H)β.
Why does the multinomial coefficient cancel when comparing two authors for the same document?
Because the multinomial coefficient depends only on the word counts in the document, which are the same regardless of the author. So it appears in both P(Dβ£H) and P(Dβ£M) and cancels in the ratio.
What problem occurs when a word that appears in the unknown document never appeared in the known works of an author?
The estimated probability of that word given the author becomes zero, making the entire likelihood zero, even if other evidence strongly favors that author. This is a common issue with maximum likelihood estimates from limited data.

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