The title question here is a bit awkward because I'm really asking if this illustration I've drawn is true:
Suppose we have a Beta Regression of one predictor, X, which is used to model both the response, y, and the variation of y. So, for example, at X=x1, x2 and x3, we would generate the point predictions mu1, mu2 and mu3 as I have illustrated. Since we are also modelling the precision over the predictor, the variance of the response at each of these locations also changes. I have tried to illustrate that.
As I understand this answer from several years ago, the variances that would be obtained from predict.betareg() in R are about the response. I feel like it therefore follows that we're saying:
- y1|X=x1 ~ B(mu1, var1)
- y2|X=x2 ~ B(mu2, var2)
- y3|X=x3 ~ B(mu3, var3)
as I have annotated my graphic. Is this actually the case or have I misunderstood something?
I think I am right because I can obtain the same quantiles in R that predict.betareg() generates by converting the mu and phi values that predict.betareg() also generates into shape1, shape2 values and using those within qbeta(). However, I am concerned that this may be a coincidence... I would like to stress that my question is not about the code because I can see that the code seemingly confirms this interpretation (it is, in fact, how I came to have this interpretation), but the theory.
As an implication, if this is true does that mean we could validate the appropriateness of a Beta Regression by generating multiple residuals for each x value (e.g. using y3 - realisations from B(mu3,var3)) to infer the residual distribution for the model and then seeing if the actual residuals from the point predictions belong to that distribution? I've looked into Beta Regression before (there wasn't even a Wikipedia article at the time, but I see that there is now), and I really struggled to find an explanation of model diagnostics then.