官术网_书友最值得收藏!

Calculating the Area Under Curve (AUC)

The AUC of a classification model is defined as the probability that the model will rank a random positive example above a random negative example.

Using the confusion matrix, we can define other quantities as follows:

The True Positive Rate (TPR) or sensitivity is the the ratio of data points correctly predicted as positive, with respect to all the data points that have a true value of YES:

The False Positive Rate (FPR) or specificity is the ratio of NO data points incorrectly predicted as YES, with respect to all NO data points.

Both quantities have values in the [0, 1] range. FPR and TPR are both computed at different threshold values and a graph is constructed. The curve is known as Receiving Operating Characteristic (ROC); AUC is the area under that curve, as shown in the following figure:

If we instead want to evaluate regression models, we can use the following techniques.

主站蜘蛛池模板: 阳高县| 惠州市| 河池市| 松桃| 滦南县| 同心县| 泊头市| 临汾市| 吉林省| 万年县| 昌乐县| 高密市| 游戏| 新晃| 樟树市| 石楼县| 崇仁县| 古浪县| 浮梁县| 九龙城区| 乃东县| 义乌市| 清镇市| 道真| 高邑县| 杭锦后旗| 安化县| 武胜县| 宣城市| 天门市| 东乌| 定州市| 嵊泗县| 郧西县| 田林县| 泗水县| 洪江市| 鄂州市| 富锦市| 吴江市| 岑溪市|