Monte Carlo
Monte Carlo answers a practical question: if your coater deposits every layer with a realistic random error, how much does the spectrum move, and how often does the result still pass your Specification? Each trial is a copy of the design with fresh random errors in every layer; the window draws the spread of the trials and, against a specification, the yield.

Computed quantities
Section titled “Computed quantities”- Theoretical spectrum of the unchanged design (solid), mean over the trials (dotted), and the corridor mean ± k·σ (shaded), in percent; optionally the min/max envelope of all trials.
- Yield, on a design with a specification: the share of trials that pass every requirement, with its 95 % interval, and a red chip with the fail rate of each requirement that fails.
- View trials…: per-environment yields, the requirements and the layers most often behind a failure, and every trial with its , and . Load thicknesses into design copies one trial onto the design, as one undo step.
A wide corridor means the design is sensitive to manufacturing error. The mean can sit off the theoretical curve where the spectrum is curved: the mean reflectance at an antireflection minimum drifts upward, because every error raises R there.
Controls and settings
Section titled “Controls and settings”T / R / A, and in Settings the λ range and step, AOI and polarization. The trials run off the window’s thread; Stop ends a run and keeps the trials counted so far. The surface mode set in the Design Editor decides which coatings get errors.
Errors strip:
- #trials, 200 by default. The corridor’s noise falls as .
- seed: empty draws afresh and Run fills it in, so the same seed and settings repeat the same trials. Not saved with the design.
- Distribution: Gaussian (the value is ), Uniform (a hard bound ) or Truncated (a bell clipped at ). The two bounded ones relabel the fields ± and turn on the envelope.
- σ abs / σ rel: thickness error in nm and in % of each layer’s thickness. They add.
- σ Re(n) / σ Im(n): index errors. k cannot go below zero, so on a layer with the error only adds absorption.
- per-material: one index error per material instead of per layer, a material drift rather than monitoring scatter.
- keep n·d: ties the thickness error to the index error so the optical thickness at the reference wavelength stays constant. With thickness errors alone it cancels them.
- corridor: in mean , the corridor’s width, display only.
Environment: on a design with more than one environment, Current follows the environment the Design Editor shows and a numbered one holds the window on it even while it is switched off. A trial draws one set of errors, and each environment sees its own coating with the same errors, so switching shows another environment’s spread from the same trials. A trial passes when it passes in every environment it is judged in. The choice is not saved with the design.
Theory
Section titled “Theory”For layer of thickness , each trial draws (Macleod, Section 13.7):
is the distribution: normal with standard deviation ; uniform on , whose RMS is ; or normal with clipped at , whose RMS is . Over trials :
The mean moves off the theoretical value by about where has curvature against the error, which is the upward drift at a minimum.
The yield comes with the Wilson score interval, for 95 %:
Two runs whose intervals overlap may differ only by chance; more trials narrow the interval.
References
Section titled “References”- H. A. Macleod, Thin-Film Optical Filters, 5th ed., Section 13.7, pp. 514–524: tolerances and random errors in layer thickness.
- E. B. Wilson, “Probable inference, the law of succession, and statistical inference,” Journal of the American Statistical Association 22, 209-212 (1927).