Skip to content

Monte Carlo Simulation Examples: Model Uncertainty, Calculate Probabilities And Validate Results

August 23, 2026 ·
Simulated Outcome Distribution With A Highlighted Upper Tail

Monte Carlo simulation is a computational method that uses repeated sampling from specified probability distributions to approximate quantities that may be difficult to calculate directly. A project team can use it to examine uncertain completion dates, a service can investigate variable workloads and an analyst can explore the sensitivity of a decision to several uncertain conditions. The simulation does not make the underlying assumptions true. Its value comes from showing their combined implications in a reproducible model. This guide uses original fictional examples and a reproducible computational experiment to demonstrate how to construct, interpret and check a simulation.

Quick Answer

Define a model, specify defensible uncertain inputs and dependencies, draw repeated samples, calculate the outcome for each trial and summarize the resulting distribution. Validate against an exact or simpler case where possible.

Table Of Contents

What A Monte Carlo Trial Represents

The University of Wisconsin statistical computing lecture on Monte Carlo explains how repeated random samples can approximate expectations and probabilities. A trial is one simulated realization of the conditions represented by the model. Its outcome is calculated using the same rules that apply to every other trial.

For example, a fictional musical instrument case supplier needs an approved specification and a prepared display sample before conducting a final review. One trial might represent a favorable specification duration and an ordinary sample preparation duration. Another might contain an extended preparation duration. In each trial, the project completion rule must reflect the same actual dependency: the review begins only when both required preparations are complete.

Our schedule risk analysis examples explain how uncertain activities influence the completion boundary. Monte Carlo simulation can repeat that network calculation many times, preserving which outcome occurred on each trial rather than replacing all durations with their mean values.

Distinguish uncertain inputs from constants. A required two-day review might be treated as constant in a simple teaching model. If the review actually varies materially or depends on resource availability, the real model may need a distribution or a separate event. Do not introduce arbitrary uncertainty solely to make a model look sophisticated.

Worked Example: Build An Exact Reference Case

The instrument case supplier defines two preparations that can occur concurrently. Preparation A takes three days with probability 0.7 and six days with probability 0.3. Preparation B takes four days with probability 0.8 and seven days with probability 0.2. The final review takes two days and begins only after both are finished.

For this example, the uncertain preparation durations are assumed independent. Their possible combinations can be enumerated exactly. The finish is the larger preparation duration plus two days.

A DaysB DaysJoint ProbabilityCompletion Day
340.566
370.149
640.248
670.069

The probabilities sum to one. The exact probability of completion by day eight is 0.56 plus 0.24, or 80%. The probability of finishing on day nine is 20%. The expected completion day is six times 0.56 plus eight times 0.24 plus nine times 0.20, or 7.08 days.

This small model can be solved without simulation. That is a useful advantage when learning a computational method, because the exact result provides an independent reference against which a simulation implementation can be checked. Our expected value examples show the arithmetic behind such probability-weighted means.

Translate The Probabilities Into Sampling Rules

A uniformly distributed random number from zero up to, but not including, one can be used to select one of the discrete values. For A, numbers below 0.7 select three days and all other values select six. For B, numbers below 0.8 select four days and all other values select seven. Two independent draws are used for each trial under the specified model.

The open-access introduction to Monte Carlo simulation discusses pseudo-random sampling and the relationship between probability distributions and simulated variables. The simple threshold rules here are an example of converting uniform draws into outcomes with the required discrete probabilities.

Suppose one trial generates 0.42 for A and 0.91 for B. A takes three days and B takes seven, so completion is day nine. A second trial generates 0.81 and 0.16, producing six and four days and completion on day eight. Each trial follows the same network rule.

TrialDraw ADraw BA DurationB DurationFinish
Illustration 10.420.91379
Illustration 20.810.16648
Illustration 30.100.23346
Illustration 40.950.93679

These four chosen draws demonstrate the calculation. They are not presented as a representative sample or used as evidence of the modeled probabilities. A larger actual sampling experiment is described next.

Run A Reproducible Simulation

For a reproducible teaching experiment, this guide uses a simple deterministic pseudo-random number generator. Start with integer state 53719. For each draw, replace the state with the remainder of (1664525 times the state plus 1013904223) divided by 4294967296. Divide the new state by 4294967296 to obtain the uniform-like draw. Use two successive draws per trial and apply the threshold and maximum rules defined above.

