The annual maintenance bills of similar buildings in down town Nairobi were related to their
age with the following results.
First row age A. Age (yrs) and second row M. Maintenance bills (000 shs)
A 15 5 25 40 5 20 10 30 445 15 25 35 10 30
M 39 24 115 105 50 86 67 90 140 112 70 186 43 126
a) fit a regression line to this data (5 marks)
b) find the 95 % confidence interval estimate of the maintenance cost of the building for
age in years, assuming the data is homoscedastic (5 marks)
c) Test the significance of the regression coefficients b and a at the .05 significance level
a)
equation of regression line:
where x is age,
y is maintenance cost
b)
where yi is the value of the dependent variable for observation i,
is estimated value of the dependent variable for observation i,
xi is the observed value of the independent variable for observation i,
is the mean of the independent variable,
n is the number of observations.
estimated values : 84, 82.5, 85.5, 88, 82.5, 85, 83, 86, 150, 84, 85, 87, 83, 86
critical values for 95 % confidence interval:
c)
If there is a significant linear relationship between the independent variable X and the dependent variable Y, the slope will not equal zero.
Ho: a = 0
Ha: a ≠ 0
Since we accept the null hypothesis. There is no a significant linear relationship between the independent variable X and the dependent variable Y.
using Goodness of fit test:
H0: Model (regression line) Fits
H1: Model Doesn't Fit
test statistic:
critical value:
since , H0 is rejected. The statistical model (regression line) does not fit the observations. So, the regression coefficients b and a does not fit the observations.
Comments