I’m doing a linear regression. Say I am modeling the equation y = a*x.
When I plot the output of sample_posterior_predictive (y_prediction) and the calculated contribution ax, these lines do not match. I would expect them to match. Is there an error term in the model object that I need to account for (y = ax + e)? If so, how do I return this residual term from the model?