Docsity

Final Exam with Solution - Introduction Probability | MATH 425, Exams of Statistics

Toggle sidebar
bg1
Math 425 (Fall ’07)
Final Exam
December 17, 2007
1. A committee of size three is to be selected from a group of 6 Democrats, 5 Independents, and 4
Republicans. What is the probability that the Democrats have a majority on the committee?
What is the conditional probability that the Democrats have a majority, given that at least
one Republican is on the committee?
Solution:
P(D. majority) = P(at least 2 Democrats) = 6
29
1
15
3+6
39
0
15
3
P(D. majority |at least one R.) = P(D. majority,at least one R.)
P(at least one R.) =6
25
1
15
3−11
3
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Final Exam with Solution - Introduction Probability | MATH 425 and more Exams Statistics in PDF only on Docsity!

Math 425 (Fall ’07)

Final Exam

December 17, 2007

  1. A committee of size three is to be selected from a group of 6 Democrats, 5 Independents, and 4 Republicans. What is the probability that the Democrats have a majority on the committee? What is the conditional probability that the Democrats have a majority, given that at least one Republican is on the committee?

Solution:

P (D. majority) = P (at least 2 Democrats) =

( 6 2

)( 9 1

) ( 15 3

( 6 3

)( 9 0

) ( 15 3

)

P (D. majority | at least one R.) =

P (D. majority, at least one R.) P (at least one R.)

( 6 2

)( 5 1

) ( 15 ) −

( 11 )

  1. We have a box containing four coins. The probability of getting head for the i-th coin is p = i 4. One of the coin is drawn from the box and a head is flipped. What is the probability that the i-th coin was the coin chosen? Solution:

P (ithcoin used | head) =

P (ithcoin used, head) P (head)

i 4 ·^

1 4 1 4 ·^

1 4 +^

2 4 ·^

1 4 +^

3 4 ·^

1 4 +^

4 4 ·^

1 4

i 10

  1. We say that a multiple-choice test is well designed if the chance of passing the test by choosing randomly the answers is less than 5%. Suppose that we have a test for which there are 100 questions, each having 5 possible options. If we set the threshold for passing the test at 30 questions, is it the test well designed? Extra Points (5 pts): What is the lowest possible threshold so that the test is well designed? Solution: The probability of guessing correctly a question is p = 15. The distribution involved in this problem is Bin(100, 15 ). And we approximate this distribution by the normal

Bin(100,

) ≡ N (20, 16)

(and thus the standard deviation is σ =

V ar =

16 = 4). The probability of randomly guessing 30 questions is

P (N (0, 1) ≥

) = P (N (0, 1) ≥ 2 .5) ∼= 0. 006

Thus the test is well designed. For the extra points, I need n such that

P (N (0, 1) ≥

n − 20 4

Inspecting the table, I get n ∼= 20 + 4 · 1 .64 = 26.54. Thus, for the test to be well designed, I need at least 27 questions.

  1. Suppose the joint probability density function of X and Y is

f (x, y) =

{ cx−^2 if 0 < y < x^2 and | x |< 1 0 otherwise

i) Determine c. Find P (X ∈ (− 0. 5 , 0 .5), Y ∈ (0, 0 .5)). ii) Determine the marginal densities of X and Y. iii) Find P (Y > 0. 1 | X = 0.4) and P

( Y > 14 | X > (^34)

) .

Solution: To find c, you solve

∫ ∫ f (x, y) dx dy = c

∫ (^1)

− 1

∫ (^) x 2

0

x^2

dy dx = c

∫ (^1)

− 1

dx = 2c

Thus, c = 12.

P (X ∈ (− 0. 5 , 0 .5), Y ∈ (0, 0 .5)) =

∫ (^0). 5

− 0. 5

∫ (^) x 2

0

x^2

dy dx =...

(note that |x| < 0 .5 gives x^2 < 0 .25. Thus the upper limit of integration for y is x^2 , not 0.5)

fX (x) =

∫ (^) x 2

0

x^2

dy =

(i.e. X is uniform on [− 1 , 1])

fY (y) =

(∫ 1 √y

x^2

dx +

∫ (^) −√y

− 1

x^2

dx

)

∫ (^1) √y

x^2

dx =

y

Finally, one should note that the 2 conditional probabilities from iii are computed differently. For P

( Y > 14 | X > (^34)

) we apply the standard method (i.e. the definition of the conditional probability):

P

( Y >

| X >

)

P

( Y > 14 , X > (^34)

)

P

( X > (^34)

)

and then compute the denominator and numerator by integration. The same method would not work for P (Y > 0. 1 | X = 0.4) (you get 00 which is undetermined). Thus, to compute P (Y > 0. 1 | X = 0.4) you use

