フィルターのクリア

how to compar AUC when it give negative value, I use trapz(x,y) to calculate it

39 ビュー (過去 30 日間)
Amirah
Amirah 2015 年 6 月 26 日
回答済み: Harshan Ravi 2021 年 1 月 5 日
Q: when I calculate the area under curve using trapz function some of them was negative value ( so I thought parts below the axis are negative and those above are positive), I know because it is area we remove the sign. however in case I want to compare this auc with another auc, does I keep the sign or just take the absolute value ? thanks Amirah
  4 件のコメント
Eldhose Poulose
Eldhose Poulose 2020 年 1 月 13 日
Can I say AUC of a coin flip be Linear and always Positive?
the cyclist
the cyclist 2020 年 1 月 14 日
Do you mean if you flip a coin a number of times, and try to predict the outcome?
AUC is a number. It is the area under the curve -- not the curve itself. That number will always be positive.
Do you mean will the ROC curve be linear? On average, the curve will be linear from the bottom left to the upper right. But for any given experiment, it will deviate from that line, due to sampling error.

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

回答 (1 件)

Harshan Ravi
Harshan Ravi 2021 年 1 月 5 日
Its the trapz function expects the input. The function requires vector in x axis in an increasing order and their values in corresponding y-axis. Eventhough, the order of the x and y doesnot matter for plotting, it is important for trapz.

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by