Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

MAT9004 Mathematical foundations for data science and AI Assignment 3

MAT9004 Assignment 3

Due: Friday, 24 May 2024, 23:55 PM

Please write up your solutions neatly! In particular, use notation and terminology correctly and include some
necessary comments. Partial marks will be given for showing that you know some aspects of the answer, even if your
solution is incomplete. The questions are NOT arranged in order of difficulty, so you should attempt every question.
Both handwritten and typed solutions are accepted. Please make sure you convert all your work into one single
pdf file as other types might not display properly on moodle.

1. [16 points] Consider the bivariate function

f (x, y) = x3 + 2y 3 + 2x2 − y 2 + 1.

(a) [2 points] Find ∇f (x, y).


(b) [2 points] Find the Hessian matrix H(x, y) for f .
(c) [4 points] Locate and classify all stationary points.
(d) [2 points] Now consider a domain D = {(x, y) ∈ R2 | x − y + 2 ≥ 0, x ≤ 0, y ≥ 0}. Sketch the domain
D.
(e) [6 points] Find the global maximum and global minimum of f on D.

2. [16 points] Four clients requested appointments at a service station in a given week. Each appointment is on
one of the five working days (some appointments may be arranged during the same day). Answer the following
questions.
(a) [1 point] How many ways can one assign each of the four appointments to a day of the week.
(b) [4 points] How many arrangements from (a) are such that no day has more than one appointment? More
than two appointments?
(c) [5 points] How many arrangements from (a) are such that there is an appointment on Monday? There are
appointments on both Monday and Tuesday?
(d) [3 points] How many arrangements from (a) have exactly three days taken for appointments?
(e) [1 point] Let (x1 , x2 , x3 , x4 , x5 ) denote the workload profile, where xi is the number of appointments on
day i. How many different workload profiles are there for four appointments?
(f) [2 points] How many workload profiles from (e) are such that no day has more than two appointments?

3. [7 points] A gambler has in his pocket a fair coin and a two-headed coin (both sides are head).
(a) [3 points] He selects one of the coins at random, and when he flips it, it shows heads. What is the probability
that it is the fair coin?
(b) [2 points] Suppose that he flips the same coin a second time and again it shows heads. What is the probability
that it is the fair coin?
(c) [2 points] Suppose that he flips the same coin a third time and it shows head. What is now the probability
that it is the fair coin?

Please go on to the next page. . . Page 1 of 2


MAT9004 Mathematical foundations for data science and AI Assignment 3

4. [7 points] Let the random variable X have distribution function

(|x| + 1)2
f (x) = , x = −1, 0, 1.
9
(a) [2 points] Compute E[X].
(b) [2 points] Compute var(X).
(c) [3 points] Compute E[3X 2 − 2X + 4] and var(−2X + 4)
5. [9 points] Let X be a random variable such that

P(X = 1) = p and P(X = −1) = 1 − p.

Let ξ be a random variable which is independent of X and with the same probability distribution, that is

P(ξ = 1) = p and P(ξ = −1) = 1 − p.

Define Y = ξX.
(a) [4 points] Determine the probability distribution of random variable Y .
(b) [3 points] Assume that p = 21 , are X and Y independent? Explain your answer.
(c) [2 points] Assume that p ̸= 12 , are X and Y independent? Explain your answer.

Total points: 55

End of exam Page 2 of 2

You might also like