This elementary linear congruential generator is chosen for transparent reproducibility, not as a recommendation for high-stakes modeling or modern scientific simulation. Appropriate established random number generation and validation should be used for real analytical work. Its deterministic sequence means that the experiment can be reproduced with the same initialization and arithmetic.

Using 10,000 computed trials, the results are as follows. The observations in the table are actual outputs of the illustrative computation, not measurements from a business.

Finish DayExact ProbabilitySimulation CountSimulated Proportion
656%563256.32%
824%237723.77%
920%199119.91%
Total100%10,000100%

The simulated average completion day is 7.0727, compared with the exact value of 7.08. The estimated probability of completion by day eight is 80.09%, compared with the exact 80%. The sample proportions do not need to equal the exact values precisely. A finite random sampling procedure produces sampling variation even when its model is correct.

For a spreadsheet demonstration, each trial can occupy one row. Two random draws determine A and B; the finish formula uses the maximum of their two durations plus two. A separate summary counts the number of rows reaching the chosen deadline. Save the sampled values or use a reproducible generation arrangement if the results must remain available after recalculation.

Distinguish Simulation Error From Model Uncertainty

For independent Bernoulli trials with event probability 0.8, the standard error of the sample proportion from 10,000 trials is the square root of 0.8 times 0.2 divided by 10,000, or 0.004. This is four-tenths of a percentage point. It describes sampling variability under the ideal independent sampling model, not the uncertainty about whether the assumed 80% probability represents the real project.

Increasing the number of trials can reduce ordinary Monte Carlo sampling error. For example, multiplying the number of independent trials by four generally halves the standard error of a sample mean or proportion under the usual finite-variance conditions. It does not correct a missing dependency or an inaccurate input distribution.

Our assumption mapping examples distinguish the importance of an assumption from the strength of the evidence supporting it. In a simulation, a well-computed result based on weak input assumptions should still be described as conditional.

The exact benchmark is useful for detecting programming mistakes, but agreement on one example does not establish that a larger implementation is correct. Validate additional cases, including deterministic inputs, extreme values, alternate paths and scenarios in which a particular dependency changes the outcome.

Worked Example: Represent Dependence Rather Than Sample Independently

Suppose the two preparation activities depend on a shared approved reference. A revised teaching model uses three joint states: ordinary with probability 0.7, extended reference delay affecting both preparations with probability 0.2, and an A-only extension with probability 0.1.

Joint StateProbabilityA DaysB DaysFinish
Ordinary0.70346
Both Extended0.20679
A Only Extended0.10648

The marginal probability that A is extended is still 0.3, and the probability that B is extended is still 0.2. Yet the joint distribution is different from independent sampling. The exact mean completion is 0.7 times six plus 0.2 times nine plus 0.1 times eight, or 6.8 days.

In this particular case, the completion probability by day eight remains 80%, but the probability of completion on day six increases from 56% to 70%. The same marginal distributions do not guarantee identical output distributions. Our dependency mapping examples explain why shared prerequisites can affect several branches together.

To simulate the revised model, draw one uniform-like value per trial. Values below 0.7 select the ordinary joint state; values from 0.7 up to 0.9 select the shared extension; the remaining values select the A-only extension. This samples the defined joint states directly. There is no need to draw A and B independently and then try to repair incompatible results afterward.

Calculate Percentiles And Tail Outcomes

A distribution of simulated completion dates can support decisions about deadline probabilities and contingency. Define the percentile convention explicitly. In the exact independent example, cumulative probability is 56% at day six, 80% at day eight and 100% at day nine.

The smallest completion day reaching at least 80% cumulative probability is day eight. The smallest reaching at least 90% is day nine. A spreadsheet percentile function may interpolate between sorted observations depending on its algorithm. For a discrete deadline decision, it may be preferable to report the earliest observed completion boundary with cumulative probability reaching the specified level.

Do not interpret the maximum outcome observed in a finite simulation as a guaranteed worst case unless the model itself establishes that bound. A rare outcome may not occur in the selected sample. If an omitted event could create a longer duration than the modeled maximum, the simulation cannot reveal it.

Our PERT estimation examples describe how the use of three-point estimates depends on the meaning of their inputs. A Monte Carlo distribution based on such estimates must preserve the chosen interpretation rather than assume every optimistic and pessimistic value is a verified bound.

Compare Proposed Decisions Under The Same Scenario

