I have $n$ independent variables $x_i$ and dependent variables $y_i$ with uncertainties for both $x$ and $y$. I did a linear regression to get a model $\hat y = \beta x$.
Now I want to use this regression model to determine when the underlying system dynamics (a.k.a. $\beta$) changed. I calculate the residuals of new points to see their deviation from my model. I can plot the residuals and see that at one point the residuals increase a lot.
But what means a lot? I wanted to calculate a probability that this residual cannot be explained by the variance of the data. I am thinking this is the confidence that something in the system has changed.
My thought was that I can calculate standard deviation about the regression with $$ s_r = \sqrt{\frac{\sum (y_i - \hat y)}{n - 2}}, $$ and then use the probability for each point using the normal probability density function.
But this seems very naïve and assumes that my regression curve is the actual true relationship. I am not taking into account that if the new values are far away from my first ones, the model should naturally be bad. This led me towards the confidence and prediction bands, but I do not know how I can use this to get the probability that the new point does not fit.
Also, I am completely neglecting the known uncertainties of my input.
I wanted to calculate a probability that this residual cannot be explained by the variance of the data.
I think you need to pin down what you mean by this before how to do that can be determined. Could you please clarify what you mean? $\endgroup$