How to plot a Receiver Operating Characteristic (ROC) curve

1 回表示 (過去 30 日間)
kentridge mantsha
kentridge mantsha 2020 年 4 月 19 日
コメント済み: kentridge mantsha 2020 年 5 月 3 日
I am trying to plot a ROC Curve.
Base State: 259 650 800 983 1249 1377 1436 1550 2089 2100 2450 2690 3041 3200 3350 3441
Scenario 1: 250 500 700 850 1050 1200 1350 1500 1800 2040 2300 2400 2650 2950 3150 3440
Scenario 2: 238 560 611 950 1055 1280 1378 1528 1747 2080 2350 2550 2970 3187 3300 3420
Scenario 3: 250 550 680 900 1085 1150 1311 1543 1733 1935 2240 2400 2685 3050 3200 3400

採用された回答

Aditya Mittal
Aditya Mittal 2020 年 4 月 22 日
Hi,
It is unclear from your question that what you want help for. I am assuming that this data is your output from the Roc curve function. In such condition you want to plot the results to plot a curve.
Here is the sample code which you can use for plotting the curve.
base = [259 650 800 983 1249 1377 1436 1550 2089 2100 2450 2690 3041 3200 3350 3441];
s1 = [250 500 700 850 1050 1200 1350 1500 1800 2040 2300 2400 2650 2950 3150 3440 ];
s2 = [238 560 611 950 1055 1280 1378 1528 1747 2080 2350 2550 2970 3187 3300 3420 ];
s3 = [ 250 550 680 900 1085 1150 1311 1543 1733 1935 2240 2400 2685 3050 3200 3400];
plot(base , s1);
hold on;
plot(base , s2);
plot(base , s3);
hold off;
You can use this sample code to plot the ROC curve for the given data. For more help regarding ROC curve you can visit below link.
  3 件のコメント
Aditya Mittal
Aditya Mittal 2020 年 4 月 23 日
My Pleasure
kentridge mantsha
kentridge mantsha 2020 年 5 月 3 日
Hi.i was able to go through most of the examples, but I’m still struggling with calculating labels (scores also)for my question

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeROC - AUC についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by