Skip to main content

Section 13.3 Using Regression to Make a Prediction

We can use our regression model to make predictions based on given values of the independent variables -- just plug the given values into the respective independent variable of the regression model. But how reliable is this prediction? We only have sample data so the prediction isn’t perfect. Similar to what we did in a previous chapter, we will construct a confidence interval to aid in describing the accuracy of our predictions.
There are a number of confidence intervals that we can create based on our regression model that provide insight into the validity of the model. The only one we will focus on is related to the population slopes:
\begin{equation*} CI=b_i\pm t_{\alpha/2}s_{b_i} \end{equation*}
It turns out we will likely not need this formula, however, since the “Regression” tool in Excel will do most of the work for us.

Exercise 13.3.1.

Let’s look back at the hospital example from earlier.
A hospital would like to develop a regression model to predict the total hospital bill for a patient based on the age of the patient (\(x_1\)), the patient’s length of stay (\(x_2\)), and the number of days in the hospital’s intensive care unit (ICU) (\(x_3\)). Data for these variables can be found in the table in the Excel file below. external/sheets/HospitalExample.xlsx
(Here are the solutions to all parts of this problem: external/sheets/HospitalExampleContinuedSolutions.xlsx )

(a)

Find and interpret the adjusted coefficient of variation.

(b)

Let \(\alpha=0.10\text{,}\) and test the following hypothesis:
\begin{equation*} H_0:\;\beta_1=\beta_2=\beta_3=0 \end{equation*}
\begin{equation*} H_1:\; \text{at least one } \beta_i\neq 0 \end{equation*}

(c)

Let \(\alpha = 0.05\text{,}\) and test to see if each of the \(\beta_i\)s is equal to zero.

(d)

Construct and interpret the \(95\%\) confidence interval for the regression coefficient for each of the independent variables in the model.