how to understand monte carlo simulation using statistics

please explain about monte carlo simulation with simple example program.

6 个评论

This is an extremely vague question, and not directly a Matlab one. Have you tried borrowing a book from your local library?
s i have read the books.but my sir told me to write a matlab code using monte carlo simulation.the given data is a=10,b=20,mean of a & b=0,std dev of a & b=3 & 5.given equation is y=a^2+b^2+2a*b*-a/b.here i have to find how many times it will exceed y=901 or 898 and if the absolute value is greater or less than 1.5 times of error of y,then it is considered as failure.pls explain this
How can you have a and b be constants of 10 and 20 yet have them also be variable with specified means and stdevs????
So a is 10, but it has a mean of 0. Hmm.

请先登录,再进行评论。

回答(1 个)

KSSV
KSSV 2016-9-19
编辑:KSSV 2016-9-19
You may see the below example of calculating value of pi using Monte Carlo simulation.
And the best is to pick up a book and read the basics of it and then come to code.

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by