Docsity

Solutions for Midterm Exam 1 - Statistical Methods | MATH 183, Exams of Data Analysis & Statistical Methods

Toggle sidebar
bg1
Math 183 Midterm Exam I Solutions
1. Find the probability of being dealt at least three Aces in a hand of poker. Recall that a hand of poker consists of 5 cards
dealt at random and without replacement from a deck of 52 cards. (A poker deck consists of 13 spades (numbered 2, 3, . . .,
10, J, Q, K, A), 13 clubs, 13 hearts and 13 diamonds (all numbered similarly).)
Solution: The easiest way to do this problem is by introducing the random variable
X=# of Aces in a hand.
Then Xhas a hypergeometric distribution with parameters N= 52,n= 5,r= 4 (the Aces) and w= 52 −4 = 48 (the
remaining cards). Therefore,
P(X≥3) = P(X= 3 or X= 4)
=pX(3) + pX(4)
=4
348
2
52
5+4
448
1
52
5.
2. As you drive to school, suppose the probability that you have to stop for a red light at a specific intersection on your way
is 0.75. In a given week you approach this intersection 10 times. Assume that each time you approach the intersection the
probability that you have to stop for a red light is the same and is independent of any other approach. What is the probability
that you will have to stop for a red light at this intersection at least half of the time in a given week of driving to school?
Solution: Introduce the random variable
X=# of times you have to stop for red light.
Then Xhas a binomial distribution with parameters n= 10 (the 10 approaches of the intersection) and p= 0.75 (the
probability that you have to stop for a red light). Therefore,
P(X≥5) = P(X= 5,6,7,8,9,or 10)
=
10
X
k=5
pX(k)
=
10
X
k=5 10
k(0.75)k(0.25)10−k.
3. Suppose that 51% of the U.S. population are women, 43% are Democrats, and 29% are both women and Democrats. Choose
a person from the population at random.
(a) What is the probability that the person is a man and is not a Democrat?
(b) What is the probability that the person is not a Democrat given that she is a woman?
Solution:
(a) Define the events
W:randomly chosen person is a woman
D:randomly chosen person is a Democrat.
Then P(W)=0.51,P(D)=0.43, and P(W∩D) = 0.29. We want P(WC∩DC). By DeMorgan’s Laws
P(WC∩DC) = P((W∪D)C)=1−P(W∪D)
= 1 −[P(W) + P(D)−P(W∩D)]
= 1 −[0.51 + 0.43 −0.29] = 0.35
pf3

Partial preview of the text

Download Solutions for Midterm Exam 1 - Statistical Methods | MATH 183 and more Exams Data Analysis & Statistical Methods in PDF only on Docsity!

Math 183 Midterm Exam I Solutions

  1. Find the probability of being dealt at least three Aces in a hand of poker. Recall that a hand of poker consists of 5 cards dealt at random and without replacement from a deck of 52 cards. (A poker deck consists of 13 spades (numbered 2, 3,.. ., 10, J, Q, K, A), 13 clubs, 13 hearts and 13 diamonds (all numbered similarly).) Solution: The easiest way to do this problem is by introducing the random variable

X = # of Aces in a hand.

Then X has a hypergeometric distribution with parameters N = 52, n = 5, r = 4 (the Aces) and w = 52 − 4 = 48 (the remaining cards). Therefore,

P (X ≥ 3) = P (X = 3 or X = 4) = pX (3) + pX (4)

  1. As you drive to school, suppose the probability that you have to stop for a red light at a specific intersection on your way is 0.75. In a given week you approach this intersection 10 times. Assume that each time you approach the intersection the probability that you have to stop for a red light is the same and is independent of any other approach. What is the probability that you will have to stop for a red light at this intersection at least half of the time in a given week of driving to school? Solution: Introduce the random variable

X = # of times you have to stop for red light.

Then X has a binomial distribution with parameters n = 10 (the 10 approaches of the intersection) and p = 0. 75 (the probability that you have to stop for a red light). Therefore,

