Professional Documents
Culture Documents
Distribution Theory I
STA1503
Semesters 1 & 2
Department of Statistics
university
Define tomorrow. of south africa
1 Trial Examination Paper
QUESTION 1 [Total 15 marks]
If A and B are independent events with P.A/ D 0:50; and P.B/ D 0:20, find
(a) Use Table 1, Appendix 3, to obtain P.2 < Y < 5/ and P.2 Y < 5/: Are the probabilities that
Y falls in the interval .2; 5/ and [2; 5/ equal? Why or why not? (5)
(b) Use Table 1, Appendix 3, to obtain P.2 < Y < 5/ and P.2 Y 5/: Are these two probabili-
ties equal? Why or why not? (5)
(c) If Y is continuous and a < b, then P.a < Y < b/ D P.a Y < b/. Does the result in part (a)
contradict this claim? Why? (5)
These are all questions on chapter 3: Discrete random variables and their probability distrib-
utions.
To verify the accuracy of their accounting entries, a company uses auditors for verification on a
regular basis. The companys employees make erroneous entries 5% of the time. Suppose that an
auditor randomly checks three entries.
(a) Find the probability distribution for Y , the number of errors detected by the auditor. (5)
(b) Find the probability that the auditor will detect more than one error. (5)
y 1 2 3 4
p.y/ 0:4 0:3 0:2 0:1
2
STA1503/103/3/2017
1
(b) E (5)
Y
(d) V .Y / (5)
c; 0 < x < 2
f X .x/ D
0 elsewhere:
2y; 0 y 1
f .y/ D
0; elsewhere:
Suppose that Y1; Y2 ; : : : Y5 denotes a random sample from a uniform distribution defined on the
interval .0; 1/. That is,
1; 0 y 1
f .y/ D
0; elsewhere
(a) Find the density function for the second-order statistics. (10)
(b) Give the joint density function for the second- and fourth - order statistics (10)
3
2 Trial Examination Solutions
QUESTION 1
(b) P. AN [ B/
N D P.A \ B/ D 1 P.A [ B/ (3)
(c)
P. AN \ B/
N D P.A [ B/ D 1 P.A [ B/
D 1 .P.A/ C P.B/ P.A [ B//
D 1 .0:5 C 0:2 0:1/ D 0:4
(4)
(d)
N P. AN \ B/
N N P.B/
P. A/
P. AjB/ D D
P.B/ P.B/
.1 P.A// P.B/
D
P.B/
0:5 0:2
D D 0:5
0:2
or directly,
N
P. AjB/ N D1
D P. A/ P.A/ D 0:5
In both solutions we use the fact that if A and B are independent, then of course Ac and B
must also be independent. (5)
[Total marks: 15]
QUESTION 2
P.Y a/
Therefore we must express the gives probabilities we wish to evaluate in terms of these types of
probabilities, keeping in mind that:
P.Y < a/ and P.Y a/ are not necessarily the same thing. Note that of cause P.a < Y b/ D
P.Y b/ P.Y b/, this therefore will also be easy to evaluate.
4
STA1503/103/3/2017
(a)
The values are not equal because Y D 2 is included in the second interval but in the first one;
the difference between the probabilities is:
(b)
The values are not the same and the reason is because the second probability includes the
values Y D 2 and Y D 5, while the first probability does not. The difference between the
probabilities is equal to P.Y D 2/ C P.Y D 5/. (5)
(c) No, there is no contradiction; the Binomial distribution is not a continuous distribution but
rather discrete and therefore P.a < Y < b/ D 0.a Y < b/ also not have to hold. (5)
[Total marks: 15]
QUESTION 3
(a) Assuming the three chosen entries are independent of each other, each with an error with
the probability 0:05, then Y , the number of errors detected by the auditor will have Binomial
distribution with parameters n D 3 and p D 0:05 (5)
(b)
5
or alternatively,
(5)
[Total marks: 10]
QUESTION 4
y 1 2 3 4
p .y/ 0:4 0:3 0:2 0:1
(a)
X
4
E.Y / D y P.y/ D 1 0:4 C 2 0:3 C 3 0:2 C 4 0:1
yD1
D 2:0
(5)
(b)
1 X
4
1 1 1 1 1
E D P.y/ D 0:4 C 0:3 C 0:2 C 0:1
Y yD1
y 1 2 3 4
77
D
120
(5)
(c)
!
X
4
E.Y 2 1/ D E.Y 2 / 1D y 2 p .y/ 1
yD1
(5)
(d)
V .Y / D E.Y 2 / .E.Y //2
6
STA1503/103/3/2017
where
E.Y / D 2; E.Y 2 / D 5
V .Y / D 5 .2/2 D 1
Alternatively,
V .Y / D E.Y E.Y /2 /
D E..Y 2/2 /
X4
D .y 2/2 P.y/
iD1
D .1 2/2 0:4 C .2 2/2 0:3 C .3 2/2 0:2 C .4 2/2 0:1
D 1
(5)
[Total marks: 20]
QUESTION 5
C; 0 < x < 2
f X .x/ D
0; elsewhere
(a) The value of c can be determined from the fact that we know that for f X to be a density
function, it must integrate to the value 1 when integrated over all possible x-values. Here, we
therefore get:
Z 1
1 D f X .x/d x
1
Z 2
D cd x D 2c
0
1
) C D
2
(5)
(b)
Z 1 Z 2 1
E.X / D x f X .x/d x D x dx
1 0 2
2
1 2 1 1 2
D x D 22 0 D1
4 0 4 4
7
Z 1 Z 2
2 2 1
E.X / D x f X .x/d x D x2 dx
1 0 2
2
1 3 1 1 8 4
D x D 23 3
D D
6 0 6 6 6 3
4 1
V ar .X / D E.X 2 / .E.X //2 D 12 D
3 3
Alternative, we can recognize the distribution as being the uniform distribution on the interval
0C2 .2 0/2 4 1
.0; 2/ for which E.X / D C 1 and V ar .X / D : (8)
2 12 12 3
(c)
E.4X C 5/ D 4E.X / C 5 D 4 1 C 5 D 9
1
V ar .6X C 2/ D 62 V ar .X / 36 D 12
3
(7)
[Total mark 20]
QUESTION 6
2y; 0 y 1
f Y .y/ D
0; elsewhere
(a) The cumulative distribution function is found by integrating the density function.
Z y
FY .y/ D f Y .a/da
1
Since the density function is defined piecewise, we will also find the distribution function
piecewise.
If y < 0; Z Z
y y
FY .y/ D f Y .a/da D 0da D 0
1 1
If 0 y 1,
Z y Z 0 Z y
FY .y/ D f Y .a/da D 0da C 2ada
1 1 0
y
D .a 2 / D y2
0
8
STA1503/103/3/2017
If y > 1
Z y Z 0 Z 1 Z y
FX .y/ D f Y .a/da D 0da C 2ada C 0da
1 1 0 1
2 1
D .a /j0 D1
That is: 8
< 0; y<0
FY .y/ D 2
y ; 0 y 1
:
1; y>1
(6)
(b) Let U D 4Y 1. The mapping u D h.y/ D uy 1 is increasing, so we can use the transfor-
mation method. The inverse mapping is:
1 1
y D .u C 1/ D h .u/
4
with derivative:
d 1 1
.h .u// D
du 4
Therefore the density function of U is:
d
fU .u/ D f Y .h 1 .u//j h 1 .u/j
8 du
< 1 1
2 .u C 1// ; 0 41 .u C 1/ 1
D 4 4
:
0: elsewhere
( 1
.u C 1/; 1 u 3
D 8
0: elsewhere
Since we already have the distribution function FY , there is no need to integrate f Y again. We
get:
8
> uC1
>
> 0; <0
>
> 4
<
uC1 uC1 2 uC1
FU .u/ D FY D ; 0 1
4 >
> 4 4
>
> uC1
>
: 1; > 1:
8 4
>
> 0; u< 1
< 2
uC1
D ; 1 u 3
>
> 4
:
1; u > 3:
9
Next, we differentiate this with respect to u to find the corresponding density function.
8
>
> 0; u< 1
d < 2
1 uC1
f u .u/ D Fy .u/ D ; 1 u 3
du >
: 4
> 4
0; u>3
( 1
.u C 1/ ; 1 u 3
D 8
0; elsewhere.
(8)
(c)
Z 1
E.Y / D y f Y .y/dy
1
Z 1
D y 2ydy
e
Z 1
D 2y 2 dy
0
2 3 1 2
D .y /j0 D
3 3
(6)
[Total marks: 20]
QUESTION 7
The density function of the second-order statistics, Y.2/; can be obtained directly from Theo-
rem 6.5 with n D 5; k D 2: Thus, with f .y/ and F.y/ as noted,
5! 2 1
g.2/ .y2 / D F..y2 / 1 f .y/5 2 f .y2 /
.2 1/!.5 2/!
(10)
10
STA1503/103/3/2017
(b) The joint density of the second- and fourth- order statistics is ready obtained from the second
result . With f .y/ and F.y/ as before, j D 2; k D 4; and n D 5
5! 2 1
g.2/.4/ .y2 y4 / D F.y2 / F.y4 / F.y2 /4 1 2
.2 1/!.4 1 2/.5 4/!
5 4
1 F.y4 / f .y2 / f .y4 /; 1 < y2 < y4 < 1
(10)
[Total marks: 20]
11