When applying KS-test (as goodness-of-fit test) on logistic regression (class: 0,1), where x-axis = probability of being classified as class 1, sorting ascendingly. Here are the 2 questions:
1. Why are the 2 curves to plot are TPR, FPR? AFAK, usually two curves should be the cdf of 2 classes w.r.t. different thresholds on x-axis?
2. Why is the ks-value = max(TPR-FPR)? According to (1), these two rates would ignore the counts for TP and TN, right? If max(TPR-FPR) stands, what's the proof and derivation behind?
Troubled quite a while as there's limited explanation from googling...any help please?? Thanks in advance!
