ROC curve using following data in Matlab. Also find the areainside the curve.
Please used threshold 1 to 6.
ratingtruth611030204110411020
Answer
Plot the ROC curves on the same graph:plot(Xlog,Ylog)hold onplot(Xsvm,Ysvm)plot(Xnb,Ynb)legend(‘Logistic Regression’,’Support Vector Machines’,’Naive Bayes’,’Location’,’Best’)xlabel(‘False positive rate’); ylabel(‘True positive rate’);title(‘ROC Curves for Logistic Regression, SVM, and Naive Bayes Classification’)hold of