Docsity

Variance - Statistical Science - Exam, Exams of Statistics

Partial preview of the text

Download Variance - Statistical Science - Exam and more Exams Statistics in PDF only on Docsity!

M. PHIL. IN STATISTICAL SCIENCE

Tuesday 6 June 2006 1.30 to 4.

APPLIED STATISTICS

Attempt FOUR questions.

There are FIVE questions in total.

The questions carry equal weight.

STATIONERY REQUIREMENTS SPECIAL REQUIREMENTS

Cover sheet None

Treasury Tag

Script paper

You may not start to read the questions

printed on the subsequent pages until

instructed to do so by the Invigilator.

1 Suppose Y = Xβ +  where YT^ = (Y 1 ,... , Yn), βT^ = (β 1 ,... , βp), X is known

n × p matrix with rank p (< n), and T^ = ( 1 ,... , n), where  1 ,... , n are independent

normal random variables with mean 0 and variance σ^2. Obtain the least squares estimator

βˆ of β, and derive the distribution of βˆ.

Let ˆ = Y − Yˆ be the vector of residuals, where the vector of fitted values is

Yˆ = HY for a matrix H that you should identify. Show that the residuals are uncorrelated

with Yˆ, and uncorrelated with βˆ.

[You may assume that for a n × 1 random vector Y and n × n matrices A and B,

cov(AY, BY) = A cov (Y)BT^ ].

For i = 1,... , n, let Yi be the yield in litres of a chemical experiment and suppose

Yi = α + βxi + γx^2 i + i ,

where xi = (ti − 100)/10 and ti is the temperature in degrees celsius used in the ith

experiment. Suppose n = 30 and that x 1 =... = x 10 = −1, x 11 =... = x 20 = 0,

x 21 =... = x 30 = 1. Obtain the covariance matrix of the least squares estimator

(ˆα, β,ˆ ˆγ)T^ , and find an expression for the variance of ˆα + βxˆ + ˆγx^2. Find the values

of x in [− 1 , 1] for which this variance is (i) maximised and (ii) minimised.

Given that the residual sum of squares is 2.43, derive a 95% confidence interval for

the expected yield when the temperature is 100oC.

[You may assume that for b 6 = 0, a 6 = b

a 0 b 0 b 0 b 0 b

− 1

=

b(a − b)

b 0 −b 0 a − b 0 −b 0 a

 . ]

Applied Statistics

Thickness 1.4625 0.7140 2.0483 0. Temperature 13.2000 0.7140 18.4871 0. Thickness:Temperature 11.0625 1.0098 10.9555 0.

Residual standard error: 1.428 on 28 degrees of freedom Multiple R-Squared: 0. F-statistic: 562.8 on 3 and 28 degrees of freedom, the p-value is 0

Applied Statistics

3 The random variable Y has a Poisson distribution with mean μ. Show that

P(Y = y) can be written in the form

exp

yθ − b(θ) φ

  • c(y, φ)

and identify θ, b(θ) and φ. Verify that b′(θ) = E(Y ) and φb′′(θ) = var (Y ). Explain what

is meant by a generalised linear model for the distribution of Y. What is the canonical

link function for the Poisson distribution?

Car insurance claims in a particular year are classified according to the class and

merit rating of the policyholder. The four merit ratings are

3 no claims for 3 or more years 2 no claims for 2 years 1 no claims for 1 year

0 other.

There are five classes

1 non-business, no male driver under 25

2 non-business, secondary (but not principal) driver is male, under 25 3 business 4 non-business, principal driver is male, under 25 and unmarried

5 non-business, principal driver is male, under 25 and married

Let Yij and nij be the number of claims and the number of car years insured in class i

with merit rating j, for i = 1,... , 5, j = 0, 1 , 2 , 3. Consider the rate λij of claims per car

year insured in class i with merit rating j.

Write down the algebraic form, together with the assumptions, of the model

carins.glm in the (slightly edited) S-Plus output below where claims and insured are

the number of claims and the claim years insured respectively. Derive equations satisfied

by the maximum likelihood estimates of the parameters in the model. Interpret carefully

the rest of the S-Plus output.

car <- read.table("carinsurance",header=T) car merit class insured claims 1 3 1 2757520 217151 2 3 2 130535 14506 3 3 3 247424 31964 4 3 4 156871 22884 5 3 5 64130 6560 6 2 1 130706 13792 7 2 2 7233 1001 8 2 3 15868 2695 9 2 4 17707 3054 10 2 5 4039 487 11 1 1 163544 19346 12 1 2 9726 1430 13 1 3 20369 3546

