eqdisco.analysis.prediction_intervals#
- eqdisco.analysis.prediction_intervals(equation, X_train, y_train, X_new, alpha=0.05, kind='prediction')[source]#
Delta-method intervals of the model output at
X_new.kind="confidence"gives the band of the mean response (\(\mathbf g^{\mathsf T}\mathrm{Cov}\,\mathbf g\)),"prediction"adds the residual variance for a new observation. Returns(yhat, lower, upper).