Question: I need the matlab code for 6 . 2 An algorithm for generating a Gaussian random variable from two independent uniform random variables is easily

I need the matlab code for 6.2
An algorithm for generating a Gaussian random variable from two independent uniform random variables is easily derived.
(a)Let and be two statistically independent random numbers uniformly distributed in [0,1]. Show that the following transformation generates two statistically independent Gaussian random numbers with unit variance and zero mean:
=cos(2)=sin(2)
where
=2ln()
Hint: First show that is Rayleigh.
(b)Generate 1000 random variable pairs according to the above algorithm. Plot histograms for each
set (i.e., and ), and compare with Gaussian pdfs after properly scaling the histograms (i.e., divide each cell by the total number of counts times the cell width so that the histogram approx- imates a probability-density function). Hint: Use the hist function of MATLAB.
I need the matlab code for 6 . 2 An algorithm for

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!