monte carlo simulation -凯发k8网页登录

what is monte carlo simulation?

monte carlo simulation is a technique used to perform sensitivity analysis, that is, study how a model responds to randomly generated inputs. it typically involves a three-step process:

  1. randomly generate “n” inputs (sometimes called scenarios).
  2. run a simulation for each of the “n” inputs. simulations are run on a computerized model of the system being analyzed.
  3. aggregate and assess the outputs from the simulations. common measures include the mean value of an output, the distribution of output values, and the minimum or maximum output value.

systems analyzed using monte carlo simulation include financial, physical, and mathematical models. because simulations are independent from each other, monte carlo simulation lends itself well to parallel computing techniques, which can significantly reduce the time it takes to perform the computation.

using monte carlo simulation in matlab

matlab® provides functions, such as and , that you can use to build a model for monte carlo simulation and to run those simulations. matlab is used for financial modeling, weather forecasting, operations analysis, and many other applications.

in financial modeling, monte carlo simulation informs price, rate, and economic forecasting; risk management; and stress testing. financial toolbox™ provides stochastic differential equation tools to build and evaluate stochastic models. risk management toolbox™ facilitates credit simulation, including the application of copula models.

for more control over input generation, statistics and machine learning toolbox™ provides a wide variety of probability distributions you can use to generate both continuous and discrete inputs.

using monte carlo simulation in simulink

you can model and simulate multidomain systems in simulink® to represent controllers, motors, gains, and other components. the design and testing of these complex systems involves multiple steps, including identifying which model parameters have the greatest impact on requirements and behavior, logging and analyzing simulation data, and verifying the system design.

monte carlo simulations help you gain confidence in your design by allowing you to run parameter sweeps, explore your design space, test for multiple scenarios, and use the results of these simulations to guide the design process through statistical analysis. simulink design optimization™ provides interactive tools to perform this sensitivity analysis and influence your simulink model design.

running monte carlo simulations in parallel

to improve the performance of your monte carlo simulations, you can distribute the computations to run in parallel on multiple cores using parallel computing toolbox™ and matlab parallel server™.

resources

expand your knowledge through documentation, examples, videos, and more.

网站地图