跳到主內容

混淆矩陣計算機

數學計算機

準確率、精確率、召回率、F1值等8項指標

答案速覽

Confusion Matrix Calculator: Accuracy/precision/recall/F1 · 8 metrics. Confusion Matrix Calculator uses standard math formulas to compute accurate results instantly.

準確率 Accuracy98.0%
精確率 Precision94.4%
召回率 / 靈敏度85.0%
F1 分數89.5%
特異度Specificity99.4%
假陽性率 FPR0.6%
陰性預測值 NPV98.4%
總樣本數1000

這些指標是怎麼算的

  1. 1行 = 預測類別,列 = 真實類別。TP/TN 是判對的部分;FP(第一類錯誤)與 FN(第二類錯誤)是兩類錯誤。
  2. 2Accuracy = (TP+TN)/total = (85+895)/1000 = 98.0%.
  3. 3Precision = TP/(TP+FP)(predicted positive correctness)= 94.4%; Recall = TP/(TP+FN)(actual positives found)= 85.0%.
  4. 4F1 = 2·P·R/(P+R) — harmonic mean punishes imbalance; here F1 = 89.5%.
  • 類別不平衡陷阱:正例僅 1% 時,「永遠預測負類」的模型準確率高達 99% 但召回率為 0——務必同時看精確率與召回率。
  • 精確率與召回率此消彼長:提高判定閾值則精確率升、召回率降;F1 取平衡,Fβ(β>1)更偏重召回。
  • 靈敏度=召回率(TPR);特異度=真陰性率(TNR)。醫學篩查追求高靈敏度(漏診少),確診實驗追求高精確率(誤診少)。
  • 混淆矩陣不止2×2——多分類是N×N,逐類計算精確率/召回率後取巨平均或加權平均。

這個工具對你有幫助嗎?

怎麼用

  1. Enter values or expressions: type directly into the Confusion Matrix Calculator — keyboard friendly.
  2. Instant results: everything computes live as you type, no button needed.
  3. Follow the steps: the result panel shows full working and formula substitution.
  4. Copy or recompute: one-click copy; change any input to recalculate instantly.

核心要點

  • Confusion Matrix Calculator is a free online math tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: Accuracy/precision/recall/F1 · 8 metrics.
  • Results come with formulas and reference tables so you can verify every number.

原理與公式

Confusion Matrix Calculator formula

Confusion Matrix Calculator uses standard math formulas to compute accurate results instantly.

常見問題

How do I use the Confusion Matrix Calculator?
Open the page and fill in the input fields — results update automatically. Accuracy/precision/recall/F1 · 8 metrics.
Are the results accurate?
Yes. All calculations use standard mathematical formulas and are verified for accuracy.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required — just open and use.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. All calculations run locally in your browser. Nothing is uploaded or stored.

相關工具

相關指南

來源與更新

Standard mathematical formulas. All logic verified. Last updated: 2025-07

最近更新:

本頁公式與內容經YiJianSuan團隊覆核,僅供學習參考,實際業務請以官方口徑為準。

內容由YiJianSuan編輯團隊維護並定期覆核,更新與審核流程詳見編輯規範.

引用本頁: YiJianSuan. 混淆矩陣計算機[EB/OL]. https://www.yijiansuan.com/zh-TW/c/math/confusion-matrix

本工具提供的結果僅供參考,不構成任何專業建議,請以官方核算為準。