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:
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