# Calibration curve motivation

I struggle to understand the mathematical motivation for the binary classification model calibration curve. Why do we assume that the predicted probabilities should be consistent with the proportion of 1's in the probability bin (# of 1's in the bin)/(total # of samples in the bin) ? It's obvious for Decision Tree where the (# of 1's in the bin)/(total # of samples in the bin) ratio is explicitly the model output, but how is this related to the other models? How to show that this ratio and predicted probabilities should be equal?

• What class ratio are you assuming? That the output of a binary classification is binary?
– WBM
Mar 19 '21 at 12:58
• Thanks for pointing this out, I was incorrect when asked the question, now I've edited it. I mean the ratio of 1's to total number of samples in the probability bin Mar 19 '21 at 13:53
• That is the empirical probability of the event in the bin. Mar 21 '21 at 22:30
• I really can't embrace this idea, why should the probability, that we took the item with class 1 (p = #1/#total) from the bin, be equal the probability that the given item from the bin belongs to class 1. But maybe now I can after writtinig this... Mar 22 '21 at 9:40