Sat Comp0142
Sat Comp0142
1
1. Consider the following vectors and matrices:
0 1
3 2 3 −4 −1 −4 5 3 1
v= w= A= B= C = −3 4 D=
4 1 −2 −1 −2 2 3 6 2
2 2
State whether these expressions make sense and evaluate them if they do:
(b) v · w
(c) A−1
(d) AT
(e) BC
(f) CB
(g) AC
(h) A + B
(i) D + A
(j) detA
(k) vT Aw
(l) D−1
Page 2
2. Consider the following function:
2x + ln y
f (x, y) =
2x2 − 3y + 1
∂f
(a) What is ∂x ?
∂f
(b) What is ∂y ?
∂2f
(c) What is ∂x∂y ?
(1 − x) < e−x
Page 3
5. Consider the following probability density function (pdf):
(x − µ)2
1
p(x) = √ exp −
2πσ 2 2σ 2
Where µ ∈ R and σ ∈ R+ .
(c) Demonstrate that the stationary point of p(x) is equal to the mode.
6. Suppose that X is a discrete random variable, with outcomes 0 and 1, with a distribution
characterised such that Pr(X = 1) = θ.
(c) Assuming that a sequence of n samples are drawn iid from this distribution. State the
log-likelihood function for this sequence.
(d) Now assume that we observe one such sequence of outcomes: {1, 1, 0, 0, 1}. Use the
technique of maximum likelihood estimation to infer a value for θ.
Page 4