Problem:
The following table below shows the marks scored by seven students on two different mathematics tests.
$$\begin{array}{c|c|c|} \text{Test 1 (x)} & 15 & 23 & 25 & 30 & 34 & 34 & 40 \\ \hline \text{Test 2 (y)} & 20 & 26 & 27 & 32 & 35 & 37 & 35 \\ \hline \end{array}$$
Let $L_{1}$ be the regression line of x on y. The equation of the line $L_{1}$ can be written in the form $x = ay + b$.
(a) Find the value of $a$ and the value of $b$.
Let $L_{2}$ be the regression line of $y$ on $x$. The lines $L_{1}$ and $L_{2}$ pass through the same point with coordinates $(p,q)$.
(b) Find the value of $p$ and the value of $q$.
My solution:
I inputted both sets of data into the calculator (TI-84) and got a line of best fit for both.
$x$ on $y$: $y=1.2908291457286x-10.379396984925$
$y$ on $x$: $y=0.69993188010899x+10.187670299727$
These two lines intersect at $(34.81,34.55)$
The actual solution: The lines should meet at $(x̄, ȳ) = (28.7,30.3)$
Can anyone point me in the correct direction? I just don't see how these two lines could intersect at the mean x,y values when those values are obviously flipped in the two lines.
Edit: This problem is from the IB Math AA HL curriculum, exam code SPEC/5/MATAA/SP2/ENG/TZ0/XX/M . This is a practice test provided by IB.
[self-study]
tag & read its wiki. $\endgroup$ – Stochastic Aug 12 '20 at 19:20