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, . Positive covariance subtracts from the difference variance; negative covariance adds to it.
- Draw uncertain inputs once
- Evaluate both options
- Estimate a paired difference
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.
A saved draft is open. To run the published example, open Tools and select Restore example. Recover draft brings your code back.
Execution error
Technical error details
Your result
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?
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?
Need a hint?
Hint 1
Write the estimator whose precision matters.
Hint 2
Include the covariance term in the difference variance.