Cauchy Distribution Sample Generator

Cauchy Distribution Sample Generator

Generate random samples from a Cauchy distribution using: $$ x = x_0 + \gamma \tan\Bigl(\pi\Bigl(U-\frac{1}{2}\Bigr)\Bigr). $$

* Enter the location \( x_0 \), scale \( \gamma \) (\(\gamma > 0\)), and desired sample size.

Step 1: Enter Parameters

e.g., 0

e.g., 1 (\(\gamma\) must be > 0)

e.g., 1000

Samples are generated using the inverse transform method: $$ x = x_0 + \gamma \tan\Bigl(\pi\Bigl(U-\frac{1}{2}\Bigr)\Bigr). $$

Related Calculators