### 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 π₯.