Bayes Error Calculator
Free online bayes error calculator. Enter your values and get instant results with the formula, step-by-step working, a worked example and FAQs — everything runs locally in your browser on Calcton, no signup required.
中文版:贝叶斯错误率计算器
原理:两类先验各半时,最优分类器按似然比判定,错误率 P_e = (1 − TVD(p,q))/2,其中 TVD = 0.5·Σ|p_i − q_i| 是两分布的总变差距离。分布完全重叠(TVD = 0)时错误率 0.5 等于瞎猜;完全分离(TVD = 1)时零错误。
步骤:① 输入两个类别的条件分布;② 点击计算;③ 读出 TVD 与最优错误率。
示例:p = (0.7, 0.3)、q = (0.2, 0.8) 时 TVD = 0.5、P_e = 0.25——任何分类器平均至少错四分之一;p = q 时 P_e = 0.5。
注意事项:这是给定分布下的理论下界,实际分类器只会更差;先验不等时错误率公式不同(改为按先验加权比较);连续情形把求和换成积分,同方差高斯时有闭式 P_e = Φ(−d/(2σ))。
相关:KL 散度计算器给出另一常用的分布差异度量(非对称);敏感度特异度计算器从混淆矩阵角度评估分类;正态分布计算器处理连续判别问题。
How to use the Bayes Error Calculator
- Fill in the inputs with your own numbers — every field shows what it expects.
- The result updates instantly as you type; no "Calculate" click needed.
- Read the result card for the main figure, the step-by-step formula, and practical notes.
Frequently asked questions
Is the Bayes Error Calculator free?
Yes — all math calculators on Calcton are free, with no sign-up required. Your inputs are processed in your browser and never sent to a server.
Is there a Chinese version of this tool?
Yes. Use the Chinese version link above — it is the same calculator with the interface in Simplified Chinese.
References
Formulas and benchmarks used by this calculator follow these published sources.
KevinContent LeadCalcton Editorial Team · Last updated 2026-10-06
Kevin maintains Calcton's formula verification and content: every calculator cites the standard it implements, worked examples are recomputed programmatically, and health benchmarks follow WHO and international guidelines.
Related calculators
More in this category: Math calculators
About math calculators
Free online math calculators for algebra, statistics, number theory and everyday arithmetic — from quadratic equations and matrices to percentages, fractions and prime factorization, each with step-by-step formulas.