### Video Transcript

Using the information in the table, estimate the value of π¦ when π₯ equals 13. Give your answer to the nearest integer.

And then we have a table containing pairs of bivariate data for π₯ and π¦. In order to estimate a π¦-value for some given value of π₯, here thatβs 13, assuming the data is approximately linear, we first find the equation of the regression line. This is of the form π¦ hat equals π plus ππ₯. π is essentially the slope of the line, and we use the formula π π₯π¦ divided by π π₯π₯. Then, we can individually calculate π π₯π¦ and π π₯π₯. Or if we find their quotient, we can rewrite the formula as π times the sum of π₯π¦ minus the sum of π₯ times the sum of π¦ divided by π times the sum of π₯ squared minus the sum of π₯ squared.

Then, once we have the value of π, we can work out the value of π. Itβs π¦ bar minus π times π₯ bar, where π¦ bar and π₯ bar are the means of π¦ and π₯, respectively. So it should be quite clear to us that weβre going to need to begin by calculating the sum of the π₯- and the π¦-values, but also the π₯π¦ and π₯ squared values. So weβll move our formulae out of the way, and weβll add some rows and columns to our table.

Letβs begin by calculating each value of π₯π¦. To find the first entry, we multiply 23 by 22, which is 506. Then, the next entry is the product of nine and 24, which is 216. And continuing in this way, we get 600, 195, 147, and 108. Next, weβll complete the π₯ squared row. The first value is the result of 23 squared, which is 529. Next, we calculate nine squared; thatβs 81. 24 squared is 576. 15 squared is 225. And then our remaining two values are 49 and 144, respectively. Weβre now going to complete the final column in our table. Thatβs the totals, the sum of each of the entries in each individual row. The sum of all the π₯-values is 90. The sum of our π¦-values is 114. The sum of the values in the π₯π¦ column is 1772. And then the sum of our π₯ squared values is 1604.

We now have enough information to be able to calculate the value of π in the equation for our least squares regression line. Since there are six pairs of entries, we let π be equal to six. And so π is π times the sum of π₯π¦. Thatβs six times 1772 minus the sum of π₯ times the sum of π¦, thatβs 90 times 114, over π times the sum of π₯ squared, so six times 1604 minus the sum of π₯ squared. Thatβs 90 squared. That gives us 372 divided by 1524, which is approximately equal to 0.244 correct to three decimal places. And so we have the value of π.

Our next job is to calculate the value of π. And remember the formula we use is π equals π¦ bar minus π times π₯ bar, where π¦ bar and π₯ bar are the means of π¦ and π₯, respectively. In other words, π¦ bar is the sum of all π¦-values divided by π, and π₯ bar is the sum of all π₯-values divided by π. So π¦ bar is 114 divided by six, which is equal to 19. And π₯ bar is 90 divided by six, which is equal to 15. Then, π is 19 minus π times 15, which correct to two decimal places is 15.34. Substituting this back into the formula for the least squares regression line, and we find that π¦ hat is 15.34 plus 0.244π₯.

Remember, weβre looking to find the value of π¦ when π₯ is equal to 13. So weβre going to substitute π₯ equals 13 into this equation. So π¦ is 15.34 plus 0.244 times 13. Thatβs 18.51 and so on, which correct to the nearest integer is 19.