Light scattered by particles much smaller than its wavelength (Rayleigh scattering)…
PHYSICS · Subjective · Fermi University Physics · Computational Physics · Monte Carlo and lattice simulation of physical systems · Monte Carlo and lattice simulation of physical systems
Computational Physics, Ch Drawing numbers: random walks and Monte Carlo
Problem
Light scattered by particles much smaller than its wavelength (Rayleigh scattering) leaves at an angle θ, measured from the incident direction, with probability density P(θ)=83(1+cos2θ)sinθ for θ∈[0,π]. Inverting this cumulative distribution means solving a cubic in cosθ for every draw, so θ is drawn instead by rejection sampling on the unnormalised density f(θ)=(1+cos2θ)sinθ, using a candidate θ∼U(0,π) and a test value y∼U(0,M), accepting whenever y≤f(θ).
(a) Show that f(θ) has its maximum where cos2θ=1/3, and evaluate that maximum. Confirm that M=1.1 is a safe envelope height.
(b) Derive the acceptance fraction (∫0πfdθ)/(πM) and evaluate it numerically, using ∫0π(1+cos2θ)sinθdθ=8/3.
(c) If the program draws N=50000 candidate pairs (θ,y), estimate the number of accepted samples and its standard error, treating acceptance as an independent event of fixed probability for each candidate.