I have a very basic problem, can you give me some insights on how to solve it, or just some keywords to search online?
I have two sets of points in $\mathbb{R}^2$, let say $S_1 = \{(x_i, y_i)\}_{i=1}^{N}$ and $S_2 = \{(x_i, y_i)\}_{i=1}^{M}$, the points of both sets seem to have a linear relation:
$$ y_i = mx_i + q $$
But my hypotesis is that they "come" from two different lines, so for example the line with parameters $(m_1, q_1)$ for $S_1$ and parameters $(m_2, q_2)$ for $S_2$.
How can I test if they actually come from two different lines (and there is statistical significance) or from the same one?
summary
of your model asSS2
for the intercept andx:S2
for the slope (look for stars at the end). $\endgroup$