Ziv-Merhav Relative Entropy Estimation
The Ziv-Merhav estimator measures how different the sources of two symbol sequences are, as a relative entropy (Kullback-Leibler divergence) rate in bits per symbol, without fitting any model. It compares how many pieces one sequence needs when described with phrases copied from the other against the pieces it needs from its own past.
지브-메르하브 추정량은 두 기호 수열을 만든 정보원이 얼마나 다른지를 모형 없이 기호당 비트 단위의 상대 엔트로피(쿨백-라이블러 발산) 비율로 잽니다. 한 수열을 다른 수열에서 복사한 구절로 기술할 때 필요한 조각 수와 자기 과거만으로 기술할 때 필요한 조각 수를 비교합니다.
Do two symbol sequences, such as texts, behaviour logs or DNA, come from the same kind of source, and how far apart are those sources?
텍스트, 행동 기록, DNA 같은 두 기호 수열이 같은 종류의 정보원에서 나왔을까요? 정보원은 서로 얼마나 다를까요?
Both sequences are coded with one common set of symbols. The first is parsed by the Lempel-Ziv 1978 rule and also cross-parsed into the longest pieces found in the second sequence; the phrase counts give the estimate. Both directions are reported, together with the value the estimator gives for the two halves of each sequence as a same-source reference.
When to use Ziv-Merhav Relative Entropy Estimation
- You compare two long symbolic sequences without a parametric model.
- You want an asymmetric divergence between the sources of two sequences.
- Sequences have thousands of symbols or more.
When to use something else
- The sequences are short (a few hundred symbols): the estimate is too biased
- You compare documents in a collection: use Normalized Compression Distance
- You compare the distributions of numeric values ignoring order: use Wasserstein Distance Between Two Empirical Distributions
Assumptions and requirements
- Stationary, finite-memory sources
- Equal lengths (the longer sequence is truncated)
- Slow convergence; finite-length bias is negative
What the analysis reports
- Relative entropy estimate in both directions
- Phrase counts, entropy-rate and cross-entropy estimates
- Same-source split-half reference values
How to report it
The Ziv-Merhav estimate of the relative entropy rate of sequence [value] with respect to [value] was [value] bits per symbol (reverse direction [value]; [value] symbols each); the two halves of each sequence gave [value] and [value] bits per symbol.
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation).
독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Ziv-Merhav Relative Entropy Estimation on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and a grouping variable
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.