Docsity

Exam Document: Linear Modelling Techniques (MA37510) - University of Wales, Aberystwyth, Exams of Linear Algebra

Toggle sidebar
bg1
PRIFYSGOL CYMRU / UNIVERSITY OF WALES
ABERYSTWYTH
INSTITUTE OF MATHEMATICAL AND PHYSICAL SCIENCES
SEMESTER 2 EXAMINATIONS, MAY/JUNE 2009
MA37510 – Linear Modelling Techniques
Time allowed – 2 hours
All questions may be attempted
Marks gained from questions in Section B will be given greater consideration in
assessing a first class performance.
Calculators are permitted, provided they are silent, self-powered, without
communications facilities, and incapable of holding text or other material that could
be used to give a candidate an unfair advantage. They must be made available on
request for inspection by invigilators, who are authorised to remove any suspect
calculators.
Statistical Tables will be provided
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Exam Document: Linear Modelling Techniques (MA37510) - University of Wales, Aberystwyth and more Exams Linear Algebra in PDF only on Docsity!

PRIFYSGOL CYMRU / UNIVERSITY OF WALES

ABERYSTWYTH

INSTITUTE OF MATHEMATICAL AND PHYSICAL SCIENCES

SEMESTER 2 EXAMINATIONS, MAY/JUNE 2009

MA37510 – Linear Modelling Techniques

Time allowed – 2 hours

 All questions may be attempted

 Marks gained from questions in Section B will be given greater consideration in assessing a first class performance.

 Calculators are permitted, provided they are silent, self-powered, without communications facilities, and incapable of holding text or other material that could be used to give a candidate an unfair advantage. They must be made available on request for inspection by invigilators, who are authorised to remove any suspect calculators.

 Statistical Tables will be provided

Information

Unless otherwise stated you may quote without proof:

The Normal equations for ordinary least squares estimation in the linear model

E[Y]=Xβ are given by XTXβ = XTy and the residual sum of squares is given by

RES ( βˆ )^ = Y YT^ −βˆT^ X YT.

When the parameters are subject to the linear constraint Aβ = a and XTX is

invertible, the constrained least squares estimator is

β = β −^ ˆ^ (X X T^ ) − 1 AT [ A X X( T^ ) − 1 AT ]− 1 ( Aˆβ − a )

A distribution with a single parameter θ belongs to the exponential family in canonical

form if its probability mass/density function can be written as

f y( ) = exp {yb ( ) θ + c( ) θ +d y( )}

in which case the distribution has mean μ θ( ) = − c b′^ ′( ) ( ) θθ and variance (^) b^ μ ′^ ′ (^) (( θ^ θ)).

In the context of a generalized linear model the following formulae are given (using the

standard notation):

Var

η μ μ μ

i i i i i i ′ i i z g y w g Y

4 An industrial experiment was carried out to determine factors that affect the viscosity of a polymer. Four possible explanatory variables under investigation were: x 1 = reaction temperature x 2 = catalyst feed rate x 3 = pressure x 4 = stirring rate The dependent variable, Y, is a measure of viscosity; there were 30 observations. The following table gives the residual sums of squares for all possible regression models: x's RES SS x's RES SS x's RES SS x's RES SS None 1139.10 (^) x 1 415.84 (^) x 2 316.89 (^) x 3 985. x 4 310.52^ x 1 x 2 308.67^ x 1 x 3 370.30^ x 1 x 4 302. x 2 x 3 288.94^ x 2 x 4 289.60^ x 3 x 4 292.73^ x 1 x 2 x 3 284. x 1 x 2 x 4 287.01^ x 1 x 3 x 4 282.56^ x 2 x 2 x 4 270.23^ x 1 x 2 x 3 x 4 268. Perform a backward elimination stepwise analysis, with a view to determining the best prediction model. Use nominal cut-off values of F=4.0. For your chosen model, calculate the value of “adjusted R^2 ”.

[7]

[2]

5 Two random variables Y 1 and Y 2 have respective expectations θ and 2θ. Their respective standard deviations are 1 and 2, and that of their sum is √3. Find the best linear unbiased estimator of θ. What is its standard error? [8]

6 The independent Poisson distributed random variable^ Yi are believed to be related to explanatory variables xi via the predictor α+βxi and the link function √(ln μ). (a) Explain what this means. The following table shows one iteration of the standard method of fitting this model by maximum likelihood to a set of ten observations.

[2]

current α = 0.8 current β = 0. i yi xi ηi μi g'(μi) Var(Yi) wi zi 1 2 8 0.9600 2.5133 0.2072 2.5133 9.2651 0. 2 0 12 1.0400 2.9494 0.1630 2.9494 12.7603 0. 3 3 16 1.1200 3.5057 0.1273 3.5057 17.5904 1. 4 4 20 1.2000 4.2207 0.0987 4.2207 24.3112 1. 5 5 24 1.2800 5.1469 0.0759 5.1469 33.7309 1. 6 6 28 1.3600 6.3573 0.0578 6.3573 47.0337 1. 7 8 32 1.4400 7.9534 0.0437 7.9534 65.9687 1. 8 11 36 1.5200 10.0785 0.0326 10.0785 93.1411 1. 9 10 40 1.6000 12.9358 0.0242 12.9358 132.4628 1. 10 17 44 1.6800 16.8172 0.0177 16.8172 189.8590 1. 11 21 48 1.7600 22.1447 0.0128 22.1447 274.3822 1. 12 30 52 1.8400 29.5357 0.0092 29.5357 399.9844 1. new α = 0.684 new β = 0. (b) Explain how the quantities ηi, wi and zi were calculated, illustrating your answer by calculating the missing entries in the table. (c) Indicate how the “new” values for α and β were calculated. (d) How would the fitting procedure continue?

