Midterm 1 Study Questions Solution
Midterm 1 Study Questions Solution
1.
(a)
P (A ∩ B) P (A ∩ B)
P (A|B) > P (A) ⇒ > P (A) ⇒ > P (B) ⇒ P (B|A) > P (B)
P (B) P (A)
(b)
i. P (E) = 0.4, P (E|F ) = P (E) ⇒ P (E|F ) = 0.4
ii.P (E ∩ F ) = 0 ⇒ P (E|F ) = 0
P (F )
iii.F ⊂ E ⇒ P (E ∩ F ) = P (F ) ⇒ P (E|F ) = P (F )
=1
P (E) 0.4
iv.E ⊂ F ⇒ P (E ∩ F ) = P (E) ⇒ P (E|F ) = P (F )
= P (F )
2.
20
(a) We need to find probabilities for x = 0, 1, 2, 3. The sample space consists of the 3
different ways that we can select 3 items out of the available items. For the events
of the interest to occur, we have to select x defected items out of the 4 defected
items, which can be done in x4 ways, and also select 3 − x non-defected out of the
16
16 items that are not defected, which can be done in 3−x ways. Therefore, we can
write probabilities of selecting x defected items as follows:
4 16
0 560
pX (0) = 20
3 =
1140
3
4 16
1 480
pX (1) = 20
2 =
1140
3
4 16
2 96
pX (2) = 20
1 =
1140
3
4 16
3 4
pX (3) = 20
0 =
3
1140
1
Then, the probability mass function is as follows:
560
1140
, x=0
480
1140
, x=1
pX (x) = 96
, x=2
1140
4
1140
, x=3
0,
o.w
2
Then,
3.
(a) We define C and A as
C: batch C is selected
L:one of the two components is defective
2
8
1 16
P (L|C) = 1 =
10
2
45
1
9 2
8
1 1 1
P (M ) = P (M |A)P (A) + P (M |B)P (B) + P (M |C)P (C) = 0 + × 0.3 +
10
1 × 0.2
10
2 2
3
C: batch C is selected
P (S|A)P (A)
P (A|S) = =
P (S|A)P (A) + P (S|B)P (B) + P (S|C)P (C)
(102)×0.5
(102)
(102)×0.5 ( )( )×0.3 (20)(82)×0.2
1 9
+ 0 210 +
(102) (2) (102)
(e) X:number of defective components,0,1,2
E(X) = 0 × P (X = 0) + 1 × P (X = 1) + 2 × P (X = 2)
= P (X = 1|A)P (A) + P (X = 1|B)P (B) + P (X = 1|C)P (C)+
2 × [P (X = 2)|A)P (A) + P (X = 2)|B)P (B) + P (X = 2)|C)P (C)] =
(1)(9)×0.3 (11)(81)×0.2 (2)(8)×0.2
= 1 110 + 10 + 2 × 2 010
(2) (2) (2)
10 26
E[X] = 1. + (1 + E[X])
36 36
36
E[X] =
10
= 3.6
Another alternative is that since the number of tosses required until the end of the
10 1 36
game is a geometric random variable with p = , then E[X] = = .
36 p 10
(b) We are asked to find the probability of achieving a sum of 7 before achieving a sum
4
of 5. Let Y be achieving a sum of 7 before achieving a sum of 5, then:
+ P (Y |neither a sum of 7 nor 5 on first roll)P (neither a sum of 7 nor 5 on first roll)
(c)
(d)
=6
5
(a)
= P (X1 < X4 |X4 = 3).P (X2 < X4 |X4 = 3).P (X3 < X4 |X4 = 3)
2 3
=
6
6
X
P (max{X1 , X2 , X3 } < X4 ) = P (max{X1 , X2 , X3 } < X4 |X4 = j).P (X4 = j)
j=1
1 1 3 1 2 3 1 3 3 1 4 3 1 5 3 1
= 0. + . + . + . + . + .
6 6 6 6 6 6 6 6 6 6 6
225
=
1296
Note that each die being less than the forth one is independent of others being less
than the fourth one.
6.
(a) Let random variable X be the number of inspections required until the flaw is
detected.
The probability of a detection of the flaw at the second inspection can be represented
as P (X = 2). As the inspections are successive, a detection of the flaw at the second
inspection indicates a fail in the first attempt. Then, we need to find the probability of
6
detecting after one not being able to detect. Note that inspections are independent from
each other. So,
P (X = 2) = (1 − p)p
(b) Let D be the event of detecting a flaw in an inspection with probability P (D) = p
and Dc be not detecting it with P (Dc ) = 1 − p. Let random variable X be the number
of inspections required until the flaw is detected.
The detection at the nth inspection entails n − 1 unsuccessful trial. As the probability
of detecting is same for each trial and independent from previous ones, we can write
7
(e)
P (A|F )P (F )
P (F |A) =
P (A)
0.1(1 − 0.2)3
= = 0.054
0.1(1 − 0.2)3 + 0.9
7.
(a)
P (A) = 0.2, P (B) = 0.3, P (c) = P (A ∪ B), P (D) = ((A ∩ B c ) ∪ (B ∩ Ac ))
P (C) = P (A) + P (B) − P (A ∩ B) = 0.2 + 0.3 − 0.2 × 0.3 = 0.44
(b)
P (D) = ((A ∩ B c ) ∪ (B ∩ Ac )) = P (A) − P (A ∩ B) + P (B) − P (A ∩ B) = P (A) +
P (B) − 2P (A) = 0.2 + 0.3 − 2 × 0.3 × 0.2 = 0.38
(c)
P (A∩D) P (A∩B c ) P (A)−P (A∩B) 0.14 14
P (A|D) = P (D)
= P (D)
= P (D)
= 0.38
= 38
P (D∩A) 0.14 14
P (D|A) = P (A)
= 0.2
= 20
(d)
P (D|A) 6= P (D) , so D and A are dependent
8.
(a) Number of ways to choose 3 girls out of 12 and 2 boys out of 10.
12 10
3 2
(b) Sample space Ω: choosing 5 people from the whole class so |Ω| = 22
5
12 10
|A| 3 2
P (A) = = 22
|Ω| 5
8
9.
P
(a) To have a proper pmf, x∈{1,4,9} pX (x) = 1 should be satisfied:
pX (1) + pX (4) + pX (9) = 1
√ √
a+a 4+a 9=1
6a = 1
1
a= 6
(b)
P (X = 4 and X < 9)
P (X = 4|X < 9) =
P (X < 9)
P (X = 4)
P (X = 4|X < 9) =
P (X < 9) √ 1 1
P (X < 9) = P (X = 1) + P (X = 4) = a + a 4 = 3a = 3 · 6
= 2
1 1
P (X = 4) = 2a = 2 · 6
= 3
Then,
P (X = 4) 1/3 2
P (X = 4|X < 9) = = =
P (X < 9) 1/2 3
(c)
P
E(X) = x∈{1,4,9} xpX (x)
E(X) = 1 · pX (1) + 4 · pX (4) + 9 · pX (9)
√ √
E(X) = 1 · a + 4 · a 4 + 9 · a 9
E(X) = a + 4 · 2a + 9 · 3a
1
E(X) = 36a = 36 · 6
E(X) = 6
(d)
P √
E(X) = xpX (x)
x∈{1,4,9}
√ √
E(X) = 1 · pX (1) + 4 · pX (4) + 9 · pX (9)
√ √
E(X) = 1 · a + 2 · a 4 + 3 · a 9
E(X) = a + 2 · 2a + 3 · 3a
1
E(X) = 14a = 14 · 6
7
E(X) = 3
10.
(a) Let X be the random variable representing the demand for the bicycle. We need
9
to calculate P (X ≥ 1):
P (X ≥ 1) = 1 − P (X = 0)
Since X has Poisson distribution with parameter λ = 1,
e−λ λx e−1 1x
P (X = x) = = for x = 0, 1, 2.... Hence,
x! x!
e−λ λ0
P (X ≥ 1) = 1 − P (X = 0) = 1 −
0!
−λ
P (X ≥ 1) = 1 − e
P (X ≥ 1) = 1 − e−1 = 0.6321.
(b) Let R be the random variable that represents the revenue. When the demand is
0,you are not able to sell your bike, which means that R = 0. When the demand is
above 1, you are able to sell your bike and the revenue is R = 100 TL. Therefore,
expected revenue is:
P∞ P∞
E(R) = 0 · P (X = 0) + x=1 100 · P (X = x) = 100 x=1 P (X = x)
E(R) = 100(1 − P (X = 0))
E(R) = 100(1 − e−λ )
E(R) = 100(1 − e−1 ) = 63.21 TL
(c) Since the expected revenue is 63.21 TL, which is greater than 50 TL, we should
not sell it at 50 TL.
11.
(a) X has a geometric distribution with the parameter p = 0.6:
P (X = x) = xk=1 (1 − p)k−1 p for x = 1, 2, ...
P
10
We know that E[X 2 ] = V [X] + E 2 [X]. V (X) = (1 − p)/p2 and E[X] = 1/p for
the geometric random variable. Thus,
E[X 2 ] = V [X] + E 2 [X] = (1 − 0.6)/0.62 + (1/0.6)2 = 10/9 + 25/9 = 35/9.
E[C(X)] = E[X 2 /3 + 1] = E[X 2 ]/3 + 1 = (35/9)(1/3) + 1 = 35/27 + 1 = 62/27
12.
(a)
3 X 2
X c
=1
x=1 y=1
xy
c c c c c
c+ + + + + =1
2 2 4 3 6
11c/4 = 1
c = 4/11
P3
(d) E[Z] = z=1 zpZ (z) = (1)(4/11) + (2)(5/11) + (3)(2/11) = 20/11
P3
(e) E[Z 2 ] = z=1 z 2 pZ (z) = (1)(4/11) + (4)(5/11) + (9)(2/11) = 42/11
11
V (Z) = E[Z 2 ] − E 2 [Z] = 42/11 − (20/11)2 = 0.5124
13.
(a) E[X]= 2.a + 0.b + 0.05.(−1) + 0.15.3 + 0.25.(−2) = 2.a − 0.1 = 0.5 → a = 0.3
P
x pX (x) = a + b + 0.05 + 0.15 + 0.25 = 0.75 + b = 1 → b = 0.25
5
5
If we choose L1 and choose one of L2 or L3 , we have 2 · choices. This is
2 3
because there are two ways of choosing between L2 and L3 , 52 ways of choosing 2
lower level classes from [L4 , ..., L8 ] and 53 ways of choosing 3 higher level classes from
[H1 , ..., H5 ].
5 10
Finally, if we choose L1 , L2 , and L3 , we have 1 3
choices. The total is found by
adding the above four.
12