Introduction
In our recent lessons, we've built a powerful collection of variance reduction techniques. We started with implicit capture to prevent premature termination, moved to importance-based splitting and Russian roulette to direct particles towards significant regions, and most recently, used forced collisions to ensure interactions happen in optically thin areas. A common side effect of these methods is that they create a wide distribution of particle weights. If not managed, this can become inefficient; a history might spend significant time tracking a particle with a minuscule weight that barely contributes to the tally, or a single particle with a very large weight could cause a large, undesirable spike in the variance.
This lesson introduces weight windows, a robust and widely used technique that directly addresses this problem. You will learn how weight windows systematically control the particle population by combining splitting and Russian roulette into a single, automated framework. By defining an "acceptable" range of weights for each region of the problem's phase space, this method effectively tames the weight fluctuations introduced by other biasing schemes, dramatically improving the overall efficiency and stability of a simulation.
The Weight Window Mechanism
The core idea of a weight window is to establish a lower and upper bound for particle weights in every distinct region of phase space (i.e., for each geometric cell and energy range). As a particle is transported, its weight is checked against the window of its current location. Three outcomes are possible:
- Weight Above Window: If the particle's weight is greater than the upper weight bound , the particle is split. It is replaced by new particles, each with weight . The number of split particles, , is chosen such that the new weight is within the window.
- Weight Below Window: If the particle's weight is less than the lower weight bound , Russian roulette is played. With a survival probability of , the particle survives and its weight is increased to a survival weight . With probability , the particle is terminated. The survival weight is typically set to a value within the window.
- Weight Inside Window: If , no action is taken. The particle's weight is considered acceptable, and it continues its journey.
This process ensures that computational effort is not wasted on low-weight particles and that high-weight particles do not dominate the statistics. The following diagram illustrates this logic clearly.

To get a more formal understanding of the mechanics, we'll turn to a classic technical report from Los Alamos that details variance reduction techniques in the MCNP code. While the code itself is different from the open-source tools we might discuss, the underlying principles are universal.
[PDF] A Sample Problem for Variance Reduction in MCNP
This section of the report provides a clear, detailed explanation of the weight window technique and its parameters.
Please read the chapter The Weight Window Technique, and the subsequent, more detailed explanation in Figure 30 and its description. Pay close attention to the definitions of the lower bound (W_L), upper bound (W_u), and survival weight (W_s). Also, note the comparison to geometry splitting, which you are already familiar with.
As you read, you'll notice a key advantage of weight windows over the geometry splitting we implemented earlier: weight windows are dependent on both space and energy, and they discriminate based on a particle's absolute weight. This allows them to control weight fluctuations introduced by any biasing technique, such as implicit capture or energy-dependent cross sections, making them a much more general and powerful tool.
Defining Weight Window Parameters
The effectiveness of a weight window depends entirely on choosing appropriate bounds. The guiding principle is that the weight window should be inversely proportional to the importance of the phase-space cell.
This relationship is intuitive. In regions of high importance (where we want to obtain a precise result), we desire a high population of particles. A low weight window in these regions will cause incoming higher-weight particles to split, increasing the population for better statistical sampling. Conversely, in regions of low importance, we can tolerate a smaller particle population. A high weight window allows particles to have higher weights, and any that fall below the window are likely to be terminated by Russian roulette, saving computational time.
In practice, Monte Carlo codes simplify the specification of the window. Typically, a user provides the lower weight bound for each space-energy cell. The upper bound and the survival weight are then calculated using two global constants, and :
- Upper bound:
- Survival weight:
For example, one might set and . This means the upper bound is always 5 times the lower bound, and a particle surviving Russian roulette will have its weight set to 2.5 times the lower bound, placing it comfortably in the middle of the window.
The following reading from the same MCNP report explains how these parameters are specified based on a known importance function.
[PDF] A Sample Problem for Variance Reduction in MCNP
This section describes the practical process of setting up weight window parameters.
Please read the subsection on specifying weight windows. The key takeaway is the direct application of the inverse relationship between cell importance and the lower weight bound.
Generating an Importance Map
This leaves us with the central question: how do we obtain the importance function needed to generate the weight windows? Manually specifying an importance map is feasible only for the simplest of problems. For realistic scenarios, automated methods are essential. Modern Monte Carlo codes use sophisticated techniques for this.
One popular approach is the MAGIC (Monte-Carlo Adjoint-Generated Importance-sampling and Coupling) method. This is an iterative process:
- An initial analog (or biased) simulation is run.
- The particle flux tallied in each cell is used to estimate the importance (recall that for many problems, importance is proportional to the adjoint flux, which is in turn related to the forward flux).
- A set of weight windows is generated based on the inverse of this estimated importance.
- The simulation is run again, this time using the newly generated weight windows. This yields a better flux tally.
- The process is repeated, with the weight windows improving with each iteration.
An alternative and often more efficient method is FW-CADIS (Forward-Weighted Consistent Adjoint Driven Importance Sampling). This technique uses a fast, deterministic transport solver (like the discrete ordinates method we studied) to compute the adjoint flux directly. This adjoint solution provides a high-quality importance map that can then be used to generate weight windows for a detailed, continuous-energy Monte Carlo calculation.
The documentation for the OpenMC code provides a concise overview of how these methods are used in a modern setting.
17. Variance Reduction — OpenMC Documentation
This user guide explains how to generate and use weight windows in a modern Monte Carlo code.
First, read the brief introductory sections on generating windows with MAGIC and generating with FW-CADIS. You don't need to worry about the specific Python code syntax, but focus on the conceptual difference: MAGIC is iterative Monte Carlo, while FW-CADIS uses an external deterministic (random ray) solve. Finally, see how simple it is to apply the results by reading the "Using Weight Windows" section.
The use of weight windows, and variance reduction in general, can have a profound impact on simulation efficiency. The goal is always to maximize the Figure of Merit (FOM), which, as a reminder, is . While techniques like weight windows often increase the computation time per particle () due to splitting, they can decrease the variance () so dramatically that the overall FOM increases by orders of magnitude.

Conclusion
You have now completed our survey of the most fundamental and widely used variance reduction techniques. Weight windows represent a culminating point, as they provide a unified system for managing the particle weight economy, which is so often perturbed by other biasing methods.
Key Takeaways:
- Weight windows control the particle weight population by combining splitting and Russian roulette into a single, automated framework.
- They operate by defining an acceptable weight range, , for each cell in phase space (space and energy).
- Particles with weights above the window are split, and those with weights below play Russian roulette.
- The window bounds are set to be inversely proportional to the importance of the region: .
- Importance maps for generating weight windows can be created automatically using iterative Monte Carlo methods (like MAGIC) or deterministic adjoint solvers (like in FW-CADIS).
- While weight windows may decrease the raw "particles per second" simulation speed, they typically lead to a substantial increase in the overall Figure of Merit (FOM).
Preview of the Next Lesson:
With this, we conclude our deep dive into the core algorithms of Monte Carlo for neutral particles. We will now transition to the final module of the course, "Advanced Topics in Transport." Our first lesson in this new module will address a topic highly relevant to your background in medical physics: the transport of charged particles. We will begin by exploring how the continuous slowing-down approximation (CSDA) and stopping power data are used to model the behavior of electrons and other charged particles, which lose energy gradually rather than in discrete collisions.