Assignment4 2023 Q
Assignment4 2023 Q
• To complete this assignment, you need to write your solutions into the blank answer
spaces following each question in this assignment PDF.
If you have a printer (or can access one), then you must print out the assignment
template and handwrite your solutions into the answer spaces.
If you do not have a printer but you can figure out how to annotate a PDF using
an iPad/Android tablet/Graphics tablet or using Adobe Acrobat, then annotate your
answers directly onto the assignment PDF and save a copy for submission.
Failing both of these methods, you may handwrite your answers as normal on blank
paper and then scan for submission (but note that you will thereby miss valuable
practice for the exam process). In that case, however, your document should have
the same length as the assignment template otherwise Gradescope will reject your
submission. So you will need to add as many blank pages as necessary to reach that
criterion.
Scan your assignment to a PDF file using your mobile phone (we recommend Cam-
Scanner App), then upload by going to the Assignments menu on Canvas and submit
the PDF to the GradeScope tool by first selecting your PDF file and then clicking on
‘Upload PDF’.
• A poor presentation penalty of 10% will apply unless your submitted assignment
meets all of the following requirements:
– it is a single pdf with all pages in correct template order and the correct way up,
and with any blank pages with additional working added only at the end of the
template pages;
– has all pages clearly readable;
– has all pages cropped to the A4 borders of the original page and is imaged from
directly above to avoid excessive ’keystoning’
These requirements are easy to meet if you use a scanning app on your phone and take
some care with your submission - please review it before submitting to double check
you have satisfied all of the above requirements.
MAST20006/90057 Semester 1, 2023 Assignment 4 2
• There are 6 questions, of which 2 randomly chosen questions will be marked. Note
you are expected to submit answers to all questions, otherwise a mark penalty will
apply.
• Working and reasoning must be given to obtain full credit. Give clear and concise
explanations. Clarity, neatness, and style count.
⇤⇤⇤
2
MAST20006/90057 Semester 1, 2023 Assignment 4 1
1. In a certain city, the daily consumption of petroleum in thousand barrels of oil can be
treated as a random variable having a gamma distribution with ↵ = 3 and ✓ = 4.
If the petroleum supply of this city has a daily capacity of 24 thousand barrels of oil,
what is the probability that this petroleum supply will be inadequate on any given
day?
Find this probability using the relation between gamma and Poisson distributions.
-nee
thousand barrels
let 32:
dailyconsumption in
32 -gamma (0 3,0
4) =
=
y -
foi()
f (suggly inadequate) f(x
= > 24)
f(xxx) f(y)3 1)
=
-
-
n0
=
etet
-
-
6
6 +18e6
e
+
6
-
= 25e
1
MAST20006/90057 Semester 1, 2023 Assignment 4 2
=x I
5
=
2. Cars arrive at a toll booth according to a Poisson process at a mean rate of 15 cars
E
every 30 minutes.
Find the probability that the toll collector will have to wait longer than 28.41 minutes
-
before collecting the 10th toll.
-
Use two approaches to answer the question, namely (i) the relationship between gamma
and Chi-square distributions, and (ii) the relationship between Poisson and gamma
distributions. You can use R to obtain the final numerical answers.
E)
=
x 5
=
0
=
=
=2minnes
-
Cn Gamma (0 2, =
0:
10)
x-xcr 20) =
x:y(28.4) = 1 -
fchisq(28.4,20) 0.1000435
=
%0:f(x 28.41) ey a)
> =
y - 44) 23),
=
190is29,
=
lambda=)
=> 0.1000435
2
MAST20006/90057 Semester 1, 2023 Assignment 4 3
Let Y = X 2 be a transformation of X.
Sy [0,16)
= 0x7 < 16
3
MAST20006/90057 Semester 1, 2023 Assignment 4 4
Fy(y) fy-y) =
=f(x y)
f(
=
-
-
x I)
=
For 0f Y: 16
Fy(y) =
()
-
1 x2
=
y)
((x
=
1)dx
+
-
+
)* -
(58 2) ( )
=
+
- -
=
2
+
c0
S
O y
...(y) =
-520-y16
+
I elsewhere O
I t
I
4
I try to
MAST20006/90057 Semester 1, 2023 Assignment 4 5
fy(y) =
Fi,(y)
yc0
fy(x) Ficy)
=
fot
=
0 [Y < 16
0212 =
1, 0.4 = 1, y = x
y X
.IIII".
10
5
MAST20006/90057 Semester 1, 2023 Assignment 4 6
fixx =
"Say dy =
I
=
(4x2,y
=
(4
=
-
4y21
y for 0CY: /
2 2
(d) Compute µX , µY , X, Y , Cov(X, Y ), and ⇢.
(x4x3dx (45]! y
64 y (y)
-
nx (x)
=
=
= =
5
=
my-Fi-society-55]-
e
or (5]-():25
=
E(xY)
S.Sscydydxc f!) ssd
=
=
8!SK"(=) de
=
coui, y=*- x=
8]!=
=
6
=
e s
=
MAST20006/90057 Semester 1, 2023 Assignment 4 7
farly) ==intto-y=,s?"
=
f(xc41y z) =
(*d ()-
=
4x3(4 -
4y3y78xy
7
MAST20006/90057 Semester 1, 2023 Assignment 4 8
5. Let X and Y have the joint pmf defined by f (0, 0) = f (1, 2) = 0.1, f (0, 1) = f (1, 1) =
0.4 and f (x, y) = 0 elsewhere.
lol
(b) Give the marginal pmf’s of X and Y in the “margins” of the table in (a).
I ·40%/%)
R ⑧ 12
0 0.1
! 0 0.10 0.1
f.20.5 0.50 1
f(yxx 0) =
2
=
=
y 0 I 2
f(y1x 0) 5 =
0
=
&
8
MAST20006/90057 Semester 1, 2023 Assignment 4 9
f(x,z)
f(x)y 2) =
=
·fy(z)
⑧ I 2
X
f(x1y 4 =
⑧ I 0
9
MAST20006/90057 Semester 1, 2023 Assignment 4 10
x -V(0.2) (Y/X x) =
-
u(0,0.5x)
6. Let X have a uniform distribution on the interval (0, 2). Given X = x, let Y have a
(conditional) uniform distribution on the interval (0, 0.5x).
(a) Write down the conditional pdf of Y given that X = x. Be sure to include the
support of Y .
f(3(x) 5y-
=
0
0- 7-0.5x
f(x) 2t 0
=
=
= 2
ECY(x) 5 y I
=
=
=
x)
=
=1
=
ECP =
ECY) EY
=
I
=
10
MAST20006/90057 Semester 1, 2023 Assignment 4 11
o* I
=
-
0 _ y =
0.5x, 03 2=
y
↑
I ga,
y tx
=
or e
SSL
x y
=
gry): )
:
=>
x2
11