### Video Transcript

For a given data set, π₯ bar equals 30.8, π¦ bar equals 27.5, π π₯π₯ equals 4,407, π π¦π¦ equals 228, and π π₯π¦ equals 752. Find the equation of the regression line of π¦ on π₯ in the form π¦ equals ππ₯ plus π, giving π and π correct to two decimal places.

The equation that describes the least squares regression line of π¦ on π₯ is π² hat equals π plus ππ₯. Weβll compare this with the general form π¦ equals ππ₯ plus π at the end. In the equation for π² hat equals π plus ππ₯, π is the slope. And itβs found by dividing π π₯π¦ by π π₯π₯. Then, once we have a value for π, we can find a value for π, which is the π¦-intercept, by calculating π¦ bar minus π times π₯ bar.

So we begin by calculating the value of π. Weβre given π π₯π¦ is equal to 752 and π π₯π₯ is 4,407. So π is 752 divided by 4,407. Thatβs 0.17063 and so on, which correct to two decimal places is 0.17.

Now that we have a value for π, we can calculate π. π¦ bar is 27.5. We just calculated π, and weβre going to use the exact value for π. And π₯ bar is 30.8. So π is 27.5 minus 752 over 4,407 times 30.8, which is 22.2443 and so on. Correct to two decimal places, thatβs 22.24.

Substituting these back into the equation π² hat equals π plus ππ₯, and we get π² hat equals 22.24 plus 0.17π₯. Now, weβve been in fact been told to give this in the form π¦ equals ππ₯ plus π. So we switch the π₯-term and the constant. π¦ equals 0.17π₯ plus 22.24.