Learn more from fewer runsLesson 44 of 76 · 8 min

Compare options in the same possible world

Use common random numbers to reduce noise in a paired option difference.

Common random numbers reuse underlying random inputs when comparing alternatives. When outcomes move together positively, this can reduce the variance of their difference. The useful target is the difference itself, not two separately impressive-looking means.

The example estimates the change from U squared to U cubed. Under uniform U their expectations are one third and one quarter, so the exact difference is minus one twelfth. Shared and separate draws have the same target but different comparison variance.

The benefit depends on coupling the alternatives appropriately. If the outcomes move in opposite directions, sharing draws can increase difference variance. Preserve meaningful correspondence between trials and assess the variance of the actual decision statistic. For a paired difference, Var⁡(B−A)=Var⁡(B)+Var⁡(A)−2Cov⁡(A,B)\operatorname{Var}(B-A)=\operatorname{Var}(B)+\operatorname{Var}(A)-2\operatorname{Cov}(A,B). Positive covariance subtracts from the difference variance; negative covariance adds to it.

Compare policies inside the same world
  1. Draw uncertain inputs once
    XiX_i
  2. Evaluate both options
    LA(Xi),LB(Xi)L_A(X_i),\quad L_B(X_i)
  3. Estimate a paired difference
    Di=LB(Xi)−LA(Xi)D_i=L_B(X_i)-L_A(X_i)
Reference illustration. Common random numbers preserve each world across policies. Positive covariance between option losses can reduce variance of their difference; the benefit must be checked for the particular estimator.

Why can shared random inputs make a difference estimate more precise even if neither marginal estimator improves?

Write a prediction (optional)

Seeded teaching simulation

Select Run Python below with the code unchanged.

Tools
About Python ↗

The code is editable. Press Ctrl+Enter or ⌘+Enter to run Python from the editor.

Published example output

This result comes from the original Python. Your runs appear above. Build environment ↗

Exact difference: -0.08333333333333333
paired estimate: -0.08275 estimated MCSE: 0.000361
separate estimate: -0.07813 estimated MCSE: 0.002922

Read the first result

The shared-input comparison removes some common fluctuation from the difference. Pairing does not justify independence between the two option outcomes.

Try an edit

Replace u**3 - u**2 with (1-u) - u**2 and v**3 - u**2 with (1-v) - u**2 and print("Exact difference:", -1/12) with print("Exact difference:", 1/6). Select Run Python again. Compare estimated MCSE for the paired and separate rows. Why can pairing increase rather than decrease the error when the two outcomes move in opposite directions?

Back to the Python editor

Scope. This example uses an exact one-dimensional coupling. Operational models require care about which random events are meaningfully shared.

Try a fresh case

Which quantity should you inspect when judging common-random-number efficiency?

Choose an answer
Need a hint?
Hint 1

Write the estimator whose precision matters.

Hint 2

Include the covariance term in the difference variance.

Your notes