Final Assignment
Suggested answers
Take a random sample of size 25, with replacement, from the original sample. Calculate the proportion of students in this simulated sample who work 5 or more hours. Repeat this process 1000 times to build the bootstrap distribution. Take the middle 95% of this distribution to construct a 95% confidence interval for the true proportion of statistics majors who work 5 or more hours.
The exact 95% CI is (40%, 80%). Answers reasonably close to the upper and lower bounds would be accepted.
(e) None of the above. The correct interpretation is “We are 95% confident that 40% to 80% of statistics majors work at least 5 hours per week.”
(c) For every additional $1,000 of annual salary, the model predicts the raise to be higher, on average, by 0.016%.
ofraise_2_fitis higher than ofraise_1_fitsinceraise_2_fithas one more predictor and alwaysThe reference level of
performance_ratingis High, since it’s the first level alphabetically. Therefore, the coefficient -2.40% is the predicted difference in raise comparing High to Successful. In this context a negative coefficient makes sense since we would expect those with High performance rating to get higher raises than those with Successful performance.(a) “Poor”, “Successful”, “High”, “Top”.
Option 3. It’s a linear model with no interaction effect, so parallel lines. And since the slope for
salary_typeSalariedis positive, its intercept is higher. The equations of the lines are as follows:Hourly:
Salaried:
A parsimonious model is the simplest model with the best predictive performance.
(c) The exponentiated coefficient (
6.502427) represents the factor by which the percentage increase is higher forSuccessfulratings compared toPoorratings.\/(a) and (d).(a) and (d).
Let
. Then, .Using the chain rule, we get:
Now, we need to compute
:Using the chain rule for each term:
Thus,
Combining these results:
We can split the integral into two separate integrals:
- Integral of
:
Thus,
- Integral of
:
For
,Thus,
Combining these results:
- Integral of
The transpose of the vector
is:The transpose of the matrix
is:Solution parts:
- The dimensions of
are . - The dimensions of
are . - For the matrix product
:- The product is valid because the number of columns in
(which is 2) is equal to the number of rows in (which is 2). - The dimensions of the resulting matrix
will be (the number of rows of by the number of columns of ).
- The product is valid because the number of columns in
- The dimensions of
Solutions:
The dimensions of
are .The dimensions of
are .For the matrix product
:- The product is valid because the number of columns in
(which is 2) is equal to the number of rows in (which is 2). - The resulting matrix
is computed as follows:
- The product is valid because the number of columns in
The resulting matrix
has dimensions .