---
title: Generalized Extropy Similarity Ratio (GESR)
url: https://www.emergentmind.com/topics/generalized-extropy-similarity-ratio-gesr
type: topic
---

# Generalized Extropy Similarity Ratio (GESR)

Generalized Extropy Similarity Ratio (GESR) denotes a family of similarity measures for probability distributions built from extropy and extropy-based inaccuracy functionals. In its general formulation, it compares two “general probability measures” \(\phi_1\) and \(\phi_2\)—taken to be a probability density function (PDF), cumulative distribution function (CDF), or survival function (SF)—through a normalized quadratic cross-functional, producing a symmetric similarity in \((0,1]\) with a direct \(L^2\)-geometric interpretation as squared cosine similarity. A terminological ambiguity is important: in a 2026 network-security paper, “GESR” instead denotes “Graph-Based Edge Semantic Reconstruction,” a benign-only graph anomaly-detection framework, and not any extropy-based similarity ratio [2508.13696] [2605.07536].

## 1. Extropy as the underlying functional

The mathematical basis of GESR lies in extropy and relative extropy. For a discrete random quantity with probability mass function \(\mathbf{p}_N=(p_1,\dots,p_N)\), extropy is
\[
J(\mathbf{p}_N) \equiv -\sum_{i=1}^N (1-p_i)\log(1-p_i).
\]
For \(N=2\), entropy and extropy coincide, while for \(N\ge 3\) with at least three positive masses, entropy exceeds extropy. In the continuous setting, differential extropy is
\[
j(f) \equiv -\frac{1}{2}\int f(x)^2\,dx,
\]
and continuous relative extropy is
\[
d^c(f\,\|\,g)=\frac{1}{2}\int (f(x)-g(x))^2\,dx=\frac{1}{2}\|f-g\|_2^2.
\]
Accordingly, half the \(L_2\) squared distance is the extropic dual to Kullback–Leibler divergence, and extropy-based similarity measures inherit a quadratic, Hilbert-space structure rather than a logarithmic one [1109.6440].

A closely related decomposition used in later extropy work expresses relative extropy through self-extropy and cross-extropy. For nonnegative absolutely continuous \(X\) and \(Y\) with densities \(f\) and \(g\),
\[
J(X)=-\frac{1}{2}\int_0^\infty f^2(x)\,dx,\qquad
\xi J(X,Y)=-\frac{1}{2}\int_0^\infty f(x)g(x)\,dx,
\]
and
\[
d(f,g)=\frac{1}{2}\int_0^\infty (f(x)-g(x))^2\,dx
      =2\xi J(X,Y)-J(X)-J(Y).
\]
This identity makes explicit that extropy-based similarity can be constructed by normalizing the cross-term \(\int f g\) relative to the two self-terms \(\int f^2\) and \(\int g^2\) [2503.07123].

## 2. Formal definition and principal variants

In the GESR framework, let \(X\) and \(Y\) be nonnegative random variables, and let \(\phi_1(x)\) and \(\phi_2(x)\) be “general probability measures” associated with \(X\) and \(Y\). The generalized extropy of \(X\) based on \(\phi_1\) is
\[
U(\phi_1(X))=-\frac{1}{2}\int_0^\infty \phi_1^2(x)\,dx,
\]
while the Generalized Extropy Inaccuracy (GEI) of \(X\) with respect to \(Y\) is
\[
U(\phi_1(X),\phi_2(Y))=-\frac{1}{2}\int_0^\infty \phi_1(x)\phi_2(x)\,dx.
\]
The Generalized Extropy Similarity Ratio is then
\[
S(\phi_1(X),\phi_2(Y))
=\frac{U(\phi_1(X),\phi_2(Y))^2}{U(\phi_1(X))\,U(\phi_2(Y))}.
\]
The corresponding asymmetric Generalized Extropy Divergence Ratios are
\[
I(\phi_1(X)|\phi_2(Y))=\frac{U(\phi_1(X),\phi_2(Y))}{U(\phi_1(X))},
\qquad
I(\phi_2(Y)|\phi_1(X))=\frac{U(\phi_1(X),\phi_2(Y))}{U(\phi_2(Y))}.
\]
GESR is thus the symmetric normalization, while GEDR is the directional normalization [2508.13696].