Applied Statistics [TURN OVER

4 Let Y 1 ,... , Ym be independent random variables with Yi ∼ Bin (ni, pi), i =

1 ,... , m, and consider the model ω 1 : log

pi 1 −pi

= xTi β, i = 1,... , m, where β =

(β 1 ,... , βp)T^ and xi is a vector of covariate values for Yi. Derive an expression for

the deviance D 1 for this model. Find an expression for the deviance D 0 for the model

ω 0 : log

pi 1 −pi

= ˜xTi β˜, i = 1,... , m, where β˜ = (β 1 ,... , βk)T^ for some fixed k, 1 6 k < p,

and where ˜xi is the vector of corresponding covariate values. Explain how D 0 and D 1 may

be used to test H 0 : βk+1 =... = βp = 0.

Anthers of a particular plant species are prepared under two different storage

conditions (1, 2 are control, treatment respectively) and with different centrifuging forces

(40g, 150 g, 350 g), and the number of embryogenic anthers is observed. Suppose nij anthers

are prepared with storage condition i and centrifuging force xj , i = 1, 2, x 1 = 40, x 2 = 150,

x 3 = 350, where nij > 70 for all i, j. Let yij and pij be the number of embryogenic anthers

and probability of the anthers being embryogenic with storage condition i in centrifuging

force xj , for i = 1, 2, j = 1, 2 , 3.

The following models are fitted, resulting in the residual deviances as shown below.

In each case i = 1, 2 and j = 1, 2 , 3.

ω 0 : log

pij 1 − pij

= α, residual deviance D 0 = 10. 452

ω 1 : log

pij 1 − pij

= αi, residual deviance D 1 = 5. 173

ω 2 : log

pij 1 − pij

= α + β log xj , residual deviance D 2 = 8. 092

ω 3 : log

pij 1 − pij

= αi + β log xj , residual deviance D 3 = 2. 619

Interpret these four models. Carry out appropriate statistical tests to determine which is

your preferred model.

[If χ^2 ν (α) is defined by P(Y > χ^2 ν (α)) = α where Y ∼ χ^2 ν , then χ^21 (0.05) = 3.84,

χ^22 (0.05) = 5.99, χ^23 (0.05) = 7.82, χ^24 (0.05) = 9.49, χ^25 (0.05) = 11.07]

Applied Statistics [TURN OVER

5 Describe briefly the basic concept behind the E-M algorithm, explaining what the

E and M steps correspond to in the algorithm and appropriately defining all notations

used.

As part of a training session, a swimming instructor matches into 8 pairs a strong

swimmer and a not so strong swimmer. The instructor asks the 8 swimming pairs to each

line up behind one of the eight start platforms of a twenty five-metre pool. The instructor

then tells the swimmers that there will be a fifty-metre relay race between the pairs. The

order that the members of the pairs will race in is left up to each pair to decide. The

instructor selects eight further members of his swimming class to record the swimming

times for each member of each pair. The race is then started. Unfortunately, five of the

eight members asked to record the swimming times of the swimmers only record the total

times for their five designated pairs.

The swimming instructor comes to you with the data in the following form

X = (S 11 , S 12 , S 21 , S 22 , S 31 , S 32 , T 4 , T 5 , T 6 , T 7 , T 8 )

where Si 1 , Si 2 correspond respectively to the swimming times of the strong swimmer and

the not so strong swimmer in the ith pair, for 1 6 i 6 3, and Tj corresponds to the total

swim time for the jth pair, for 4 6 j 6 8.

The instructor believes that all swimming times are independent, that those for the

strong swimmers follow an exponential distribution with mean 1/λ 1 , and that those for

the weaker swimmers follow an exponential distribution with mean 1/λ 2 , where λ 1 > λ 2.

The instructor asks you to use X to estimate (λ 1 , λ 2 ).

(a) Show that for j = 4,... 8, Tj has probability density function

g(t) =

λ 1 λ 2 λ 1 − λ 2

e−λ^2 t^ − e−λ^1 t

for t > 0.

(b) Write down log L(λ 1 , λ 2 |X), the log-likelihood corresponding to the observed

data X.

(c) Apply the E-M algorithm to this estimation problem, providing explicit expres-

sions for the parameter updates obtained in the M -step of the algorithm to compute the

maximum likelihood estimates of λ 1 , λ 2.

[Note that ∫ (^) t

0

s e−λs^ ds =

λ^2

t λ

λ^2

e−λt

for any t > 0 and any λ.]

END OF PAPER

Applied Statistics