a) To calculate at what age women sleep the least on average, find a derivative of sleep with respect age and equal it to zero. Then, solve for the age. These steps are performed below:
Where sleep is denoted by , age is denoted by
and
work is denoted by
.
Taking derivative of the above equation with respect to
gives
Adding 37.64 on both sides of the above equation gives
Dividing by 0.94 on both sides of the above equation gives
So, the age at which women work the least is 40.04 years.
Now, we can interpret the regression equation as follows:
The amount of sleep women get decreases with Age till 40.04 years and then increases after 40.04 years.
b) i) The value to Sleep time can be computed as
Now, to test if the expected value of sleep time conditional on
work time and age is a linear function of age, we need to test the
coefficient of .
So, hypothesis test can be formulated as:
where are the null
and alternative hypothesis respectively.
Under the null hypothesis,
Test statistic will be
test statistic follows F distribution with degrees of
freedom.
ii) In this case, null and alternative hypothesis will be given as follows:
Under null hypothesis,
Test statistic will be
test statistic follows F distribution with degrees of
freedom.
Models with quadratic terms: Using data from a random sample of 305 women, we have estimated the ...