Summations
Binomial expectation and variance
Binomial expectation and variance
Suppose we have repeated Bernoulli trials with .
The sum is a binomial variable: .
We know and .
The summation rule for expectation:
The summation rule for variance:
Link to original
Multinomial covariances
Multinomial covariances
Each trial of an experiment has possible outcomes labeled with probabilities of occurrence . The experiment is run times.
Let count the number of occurrences of outcome . So .
Find .
Solution
Notice that is also a binomial variable with success probability .
(‘Success’ is an outcome of either or . ‘Failure’ is any other value.)The variance of a binomial is known to be .
Compute by solving:
Link to original
Hats in the air
Hats in the air
All sailors throws their hats in the air, and catch a random hat when they fall back down.
(a) How many sailors do you expect will catch the hat they own?
(b) What is the variance of this number?
Solution
Strangely, the answers are both 1, regardless of the number of sailors. Here is the reasoning:
(a)
Let when sailor catches their own hat, and otherwise. Thus is Bernoulli with .Now counts the total number of hats caught by their owners.
Note that . Therefore:
(b)
We know:
Now calculate :
Use . Observe that . Therefore:
Now calculate :
We need to compute .
Notice that when and both catch their own hats, and 0 otherwise. So it is Bernoulli. Then:
Therefore:
Putting everything together:
Link to original
Months with a birthday
Months with a birthday
Suppose study groups of 10 are formed from a large population.
For a typical study group, how many months out of the year contain a birthday of a member of the group? (Assume all 12 months have equal duration.)
Solution
(1) Let be 1 if month contains a birthday, and 0 otherwise.
So we seek . This equals .
The answer will be because all terms are equal.
(2) For a given :
The complement event:
(3) Therefore:
Link to original
Pascal expectation and variance
Pascal expectation and variance
(1) Let .
Let be independent random variables, where:
- counts the trials until the first success
- counts the trials after the first success until the second success
- counts the trials after the success until the success
Observe that .
(2) Notice that for every . Therefore:
(3) Using the summation rule, conclude:
Link to original
Central Limit Theorem
Binomial estimation: 10,000 flips
Binomial estimation: 10,000 flips
Flip a fair coin 10,000 times. Write for the number of heads.
Estimate the probability that .
Solution
(1) Check the rule of thumb: and , so and the approximation is effective.
(2) Now, calculate needed quantities:
(3) Set up CDF:
(4) Compute desired probability:
Link to original
Summing 1000 dice
Summing 1000 dice
Suppose 1,000 dice are rolled.
Estimate the probability that the total sum of rolled numbers is more than 3,600.
Solution
(1) Let be the number rolled on the die.
Let , so sums up the rolled numbers.
We seek .
(2) Now, calculate needed quantities:
(3) Set up CDF:
(4) Compute desired probability:
Link to original
Continuity correction of absurd normal approximation
Continuity correction of absurd normal approximation
Let denote the number of sixes rolled after rolls of a fair die.
Estimate .
Solution
We have , and and .
The usual approximation, since is continuous, gives an estimate of 0, which is useless.
Now using the continuity correction:
The exact solution is 0.0318, so this estimate is quite good: the error is 1.9%.
Link to original