Stats: Simple Linear Regression

Ted123
Messages
428
Reaction score
0

Homework Statement



[PLAIN]http://img822.imageshack.us/img822/4421/statsii.jpg

The Attempt at a Solution



Done parts (a) and (b). How do I do parts (c) and (d)?

Is the simple linear regression model just Y_i=\beta_0+\beta_1 X_i + \varepsilon_i where \varepsilon_i \stackrel {\text{i.i.d.}}{\sim} N(0,\sigma^2)

Does X_i respresent the age of the bus and Y_i the maintenance cost?
 
Last edited by a moderator:
Physics news on Phys.org
a simple linear regression model would be
M = b.A + c + e
where e is a normally distributed error term centred on zero
 
lanedance said:
a simple linear regression model would be
M = b.A + c + e
where e is a normally distributed error term centred on zero

In part (c) the MLEs of \beta_0 and \beta_1 are the same as the least squares estimates of the intercept and the slope (from part (b)).

I've calculated the values of a and b in the least squares regression line using the definitions. Is there any way of getting these from the R output?

The correlation coefficient in part (a) is 0.9340776458684332 (can get this from R output - square root of the 'mutiple R-squared' value) and this implies there is a strong positive linear correlation.

What can I say about whether X and Y are related in part (d)?
 
Last edited:
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top