The assertion is false for the algorithm as printed. Its second output depends only on . For its sine factor is nonnegative. For , its radius is at most , so in every case . Therefore , whereas a standard normal variable has positive probability below . The printed output cannot be a pair of independent standard normals.
The minimal correction is to use in both logarithms. Let , , and set , . Independence of gives independent with densities for and for the angle. The polar-coordinate Jacobian is , so the joint Cartesian density isThis proves independent standard normal outputs for the corrected Box-Muller transform. The private transcription retains the source's original and records this correction separately.
For the independent standard normals stipulated in this part, simulate values and average the exceedance indicators:Each indicator is Bernoulli with probability , so expectation and independence giveThus the Monte Carlo estimator is unbiased.
Let denote the standard normal density. Under the shifted sampling density , the likelihood ratio is . Simulate independent and useMultiplying the weight by restores the original density, so each summand has expectation . The estimator is unbiased. For the second moment,because . Since ,For , and , so , proving . Nonnegativity of variance also implies ; division by the positive gives
Articles by others on the same topic
There are currently no matching articles.