Question
Question: What is the quadratic regression equation for the data set? x| y ---|--- 3| 3.45 5| 6.9 ...
What is the quadratic regression equation for the data set?
x | y |
---|---|
3 | 3.45 |
5 | 6.9 |
6 | 8.79 |
8 | 12.91 |
10 | 17.48 |
12 | 22.49 |
15 | 30.85 |
A. y=0.056x2+1.278x
B. y=0.056x2−1.278x−0.886
C. y=0.056x2+1.278
D. y=0.056x2+1.278x−0.886
Solution
We need to solve the following set of equations for the values of a, b and c which will determine the coefficients of the quadratic equation. These equations are given as follows:
⇒a∑xi4+b∑xi3+c∑xi2=∑xi2yi⇒a∑xi3+b∑xi2+c∑xi=∑xiyi⇒a∑xi2+b∑xi+cn=∑yi
Here, n is the number of data in the data set. The summation of the terms needs to be calculated from the given data for x and y. Using these in the above equations and by solving simultaneously, we get the values of a, b and c and using these coefficients, we create a quadratic equation.
Complete step-by-step solution:
In order to solve this question, let us first write down the equations required. They are given as follows:
⇒a∑xi4+b∑xi3+c∑xi2=∑xi2yi⇒a∑xi3+b∑xi2+c∑xi=∑xiyi⇒a∑xi2+b∑xi+cn=∑yi
We find the value of ∑xi4 for the given data x as given below,
⇒∑xi4=34+54+64+84+104+124+154
Expanding each of the terms by taking the powers of 4,
⇒∑xi4=81+625+1296+4096+10000+20736+50625
Adding all the terms,
⇒∑xi4=87459
Similarly, we need to calculate for the other summations as shown,
For ∑xi3 we take the cubed values of each of the x values and find their summation as,
⇒∑xi3=33+53+63+83+103+123+153=6983
Similarly, for ∑xi2 we take the squared values of each of the x values and find their summation as,
⇒∑xi2=32+52+62+82+102+122+152=603
We find ∑xi and ∑yi by adding the data values in the x and y columns,
⇒∑xi=3+5+6+8+10+12+15=59
⇒∑yi=3.45+6.9+8.79+12.91+17.48+22.49+30.85=102.87
We also need the values of the terms ∑xi2yi and ∑xiyi. This can be done by taking the square of the x term multiplied by the corresponding y terms and taking their sum for the first summation. For the second summation, we take the product of corresponding x and y terms and add them all together.
⇒∑xi2yi=32×3.45+52×6.9+62×8.79+82×12.91+102×17.48+122×22.49+152×30.85⇒∑xi2yi=13274.04
Similarly for the second summation term,
⇒∑xiyi=3×3.45+5×6.9+6×8.79+8×12.91+10×17.48+12×22.49+15×30.85⇒∑xiyi=1108.3
Substituting all these in the given set of equations, we get the equations as,
⇒87459a+6983b+603c=13274.04⇒6983a+603b+59c=1108.3⇒603a+59b+7c=102.87
Solving for all these values of a, b and c using the method of simultaneous equations, which can be done by taking 2 equations at a time. Take the first two equations. And multiply the second equation by a fraction 59603 so as to make the coefficient of c same in both the equations.
⇒87459a+6983b+603c=13274.04…(1)
⇒71368.6271a+6162.8644b+603c=11327.2017…(2)
Subtracting the above two equations,
⇒ 87459a+ 6983b+603c=13274.04⇒−71368.6271a−6162.8644b−603c=−11327.2017
This gives us the equation with the c term eliminated.
⇒16090.3729a+820.1356b=1946.8383…(3)
Next, we consider equations
⇒6983a+603b+59c=1108.3⇒603a+59b+7c=102.87
We now multiply the second equation here by a fraction 759 to make the coefficients of c terms equal.
⇒6983a+603b+59c=1108.3⇒5082.4286a+497.2857b+59c=867.0471
Now, we subtract the two equations
⇒ 6983a+ 603b+59c=1108.3⇒−5082.4286a−497.2857b−59c=−867.0471 1900.5714a+105.7143b+0c = 241.2529 …(4)
Now we consider the equations 3 and 4 and multiply the equation 4 by a fraction 105.7143820.1356 to make the coefficient of b same and subtract the two equations as,
⇒16090.3729a+820.1356b=1946.8383⇒−14744.7059a−820.1356b = −1871.6492 1345.667a =+75.1891
Now, we divide both sides of the resulting equation by 1345.667 to obtain the value of a.
⇒a=1345.66775.1891=0.05587
Substituting this in the equation 3,
⇒16090.3729×0.05587+820.1356b=1946.8383
Multiplying the terms,
⇒898.9691+820.1356b=1946.8383
Subtracting both sides by 898.9691 and dividing both sides by 820.1356,
⇒820.1356b=1047.8692
⇒b=820.13561047.8692=1.2776
Now, we take the third equation in the set of simultaneous equations and substitute the values of a and b to calculate c.
⇒603×0.05587+59×1.2776+7c=102.87
Multiplying and adding the terms on the left-hand side,
⇒109.0680+7c=102.87
Subtracting both sides by 109.0680 and dividing both sides by 102.87,
⇒7c=102.87−109.0680
⇒c=7−6.1980=−0.8854
We have the values of a, b and c as,
⇒a=0.05587,b=1.2776,c=−0.8854
Rounding them all to 3 decimal digits, we get
⇒a=0.056,b=1.278,c=−0.886
Forming a quadratic equation with these values as ax2+bx+c,
⇒y=0.056x2+1.278x−0.886
Hence, the correct option is D.
Note: We need to know the concept of regression equation and its formation for a given set of data. It is important to know the method of solving simultaneous equations in order to obtain a solution for such problems. Students are required to know how to solve simultaneous equations.