175,862 views
31 votes
31 votes
The equation used to predict how long a cold will last is ŷ=-1.8 + 0.09x1 + 3.2x2 – 1.9x3, where x1is person’s temperature on the first day, x2 is number of people seen each day, and x3 is the amount of sleep the person gets. Use this equation to predict how long a cold will last with a temperature of 101.4 degrees, an average of 4 people seen each day, and 6 hours of sleep.8.7 days10.5 days9.7 days9.5 days

User Junior Dussouillez
by
3.1k points

2 Answers

12 votes
12 votes

Final answer:

The prediction for how long a cold will last using the given temperature, number of people seen each day, and hours of sleep is approximately 8.7 days.

Step-by-step explanation:

The given equation for predicting how long a cold will last is ŵ=-1.8 + 0.09x1 + 3.2x2 – 1.9x3, where x1 is a person’s temperature on the first day, x2 is the number of people seen each day, and x3 is the amount of sleep the person gets. To use this equation with a temperature of 101.4 degrees, seeing an average of 4 people each day, and getting 6 hours of sleep, we substitute these values into the equation:

ŵ = -1.8 + (0.09 × 101.4) + (3.2 × 4) - (1.9 × 6)

ŵ = -1.8 + 9.126 + 12.8 - 11.4

ŵ = 8.726

When rounded to one decimal place, this prediction for how long the cold will last is approximately 8.7 days.

User Savner
by
3.0k points
11 votes
11 votes

Hello there. To solve this question, we have to evaluate the function for each variable.

Given the equation


\hat{y}=-1.8+0.09x_1+3.2x_2-1.9x_3

Where x1 is the person's temperature on the first day, x2 is the number of people seen each day and x3 is the amount of sleep the person gets.

We want to determine how long will this cold last if the person's temperature is 101.4 degrees, has seen an average of 4 people each day and sleeps 6 hours at night.

For this, we simply have to plug the values:


\begin{gathered} x_1=101.4\,^(\circ)F \\ x_2=4 \\ x_3=6 \end{gathered}

Such that we find


\hat{y}=-1.8+0.09\cdot101.4+3.2\cdot4-1.9\cdot6

Multiplying and adding the values gives


\hat{y}=8.72

So we find that the approximate time this cold will last is equal to


8.7\text{ days}

User JSowa
by
2.9k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.