Preface > Monte Carlo Simulation Basics > A Stochastic Model

INDEX (This Article)
Preface and Software
Monte Carlo Simulation
Deterministic Model
Stochastic Model
Sales Forecast Example
Random Inputs
Histograms
Summary Statistics
Percentiles
Normal Distribution
Matlab Example

ABOUT THIS SITE
About the Author
Terms of Use
Privacy

DESTINATIONS
The Excel Nexus (Links)
Excel Calendar Template
Excel Timesheet
Free Excel Templates

 

Monte Carlo Simulation in DFSS
Features:
- Monte Carlo Simulation
- Design for Six Sigma
- Robust Design
- Tolerance Allocation

Stochastic Model Example


A stochastic model is one that involves probability or randomness. In this example, we have an assembly of 4 parts that make up a hinge, with a pin or bolt through the centers of the parts. Looking at the figure below, if A + B + C is greater than D, we're going to have a hard time putting this thing together.

Tolerance Stack-Up Example

Figure 1: A hinge.

Let's say we have a million of each of the different parts, and we randomly select the parts we need in order to assemble the hinge. No two parts are going to be exactly the same size! But, if we have an idea of the range of sizes for each part, then we can simulate the selection and assembly of the parts mathematically.

The table below demonstrates this. Each time you press "Calculate", you are simulating the creation of an assembly from a random set of parts. If you ever get a negative clearance, then that means the combination of the parts you have selected will be too large to fit within dimension D. Do you ever get a negative clearance?

Tolerance Stack-Up Model
Part Min Max Random
A
B
C
D
Clearance, D-(A+B+C):

This example demonstrates almost all of the steps in a Monte Carlo simulation. The deterministic model is simply D-(A+B+C). We are using uniform distributions to generate the values for each input. All we need to do now is press the "calculate" button a few thousand times, record all the results, create a histogram to visualize the data, and calculate the probability that the parts cannot be assembled.

Of course, you don't want to do this manually. That is why there is so much software (including Excel add-ins) for automating Monte Carlo simulation.

[ Back to Monte Carlo Simulation Basics ] Previous Topic

 


CITE THIS PAGE AS:
© 2003 Vertex42, LLC