



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!




ST 512 Homework assignment #2, - Solutions Dr. Jason A. Osborne
(a) Obtain a scatterplot of these measurements (sketched or using soft- ware). Plot of y*x. Legend: A = 1 obs, B = 2 obs, etc.
y | | 20 + A | A | | | | | A 18 + | | | A AA A | | | A 16 + A A | | A A | A | | A | A 14 + | -+---------+---------+---------+---------+---------+---------+ 65 70 75 80 85 90 95
NOTE: 1 obs had missing values.
(b) Specify the simple linear regression model for these data. Identify all parameters in the model, providing the interpretation of each.
Yi = β 0 + β 1 xi + Ei
Ei iid ∼ N (0, σ^2 ) parameters are β 0 - intercept β 1 - slope, or mean increase in chirp frequency per unit increase in temperature σ^2 = Var(Y |x) - population variance for fixed temperature (c) Explain how the interpretation (and the estimate) of the slope param- eter changes if temperature is expressed in Celcius. Since C = 59 (F − 32), the slope will be attenuated by a factor of 5/9 (β 1 ,new = 59 β 1 ) and the intercept will also change: β 0 ,new = β 0 − 59 (32). Same goes for the estimate βˆnew.
(d) Estimate the mean chirp frequency among crickets in a temperature of 80oF. Estimate the standard deviation among chirp frequency measurements made at this fixed temperature.
β^ ˆ 0 + βˆ 1 (80) = 16. 6 chirps/second.
Population s.d. estimated by
M S[E] = 0. 97 chirps/second. (e) Estimate the mean chirp frequency among crickets in a temperature of 105oF. βˆ 0 + βˆ 1 (105) = 21.9 chirps/second. (not a good idea though, since no data in temps this high) (f) Report the sum of squared deviations between the fitted values and the average chirp frequency, ¯y? SS[R] = 28. 3 (g) What proportion of variance in chirp frequencies is explained by the linear regression model? r^2 =. 70
(a) To test H 0 : ρ = 0 against H 0 : ρ 6 = 0 at level α = 0.05, we observe r = − 0 .45 and
zobs(ρ = 0) =
20 − 3 log
which exceeds z 0. 025 = 1.96 in absolute value, so that H 0 : ρ = 0 is rejected. A 95% confidence interval (which we know won’t contain 0 from the test) works out to (− 0. 74 , − 0 .009). (b) (2nd exercise from p.6 packet #2)
Pr(R > 0 .7; ρ = 0.6)
= Pr{
n − 3
log
− log 1 + ρ 1 − ρ
n − 3
log
− log 1 + ρ 1 − ρ
= Pr(Z > 0 .9) = 0. 1828
(a) Regarding the bivariate data as a random sample from the population of all local runners, obtain the least squares regression for a model which takes the mean 5k pace to be quadratic in age:
μ(x) = β 0 + β 1 x + β 2 x^2.
PROC REG output: Parameter Estimates
Parameter Standard Variable DF Estimate Error t Value Pr > |t|
Intercept 1 11.78503 0.70216 16.78 <. age 1 -0.19699 0.04113 -4.79 <. age2 1 0.00294 0.00057380 5.12 <. So, the LS regression is ˆμ(x) = 11. 785 − 0. 197 x + 0. 0029 x^2. (b) Report a standard error and 95% confidence interval for the mean pace for runners aged x = 34.
ˆμ(x = 34) = (1, 34 , 342 ) βˆ = 11. 785 − 0 .197(34)+0.0029(34)^2 = 8. 48 .minutes/mile
SE given by
(1, 34 , 342 ) Σ(1ˆ , 34 , 342 )′^ which works out to ̂SE[ˆμ(x = 34)] = 0. 206. Since t(0. 025 , 126) = 1.98, the 95% confidence interval is
(c) Report the multiple coefficient of determination for the quadratic model. Analysis of Variance
Sum of Mean Source DF Squares Square F Value Pr > F Model 2 113.64513 56.82257 13.23 <. Error 157 674.45060 4. Corrected Total 159 788.
Root MSE 2.07265 R-Square 0. The output above indicates that the multiple coefficient of determi- nation for this model is R^2 = 113. 6 / 788 .1 = 0.14.
(d) The age where the mean pace μ(x) attains its minimum under the model is given by θ = −β 1 2 β 2
Propose an estimator of θ. Report the observed value of the estimate. (Check a scatterplot to make sure your estimate is sensible.) Solving μ′(x) = 0 for x yields x = − 2 ββ 21 which can be estimated using
θˆ = −^
βˆ 1 2 βˆ 2
= 33.5 (yrs old).
(e) Consider reparameterizing the quadratic model in terms of θ and two other parameters rather than (β 0 , β 1 , β 2 ). Use PROC NLIN to obtain the least squares estimate of θ along with an approximate standard error. The NLIN Procedure Method: Gauss-Newton
Sum of Mean Approx Source DF Squares Square F Value Pr > F Model 2 113.6 56.8225 13.23 <. Error 157 674.4 4. Corrected Total 159 788.
Approx Approximate 95% Confidence Parameter Estimate Std Error Limits c0 8.4818 0.2057 8.0756 8. c1 0.00294 0.000574 0.00180 0. peak 33.5366 1.9110 29.7620 37. (So, the approximate standard error is 1.91 years.)