Video: EG19M2-Statistics-Q7B

EG19M2-Statistics-Q7B

04:53

Video Transcript

If the sum of π‘₯ is equal to 15, the sum of 𝑦 is equal to negative six, the sum of π‘₯ squared is equal to 55, the sum of 𝑦 squared is equal to 76, the sum of π‘₯𝑦 is equal to negative 50, and 𝑛 equals six, find the regression line equation of 𝑦 on π‘₯.

The regression line equation of 𝑦 on π‘₯ is a straight line of the form 𝑦 equals π‘Ž plus 𝑏π‘₯. This gives the equation of the straight line which fits a given data set most closely. The values of π‘Ž and 𝑏 are constants and are chosen to minimise the sum of the squares of the residuals. Those are the differences between the actual values and the values as predicted by the regression line. There are standard formulae that we can apply to calculate the values of π‘Ž and 𝑏.

Firstly, 𝑏 is equal to 𝑠π‘₯𝑦 over 𝑠π‘₯π‘₯, where 𝑠π‘₯𝑦 and 𝑠π‘₯π‘₯ are as defined on the screen. 𝑠π‘₯𝑦 is equal to the sum of π‘₯𝑦 minus the sum of π‘₯ multiplied by the sum of 𝑦 over 𝑛. And 𝑠π‘₯π‘₯ is equal to the sum of π‘₯ squared minus the sum of π‘₯ all squared over 𝑛.

We need to be clear on the distinction between two pieces of notation, the sum of π‘₯ squared and the sum of π‘₯ all squared. In the first case, the sum of π‘₯ squared means we need to square each individual π‘₯-value and then find the sum, whereas the sum of π‘₯ all squared means we need to sum the π‘₯-values first and then square the result. This distinction is particularly important if we’re having to calculate these summaries ourselves from a row data set.

Once we’ve found the value of 𝑏, we can work out the value of π‘Ž by recalling that one point, which will always lie on this line, is the point with coordinates π‘₯ bar, 𝑦 bar. That’s the point whose π‘₯-coordinate is the mean of the π‘₯-values and whose 𝑦-coordinate is the mean of the 𝑦-values. If this point lies on the line, then its coordinates will satisfy the equation of the line. So, we have 𝑦 bar is equal to π‘Ž plus 𝑏π‘₯ bar. By subtracting the 𝑏π‘₯ bar from each side, we see that π‘Ž is equal to 𝑦 bar minus 𝑏π‘₯ bar. So, if we know 𝑏 and π‘₯ bar and 𝑦 bar, we can calculate π‘Ž.

Let’s begin our calculation of 𝑏 then. From the summary that’s given at the start of the question, the sum of π‘₯𝑦 is equal to negative 50. The sum of π‘₯ is equal to 15. And the sum of 𝑦 is equal to negative six. 𝑛 is equal to six. So, we have negative 50 minus 15 multiplied by negative six over six. We can cancel a factor of six in the numerator and denominator, giving 𝑠π‘₯𝑦 equals negative 50 minus 15 multiplied by negative one. That simplifies to negative 50 plus 15, which is equal to negative 35.

In our calculation of 𝑠π‘₯π‘₯, next then, the sum of π‘₯ squared is equal to 55. The sum of π‘₯ is equal to 15. And 𝑛 is equal to six. So, we have 55 minus 15 squared over six. That works out to be 17.5. Substituting these values into our formula for 𝑏 then, we have that 𝑏 is equal to negative 35 over 17.5. Now recall that 17.5 is half of 35. So, 35 divided by 17.5 is two. This means that negative 35 divided by 17.5 is negative two. So, our value of 𝑏 is negative two.

To calculate π‘Ž, we need to first work out π‘₯ bar and 𝑦 bar. And we will recall that to find the mean of a set of values, we find the sum of those values and then divide it by how many values there are. So, π‘₯ bar is equal to the sum of π‘₯ over 𝑛 and 𝑦 bar is equal to the sum of 𝑦 over 𝑛.

For π‘₯ bar, we have 15 over six, which is equal to 2.5, and for 𝑦 bar, negative six over six, which is equal to negative one. Substituting the values of 𝑦 bar, 𝑏, and π‘₯ bar into our formula for π‘Ž, we have that π‘Ž is equal to negative one minus negative two multiplied by 2.5. That’s negative one minus negative five, which is the same as negative one plus five, which is equal to four.

We’ve found the values of π‘Ž and 𝑏 then. π‘Ž is equal to four and 𝑏 is equal to negative two. All that remains is just to substitute these values into the equation of the regression line, which gives 𝑦 is equal to four minus two π‘₯. So, using the given summaries, we found the regression line equation of 𝑦 on π‘₯. 𝑦 is equal to four minus two π‘₯.

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy.