Functions > Design of Experiments > Monte Carlo Simulation > Example: Monte Carlo Simulation with a Custom Distribution Function
Example: Monte Carlo Simulation with a Custom Distribution Function
This example shows how to use a custom distribution function with the montecarlo function. Using custom distribution function enhances calculation speed, compared to using uniform distribution functions.
1. Create a custom distribution function that is based on the uniform distribution.
Click to copy this expression
2. Define a function to simulate.
Click to copy this expression
3. Define the numbers of samples to generate.
Click to copy this expression
4. Call montecarlo to generate the samples.
Click to copy this expression
Was this helpful?