Probability and Federalist Papers
- 15Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the formula for the cumulative distribution function (CDF) of a normal random variable X with mean μ and variance σ2?
What is the formula for the cumulative distribution function (CDF) of a normal random variable X with mean μ and variance σ2?
15 questions
- 1
What is the formula for the cumulative distribution function (CDF) of a normal random variable X with mean μ and variance σ2?
- A
P(X<x)=Φ(σx−μ)
- B
P(X<x)=Φ(μx−σ)
- C
P(X<x)=Φ(σ2x−μ)
- D
P(X<x)=Φ(σμ−x)
Correct answer
AP(X<x)=Φ(σx−μ)
Explanation
The correct formula is P(X<x)=Φ(σx−μ), where Φ is the CDF of the standard normal distribution.
- A
- 2
What does the function Φ represent in the context of a normal distribution?
- A
The probability mass function of a normal
- B
The cumulative distribution function of a standard normal
- C
The probability density function of a standard normal
- D
The inverse cumulative distribution function of a standard normal
Correct answer
BThe cumulative distribution function of a standard normal
Explanation
Φ is the CDF of the standard normal distribution, i.e., Φ(z)=P(Z≤z) where Z is standard normal.
- A
- 3
If Φ−1(0.99999)≈3.71902, what is the value r such that P(X<r)=0.99999 for a normal X with mean 1,000,000 and standard deviation 10,000?
- A
1,037,190.2
- B
1,037,190
- C
1,000,000×3.71902=3,719,020
- D
1,000,000+3.71902×10,000=1,037,190.2
Correct answer
D1,000,000+3.71902×10,000=1,037,190.2
Explanation
Using r=μ+Φ−1(p)σ, with μ=1,000,000, σ=10,000, p=0.99999, we get r=1,000,000+3.71902×10,000=1,037,190.2.
- A
- 4
In the server capacity problem, why is the number of servers computed as ⌈r/10000⌉ rather than exactly r/10000?
- A
Because servers can only handle integer numbers of requests
- B
Because the number of servers must be an integer and we need to handle at least r requests
- C
Because the CDF formula requires integer inputs
- D
Because we need to ensure the probability is strictly greater than 0.99999
Correct answer
BBecause the number of servers must be an integer and we need to handle at least r requests
Explanation
We need at least r requests capacity, and since each server handles 10,000 requests, we take the ceiling of r/10000 to ensure we have enough capacity.
- A
- 5
What property must a joint probability mass function pX,Y(x,y) satisfy?
- A
Each entry is between 0 and 1
- B
All entries sum to 1
- C
Columns sum to 1
- D
Rows sum to 1
Correct answer
BAll entries sum to 1
Explanation
The sum of all joint probabilities over all combinations of X and Y must equal 1, as they cover all possible outcomes.
- A
- 6
If you have a joint PMF table for two random variables, how can you compute the marginal probability P(X=a)?
- A
Sum over all x of pX,Y(x,a)
- B
Multiply all entries in row a
- C
Take the entry pX,Y(a,a)
- D
Sum over all y of pX,Y(a,y)
Correct answer
DSum over all y of pX,Y(a,y)
Explanation
Marginalization sums out the other variable: P(X=a)=∑ypX,Y(a,y).
- A
- 7
Why is marginalization referred to as 'marginal'?
- A
Because it is of minor importance
- B
Because it deals with marginal probabilities
- C
Because the results are written in the margins of the table
- D
Because it involves the law of total probability
Correct answer
CBecause the results are written in the margins of the table
Explanation
Historically, probabilities were summed and written in the margins of the joint table, leading to the term 'marginal'.
- A
- 8
How many entries would a joint probability table have for 10 random variables each taking 5 values?
- A
10×5
- B
105
- C
5×10
- D
510
Correct answer
D510
Explanation
With 10 variables each with 5 outcomes, the total number of combinations is 510, which is exponentially large.
- A
- 9
What is the formula for the multinomial probability mass function?
- A
∏i=1Mci!n!pici
- B
∑i=1Mci!n!∏i=1Mpici
- C
∏i=1Mci!n!∏i=1Mpici
- D
∏i=1Mci!n!∑i=1Mpici
Correct answer
C∏i=1Mci!n!∏i=1Mpici
Explanation
The multinomial PMF is c1!c2!⋯cM!n!p1c1p2c2⋯pMcM.
- A
- 10
In the multinomial distribution, what must be true about the sum of the probabilities pi?
- A
They sum to 1
- B
They sum to n
- C
They are each greater than 0.5
- D
They are all equal
Correct answer
AThey sum to 1
Explanation
The probabilities pi for each outcome must sum to 1, as they represent the full set of possibilities for a single trial.
- A
- 11
How does the multinomial distribution generalize the binomial distribution?
- A
It allows more than one trial
- B
It allows dependent trials
- C
It allows continuous outcomes
- D
It allows more than two outcome categories
Correct answer
DIt allows more than two outcome categories
Explanation
The binomial has two outcomes (success/failure), while the multinomial extends to M outcomes.
- A
- 12
In using the multinomial to model text, what does each 'trial' represent?
- A
Each word in the document
- B
Each sentence
- C
Each letter
- D
Each document
Correct answer
AEach word in the document
Explanation
Each word is considered a trial, with outcomes being the word types, and the counts follow a multinomial distribution.
- A
- 13
When applying Bayes' theorem to determine authorship of the Federalist Papers, what is the expression for the ratio P(Madison∣document)P(Hamilton∣document)?
- A
P(document∣Madison)P(document∣Hamilton)⋅P(document)
- B
P(document∣Hamilton)−P(document∣Madison)
- C
P(document∣Madison)P(document∣Hamilton)⋅P(Madison)P(Hamilton)
- D
P(Madison)P(Hamilton)⋅P(document)
Correct answer
CP(document∣Madison)P(document∣Hamilton)⋅P(Madison)P(Hamilton)
Explanation
By Bayes' theorem, P(author∣doc)∝P(doc∣author)P(author), so the ratio is the product of the likelihood ratio and the prior ratio.
- A
- 14
In the authorship problem, why did the direct computation of P(document∣author) yield zero for both authors?
- A
Because the document contained unknown words
- B
Because the probabilities multiplied together were too small for computer precision (underflow)
- C
Because the authors did not write the document
- D
Because the multinomial coefficient was zero
Correct answer
BBecause the probabilities multiplied together were too small for computer precision (underflow)
Explanation
The product of many small probabilities (for each word) causes numerical underflow, resulting in zero in floating-point arithmetic.
- A
- 15
What common technique is used to avoid underflow when computing probabilities in text analysis?
- A
Rounding probabilities to 0 or 1
- B
Normalizing the document length
- C
Using higher precision arithmetic
- D
Using logarithms of probabilities
Correct answer
DUsing logarithms of probabilities
Explanation
Working with log probabilities converts products into sums, avoiding underflow and allowing accurate comparison.
- A

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