Вы находитесь на странице: 1из 1

16.

543 Theory of Communication Take Home Exercise 1: Central Limit Theorem in Matla

The purpose of this exercise is to demonstrate the central limit theorem that is critical to the formation of white Gaussian Noise. Additionally, it is to get you used to using Matlab which you will use all semester. !art ". Step 1. reate an array of 1!!,!!! samples of a uniform random "ariable on the inter"al #!,1$. Step %. reate a histogram of the samples with a delta of !.!1. &se the command 'x,y()hist#"alues,1!!$, where "alues are the random numbers you ha"e created* Step +. note that a f#x$dx ),#x-.-)x/dx$ so that f#x$) ,#x-.-)x/dx$0dx Normali1e the number of points in the histogram by the total #1!!!!!, and also di"ide by delta x #!.!1$. This should approximate f#x$ and it should loo2 li2e a uniform 34 ,art 5. reate an array +!,1!!!!! of uniform random numbers on the inter"al !,1. Subtract the mean from sample. 6i"ide by 10s7rt#1%$, the standard de"iation. Now ta2e groups of +! samples and sum them by doing sum#array$ 6i"ide by s7rt#+!$, so that the "ariance remains 1. ,lot a histogram of the sum and co"ert to pdf using techni7ue abo"e. ompare to a N#!,1$ random distribution. 8ou will notice that the sum of +! samples is Gaussian. This demonstrates that any sum of e"ents will tend to a Gaussian, and that +! samples forms a good statistical sample.

Вам также может понравиться