Let U1,U2 be independent Uniform(0,1). Define R=−2ln⁡U1, Θ=2πU2, X=Rcos⁡Θ and Y=Rsin⁡Θ. Why are X and Y independent N(0,1) variables, and what are (X,Y) for U1=0.5, U2=0.25?

Probability and statistics, Transformations of variables
Level L4 Advanced. Length Long. Nature Mat Mathematical.

What's being asked

A two-stage change of variables with a Jacobian, ending in a factorised density (the Box–Muller transform).

Key idea

With S=R2=−2ln⁡U1 and Θ independent, fS,Θ(s,θ)=12e−s/2⋅12π. Mapping (s,θ)→(x,y) has Jacobian determinant 12, which yields 12πe−(x2+y2)/2.

Steps

  1. Distribution of S=−2ln⁡U1: P(S>s)=P(U1<e−s/2)=e−s/2, so fS(s)=12e−s/2 for s>0. It is exponential with mean 2.
  2. Distribution of Θ=2πU2: uniform on (0,2π) with density 12π. It is independent of S, so fS,Θ(s,θ)=14πe−s/2.
  3. Write the map: x=scos⁡θ, y=ssin⁡θ. Then x2+y2=s. Polar coordinates give dx dy=r dr dθ, and since s=r2, ds=2r dr, so dx dy=12ds dθ.
  4. The Jacobian determinant is ∣∂(x,y)∂(s,θ)∣=12. The density transforms with its inverse: fX,Y(x,y)=fS,Θ(s,θ)/12.
  5. Substitute: fX,Y(x,y)=14πe−s/2×2=12πe−(x2+y2)/2.
  6. Factorise: =12πe−x2/2⋅12πe−y2/2. So X and Y are independent standard normals.
  7. Numbers: R=−2ln⁡0.5=1.3863≈1.177 and Θ=2π×0.25=π/2, so X=1.177cos⁡(π/2)=0 and Y=1.177sin⁡(π/2)≈1.177.

Common mistakes

How long your answer should be

One page; 10 minutes.

Last checked on 4 December 2026.

Read this

Previous in Probability and statistics: Let x=(xa,xb)∼N(μ,Σ) with partitions μ=(μa,μb) and Σ=(ΣaaΣabΣbaΣbb). How do you derive the conditional distribution of xa given xb by completing the square with the precision matrix Λ=Σ−1?
Next in Probability and statistics: Lifetimes X1,…,Xn are i.i.d. exponential with rate λ, with density λe−λx. What are the MLE and its Fisher information? For n=50 and xˉ=2, what is a 95% Wald interval for λ, and what does the delta method give for the mean lifetime 1/λ?