









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Each performance of the experiment is called a Bernoulli trial. • One outcome is called a success and the other a failure. • If p is the probability of success ...
Typology: Study notes
1 / 17
This page cannot be seen from the preview
Don't miss anything!










k
n − k
An Example with Conditional Probabilities
H: Hypothesis E: Evidence
Suppose that one person in 100,000 has a particular disease. There is a test for the disease that gives a positive result 99 % of the time when given to someone with the disease. When given to someone without the disease, 99.5% of the time it gives a negative result. Find (a) the probability that a person who tests positive has the disease; and (b) the probability that a person who tests negative does not have the disease. Should someone who tests positive be worried? (False negative rate = 0.01; false positive rate = 0.005) For (a). H: the person has the disease. E: the person tests positive For (b). H: the person does not have the disease. E: the person tests negative
Solution : Let D be the event that the person has the disease, and E be the event that this person tests positive. We need to compute
| .99 | .01 | .005 |. | | | | 0.99 0. 0.99 0.00001 0.005 0.
p E D p E D p E D p E D p E D p D p D E p E D p D p E D p D = = = = =
=
» Can you use this formula to explain why the resulting probability is surprisingly small? So, don’t worry too much, if your test for this disease comes back positive.
( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) 3, 0 2,
X HHH X TTT X HHT X HTH X THH X TTH X THT X HTT = = = = = = = =
x S E X p s X s Î
The Hatcheck Problem : A new employee started a job checking hats, but forgot to put the claim check numbers on the hats. So, the n customers just receive a random hat from those remaining. What is the expected number of hats returned correctly? Solution : Let X be the random variable that equals the number of people who receive the correct hat. We have X = X 1 + X 2 + ··· + Xn , where Xi = 1 if the i th person receives the hat and Xi = 0 otherwise.
Consequently, the average number of people who receive the correct hat is exactly one. ( Surprisingly, this answer remains the same no matter how many people have checked their hats!) “ indicator random variable”
Number of inversions : You are give an array A[1,…,n] of n distinct integers. An inversion in this array is a pair of indices (i,j) such that A[i] > A[j]. What is the expected number of inversions in a random array of n elements? Solution : Let X be the RV (random variable) that equals the number of inversions. Let Xij be the indicator RV that equals 1 if (i,j) is an inversion, and 0 otherwise