

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Paper; Class: Stochastic Processes in Electronic Systems; Subject: Electrical & Computer Engr; University: Utah State University; Term: Unknown 1989;
Typology: Papers
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Due Friday September 9.
This exercise will provide an opportunity to do some calculations and plots with actual data. The intent is to make some of the abstract concepts a little more concrete. This exercise is to be done using Matlab.
randn Every call to the Matlab function rand generates an independent instance of a stan- dard Gaussian random variable. That is, randn is a Gaussian random number generator: X N ( 0 , 1 ). Random column vectors of length n are generated by randn(n,1). Row vectors are generated with randn(1,n). A matrix of random numbers is generated with randn(n,m). For more information, type help randn in Matlab.
rand Similarly, the Matlab function rand generates independent uniform U( 0 , 1 ) random num- bers. Column and row vectors and matrices of random numbers are generated using rand(n,1), rand(1,n), rand(n,m). For more information type help rand in Matlab.
Histograms The Matlab hist command produces a histogram. This is a representation of the empirical density function. In a histogram, a sequence of bins is established. For each value in a set of data, the number of times that data points fall in a bin is counted. In the Matlab hist command, the histogram is plotted automatically. To see an example of how the histogram works, type the following in Matlab:
x = randn(1,1000); % create a vector of 1000 Gaussian random number hist(x,20); % plot the histogram with 20 bins hist(x,100); % plot the histogram with 100 bins
Estimating mean and covariance Given a sequence of vector observations x 1 , x 2 ,... , x N , where each vector is a column vector of length n drawn independently and identically distributed
according to some distribution, the sample mean of the distribution is
x i.
The sample covariance is
μ) T^.
the mean and the variance from the data you generate. How closely do the estimate correspond to the actual parameters?
μ, 6) data, where μ is a vector of length n. The function should have the “declaration”
function X = gengauss(mu,Nigma,N)
measurements x 1 , x 2 , x 3 , x 4 from a four-dimensional physical system. Load the data into Matlab using the command
load prog1dat
is measured. Determine the best estimate of the variables x 2 and x 4. Explicitly state all the appropriate covariance and mean vectors, and how you obtain your estimates.