# 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
Commented Mar 19, 2021 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 Commented Mar 19, 2021 at 13:53
• That is the empirical probability of the event in the bin. Commented Mar 21, 2021 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... Commented Mar 22, 2021 at 9:40