Docsity

Solutions to Introduction to Probability Exam, Exams of Probability and Statistics

Toggle sidebar
bg1
Introduction to Probability Solutions
MATH 3080 (Autumn 2008)
Final Exam
Instructions:
•There are 105 points on the exam and an extra credit problem worth 10 points. 100
points counts as perfect, but, as always, points over 100 will help on your final grade.
•You may use your class textbook. No notes, calculators, computers, cell phones, con-
sultants, or any other source material on the exam. Please turn offyour cell phones.
You may not use your cell phone (to send or receive text messages, for example) during
the exam.
•You must show your work. No credit for correct answers alone.
•Simplify all answers. That is, your answers should be in terms of fractions (or in
problem 2, a decimal) and there should be no binomial coefficients such as µ12
7left.
1. (10 points) An urn contains 3 red and 3 white balls. 2 balls are selected at random
(without replacement) from the urn. Find the probability that at the sample contains
one red ball and one white ball.
Solution: Let Ebe the event 1 red and 1 white ball. Then P(E)=µ3
1¶µ3
1
µ6
2=3
5.
2. (10 points) A fair coin, is flipped independently 400 times. The random variable X
counts the number of heads in these 400 flips. Using the DeMoivre-Laplace limit
theorem, approximate P{190 ≤X≤215}.
(You will want to use the table on page 222 of the text. You need not use the continuity
correction in this problem, just to make the computations easier.)
Solution: Xis a random variable with E(X)=400·1
2=200and var(X)=400·1
2·1
2=
100.Weapproximate
P{190 ≤X≤215}=P½190 −200
√100 ≤X−200
√100 ≤215 −200
√100 ¾
=P½−1≤X−200
√100 ≤1.5¾
≈P{−1≤Z≤1.5}=Φ(1.5) −Φ(−1)
=Φ(1.5) −(1 −Φ(1)) = 0.9332 −(1 −0.8413)
=0.7745
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Solutions to Introduction to Probability Exam and more Exams Probability and Statistics in PDF only on Docsity!

Introduction to Probability Solutions MATH 3080 (Autumn 2008) Final Exam

Instructions:

  • There are 105 points on the exam and an extra credit problem worth 10 points. 100 points counts as perfect, but, as always, points over 100 will help on your final grade.
  • You may use your class textbook. No notes, calculators, computers, cell phones, con- sultants, or any other source material on the exam. Please turn off your cell phones. You may not use your cell phone (to send or receive text messages, for example) during the exam.
  • You must show your work. No credit for correct answers alone.
  • Simplify all answers. That is, your answers should be in terms of fractions (or in problem 2, a decimal) and there should be no binomial coefficients such as

μ 12 7

left.

  1. (10 points) An urn contains 3 red and 3 white balls. 2 balls are selected at random (without replacement) from the urn. Find the probability that at the sample contains one red ball and one white ball.

Solution: Let E be the event 1 red and 1 white ball. Then P (E) =

μ 3 1

¶μ 3 1

μ 6 2

¶ =^3

  1. (10 points) A fair coin, is flipped independently 400 times. The random variable X counts the number of heads in these 400 flips. Using the DeMoivre-Laplace limit theorem, approximate P { 190 ≤ X ≤ 215 }. (You will want to use the table on page 222 of the text. You need not use the continuity correction in this problem, just to make the computations easier.) Solution: X is a random variable with E (X) = 400·

= 200 and var(X) = 400·

  1. We approximate

P { 190 ≤ X ≤ 215 } = P

X − 200

= P

X − 200

≈ P {− 1 ≤ Z ≤ 1. 5 } = Φ (1.5) − Φ (−1)

  1. An urn initially contains 5 balls, 3 of which are white. A fair coin is flipped.
    • If Heads turns up, 2 balls are chosen at random (without replacement) from the urn.
    • If Tails turns up, a sample of size 3 is chosen (without replacement) from the urn.

(a) (7 points) Find the probability that all the balls in the sample are white. Solution: Let H be the event, Heads and T the event Tails. Let W be the event all balls are white. Then

P (W ) = P (W H) + P (W T ) = P

W H

· P (H) + P

W T

· P (T )

μ 3 2

μ 5 2

μ 3 3

μ 5 3

(b) (8 points) Given that all the balls in the sample are white, find the probability that the coin flip turned up Heads. Solution:

P (H|W ) =

P (W H)

P (W )

P

W H

· P (H)

P (W )

  1. Throughout this problem X is a continuous random variable X having density function

f (x) =

cx if 0 < x < 2

0 otherwise

x

y

0 2 Graph of f (a) (3 points) Find c.

Solution:

R 2

0 cx dx^ = 2c^ = 1^ if^ c^ =

. So f (x) =

x 2 if 0 < x < 2

0 otherwise

(b) (3 points) Find P {X ≤ 1 }. Solution: P {X ≤ 1 } =

Z 1

0

x dx =

(c) (3 points) Find E (X) and var(X). Solution: E (X) =

Z 2

0

x ·

x dx =

E

X^2

Z 2

0

x^2 ·

x dx = 2

and var (X) = E

X^2

− (E (X))^2 = 2 −

(d) (8 points) Find the density function fY (x) of the random variable Y = X^2. Solution: First we find the distribution function FY (x) of Y. Notice that since X takes values between 0 and 2 , Y takes values between 0 and 4. So it’s immediate that FY (x) = 0 if x ≤ 0 and FY (x) = 1 if x ≥ 4. Also, if 0 < x < 4 , FY (x) = P {Y ≤ x} = P

X^2 ≤ x

= P

X ≤

x

Z √x

0

t dt =

x

Differentiating FY (x), we obtain

fY (x) =

if 0 < x < 4

