practice-exam
practice-exam
with
∂2L ∂2L ∂2L
A= , B= , C= .
∂X 2 X0 ,Y0 ∂Y 2 X0 ,Y0 ∂X∂Y X0 ,Y0
(X0 , Y0 ) is the most probable value for the joined posterior of parameters X and Y ,
and L is the logarithmic joined posterior probability function. In general, the iso-
contours of Q at k (k = Q(X, Y )) trace an ellipse. Specify the following properties of
this ellipse: the ellipse’s centre; the magnitude of the axes and the orientation of the
ellipse. How do these properties relate to the parameters’ uncertainties and (lack of)
correlation?
(a) (15 points) Given a data set {xi : 0 ≤ i < N } of N values, where each value xi
is independent and drawn from a normal (Gaussian) distribution. The values have
different (known) standard deviations, given by σi . Use Bayes’ theorem (derived in
question 1(a)) to prove that the most probable value µ0 for the mean of the set is the
weighted average of the data. Assume a flat prior for the mean µ.
1
(b) (12 points) Assume a coin with unknown bias H ∈ [0 . . . 1] is thrown N times
(H = 0.5 for a fair coin, H = 1 for a coin that always throws heads). The number of
times heads comes up is R. Start from Bayes’ theory (derived in question 1(a)) and
2
derive the best estimate of the bias, H0 , and its variance σH , given R and N .
3. True/false questions – mark T for a true statement or F for a false statement on your
exam paper: 1 point/question
(a) The Cauchy distribution is a specific instance of the more generic Student-T distri-
bution.
(b) Given two values that are from the same uniform distribution with zero mean, the
sum of the squared values is chi-squared distributed.
(c) A χ2 test can be used to compare two binned distributions.
(d) Compared to the linear correlation coefficient, Spearman’s rank-order correlation co-
efficient is more robust against outliers.
(e) The theory of “Ockham’s razor” states that, in some situations, when independent
random variables are added, their sum tends toward a normal distribution.
(f) The Cauchy distribution has an undefined mean. (Was: “A set of samples that follow
a Cauchy distribution has an undefined mean.”)
(g) For a uniform distribution, the cumulative distribution function and the probability
distribution function are the same.
(h) The mean of the Poisson distribution is equal to its variance.
(i) Obtaining prob(A | I) from prob(A, B | I) requires marginalization over parameter
A.
(j) After calculating the posterior for a parameter for some set of data, the accuracy of
the estimate can be increased by using the posterior as prior.