本文へスキップ

混同行列計算機

数学電卓

正解率・適合率・再現率・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%
F値89.5%
特異度 Specificity99.4%
偽陽性率FPR0.6%
陰性的中率 NPV98.4%
総標本数1000

これらの指標はどう計算されるか

  1. 1行 = 予測クラス、列 = 真のクラス。TP/TN は正しく判定した部分;FP(第一種過誤)と FN(第二種過誤)は2種類の過誤。
  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/ja/c/math/confusion-matrix

本ツールが提供する結果は参考用であり、専門的な助言を構成するものではありません。公式の計算結果を優先してください。