[6]

[2]

[2]

Section B

(^7) N uncorrelated observations of constant variance σ^2 are to be taken. N–n of them will have expectation α+β and the other n will be of expectation α+c β, where c is a constant yet to be determined. (a) Formulate this as a matrix linear model and show that

( )

( ) (^ ) ( )

1 2 2

T N^ n c^ N^ n c c N n n (^) N n c N

− = ^ +^ −^ −^ −^ −^ 

− − ^ − − − 

X X

(b) Deduce that the OLS estimators of α and β can be uncorrelated only if c < 1. (c) Show that the design is D-optimal if n = ½N, regardless of the value of c. What does this choice achieve in terms of properties of the estimators? (d) What does a T-optimal design achieve? Show that if c = -1 the D- optimal design is also T-optimal.

[4]

[2]

[3]

[4]

A data sheet at the end of this paper shows some MINITAB analyses of the data.

The aim of the analysis is to model p = P(death was from cancer) in terms of some the variables xray = 1 if child was X-rayed, 0 otherwise stratum = age at death (identified as one of the stratum numbers 1,2,3,4,5,6) wi = 1 if age at death lies in i-th stratum, 0 otherwise; (i=2,3,4,5,6) xs = xray × stratum

(a) Explain what is meant by a binary logistic regression model.

(b) The worksheet also contains values of odds and logit. Explain how these were calculated.

(c) The diagram at the end of the analysis shows a plot of the quantity logit against stratum. Describe how examination of this plot led to Model 2 and Model 3 being considered.

(d) Describe how model 1 differs from models 2 and 3. What do the log likelihood values for the three models tell you?

(e) What name is usually given to model 4? What does the log likelihood value in this case tell you about the previous three models? Why did the analyst settle for model 3?

(f) Interpret the boxed portion of the output for model 3.

(g) Estimate the chance that a child whose age fell in stratum 3 and had been X-rayed died from cancer.

[3]

[2]

[3]

[5]

[4]

[3]

[4]

Data sheet for Question 10 MINITAB WORKSHEET cancer other xray stratum w2 w3 w4 w5 w6 odds logit xs 2 4 1 1 0 0 0 0 0 0.500 -0.6932 1 5 6 1 2 1 0 0 0 0 0.833 -0.1823 2 8 5 1 3 0 1 0 0 0 1.600 0.4700 3 6 3 1 4 0 0 1 0 0 2.000 0.6932 4 5 2 1 5 0 0 0 1 0 2.500 0.9163 5 15 4 1 6 0 0 0 0 1 3.750 1.3218 6 38 36 0 1 0 0 0 0 0 1.056 0.0541 0 21 26 0 2 1 0 0 0 0 0.808 -0.2136 0 36 39 0 3 0 1 0 0 0 0.923 -0.0800 0 46 49 0 4 0 0 1 0 0 0.939 -0.0632 0 50 53 0 5 0 0 0 1 0 0.943 -0.0583 0 46 57 0 6 0 0 0 0 1 0.807 -0.2144 0

Binary Logistic Regression Link Function: Logit Response Information Variable Value Count cancer Success 278 other Failure 284 Total 562

MODEL 1: independent variables xray, w2, w3, w4, w5, w Logistic Regression Table Odds 95% CI Predictor Coef SE Coef Z P Ratio Lower Upper Constant -0.0479903 0.225206 -0.21 0. xray 0.657995 0.275410 2.39 0.017 1.93 1.13 3. w2 -0.285645 0.349785 -0.82 0.414 0.75 0.38 1. w3 -0.0471467 0.311093 -0.15 0.880 0.95 0.52 1. w4 -0.0074420 0.298567 -0.02 0.980 0.99 0.55 1. w5 0.0073145 0.294877 0.02 0.980 1.01 0.57 1. w6 -0.0523728 0.289915 -0.18 0.857 0.95 0.54 1. Log-Likelihood = -386.

MODEL 2: independent variables xray, stratum Logistic Regression Table Odds 95% CI Predictor Coef SE Coef Z P Ratio Lower Upper Constant -0.141784 0.211472 -0.67 0. xray 0.627677 0.272274 2.31 0.021 1.87 1.10 3. stratum 0.0128166 0.0498990 0.26 0.797 1.01 0.92 1. Log-Likelihood = -386.

MODEL 3: independent variables xray, stratum, xs Logistic Regression Table Odds 95% CI Predictor Coef SE Coef Z P Ratio Lower Upper Constant 0.0244348 0.221867 0.11 0. xray -0.892105 0.679198 -1.31 0.189 0.41 0.11 1. stratum -0.0305383 0.0529490 -0.58 0.564 0.97 0.87 1. xs 0.406007 0.170138 2.39 0.017 1.50 1.08 2. Log-Likelihood = -383.