Mathematical background of statsmodels wls_prediction_std
问题 wls_prediction_std returns standard deviation and confidence interval of my fitted model data. I would need to know the way the confidence intervals are calculated from the covariance matrix. (I already tried to figure it out by looking at the source code but wasn't able to) I was hoping some of you guys could help me out by writing out the mathematical expression behind wls_prediction_std. 回答1: There should be a variation on this in any textbook, without the weights. For OLS, Greene (5th