Background:
I have a dataset with about 2500 rows. I need to get the 95% confidence interval for my ROCs. I have trained this model on 80% of the data and 20% is for testing.
Where I am stuck:
Method 1
I am confused about how we get the CI for this classifier. From my understanding we can use a bootstrap method to obtain this. What is confusing for me is that some folk resample (with replacement) the dataset and fit the model to that resampled dataset. Then compute the ROC and get the AUC. Do this about n times and build a histogram of the AUCs as shown here, here, and here.
Method 2
I have seen others have trained a single model on the training data and then are tested using the test set to produce y_true and y_pred for the test set. We then sample the y_true and y_pred compute the ROC and get the AUC. Do this about n times and build a histogram of the AUCs as shown here, and here (Granted they use the pROC but only on single models y_test and y_pred)
Questions:
- What are the differences between the two?
- Why choose one over the other?
- What about a complex model that takes time to train and may be infeasible to do lots of iterations?