彭滔 魏雷阳
摘要:蒙特卡罗方法是一种新型计算方法,它需要真实的随机数,在统计学方面有强有力的应用,随着高性能计算机变得越来越便宜,此方面变得愈发普遍,该文通过设计一个随机试验,建立pi值与试验次数的联系方程,使用R语言来模拟计算PI值。
关键词:蒙特卡罗方法;随机模拟;R语言
中图分类号:TP311 文献标识码:A 文章编号:1009-3044(2014)17-4038-02
A New Way to Compute Simulately PI with Monte Carlo Method in R Language
PENG Tao, WEI Lei-yang
(Sanya Polythenic College, Sanya 572022, China)
Abstract: 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.
Key words: Monte Carlo methods; stochastic simulation; R languange
1 蒙特卡罗方法简介
蒙特卡罗方法是一种随机模拟方法,以概率和统计理论方法为基础,使用随机数(或更常见的伪随机数)来解决计算问题的方法。其早期的雏形存在于17-18世纪,1777年法国数学家普丰(Georges Louis Leclere de Buffon,1707—1788)提出用投针实验的方法求圆周率π,统计史上称为普丰投针问题。
摘要:蒙特卡罗方法是一种新型计算方法,它需要真实的随机数,在统计学方面有强有力的应用,随着高性能计算机变得越来越便宜,此方面变得愈发普遍,该文通过设计一个随机试验,建立pi值与试验次数的联系方程,使用R语言来模拟计算PI值。
关键词:蒙特卡罗方法;随机模拟;R语言
中图分类号:TP311 文献标识码:A 文章编号:1009-3044(2014)17-4038-02
A New Way to Compute Simulately PI with Monte Carlo Method in R Language
PENG Tao, WEI Lei-yang
(Sanya Polythenic College, Sanya 572022, China)
Abstract: 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.
Key words: Monte Carlo methods; stochastic simulation; R languange
1 蒙特卡罗方法简介
蒙特卡罗方法是一种随机模拟方法,以概率和统计理论方法为基础,使用随机数(或更常见的伪随机数)来解决计算问题的方法。其早期的雏形存在于17-18世纪,1777年法国数学家普丰(Georges Louis Leclere de Buffon,1707—1788)提出用投针实验的方法求圆周率π,统计史上称为普丰投针问题。
摘要:蒙特卡罗方法是一种新型计算方法,它需要真实的随机数,在统计学方面有强有力的应用,随着高性能计算机变得越来越便宜,此方面变得愈发普遍,该文通过设计一个随机试验,建立pi值与试验次数的联系方程,使用R语言来模拟计算PI值。
关键词:蒙特卡罗方法;随机模拟;R语言
中图分类号:TP311 文献标识码:A 文章编号:1009-3044(2014)17-4038-02
A New Way to Compute Simulately PI with Monte Carlo Method in R Language
PENG Tao, WEI Lei-yang
(Sanya Polythenic College, Sanya 572022, China)
Abstract: 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.
Key words: Monte Carlo methods; stochastic simulation; R languange
1 蒙特卡罗方法简介
蒙特卡罗方法是一种随机模拟方法,以概率和统计理论方法为基础,使用随机数(或更常见的伪随机数)来解决计算问题的方法。其早期的雏形存在于17-18世纪,1777年法国数学家普丰(Georges Louis Leclere de Buffon,1707—1788)提出用投针实验的方法求圆周率π,统计史上称为普丰投针问题。