Computational Efficiency of Box-Muller and Polar Method
Using Monte-Carlo Application

by : Joy V. Lorin-Picar
Mathematics Department
Davao del Norte State College, New Visayas, Panabo City
picar_joy@yahoo.com

ABSTRACT
The efficiency of Mean Square Error (MSE) of the random normal variables generated from both the Marsaglia Polar Method and Box-Muller Method was examined for small and large n with Monte-Carlo application using MATHLAB. The empirical results showed that MSE of the random normal variables using the Marsaglia Polar Method approaches zero as n becomes larger.

Moreover, when run in MATHLAB, the Box-Muller method encountered some problems like: a) it runs slow in generating its MSE because of many calls to the math library; b) it has numerical stability problems when x1 is very close to zero; as a consequence of b, as n becomes large, there are serious problems if you are doing stochastic modeling and generating millions of numbers. Apparently, the Polar Method computes the MSE faster even when n is large, since it does the equivalent of the sine and cosine geometrically without a call to the trigonometric function library.

A. INTRODUCTION
The topic of generating Gaussian pseudo-random numbers given a source of uniform pseudo-random numbers comes up more frequently. There are many ways of solving this problem but this paper focuses through the Box-Muller and Marsaglia Polar Methods.

If we have an equation that describes our desired distribution function, then it is possible to use some mathematical manipulations based upon the fundamental transformation law of probabilities to obtain a transformation function for the distributions. This transformation takes random variables from one distribution as inputs and outputs random variables in a new distribution function. One of the...

{"essaysImgCdnUrl":"\/\/images-study.netdna-ssl.com\/pi\/","thumb_default_size":"160x220","thumb_ac_size":"80x110","isPayOrJoin":false,"essayUpload":false,"site_id":1,"autoComplete":true,"logPixelPath":"\/\/www.smhpix.com\/pixel.gif","tracking_url":"\/\/www.smhpix.com\/pixel.gif","essay":{"essayId":35920171,"categoryName":"Periodicals","categoryParentId":"17","currentPage":1,"format":"text","pageMeta":{"text":{"startPage":1,"endPage":7,"pageRange":"1-7","totalPages":7}},"access":"premium","title":"Computational Efficiency of Polar and Box Muller Method: Using Monte Carlo Application","additionalIds":[3,2,58,5],"additional":["Business & Economy","Awards & Events","Business & Economy\/Industries","Computer Science"],"loadedPages":{"html":[],"text":[1,2,3,4,5,6,7]}},"user":null,"canonicalUrl":"http:\/\/www.studymode.com\/essays\/Computational-Efficiency-Of-Polar-And-Box-1048878.html","pagesPerLoad":50,"userType":"member_guest","ct":10,"ndocs":"1,500,000","pdocs":"6,000","cc":"10_PERCENT_1MO_AND_6MO","signUpUrl":"https:\/\/www.studymode.com\/signup","joinUrl":"https:\/\/www.studymode.com\/join","payPlanUrl":"\/checkout\/pay\/1010","upgradeUrl":"\/checkout\/upgrade","freeTrialUrl":"https:\/\/www.studymode.com\/signup?redirectUrl=https%3A%2F%2Fwww.studymode.com%2Fcheckout%2Fpay%2Ffree-trial&bypassPaymentPage=1","joinFreeUrl":"\/essays\/?newuser=1","siteId":1,"facebook":{"clientId":"306058689489023","version":"v2.2","language":"en_US"},"analytics":{"googleId":"UA-32718321-1"}}

## Share this Document

Let your classmates know about this document and more at StudyMode.com