File Exchange

image thumbnail

Monte Carlo Estimation Examples with Matlab

version 1.2.0.0 (4.76 KB) by Hristo Zhivomirov
A set of examples of Monte Carlo numerical estimation methods.

79 Downloads

Updated 08 Oct 2019

View License

The Matlab codes presented here are a set of examples of Monte Carlo estimation methods – a class of computational algorithms that rely on repeated random sampling or simulation of random variables to obtain numerical results.
Seven examples are given:
MonteCarloCoin.m – estimation of the probability to obtain 8 or more heads, if a coin is tossed 10 times;
MonteCarloInt.m – estimation of the integral of abs(sin(x)), for x = 0 .. 2*pi;
MonteCarloPi.m – estimation of the Pi value;
MonteCarloPower.m – estimation of the worst-case resistor's power dissipation;
MonteCarloSqrt2.m – estimation of the sqrt(2) value;
MonteCarloVol.m – estimation of the unit sphere volume;
MonteCarloVol_visualization.m – a visualization of the MonteCarloVol.m example.

The codes are based on the theory described in:

[1] I. Sobol. A primer for the Monte Carlo method. Boca Raton, CRC Press, 1994.

Cite As

Hristo Zhivomirov (2019). Monte Carlo Estimation Examples with Matlab (https://www.mathworks.com/matlabcentral/fileexchange/55306-monte-carlo-estimation-examples-with-matlab), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

Fu Dongqin

Hicham Belh

sunny

Updates

1.2.0.0

A new version of the codes has been uploaded.

1.1.0.0

A new version of the codes has been uploaded.

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux