







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








PART II (Second Year)
MATHEMATICS & STATISTICS 2 hours
Math 235: Statistics
You should answer ALL Section A questions and THREE Section B questions. In Section A there are questions worth a total of 50 marks, but the maximum mark that you can gain there is 40. There are statistics tables and a formulae sheet at the end of this exam paper.
SECTION A
A1. (a) Define the following terms. (i) Estimator. [2] (ii) Estimate. [2] (iii) p-value. [2] (b) Henri Poincar´e was a 19th century French mathematician. Poincar´e was suspicious that his local baker was selling loaves of bread of weight below the quoted average of 1000g. He decided to carry out a hypothesis test to determine whether there was evidence for his suspicions. For 30 days, he bought a loaf of bread each day, and recorded a sample mean of ¯x = 953g. Assuming that the standard deviation of the bread weights is σ = 60g: (i) Formulate appropriate alternative and null hypotheses. [1] (ii) Carry out the hypothesis test, using p = 0.05 as the critical p-value. Remember to state your conclusions clearly. [5] (iii) Discuss any assumptions made in the test carried out in (ii); are they reasonable? [2]
please turn over
SECTION A continued
A2. The boxplots below summarise the expense claims made by a random sample of nC = 20 MPs in the Conservative party (top) and nL = 20 MPs in the Labour party (bottom) in the 2009-2010 session, in thousands of pounds.
(a) Interpret the boxplots: estimate the summary statistics they provide, and compare the expense claims made by the two parties. [3] (b) Let μC denote the population mean expense claim made by Conservative party MPs, and μL denote the population mean expense claim made by Labour party MPs. It is desired to determine whether there is evidence for a systematic difference in the mean expense claims made by the two parties. The sample mean and sample standard deviation for the Conservative MPs sampled are ¯xC = 131.5, sC = 21.4. The sample mean and sample standard deviation for the Labour MPs sampled are ¯xL = 145.0, sL = 14.2. (i) Formulate appropriate null and alternative hypotheses. [1] (ii) Show that the pooled sample variance is s^2 P = 329.8. [2] (iii) Carry out a t-test to test the hypotheses forumated in (i), using the variance cal- culated in (ii). Use p = 0.05 as the critical p-value. State your conclusions clearly. [5] (iv) Discuss any assumptions made in the test carried out in (iii); are they reasonable? [2]
please turn over
SECTION A continued
A3. (b) Give interpretations of (i) The intercept estimate βˆ 1 ; [2] (ii) The ‘hours’ coefficient estimate βˆ 2. [2] (c) What can you conclude about the relationship between amount of revision and exam score? [2] (d) Suggest how the teacher could check whether the model she has fitted is appropriate. [2]
A4. Three randomly selected members from a flat of 6 students are asked whether they have Twitter accounts. One of the three does. Let m be the total number of students in the flat who have Twitter accounts. (a) Write down the possible values of m. [1] (b) Determine the likelihood function of m. [3] (c) Sketch the likelihood function of m for a sensible set of values. [3] (d) Determine the maximum likelihood estimate for m. [1] (e) Suppose instead that we wished to estimate the proportion θ, of all students with a Twitter account. From the data above, an estimate θˆ = 1/3 is proposed, since this is the sample proportion of the three students asked who have an account. Criticize this estimate. Suggest how a better estimate may be obtained. [4]
please turn over
B1. Consider the linear regression model
Y = Xβ +
where Y and are n × 1 vectors, X is an n × p matrix and β is a p × 1 vector. Assume that i ∼ N (0, σ^2 ), i = 1,... , n, with 1 ,... , n independent.
(a) Write down the distribution of Y. [2]
Denote by βˆ the least squares estimator for the vector of regression coefficients β. (b) (i) Give a formula for the least squares estimator βˆ. [2] (ii) Show that the least squares estimator βˆ is unbiased. [3] (iii) Explain what is meant by the sampling distribution of an estimator. [2] (iv) Show that the sampling distribution of βˆ is
βˆ ∼ N (β, σ^2 (X′X)−^1 ),
where σ^2 is the residual variance. [4] A meteorologist in Antarctica is interested in seeing whether the mean January temperature (Y ) in increasing over time. He has data available for 28 years, starting in 1965. He fits the following model,
E[Yi] = β 1 + β 2 (ti − 1964)
where ti is the year in which measurement i was taken. Temperature is measured in ◦C. (c) Write down the design matrix for this model. [2] (d) Given that the estimated parameters are βˆ = (− 56. 1 , 0 .624) and that the estimated residual variance is ˆσ^2 = 8.32, test at the 5% level whether there is evidence that mean January temperatures are increasing over time. You should formally state your hypotheses and discuss your conclusion. [5]
please turn over
SECTION B continued
B2. (b) For model (3) only. (i) Write down the design matrix X and observed response vector y for this model. [2] (ii) Calculate the least squares estimates for the parameter vector β = (β 1 , β 2 )′. [3] (iii) Using your answer to part (ii), give the vector of estimated residuals ˆ and hence an estimate of the fitted residual variance σ^2. [3] (c) The fitted residual sum of squares for model 4 is 499.04. Using this, and your answer to part (b) (iii), perform an F -test to compare the two models. Why is an F -test appropriate? Which model do you prefer? You should formally state your hypotheses and test at the 5% level. [5]
please turn over
SECTION B continued
B3. (a) Consider the likelihood function L(θ) and the log-likelihood function l(θ), for a contin- uous parameter θ. (i) Define the score function, S(θ), and explain how it is used to find a potential max- imum likelihood estimator (MLE) θˆ. [2] (ii) Define the observed information function evaluated at θˆ, IO(θˆ), and explain why IO(θˆ) > 0 if θˆ is the MLE. [2] (b) A gene in fruit flies has two variants, labelled a and A. Genes occur in pairs so possible combinations are AA, Aa and aa. If p is the proportion of variant A in the population, these combinations occur with frequencies combination AA Aa aa probability p^2 2 p(1 − p) (1 − p)^2 An experiment is carried out to estimate p. N fruit flies are observed and we see combination AA Aa aa frequency n 1 n 2 n 3 where N = n 1 + n 2 + n 3. (i) Compute the likelihood and log-likelihood for p. Calculate ˆp, the MLE for p. [6] (ii) Show that IO(ˆp) = 4N 2
2 n 1 + n 2 +^
n 2 + 2n 3
For a particular experiment, 30 flies are observed, giving n 1 = 9, n 2 = 15 and n 3 = 6. (iii) Write down the asymptotic distribution of the maximum likelihood estimator, Pˆ. [2] (iv) Calculate a 95% confidence interval for ptrue based on (iii). [4] Now suppose that A is dominant, so it is not possible to distinguish between AA and Aa. In other words, we observe combination AA OR Aa aa frequency n 1 + n 2 n 3 (v) Without carrying out any calculations, write down how the observed information at the MLE calculated under these circumstances would compare with the observed information at the MLE computed for (i). [2]
please turn over
SECTION B continued
B4. (f) A clinical trial is to be carried out, which requires the recruitment of 18 stroke patients. An estimate of the length of time to recruit is required. (i) State the invariance to re-parametrisation property of maximum likelihood estima- tors. [2] (ii) Calculate the maximum likelihood estimate for τ , the expected time required to recruit sufficient patients into the study, assuming all patients are eligible. [2] (iii) Now suppose that, with probability = 0.15, patients are ineligible to enter the trial. Calculate the revised maximum likelihood estimate for τ. HINT: The negative [5] binomial distribution counts the number of failures, s, until r successes are achieved. With failure probability , its pmf is given by
P[S = s] =
(r + s − 1 s
(1 − )rs.
end of exam
Standard Distributions
Here we list the basic properties of three standard distributions. Throughout X denotes either a continuous random variable with probability density function fX (x) or a discrete random variable with probability mass function pX (x).
Poisson distribution: if X ∼ Pois(θ), θ > 0, the probability mass function is
p(x|θ) = exp(−θ)^ θ
x x! for^ x^ = 0,^1 ,^2 ,...
Summary measures are: E(X) = θ and var (X) = θ.
Exponential Distribution: if X ∼ Exponential(β), with β > 0,
fX (x|β) =
β exp(−βx) x ≥ 0 , 0 otherwise,
Summary measures are: E(X) = β^1 and var (X) = (^) β^12.
Normal Distribution: if X ∼ N (μ, σ^2 ), with σ > 0, then
fX (x|μ, σ^2 ) = √^1 2 πσ^2
exp
− (x^ −^ μ)
2 2 σ^2
for − ∞ < x < ∞,
Summary measures are: E(X) = μ and var (X) = σ^2.
The F distribution Values of f for which P (F > f ) = 0.05 (upper values) and P (F > f ) = 0.01 (lower values) where F has an F -distribution with r and s degrees of freedom. r
- 0.20 0.10 0.05 0.01 0. p - 1 3.078 6.314 12.706 63.657 636. - 2 1.886 2.920 4.303 9.925 31. - 3 1.638 2.353 3.182 5.841 12. - 4 1.533 2.132 2.776 4.604 8. - 5 1.476 2.015 2.571 4.032 6. - 6 1.440 1.943 2.447 3.707 5. - 7 1.415 1.895 2.365 3.499 5. - 8 1.397 1.860 2.306 3.355 5. - 9 1.383 1.833 2.262 3.250 4. - 10 1.372 1.812 2.228 3.169 4. - 11 1.363 1.796 2.201 3.106 4. - 12 1.356 1.782 2.179 3.055 4. - 13 1.350 1.771 2.160 3.012 4. - 14 1.345 1.761 2.145 2.977 4. - 15 1.341 1.753 2.131 2.947 4. - 16 1.337 1.746 2.120 2.921 4.