Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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!

image text in transcribed

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

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

Step: 3

blur-text-image

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

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

Students also viewed these Databases questions

Question

What would you do?

Answered: 1 week ago

Question

2. The model is credible to the trainees.

Answered: 1 week ago