P (Y > 0. 1 | X = 0.4) =

∫ (^) (0.4) 2

  1. 1

fY |X (y | 0 .4) dy,

where fY |X (y | x) =

f (x, y) f (x)

= x−^2 if 0 < y < x^2 and 0 else

  1. Let X be the number of 1’s and 2’s and Y be the number of 3’s that occur in n rolls of a fair die. Compute Cov(X, Y ). [Example: the sequence of 10 rolls 1,5,4,3,2,2,4,4,3,2 gives X = 4 and Y = 2] Solution: Clearly X and Y are both Bin(n, 16 ). Thus,

E[X] = E[Y ] =

n 6

We have Cov(X, Y ) = E[X · Y ] − E[X] · E[Y ] = E[X · Y ] −

n^2 6

Next, to compute E[X · Y ], we use the indicator variable method. Let

X =

∑^ n

i=

Xi and Y =

∑^ n

j=

Yj ,

where Xi = 1 iff we get a 6 for the ith roll and similarly for Y.

E[X · Y ] = E[

∑ Xi ·

∑ Yj ] =

∑

i,j

E[Xi · Yj ]

Since Xi · Yj is a again an indicator variable, we have

E[Xi · Yj ] = P (Xi · Yj ) =

{ (^1) 36 if^ i^6 =^ j 0 if i = j

Thus

E[X · Y ] =

∑

i 6 =j

E[Xi · Yj ] +

∑

i=j

E[Xi · Yj ] = (n^2 − n) ·

  • n · 0 =

n^2 − n 36

We conclude Cov(X, Y ) =

n^2 − n 36

n^2 36

n 36

  1. A prisoner is trapped in a cell containing 3 doors. The first door leads to a tunnel that returns him to his cell after 2 days of travel. The second leads to a tunnel that returns him to his cell after 4 days of travel. The third door leads to freedom after 1 day of travel. If it is assumed that the prisoner will always select doors 1, 2, 3 with respective probabilities .5, .3, and .2, what is the expected number of days until the prisoner reaches freedom? Solution: Let X be the number of days spent in prison and Y be the first door chosen. We use E[X] = E[E[X | Y ]]

Note that

E[X | Y = 1] = E[X] + 2 E[X | Y = 2] = E[X] + 4 E[X | Y = 3] = 1

We get

E[X] = E[E[X | Y ]] = 0. 5 · E[X | Y = 1] + 0. 3 · E[X | Y = 2] + 0. 2 · E[X | Y = 3] = 0. 5 · (E[X] + 2) + 0. 3 · (E[X] + 4) + 0. 2 · 1 = 0. 8 · E[X] + 2. 4

Thus, E[X] = 5 · 2 .4 = 12.

  1. A. Assume that X and Y are continuos random variables. Prove the formula:

E[X] = E [E[X | Y ]]

Hint. Start from the joint distribution f (x, y) and write the formulas for the various expressions involved. (There is partial credit for this problem) Solution: fX|Y (x | y) =

f (x, y) fY (y) Then

E[X | Y ] =

∫ xfX|Y (x | y) dx =

fY (y)

∫ xf (x, y) dx (it is a function of y)

and

E[E[X | Y ]] =

∫ E[X | Y ] · fY (y) dy =

fY (y)

∫ xf (x, y) dx

) · fY (y) dy

∫ ∫ xf (x, y) dx dy

=

∫ ∫ xf (x, y) dy dx =

∫ x

∫ f (x, y) dy dx

=

∫ xfX (x) dx

= E[X]

B. The number of people buying from a certain shop has a Poisson distribution with mean λ = 50. The amount spent per person is normally distributed with mean μ = 20 and standard deviation σ = 10. Compute the expected revenue in one day and the variance. Solution: Let X be the revenue in one day and N be the number of people in the store. Again we use E[X] = E[E[X | N ]] What is the distribution of X | N? This means I know that N people are shopping and each spends N (20, 102 ). Thus, I have a sum of N normals, which is again a normal distribution with parameters E = N · 20 and Var = N · 102 , i.e.

X | N = N (N · 20 , N · 102 )

Thus E[X] = E[N (N · 20 , N · 102 )] = E[20N ] = 20E[N ] = 20 · 50 (since N = Poisson(50)). Similarly for variance:

Var[X] = Var[E[X | N ]] + E[Var[X | N ]] = Var[20N ] + E[100N ] = 400Var[N ] + 100E[N ] = 400 · 50 + 100 · 50

(again using N = Poisson(50) and the mean and variance of Poisson).