Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) I got the answer for part 1 clc clear all close all rng('default') % For reproducibility X = normrnd(0,1,[1,100]); Y=normrnd(0,1,[1,100]); z=X+i*Y; mag_z=sqrt(real(z).^2+imag(z).^2); mag_z2=(real(z).^2+imag(z).^2); histogram(mag_z,'Normalization','probability')

image text in transcribed

1) I got the answer for part 1

clc clear all close all rng('default') % For reproducibility X = normrnd(0,1,[1,100]); Y=normrnd(0,1,[1,100]); z=X+i*Y; mag_z=sqrt(real(z).^2+imag(z).^2); mag_z2=(real(z).^2+imag(z).^2); histogram(mag_z,'Normalization','probability') title('Histogram of |z|'); figure; histogram(mag_z2,'Normalization','probability') title('Histogram of |z|^2');

2)I sitll didnt get part 2

1. Generate the empirical PDF (histogram) of IZ and |Z12 by generating n realization of X and Y where X and Y are i.i.d. Gaussian random variables of zero mean and unit variance, and obtain n realization of Z and Zl2 via Z-X Y. Plot the histogram of these samples for n-100 and compare with the theoretical PDF of Rayleigh distribution and exponential distribution. Do they agree? Hint: you need to scale the histogram in such a way that it becomes an empirical PDF Hints: If X and X2 are independent random variables uniformly distributed over [0,1], then are independent Gaussian random variables, each with zero mean and unit variance 2. Vary the variance of X and as 2-1, 3, and 5, repeat Q1 for n 1000. Comment on the result. Hint: A standard normal random variable, i.e., zero mean and unit variance, can be converted to a random variable of desired mean and variance 2, namely x~ N ,02) , by the transformation: x- + . Xstd-normal

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Science For Dummies

Authors: Lillian Pierson ,Jake Porway

2nd Edition

1119327636, 978-1119327639

More Books

Students also viewed these Databases questions