ArticleslgStudy

mathematics

Marsaglia polar method

Marsaglia polar method is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Marsaglia polar method rather than just read about it. In short: The Marsaglia polar method is a pseudo-random number sampling method for generating a pair of independent standard normal random variables. Standard normal random variables are frequently used in computer science, computational statistics, and in particular, in applications of the Monte Carlo method.

Key takeaways

  • Marsaglia polar method belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Marsaglia polar method to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Marsaglia polar method from memory before moving on to harder problems.

Reference excerpt

The Marsaglia polar method is a pseudo-random number sampling method for generating a pair of independent standard normal random variables. Standard normal random variables are frequently used in computer science, computational statistics, and in particular, in applications of the Monte Carlo method. The polar method works by choosing random points (x, y) in the square −1 < x < 1, −1 < y < 1 until

0 < s = x 2 + y 2 < 1 , {\displaystyle 0<s=x^{2}+y^{2}<1,\,}

and then returning the required pair of normal random variables as

x − 2 ln ⁡ ( s ) s , y − 2 ln ⁡ ( s ) s , {\displaystyle x{\sqrt {\frac {-2\ln(s)}{s}}}\,,\ \ y{\sqrt {\frac {-2\ln(s)}{s}}},}

or, equivalently,

x s − 2 ln ⁡ ( s ) , y s − 2 ln ⁡ ( s ) , {\displaystyle {\frac {x}{\sqrt {s}}}{\sqrt {-2\ln(s)}}\,,\ \ {\frac {y}{\sqrt {s}}}{\sqrt {-2\ln(s)}},}

where x / s {\displaystyle x/{\sqrt {s}}} and y / s {\displaystyle y/{\sqrt {s}}} represent the cosine and sine of the angle that the vector (x, y) makes with x axis.

Theoretical basis The underlying theory may be summarized as follows: If u is uniformly distributed in the interval 0 ≤ u < 1, then the point (cos(2πu), sin(2πu)) is uniformly distributed on the unit circumference x2 + y2 = 1, and multiplying that point by an independent random variable ρ whose distribution is

Pr ( ρ < a ) = ∫ 0 a r e − r 2 / 2 d r {\displaystyle \Pr(\rho <a)=\int _{0}^{a}re^{-r^{2}/2}\,dr}

will produce a point

( ρ cos ⁡ ( 2 π u ) , ρ sin ⁡ ( 2 π u ) ) {\displaystyle \left(\rho \cos(2\pi u),\rho \sin(2\pi u)\right)}

whose coordinates are jointly distributed as two independent standard normal random variables.

History This idea dates back to Laplace, whom Gauss credits with finding the above

I = ∫ − ∞ ∞ e − x 2 / 2 d x {\displaystyle I=\int _{-\infty }^{\infty }e^{-x^{2}/2}\,dx}

by taking the square root of

I 2 = ∫ − ∞ ∞ ∫ − ∞ ∞ e − ( x 2 + y 2 ) / 2 d x d y = ∫ 0 2 π ∫ 0 ∞ r e − r 2 / 2 d r d θ . {\displaystyle I^{2}=\int _{-\infty }^{\infty }\int _{-\infty }^{\infty }e^{-(x^{2}+y^{2})/2}\,dx\,dy=\int _{0}^{2\pi }\int _{0}^{\infty }re^{-r^{2}/2}\,dr\,d\theta .}

The transformation to polar coordinates makes evident that θ is uniformly distributed (constant density) from 0 to 2π, and that the radial distance r has density

r e − r 2 / 2 . {\displaystyle re^{-r^{2}/2}.\,}

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Marsaglia polar method

Start with the simplest possible case. Write down what Marsaglia polar method claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Marsaglia polar method before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Marsaglia polar method ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Marsaglia polar method

In research
Marsaglia polar method appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Marsaglia polar method in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Marsaglia polar method is common in secondary-school and first-year university syllabi. It links to neighbouring topics Monte Carlo methods, Non-uniform random numbers, Pseudorandom number generators, so understanding it makes those chapters shorter.
In everyday life
Look for Marsaglia polar method outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Marsaglia polar method” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Marsaglia polar method in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Marsaglia polar method means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Marsaglia polar method out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Marsaglia polar method in simple terms?

The Marsaglia polar method is a pseudo-random number sampling method for generating a pair of independent standard normal random variables. Standard normal random variables are frequently used in computer science, computational statistics, and in particular, in applications of the Monte Carlo metho…

Why does Marsaglia polar method matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Marsaglia polar method?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Marsaglia polar method.

Tags

  • Monte Carlo methods
  • Non-uniform random numbers
  • Pseudorandom number generators

Keep exploring