| Variant | Self-functional | Similarity ratio |
|---|---|---|
| Extropy-based (PDF) | \(J(X)=-\frac{1}{2}\int_0^\infty f^2(x)\,dx\) | \(S_E(X,Y)=\dfrac{(\xi J(X,Y))^2}{J(X)J(Y)}\) |
| Survival-extropy-based (SF) | \(J_s(X)=-\frac{1}{2}\int_0^\infty \bar F^2(x)\,dx\) | \(S_{SE}(X,Y)=\dfrac{(\xi J_s(X,Y))^2}{J_s(X)J_s(Y)}\) |
| Cumulative-extropy-based (CDF) | \(\bar{\xi}J(X)=-\frac{1}{2}\int_0^\infty F^2(x)\,dx\) | \(S_{CE}(X,Y)=\dfrac{(\bar{\xi}J(X,Y))^2}{\bar{\xi}J(X)\bar{\xi}J(Y)}\) |

The three specializations differ only by the choice of \(\phi\). This places density-based, survival-based, and cumulative-distribution-based similarities within a single normalization template. The same paper defines the corresponding GEDRs by replacing the symmetric product with a one-sided ratio, for example
\[
I_E(X|Y)=\frac{\xi J(X,Y)}{J(X)},\qquad
I_{SE}(X|Y)=\frac{\xi J_s(X,Y)}{J_s(X)},\qquad
I_{CE}(X|Y)=\frac{\bar{\xi}J(X,Y)}{\bar{\xi}J(X)}.
\]
[2508.13696]

## 3. Axioms, geometry, and invariance

GESR is symmetric because the cross-functional is symmetric:
\[
S(\phi_1(X),\phi_2(Y))=S(\phi_2(Y),\phi_1(X)).
\]
By Cauchy–Schwarz,
\[
0<S(\phi_1(X),\phi_2(Y))\le 1.
\]
For a single distribution,
\[
S(\phi_1(X),\phi_1(X))=1,
\]
and for the PDF-based version,
\[
S_E(X,Y)=1 \quad\text{if and only if}\quad f(x)=g(x)\ \text{for all }x.
\]
GESR therefore measures maximal similarity at equality and otherwise records normalized non-orthogonality in \(L^2\) [2508.13696].

Its geometric interpretation is explicit. With
\[
\langle f,g\rangle=\int_0^\infty f(x)g(x)\,dx,\qquad
\|f\|=\left(\int_0^\infty f^2(x)\,dx\right)^{1/2},
\]
cosine similarity between functions is
\[
\cos\theta=\frac{\langle f,g\rangle}{\|f\|\,\|g\|}.
\]
Because the constant factor \(-\tfrac12\) cancels in the normalization,
\[
S(\phi_1(X),\phi_2(Y))
=
\frac{\left(\int_0^\infty \phi_1(x)\phi_2(x)\,dx\right)^2}
{\left(\int_0^\infty \phi_1^2(x)\,dx\right)\left(\int_0^\infty \phi_2^2(x)\,dx\right)}
=
\cos^2\theta.
\]
GESR is therefore the squared cosine similarity between probability functions in \(L^2([0,\infty))\), whether those functions are PDFs, CDFs, or SFs [2508.13696].

The same framework yields two invariance properties. If \(X_a=aX\) and \(Y_a=aY\) with \(a>0\), then
\[
I(aX|aY)=I(X|Y),\qquad S(aX,aY)=S(X,Y).
\]
If \(X'=X+a\) and \(Y'=Y+a\) for a common shift \(a\), then
\[
I(X'|Y')=I(X|Y),\qquad S(X',Y')=S(X,Y).
\]
GESR is thus shape-sensitive but scale-invariant and invariant under common location shifts [2508.13696].

## 4. Reliability-model bounds and relation to GEDR

GESR is exactly the product of the two directional GEDRs:
\[
S(\phi_1(X),\phi_2(Y))
=
I(\phi_1(X)|\phi_2(Y))\,I(\phi_2(Y)|\phi_1(X)).
\]
In the three main specializations,
\[
S_E(X,Y)=I_E(X|Y)I_E(Y|X),\qquad
S_{SE}(X,Y)=I_{SE}(X|Y)I_{SE}(Y|X),\qquad
S_{CE}(X,Y)=I_{CE}(X|Y)I_{CE}(Y|X).
\]
This decomposition distinguishes similarity from directional divergence: GESR is symmetric by construction, whereas GEDR may exceed or fall below \(1\) depending on direction [2508.13696].

