a1_09soln

a1_09soln - 1 The University of Western Ontario Department...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 The University of Western Ontario Department of Statistical and Actuarial Sciences Statistical Sciences 3859a Assignment 1 Solutions 1. Suppose ( x 1 , y 1 ) , ( x 2 , y 2 ) , . . . , ( x n , y n ) constitute a sample of independent observations. Consider the model y i = 1 x i + 2 i + i where the i are i.i.d. N(0, 2 ) random variables, for i = 1 , 2 , . . . , n . (a) Derive the least-squares estimators for 1 and 2 . Under what condition on the predictor ( x i ) are these estimators not well-defined? 1 = i 2 x i y i- ix i iy i i 2 x 2 i- ( ix i ) 2 2 = x 2 i iy i- ix i x i y i i 2 x 2 i- ( ix i ) 2 If x i i , then the estimator is not well-defined. (b) For the case where the coefficient estimators are well-defined, write down an unbi- ased estimator for 2 . Set y i = 1 x i + 2 i and e i = y i- y i . Then an unbiased estimator for 2 is given by 2 = e 2 i n- 2 2. Use R to complete the following problem, but do not use built-in functions such as lm() and predict() . A toy car has been released from ramps having nine different angles. Distance travelled (in m) has been measured in each case. angle 1.3 4.0 2.7 2.2 3.6 4.9 0.9 1.1 3.1 distance 0.43 0.84 0.58 0.58 0.70 1.00 0.27 0.29 0.63 (a) Plot the data. What is the predictor and what is the response? Is a linear model reasonable? (On physical grounds?, On statistical grounds?) > a13 > attach(a13) angle distance 1 1.3 0.43 4 4.0 0.84 7 2.7 0.58 10 2.2 0.58 13 3.6 0.70 16 4.9 1.00 19 0.9 0.27 22 1.1 0.29 25 3.1 0.63 > plot(distance ~ angle, pch=16) The predictor is angle, and the response is distance. (We want to see how distance changes with angle.) On the basis of the plot below, we see on statistical grounds that a linear model is reasonable. On physical grounds, such a model is sensible. We expect (for small angles) that the distance travelled would increase with angle, with the relation being at least approximately linear. 2...
View Full Document

Page1 / 7

a1_09soln - 1 The University of Western Ontario Department...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online