I am trying to generate random numbers from a two-sided Pareto distribution. The paper I'm replicating states that the following two-sided Pareto density function is used:
$$ 1-f(x) = f(-x) = \frac{1}{2}x^{-3}, \quad \quad \quad x \geq 1 $$
Therefore the cdf $F$ should look like
$$ F(x) = 1 - \frac{1}{2}x^{-3}, \quad \quad \quad x \geq 1$$
What I did was to first create the inverse and plug in uniform random variables, so we have
$$ x = F^{-1}(u) = (2(1-u))^{-1/3} $$
But since we have the restriction $ x\geq 1$ I only generate uniform variables on the interval $ \frac{1}{2} \leq u < 1 $
When sampling via this method in matlab I'm not getting the same results and I'm sure I'm doing something wrong here, I think I'm now sampling from just one side of the probability function and not the other, but I don't know how to do it correct. Can someone help me out?