Question: NEED HELP WITH MATLAB ASSIGNMENT! Please help with all parts and include code, if possible. Will rate 5 stars for accurate solution. Thanks in advance!

 NEED HELP WITH MATLAB ASSIGNMENT! Please help with all parts and

NEED HELP WITH MATLAB ASSIGNMENT! Please help with all parts and include code, if possible. Will rate 5 stars for accurate solution. Thanks in advance!

Perform the following MATLAB exercise. 1. Generate N 107 independent random variables with a uniform distribution over interval [0,1]. Note that MATLAB has two commands for generating random vari- ables: rand generates uniform random variables over interval [0,1] and randn gener ates N(0,1) distributed random random variables. For example rand (K,L) generates a matrix of size K x L whose entries are independent and uniformly distributed over 0,1]. For the case examined here, it is suggested that you should generate a matrix X with K 104 rows and L 103 columns. Evaluate the mean mx and variance Kx of each entry Xke of this matrix. 2. Use the matrix X to generate K random variables Lmx (LKx) 1/2 with 1 S k S K. Note that each Yk is obtained by summing all the elements of the k-th row of matrix X. 3. According to the Central Limit Theorem (CLT), for large L (here L 103), the random variables YK are N (0,1) distributed. To verify this fact generate the histogram of random variables Y, 1 S k SK 10 Use 50 bins for the histogram. Recall that a histogram can be generated by using the command hist (y,n) where y denotes the vector whose histogram must be geberated, and n denotes the number of bins. Apply the mean and var commands of MATLAB to estimate the mean and variance of the vector Y formed by the random variables yk, 1 sk s K 10 Draw some conclusions concerning the validity of the CLT

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 Databases Questions!