Sensitivity 민감도 = TP/(TP+FN)
Specificity 특이성 = TN/(TN+FP)
Accuracy 정확도 = (TPs + TNs)/(Ts+Ns)
예제 MTE: Junk Food Tester
You are working for a school as a data scientist and your job is to make an AI model for lunch menus called Junk Food Tester (JFT), which will generate an alarm for Junk Food. JFT will scan each image of food and will generate either + or - result.
Here is the result after scanning 500 food images
- There are 100 Junk Food and 400 non-Junk Food images.
- From 100 Junk Food images, 90 were classified as Junk Food.
- From 400 non-Junk Food images, 100 were classified as Junk Food.
TP: 90FP: 10TN: 300
FN: 100
Sensitivity = 90/(90+100) = 90/190 = 0.47
Specificity = 300/(300+10) = 300/310 = 0.97
Accuracy = (Sensitivity+Specificity)/2 = 0.72 혹은 (TPs+TNs)/(Ts+Ns) = (90+300)/500 = 0.78
+ 추가내용
Predictive Value
Positive Predictive Value (PPV, PV+): the likelihood that the prediction is correct if the test result is positive.
Negative Predictive Value (NPV, PV-): the likelihood that the prediction is correct if the test result is negative.
'Data Science > R' 카테고리의 다른 글
[R 통계분석] Supervised VS Unsupervised Learning (0) | 2021.12.09 |
---|---|
[R통계분석] t 검정 (t-test) (0) | 2021.12.09 |
[R통계분석] 가설검정: 귀무가설, 대립가설, p값 (0) | 2021.12.08 |
[R통계분석] 통계분석의 기초 및 데이터 분석 변수의 종류 (0) | 2021.12.08 |
[R 언어] sensitivity and specificity (0) | 2021.11.17 |