P (X ≥ 5) = P (X = 5, 6 , 7 , 8 , 9 , or 10)

∑^10

k=

pX (k)

∑^10

k=

k

(0.75)k(0.25)^10 −k.

  1. Suppose that 51% of the U.S. population are women, 43% are Democrats, and 29% are both women and Democrats. Choose a person from the population at random.

(a) What is the probability that the person is a man and is not a Democrat? (b) What is the probability that the person is not a Democrat given that she is a woman?

Solution:

(a) Define the events

W : randomly chosen person is a woman D : randomly chosen person is a Democrat.

Then P (W ) = 0. 51 , P (D) = 0. 43 , and P (W ∩ D) = 0. 29. We want P (W C^ ∩ DC^ ). By DeMorgan’s Laws

P (W C^ ∩ DC^ ) = P ((W ∪ D)C^ ) = 1 − P (W ∪ D) = 1 − [P (W ) + P (D) − P (W ∩ D)] = 1 − [0.51 + 0. 43 − 0 .29] = 0. 35

(b) We want P (DC^ |W ) =

P (DC^ ∩ W )

P (W )

To find the probability P (DC^ ∩ W ) it is easiest to use a Venn diagram to see that

P (DC^ ∩ W ) = P (W ) − P (D ∩ W ) = 0. 51 − 0 .29 = 0. 22.

So P (DC^ |W ) =

  1. Suppose one person out of every 4000 in the population has a disease. Suppose there is a test for the disease that will give a correct positive result 90% of the time when a person has the disease and a false positive result 2% of the time when a person does not have the disease. If a randomly chosen person takes the test and tests positive, what is the probability that the person actually has the disease? Solution: Define the events

A 1 = person has the disease A 2 = AC 1 = person does not have the disease B = person tests positive for the disease.

Then A 1 , A 2 form a partition and P (A 1 ) = 1/ 4000 , P (A 2 ) = 1− 1 /4000 = 3999/ 4000 , P (B|A 1 ) = 0. 9 , and P (B|A 2 ) =

    1. By Bayes’ Rule

P (A 1 |B) =

P (B|A 1 )P (A 1 )

P (B|A 1 )P (A 1 ) + P (B|A 2 )P (A 2 )

  1. In Super Bowl XLIII this weekend the Pittsburgh Steelers are playing the Arizona Cardinals. If Hines Ward, a wide receiver for the Steelers, is healthy, then the Steelers have a 60% chance of winning. However, if Ward does not play, then the Steelers chance of winning is only 50%. Steelers head coach Mike Tomlin says that there is a 90% chance Ward will play. What is the probability that the Steelers will win Super Bowl XLIII? Solution: Define the events

HW = Ward plays in Super Bowl XLIII P S = Pittsburgh Steelers win Super Bowl XLIII.

Then P (HW ) = 0. 9 , P (P S|HW ) = 0. 6 , and P (P S|HW C^ ) = 0. 5. By the Law of Total Probability

P (P S) = P (P S|HW )P (HW ) + P (P S|HW C^ )P (HW C^ ) = (0.6)(0.9) + (0.5)(0.1) = 0. 59.

  1. Suppose that the amount of time, in seconds, that you have to wait at a given intersection for a red light to turn green is a random variable with pdf fX (x) = c(x − 3)^2 , for x ∈ [0, 3].

(a) Find the associated cdf. (b) What is the probability that you will have to wait at most 1 min. for the light to turn green?

Solution:

(a) First we need to find the constant c. We must have

−∞ fX^ (x)dx^ = 1; since ∫ (^) ∞

−∞

fX (x)dx =

0

c(x − 3)^2 dx = c

(x − 3)^3 3

3

0

= 9c,

it follows that 9 c = 1 ↔ c = 1/ 9. So the cdf FX (t) for t ∈ [0, 3], equals

FX (t) =

∫ (^) t

0

(x − 3)^2 9

dx = (x − 3)^3 27

t

0

(t − 3)^3 27