图片缩略图

蒙特卡罗估计的例子与Matlab

version 1.3.0.0 (5.23 KB) by 斯托伊Zhivomirov
一组蒙特卡罗数值估计方法的例子。

2.5 k下载

更新04年6月2020年

查看许可协议

这里展示的Matlab代码是一组蒙特卡罗估计方法的例子,这是一类依靠重复随机抽样或模拟随机变量来获得数值结果的计算算法。

给出了八个例子:
MonteCarloCoin.m– estimation of the probability to obtain 8 or more heads, if a coin is tossed 10 times;
MonteCarloDice.m– estimation of the probability to obtain 6 & 6, if two dice are flipped;
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.

这些规范基于以下理论:

[1] i Sobol。蒙特卡罗方法的入门。博卡拉顿,CRC出版社,1994年。

引用作为

斯托伊Zhivomirov(2021)。蒙特卡罗估计的例子与Matlab(//www.tianjin-qmedu.com/matlabcentral/fileexchange/55306-monte-carlo-estimation-examples-with-matlab), MATLAB中央文件交换。检索

MATLAB版本兼容性
创建R2014b
与任何版本兼容
平台的兼容性
窗户 macOS Linux

社区寻宝

在MATLAB中心找到宝藏,并发现社区如何可以帮助你!

开始狩猎!