彭滔 魏雷陽
摘要:蒙特卡羅方法是一種新型計算方法,它需要真實的隨機數(shù),在統(tǒng)計學方面有強有力的應用,隨著高性能計算機變得越來越便宜,此方面變得愈發(fā)普遍,該文通過設計一個隨機試驗,建立pi值與試驗次數(shù)的聯(lián)系方程,使用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 蒙特卡羅方法簡介
蒙特卡羅方法是一種隨機模擬方法,以概率和統(tǒng)計理論方法為基礎,使用隨機數(shù)(或更常見的偽隨機數(shù))來解決計算問題的方法。其早期的雛形存在于17-18世紀,1777年法國數(shù)學家普豐(Georges Louis Leclere de Buffon,1707—1788)提出用投針實驗的方法求圓周率π,統(tǒng)計史上稱為普豐投針問題。
摘要:蒙特卡羅方法是一種新型計算方法,它需要真實的隨機數(shù),在統(tǒng)計學方面有強有力的應用,隨著高性能計算機變得越來越便宜,此方面變得愈發(fā)普遍,該文通過設計一個隨機試驗,建立pi值與試驗次數(shù)的聯(lián)系方程,使用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 蒙特卡羅方法簡介
蒙特卡羅方法是一種隨機模擬方法,以概率和統(tǒng)計理論方法為基礎,使用隨機數(shù)(或更常見的偽隨機數(shù))來解決計算問題的方法。其早期的雛形存在于17-18世紀,1777年法國數(shù)學家普豐(Georges Louis Leclere de Buffon,1707—1788)提出用投針實驗的方法求圓周率π,統(tǒng)計史上稱為普豐投針問題。
摘要:蒙特卡羅方法是一種新型計算方法,它需要真實的隨機數(shù),在統(tǒng)計學方面有強有力的應用,隨著高性能計算機變得越來越便宜,此方面變得愈發(fā)普遍,該文通過設計一個隨機試驗,建立pi值與試驗次數(shù)的聯(lián)系方程,使用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 蒙特卡羅方法簡介
蒙特卡羅方法是一種隨機模擬方法,以概率和統(tǒng)計理論方法為基礎,使用隨機數(shù)(或更常見的偽隨機數(shù))來解決計算問題的方法。其早期的雛形存在于17-18世紀,1777年法國數(shù)學家普豐(Georges Louis Leclere de Buffon,1707—1788)提出用投針實驗的方法求圓周率π,統(tǒng)計史上稱為普豐投針問題。