The supplier considers an approved alternative that reduces B’s extended duration from seven to five days, with its modeled probability unchanged. In the exact independent case, B now takes four or five days. If A takes three days, completion is day six or seven depending on B. If A takes six days, completion is day eight regardless of B.

The revised probability of finishing by day eight is therefore 100% within this bounded illustrative model. The probability of finishing by day six remains 56%. The improvement does not prove that the real project has no chance of missing the deadline. It merely shows that the revised specified model contains no outcome later than day eight.

When comparing two simulated arrangements, using the same underlying scenario draws can help isolate their modeled difference, provided the coupling is appropriate. For each trial, calculate the original and revised outcomes from the same relevant uncertain conditions. Then summarize the paired differences as well as each arrangement’s individual distribution.

Our change impact assessment examples explain why a proposed change may have additional implementation consequences. Include those consequences in the comparison when they affect the actual decision. A faster preparation arrangement that requires substantial additional work outside the modeled boundary should not be credited as a cost-free improvement.

An independent verification of a probability estimate can use the complementary event. For the original project model, finishing after day eight occurs whenever B takes seven days, regardless of A. The exact probability is therefore 20%. The simulated count of day-nine finishes should equal the count of trials in which B receives the extended duration. This check is stronger than merely confirming that the three output frequencies sum to 10,000. A program could produce the correct total trial count while calculating the network incorrectly. A useful validation suite checks internal relationships that must hold for each trial and the aggregate output.

A second practical application concerns a small stationery delivery service estimating the number of eligible deliveries requiring clarification. Suppose its model assumes ten independent eligible requests, each with a probability of 0.1 of requiring clarification. The expected count is one, but the probability that at least one requires clarification is one minus 0.9 raised to the tenth power, about 65.13%. A simulation could generate ten binary observations per trial, count the number of clarifications and estimate the same probability from the fraction of trials with a positive count. The exact expression provides another validation example. If requests share an unclear reference, their outcomes might be dependent, so the independent model would require review before use.

Finally, decide what precision the decision actually needs. If two proposed arrangements have simulated deadline probabilities of 80.1% and 80.2%, their difference may be smaller than the ordinary Monte Carlo sampling error or the uncertainty in the model assumptions. A useful report should avoid ranking them solely on such a small numerical difference. Examine the actual cost, effort, dependencies and potential for improving the evidence.

Reusable Monte Carlo Simulation Worksheet

FieldRecord
ObjectiveDefined Output And Decision
ModelRules, Dependencies And Boundary
InputsDistributions, Parameters And Evidence
DependenceShared Conditions And Joint Sampling
TrialSampling Method And Output Calculation
ReproducibilityGenerator, Seed Or Preserved Draws
SummaryMean, Percentiles And Threshold Probabilities
ValidationExact Cases, Edge Cases And Model Review
DecisionCandidate Arrangements And Actual Verification

A final review should check whether the simulation model produces impossible combinations. For example, a trial might assign a final review before a required preparation has completed if its scheduling logic is incorrect. Even a large number of samples cannot compensate for that logical defect. Compare several individual trials with manually calculated outcomes and preserve the assumptions and model version.

Use Monte Carlo simulation to investigate the combined implications of uncertainty. It can improve understanding of a decision when the model is credible and the results are interpreted with their limitations. Keep the sampling method, input evidence, output distribution and intended decision connected so that a computationally precise result does not become an unsupported promise.

Frequently Asked Questions

What is Monte Carlo simulation?

Repeated sampling from specified distributions to approximate model outcomes.

What is one trial?

One simulated realization of the input conditions and resulting output.

How can discrete values be sampled?

Map uniform-like draws to intervals corresponding to the declared probabilities.

Why use a random seed?

It can make a deterministic pseudo-random sampling experiment reproducible.

Does a larger trial count fix inaccurate inputs?

It reduces ordinary sampling error, not errors in assumptions or model structure.

What is a deadline probability?

The proportion or modeled probability of completion by a defined boundary.

Can inputs be correlated?

Yes, represent the relevant joint conditions rather than assuming independence.

Why validate against an exact result?

It provides a benchmark for checking the sampling and calculation logic.

Does an observed simulation maximum establish a worst case?

Only a justified model bound establishes that; finite sampling can miss rare outcomes.

What should a simulation report include?

Input assumptions, dependence, sampling method, validation, distribution and decision limitations.

Leave a Reply

Your email address will not be published. Required fields are marked *