QUESTION IMAGE
Question
problem 6
the number of students in marching band has increased since the school first opened 10 years ago. the table of values represents the number of students in marching band each year.
| year | 0 | 1 | 2 | 3 | 4 | 5 |
| number of students in the marching band | 90 | 96 | 105 | 110 | 100 | 115 |
regression equation:
predict the amount of students who were in the marching band 7 years after the school opened.
predict the amount of students who were in the marching band 15 years after the school opened.
Step1: Assume linear regression
Let \(x\) be the year and \(y\) be the number of students. We first find the least - squares regression line \(y = ax + b\).
We have \(n=6\) data points \((x_1,y_1),(x_2,y_2),\cdots,(x_6,y_6)\) where \(x_i=\{0,1,2,3,4,5\}\) and \(y_i = \{90,96,105,110,100,115\}\).
The formulas for \(a\) and \(b\) in \(y = ax + b\) are:
\(\sum_{i = 1}^{n}x_i=0 + 1+2+3+4+5 = 15\)
\(\sum_{i = 1}^{n}y_i=90 + 96+105+110+100+115 = 616\)
\(\sum_{i = 1}^{n}x_i^{2}=0^{2}+1^{2}+2^{2}+3^{2}+4^{2}+5^{2}=0 + 1+4+9+16+25 = 55\)
\(\sum_{i = 1}^{n}x_iy_i=0\times90+1\times96 + 2\times105+3\times110+4\times100+5\times115=0 + 96+210+330+400+575 = 1611\)
So the regression equation is \(y = 4.057x+92.524\)
Step2: Predict for \(x = 7\)
Substitute \(x = 7\) into \(y = 4.057x+92.524\)
Step3: Predict for \(x = 15\)
Substitute \(x = 15\) into \(y = 4.057x+92.524\)
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
Regression Equation: \(y = 4.057x+92.524\)
Prediction for 7 years: 121 students
Prediction for 15 years: 153 students