Stats: Simple Linear Regression

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 3K views
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 [itex]Y_i=\beta_0+\beta_1 X_i + \varepsilon_i[/itex] where [itex]\varepsilon_i \stackrel {\text{i.i.d.}}{\sim} N(0,\sigma^2)[/itex]

Does [itex]X_i[/itex] respresent the age of the bus and [itex]Y_i[/itex] the maintenance cost?
 
Last edited by a moderator:
Physics news on Phys.org
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 [itex]\beta_0[/itex] and [itex]\beta_1[/itex] 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: