Computational Time For Box Muller Method.pdf

  • Uploaded by: mahfoo
  • 0
  • 0
  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Computational Time For Box Muller Method.pdf as PDF for free.

More details

  • Words: 172
  • Pages: 8
LAB-05

Mahfoozur Rahman Khan

Computational time for Box Muller Method=0.028478 seconds Computational time for Marsaglia and Bray method =0.028478 seconds

Proportion of Values rejected by Marsaglia and Bray method = 0.2763 Value of 1-pi/4=0.2146

Using Box-Muller Method to generate N(0,1) random variables:  100 iterations: mean = -0.18652  1000 iterations: mean =0.023803

variance=0.97126 variance =1.0056

Using Marsaglia and Bray method to generate N(0,1) random variables:  100 iterations: mean = -0.0060389  10000 iterations: mean =0.007681

variance=0.92781 variance =0.97287

Using Box-Muller Method to generate N(0,5) random variables:  100 iterations: mean = -0.41706  10000 iterations: mean =0.053226

variance=4.8563 variance =5.0278

Using Marsaglia and Bray method to generate N(0,5) random variables:  100 iterations: mean = -0.013503  10000 iterations: mean =-0.017169

variance=4.6391 variance =4.8643

Using Box-Muller Method to generate N(0,5) random variables:  100 iterations: mean = 4.5829  10000 iterations: mean =5.0532

variance=4.8563 variance =5.0278

Using Marsaglia and Bray method to generate N(0,5) random variables:  100 iterations: mean = 4.9865  10000 iterations: mean =4.9828

variance=4.6391 variance =4.8643

Related Documents

Muller
November 2019 14
Computational!!!
May 2020 20
Muller Curacrt
November 2019 19
Computational
May 2020 25
George Muller
May 2020 7

More Documents from ""