Let $X, Y$ be independent random variables where $X \sim Beta(\alpha_1,\beta_1)$, $Y \sim Beta(\alpha_2,\beta_2)$, and $Z = X/Y$.
Recall $X, Y$ are supported on $(0,1)$, so $z > 0$.
I've computed several $pdf$'s of the distribution of $Z$ (for varying Beta's) using a formula from a paper I found and paid for online, and have discovered to my dismay that the median of $Z$ is $1$.
I would love to submit my code but don't want to give away this formula because it costs \$48, but let's just say I am very sure there are no errors in it. For one thing, the area under the curve on $(0,\infty)$ is approximately $1$ (within 1e-8 according to Python's scipy.integrate.quad function) when I test several values for $\alpha_i,\beta_i$.
My question is: Is this correct? Expected? Obvious even? Possibly obvious from the [hidden] formula which I'd assume most academics have access to?
*Note: The reason this is surprising is because while the mean of the distribution behaves as one might expect: $\mathbb{E}X_1/\mathbb{E}Y_1 \leq \mathbb{E}X_2/\mathbb{E}Y_2 \implies \mathbb{E}Z_1 \leq \mathbb{E}Z_2$, the median does not seem to budge.
Happy to provide screenshots if anyone is interested.