My question is: how can you compute the prediction interval of a calibration curve, just like you might for any other regression model.
A calibration curve maps estimated probabilities to empirical probabilities. A fairly simple but common method seems to be fitting a piecewise constant "histogram" curve, as shown here. However, I imagine this may not work very well when the amount of data is small. On the other hand, R seems to fit some sort of spline instead for the curve.
I don't know exactly how R fits the spline curve, but fitting estimated probabilities to ground truth labels $\{0, 1\}$ corresponding to "incorrect prediction" and "correct prediction" seems to be the obvious thing to do. The problem comes when I want to measure the uncertainty in the calibration curve: if the calibration curve says that a predicted confidence of 70% really maps to 73% empirically with an 1-std prediction interval of [0.23, 1.23], the interval is NOT an interval on the empirical probability, but rather an interval on the binary labels.
In the case of a histogram calibration curve, I can get the uncertainty on the estimated empirical probability by treating it as a bernoulli random variable and computing the variance. This solution does not carry over to the case where I use another arbitrary regression model.