Under the proportional hazards model, with
\[
h_Y(x)=c\,h_X(x),\qquad c>0,
\]
equivalently
\[
\bar G(x)=\bar F^c(x),
\]
the paper derives explicit inequalities. For \(c>1\), the extropy-divergence ratios satisfy
\[
I_E(X|Y)<c,\qquad I_E(Y|X)>\frac{1}{c},
\]
and for the survival-extropy version,
\[
I_{SE}(X|Y)<1,\qquad I_{SE}(Y|X)>1.
\]
The corresponding similarity ratios remain bounded by \(1\), and equality occurs if and only if \(X\stackrel{d}{=}Y\), that is, \(c=1\). These results connect similarity directly to hazard proportionality rather than merely to raw overlap [2508.13696].

Under the proportional reversed hazards model,
\[
\lambda_Y(x)=c\,\lambda_X(x),\qquad G(x)=F^c(x),
\]
the cumulative-extropy divergence ratios reverse the directional pattern for \(c>1\):
\[
I_{CE}(X|Y)>1,\qquad I_{CE}(Y|X)<1,
\]
while
\[
S_{CE}(X,Y)\le 1,
\]
with equality if and only if \(c=1\). The proportional generalized extropy model further imposes
\[
U(\phi_2(Y))=c\,U(\phi_1(X)),
\]
which yields
\[
I(\phi_2(Y)|\phi_1(X))=\frac{1}{c}I(\phi_1(X)|\phi_2(Y))
\]
and consequently
\[
S(\phi_1(X),\phi_2(Y))=\frac{1}{c}\bigl(I(\phi_1(X)|\phi_2(Y))\bigr)^2.
\]
These formulas make GESR a natural summary of two asymmetric divergence ratios under model-based ordering assumptions [2508.13696].

## 5. Estimation and empirical use

For the PDF-based similarity \(S_E\), the paper proposes kernel-density estimation. Given independent samples \(X_1,\dots,X_n\sim f\) and \(Y_1,\dots,Y_n\sim g\), with kernel \(k\) and bandwidth \(b_n\),
\[
\hat f_n(x)=\frac{1}{n b_n}\sum_{j=1}^n k\!\left(\frac{x-X_j}{b_n}\right),\qquad
\hat g_n(x)=\frac{1}{n b_n}\sum_{j=1}^n k\!\left(\frac{x-Y_j}{b_n}\right),
\]
and the estimator is
\[
\hat S_E=
\frac{\left(\int_0^\infty \hat f_n(x)\hat g_n(x)\,dx\right)^2}
{\left(\int_0^\infty \hat f_n^2(x)\,dx\right)\left(\int_0^\infty \hat g_n^2(x)\,dx\right)}.
\]
For \(S_{SE}\) and \(S_{CE}\), the paper uses empirical survival and empirical distribution functions on pooled grids, replacing the integrals by numerical sums. Under standard regularity conditions, the estimators are consistent [2508.13696].

Simulation studies evaluate these estimators for three benchmark cases. For \(S_E\), the paper uses \(\mathrm{Beta}(3,2)\) and \(\mathrm{Beta}(2,3)\), with true value \(0.5625\). For \(S_{SE}\), it uses exponential distributions with \(\lambda_X=1\) and \(\lambda_Y=2\), with true value \(0.8889\). For \(S_{CE}\), it uses Uniform\((0,1)\) and \(\mathrm{Beta}(3,2)\), with true value \(0.94501\). Across sample sizes \(n=50,75,100,200\), reported biases and MSEs decrease with \(n\). For example, the bias for \(S_E\) decreases from about \(0.045\) at \(n=50\) to about \(0.005\) at \(n=200\), and the bias for \(S_{SE}\) decreases from \(0.0125\) to \(0.0002\) over the same range [2508.13696].

