跳转到主要内容
Calcton

Hellinger Distance Calculator

Free online hellinger distance 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.

中文版:Hellinger 距离计算器

Hellinger Distance Calculator
分布 p(逗号分隔,和为 1)
分布 q(逗号分隔,和为 1,项数相同)

原理:Hellinger 距离 H(p, q) = √(1 − BC),其中 BC 是 Bhattacharyya 系数;等价定义 H = (1/√2)·√(Σ(√p_i − √q_i)²)。先把概率开平方再比欧氏距离,使小概率的差异被放大、大概率被压缩。

步骤:① 输入两个分布;② 点击计算;③ 读出 BC 与 Hellinger 距离。

示例:p = (0.7, 0.3)、q = (0.2, 0.8) 时 BC = 0.864063687234、H = 0.36869542005;p = (0.5, 0.5)、q = (0.9, 0.1) 时 H = 0.324919696233。

注意事项:H 取值 0 到 1,1 表示支撑完全分离;H 是真正的度量(对称、三角不等式成立);对零概率鲁棒——开平方把零映射为零;机器学习里它常用于分布漂移检测与生成模型评估;对高斯分布有解析式(均值差与方差比)。

相关:巴氏距离计算器给同一系数的对数口径;总变差距离计算器是线性口径的有界对称距离;Jensen-Shannon 计算器是度量化的对数口径。

How to use the Hellinger Distance Calculator

  1. Fill in the inputs with your own numbers — every field shows what it expects.
  2. The result updates instantly as you type; no "Calculate" click needed.
  3. Read the result card for the main figure, the step-by-step formula, and practical notes.

Frequently asked questions

Is the Hellinger Distance 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.

  1. dlmf.nist.gov
  2. mathworld.wolfram.com
Kevin's profile

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.

搜索计算器

搜索全站计算器、分类与页面,回车直达