摘要
蒙特卡罗方法是一种新型计算方法,它需要真实的随机数,在统计学方面有强有力的应用,随着高性能计算机变得越来越便宜,此方面变得愈发普遍,该文通过设计一个随机试验,建立pi值与试验次数的联系方程,使用R语言来模拟计算PI值。
Monte Carlo methods is a new way of computational algorithms, basically Monte Carlo simulation methods require truly random numbers, Monte Carlo is a powerful numerical technique useful for solving problems especially in statistics. When high-speed computers becomes cheap,the method has gained in importance and popularity,when a circle with its bounding square is drawn,let randomly generate a point in the squre, the probability that the point falls in the circle is circle area /square area = PI/4,we can get pi from the equation.We finish the stochastic simulation with R language in the article.
出处
《电脑知识与技术(过刊)》
2014年第6X期4038-4039,共2页
Computer Knowledge and Technology
关键词
蒙特卡罗方法
随机模拟
R语言
Monte Carlo methods
stochastic simulation
R languange