





































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






































Random Variables Independence Expectation
Allowing repetitions Stars and Bars Counting solutions to integer inequalities
L19 4
EG: Subway from 116th^ to 34th. Transfer to express at 96th? Suppose (incorrectly) that:
Express is 5 minutes faster from 96 to 34.
One of only two possibilities occurs: a) Wait at 96th^ is 2 minutes, so arrive 3 minutes earlier. Probability of this scenario: 0. b) Wait at 96th^ is 10 minutes, so arrive 5 minutes late. Probability of this scenario: 0.
Expected arrival advantage of transferring is:
3 ·(0.75) - 5·(0.25) = 2.25 - 1.25 = 1 minute Conclusion: Transferring is worthwhile.
p (E ) = |E | / |S | assumed that all
S = {wait 2 minutes, wait 10 minutes}
New assumption for set of outcomes S:
EG: Consider the NYS lottery. Assume:
ticket costs $0. jackpot is $18,000, no taxes, no inflation, no shared winnings consider only first prize
Q: What is the expected net winnings?
s S
L19 8
A: The sample space is {win, lose}
The random variable for net winnings is
The expected winnings is negative 1 dime:
A: Forgot about possibility of sharing the jackpot!
Go back to earlier analysis involving only first
sold. We need to figure out the probability
among all winners so expected win value is:
outcomes A, B with respective probabilities p and 1-p. The probability that A occurs exactly k times in n trials is p k^ · (1-p)^ n-k^ · C (n,k )
flipping a fair coin. What are A, B, p and 1-p.
A: A = coin comes up “heads”
B = coin comes up “tails” p = 1-p = ½
Recall: P (A occurs k times out of n)
= p k^ · (1-p)^ n-k^ · C (n,k )
qk = p k^ · (1-p)^ n-k^ · C (n,k )
Assume that n = 11,800,
Plugging this back in to above, the most accurate approximation for expected winning is: -7.9¢
Notice that in our case we have
X(HH)· p(HH)+X(HT)· p(HT)+X(TH)· p(TH)+X(TT)· p(TT)
=1·¼ + 1·¼ + 1·¼ + 0·¼
= ¾
Therefore: We can view random variables as a
Sometimes this can help prove facts about probability.
THM: Suppose X 1 , X 2 , … , Xn are random
E(X 1 +X 2 + … +Xn ) = E(X 1 )+ E(X 2 )+ … +E(Xn )
Proof :
1 2
1 2
s S
n s S s S
n s S