TPR vs FPR 예시

CODEDRAGON Development/Big Data, R, ...

반응형



 

 

TPR vs FPR 예시

 

 

TPR 계산

 

 

Predict Negative

Predict Positive

Predict data

 

 

PN=0

PP=1

total

True Negative

TN=0

5 (TN)

2 (FP)

7 (N)

True  Positive

TP=1

3 (FN)

5 (TP)

8 (P)

Actual data

total

8

7

15

 

지표

계산값

TPR(True Positive Rate)

5/8=0.625

FPR(False Positive Rate)

2/7=0.2857

 




 

 

 

FPR 계산

 

 

Predict Negative

Predict Positive

Predict data

 

 

PN=0

PP=1

total

True Negative

TN=0

5 (TN)

2 (FP)

7 (N)

True  Positive

TP=1

3 (FN)

5 (TP)

8 (P)

Actual data

total

8

7

15

 

지표

계산값

TPR(True Positive Rate)

5/8=0.625

FPR(False Positive Rate)

2/7=0.2857