二分類binary classification
規劃矩陣confusion matrix用於比較實際情況與預測值
- 雷達識別
以雷達圖中陰影大小打分,並按從大到小排序
在所有探測中,3次紅色爲轟炸機,17次爲飛鳥
以80爲閾值threshold的混淆矩陣:
以70爲閾值的混淆矩陣:
- 患病概率
某種病在人羣中的發病率爲1%
TP rate = 0.0095/0.01 = 95%
TN rate = 0.792/0.99 = 8%
但這並不是我們想要的數據,TP rate是P(positive/+),即患病情況下檢查出患病的概率,TN rate是P(negative/-),即不患病情況下檢查出不患病的概率。我們想要知道的是P(+/positive)和P(-/negative),即檢查出患病/不患病情況下實際患病/不患病的概率,稱爲positive/negative predictive value of a test
P(+/positive) = 0.0095/0.2075 = 4.58%
P(-/negative) = 0.792/0/7925 = 99.937%
1-P(-/negative) = 0.063%
即有0.063%的可能性患病。