0 otherwise That is, Y is uniformly distributed on (0, 4).

  1. (8 points) Suppose that S is a sample space and P is a probability function on S. Given that - S = A ∪ B ∪ C. - A and B ∪ C are mutually exclusive. - B and C are independent. - P (C) = P (B) = 2P (A).

Find P (A). Hint: Continue this computation and see what happens.

1 = P (S) = P (A ∪ B ∪ C) = · · ·

Solution: Since B and C are independent, P (BC) = P (B) · P (C). We also know that A (B ∪ C) = ∅. Computing as suggested, we get

1 = P (A ∪ B ∪ C) = P (A) + P (B ∪ C) = P (A) + P (B) + P (C) − P (B) · P (C)

= 5 P (A) − 4 P (A)^2

Letting x = P (A) , we see that x satisfies the quadratic equation

4 x^2 − 5 x + 1 = 0.

This factors as (4x − 1) (x − 1) = 0 giving immediately that P (A) = x =

(It’s impossible for P (A) = 1 since then P (B) = P (C) = 2.)

  1. (10 points) A red card is removed from a regular deck of 52 cards, leaving 25 red cards and 26 black cards. 13 cards are then drawn at random from the deck and found to be the same color. Find the (conditional) probability that all the cards are black. Solution: Let B be the event “all black” and R the event “all red.” The event “all the same color” is B ∪ R and clearly, BR = ∅.

P

B B ∪ R

μ 26 13

μ 51 13

μ 26 13

μ 51 13

μ 25 13

μ 51 13

  1. (10 points) A small deck of cards contains 8 cards.
    • Four are RED and numbered 1, 2, 3, 4.
    • Four are BLACK and numbered 1, 2, 3, 4.

The deck is divided at random into 2 groups of four cards each, group X and group Y. A card is selected at random from group X. It’s a 1. This card is transferred to group Y and then a card is selected at random from group Y. Find the probability that it’s a 1. Solution 1: Condition on the event F that the card picked from group Y is the card which was transferred from group X. If E is the event that the card picked from group Y is a 1 , then

P (E) = P (EF ) + P (EF c)

= P

E F

· P (F ) + P

E F c

· P (F c)

Solution 2: Let Bk be the event, group X has k 1’s initially. Let C be the event that the card drawn from group X is 1 , and and E be as in Solution 1. Let’s compute.

P

Bk C

P

C Bk

· P (Bk) P (C)

k 4

μ 2 k

μ 6 4 − k

μ 8 4

= k ·

μ 2 k

μ 6 4 − k

μ 8 4

= k ·

k! (2 − k)!

(4 − k)! (2 + k)! 8! 4! · 4! =

(k − 1)! (2 − k)!

(4 − k)! (2 + k)!

  1. (Extra Credit: 10 points) Jane and Bob take turns flipping biased coins, independently.

Jane goes first. Jane’s coin turns up heads with probability

and Bob’s turns up heads

with probability

The game ends when either Jane or Bob flip a heads. Let X be the random variable which measures the trial when the game ends.

(a) (This part is worth 5 points) Determine the probability mass function p (x) of X. Solution: Jane flips on trials 1 , 3 , 5 , · · · and Bob flips on trials 2 , 4 , 6 , · · ·

  • The probability that the game ends on flip 2 n + 1 (for n = 0, 1 , · · · ) is

p (2n + 1) =

μ 4 5

¶n ·

μ 2 3

¶n ·

since Jane flips tails on her first n flips, Bob flips tails on his first n flips, and then Jane flips heads.

  • The probability that the game ends on flip 2 n (for n = 1, 2 , · · · ) is

p (2n) =

μ 4 5

¶n ·

μ 2 3

¶n− 1 ·

since Jane flips tails on her first n flips, Bob flips tails on his first n − 1 flips, and then Bob flips heads. (b) (This part is also worth 5 points) How many coin flips do we expect to wait until either Bob or Jane flips a heads? Note: This part is quite computationally intensive! I’ll give quite a bit of partial credit for good progress. Solution: We compute the expectation of the random variable X.

E (X) =

X^ ∞

n=

n · p (n) =

X

n odd

n · p (n) +

X

n even

n · p (n)

X^ ∞

n=

(2n + 1) · p (2n + 1) +

X^ ∞

n=

(2n) · p (2n)

X^ ∞

n=

(2n + 1)

μ 8 15

¶n ·

X^ ∞

n=

(2n) ·

μ 8 15

¶n− 1 ·

X^ ∞

n=

(2n + 1)

μ 8 15

¶n ·

X^ ∞

n=

(2 (n + 1)) ·

μ 8 15

¶n− 1 ·

Now, in the second sum, we change the index of summation and continue the

computation.

X^ ∞

n=

(2n + 1)

μ 8 15

¶n ·

X^ ∞

n=

(2 (n + 1)) ·

μ 8 15

¶n ·

X^ ∞

n=

μ (2n + 1) ·

μ 2 (n + 1) ·

¶¶ μ 8 15

¶n

X^ ∞

n=

μ 14 15 n +

¶ μ 8 15

¶n

P^ ∞

n=

n

μ 8 15

¶n

P^ ∞

n=

μ 8 15

¶n

(You’ll get 3 out of the 5 points if you reach the boxed sum, or something close to it.) Recall that if 0 < x < 1 , 1 1 − x

X^ ∞

n=

xn

and, differentiating both sides with respect to x (we know from the theory of power series that we can differentiate the series term by term) we obtain

1 (1 − x)^2

X^ ∞

n=

nxn−^1

so x (1 − x)^2

X^ ∞

n=

nxn

Taking x =

and using these formulas gives us

E (X) =

X^ ∞

n=

n

μ 8 15

¶n

X^ ∞

n=

μ 8 15

¶n

μ^15 1 −

μ^1 1 −

μ 15 7 15