The problem comes from page 377-379 of this [0] paper.
Given a continuous distribution $F$ and a fixed $z\in\mathbb{R}$, consider:
$$L_z(t)=P_F(|z-Z|\leq t)$$
and
$$H(z)=L^{-1}_z(0.5)=\underset{Z\sim F}{\mbox{med}}|z-Z|$$
where $L^{-1}_z(u)=\inf\{t:L_z(t)>u\}$ is the right continuous inverse. So for a fixed $z$, this is the median distance of all $Z\sim F$ to $z$. Next, consider the function:
$$L(t)=P_F(H(Z)\leq t)$$
Now, I don't have an analytical expression for $H(z)$ (in fact I'm pretty sure an analytical expression for it is not possible) but given a CDF $F$ I can easily uses a root finding algorithm to obtain $H(z)$ for any given $z$.
In this application, the interest is on:
$$L^{-1}(0.5)=\underset{Z\sim F}{\mbox{med}}H(Z)$$
This is the median value of the $H(Z)$, again, for $Z\sim F$.
Right now to get $L^{-1}(0.5)$, I compute (as explained above, using a root finding algorithm) values of $H(z)$ corresponding to many values of $z$ on a grid and take the weighted median of these values of $H(z)$ (with weights $f(z)$) as my estimate of $L^{-1}(0.5)$.
My questions are:
- Is there a more accurate approach to get $L^{-1}(0.5)$ (the authors of the paper do not say how $L^{-1}(0.5)$ is computed) and
How should the grid of values of $z$ be chosen?
[0] Ola Hössjer, Peter J. Rousseeuw and Christophe Croux. Asymptotics of an estimator of a robust spread functional. Statistica Sinica 6(1996), 375-388.