I've read all answers and comments here: Why does logistic regression produce well-calibrated models? but still not clear about the answer.
Can someone please elaborate why the following equation means model is well calibrated?
The two sides of above equation are sum of products. I don't quite understand why we can take off the equation and have
Thank you very much!