From: rabbits77 on
The cauchy ditribution has pdf

f(x)=1/(pi(1+x^2))

In order to generate random observations
for this distribution we need to find
F^-1(u) which in this case is:

F(x)=arctan(x)/pi

F^-1(u)=tan(pi*u) -.5<u<.5

So, if u has uniform (-.5,.5) distribution
than X=tan(pi*U) has a cauchy distribution.
Is this correct?
From: Robert Israel on
rabbits77 <rabbits77(a)my-deja.com> writes:

> The cauchy ditribution has pdf
>
> f(x)=1/(pi(1+x^2))
>
> In order to generate random observations
> for this distribution we need to find
> F^-1(u) which in this case is:
>
> F(x)=arctan(x)/pi

Not quite. That would go to -1/2 as
x -> -infinity and +1/2 as x -> +infinity.

> F^-1(u)=tan(pi*u) -.5<u<.5
>
> So, if u has uniform (-.5,.5) distribution
> than X=tan(pi*U) has a cauchy distribution.
> Is this correct?

This result is correct, though the intermediate
steps are wrong.
--
Robert Israel israel(a)math.MyUniversitysInitials.ca
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia Vancouver, BC, Canada