Two applications are emphasized. In lifetime data analysis, the paper studies the Lagakos–Mosteller mice experiment and computes similarity across control, low-dose, medium-dose, and high-dose groups. Representative values include high similarity for Control vs Low, such as \(\hat S_{SE}\approx 0.963\) and \(\hat S_E\approx 0.973\), and lower similarity for Control vs High, such as \(\hat S_{SE}\approx 0.906\) and \(\hat S_E\approx 0.899\). In image analysis, grayscale images are treated as random variables on normalized pixel intensities, and the paper shows that \(S_E\), \(S_{SE}\), and \(S_{CE}\) remain unchanged under uniform exposure scaling. For example,
\[
\hat S_{SE}(A,B)=0.9815471
\]
and
\[
\hat S_{SE}(A_{0.25},B_{0.25})=0.9815471.
\]
Using a uniformly black image as reference, the paper then assigns exposure-invariant similarity signatures to image groups and proposes a classification procedure based on \(S_{SE}(Z,\cdot)\) [2508.13696].

## 6. Position within the broader extropy literature

GESR belongs to a broader family of extropy-based constructions in which ratios, normalized comparisons, and conditional variants already play a central role. In the theory of cumulative residual and cumulative past extropy for extreme order statistics, the ratios
\[
\frac{\varepsilon J(X_{1:n})}{E(X_{1:n})}
\quad\text{and}\quad
\frac{\overline\varepsilon J(X_{n:n})}{\overline\varepsilon J(X)}
\]
characterize, respectively, scale families and location-scale families. The same literature also studies dynamic cumulative residual extropy and dynamic cumulative past extropy, showing that these measures determine the distribution uniquely under suitable conditions [2004.12787].

Later work in extreme-value theory gives explicit benchmarks for extropy in the maxima regime. For a GEV distribution \(G_\xi\),
\[
J(G_\xi)=-\frac{1}{2(\xi+3)},\qquad \xi>-2,
\]
and in the Gumbel case,
\[
J(G_0)=-\frac{1}{6}.
\]
The same paper shows that, under log-concavity, the exponential distribution is the unique model maximizing the limiting extropy of the maximum, with upper limit bound
\[
UB_J=-\frac{1}{4}.
\]
This suggests that similarity ratios normalized against extropy benchmarks can be interpreted as closeness to canonical tail regimes, although that benchmarking step is separate from the formal definition of GESR itself [2507.13656].

Other generalizations broaden the admissible extropy functional. Tsallis extropy for a discrete random variable is
\[
JS_\alpha(X)=\frac{1}{\alpha-1}\left(N-1-\sum_{i=1}^N (1-p_i)^\alpha\right),\qquad \alpha>0,\ \alpha\neq 1,
\]
with
\[
\lim_{\alpha\to 1}JS_\alpha(X)=J(X).
\]
It satisfies
\[
0\le JS_\alpha(X)<1,
\]
coincides with Tsallis entropy for Bernoulli distributions, and for all discrete distributions when \(\alpha=2\). In application, it is used as a measure of discrimination in pattern recognition, with lower extropy corresponding to higher feature weight [2103.07168].

Conditional and weighted extropy add further structure. General weighted extropy is
\[
J_w(Y)=-\int w(y)\,g_Y^2(y)\,dy,
\]
and conditional extropy on an interval \(S=(c,d)\) is
\[
J(Y\mid S)=-\int_c^d g_{Y\mid S}^2(y)\,dy.
\]
Under log-concavity assumptions, \(J(Y\mid S)\) is increasing in \(d\) for fixed \(c\), and conditional general weighted extropy of \(V=|Y_1-Y_2|\) is partially increasing in \(S\) for decreasing \(w(v)\). Dynamic relative extropy for residual and past lifetimes extends the quadratic divergence to time-conditioned settings through
\[
d_r(f,g,t)=\frac{1}{2}\int_t^\infty
\left(\frac{f(x)}{\bar F(t)}-\frac{g(x)}{\bar G(t)}\right)^2 dx
\]
and its past analogue, together with kernel-based estimation and decomposition into directed extropy divergences [2301.00659] [2503.07123].

Taken together, these results show that GESR is not an isolated construct but a normalization of a mature extropy calculus built around quadratic functionals, cross-extropy terms, and ratio-type characterizations. A plausible implication is that its main novelty lies less in introducing a new underlying uncertainty functional than in recasting existing extropy machinery into an explicitly symmetric, bounded, and geometrically interpretable similarity ratio [2508.13696].

Source: https://www.emergentmind.com/topics/generalized-extropy-similarity-ratio-gesr