Please, kind Statistics Experts, who would like to help me with this question? I
ID: 3203971 • Letter: P
Question
Please, kind Statistics Experts, who would like to help me with this question? It has to use the software Stata!
Thank you!
An ordinary six-sided die has been damaged. It no longer turns up
with 1 to 6 dots with equal probability of 1/6. A large number of rolls
of this die con rms that one dot and four dots appear with probability
1/5; two, three and six dots with probability 1/10; and ve dots appear
with probability 3/10. Let S denote the sum of the dots that show up
when the die is rolled twice.
(a) Write down the probability density (mass) function (pdf) of the
random variable S and its cumulative density function (cdf).
(b) Find the population mean and variance of the random variable S.
Explanation / Answer
Solution
Let X = number of dots on the face showing up. Then, from the given data, pmf of X is as follows:
x
1
2
3
4
5
6
pmf = P(X = x)
1/5
1/10
1/10
1/5
3/10
1/10
Now, let X1 and X2 be number of dots on the face showing up in Die 1 and Die 2 respectively. Then, pmf of X1 and pmf of X2 are identical to what is given above and S = X1 + X2. S assumes values 2, 3, 4, ……, 12.
P(S = 2) = P(X = 1 and X2 = 2)
= P(X1 = 1).P(X2 = 1) [Because X1 and X2 are independent.]
= (1/5)x(1/5) = 1/25.
P(S = 3) = P(X1 = 1 and X2 = 2 or vice versa)
= {P(X1 = 1).P(X2 = 2)} + {P(X1 = 2).P(X2 = 1)}
= {(1/5)(1/10) } + {(1/10)(1/5)}
= 2/50
P(S = 4) = P(X1 = 1 and X2 = 3 or X1 = 2 and X2 = 2 or X1 = 3 and X2 = 1)
= {(1/5)(1/10)} + {(1/10)(1/10)} + {(1/10)(1/5)} = 5/100
P(S = 5) = P(X1 = 1 and X2 = 4 or X1 = 2 and X2 = 3 or vice versa)
=2[ {(1/5)(1/5)} + {(1/10)(1/10)}] = 10/100
P(S = 6)
= P(X1 = 1 and X2 = 5 or X1 = 2 and X2 = 4 or X1 = 3 and X2 = 3 or X1 = 4 and X2 = 2 or X1 = 5 and X2 = 1)
=2[ {(1/5)(3/10)} + {(1/10)(1/5)}] + {(1/10)(1/10)} = 17/100
P(S = 7) =
P(X1 = 1 and X2 = 6 or X1 = 2 and X2 = 5 or X1 = 3 and X2 = 4 or X1 = 4 and X2 = 3 or X1 = 5 and X2 = 2 or X1 = 6 and X2 = 1)
=2[ {(1/5)(1/10)} + {(1/10)(3/10)} + {(1/10)(1/5)}] = 14/100
P(S = 8)
= P(X1 = 2 and X2 = 6 or X1 = 3 and X2 = 5 or X1 = 4 and X2 = 4 or X1 = 5 and X2 = 3 or X1 = 6 and X2 = 2)
=2[ {(1/10)(1/10)} + {(1/10)(3/10)}] + {(1/5)(1/5)}] = 12/100
P(S = 9) = P(X1 = 3 and X2 = 6 or X1 = 4 and X2 = 5 or vice-versa)
=2[ {(1/10)(1/10)} + {(1/5)(3/10)}] = 14/100
P(S = 10) = P(X1 = 4 and X2 = 6 or X1 = 5 and X2 = 5 or X1 = 6 and X2 = 4)
=2[ {(1/5)(1/10)}] + {(3/10)(3/10)} = 13/100
P(S = 11) = P(X1 = 5 and X2 = 6 or vice-versa)
=2{(3/10)(1/10)} = 6/100
P(S = 12) = P(X1 = 6 and X2 = 6) = (1/10)(1/10) = 1/100
From the above, pmf and cdf of S are:
s
2
3
4
5
6
7
8
9
10
11
12
p(s)
0.04
0.04
0.05
0.10
0.17
0.14
0.12
0.14
0.13
0.06
0.01
cdf = P(S s)
0.04
0.08
0.13
0.23
0.40
0.54
0.66
0.80
0.93
0.99
1.00
NOTE: SUM OF p(s) must be 1
Mean of S = E(S) = Sum{s.p(s)} = 7.2
Variance of S = V(S) = E(S2) – {E(S)}2
E(S2) = Sum{s2.p(s)} = 58.99
So, V(S) = 7.05
x
1
2
3
4
5
6
pmf = P(X = x)
1/5
1/10
1/10
1/5
3/10
1/10