Professional Documents
Culture Documents
This Study Resource Was: Fundamentals of Probability Lab4: Random Process
This Study Resource Was: Fundamentals of Probability Lab4: Random Process
General Instructions:
- Random Seed: When you start Matlab initialize the random seed generator to be “xxyy” where
xx is your birthday and “yy” is your birth month, i.e if your birthday is 25 Oct then you should
type
rand(‘seed’,2510)
- Submit a single word or txt file for each problem. The file should contain all of your work
including:
- Your relevant command line work including outputs of your scripts and function. Use Diary
or copy/paste if necessary
- Copy any scripts or function code into the file
- Use Copy/paste figures to copy your relevant output figures into the file.
m
er as
co
eH w
o.
Problem #1
rs e
ou urc
Use Matlab to generate the discrete-time random process X[n], which is constructed
o
according to
aC s
vi y re
where Wn are a sequence of IID, zero-mean Gaussian random variables, W1, W2, W3, with
ed d
the initial condition X[0] = 0. The value of the process at each point in time is equal to the
ar stu
value of the process at the previous point in time plus a random increase (decrease) which
follows a Gaussian distribution.
- Run your program several times to generate several realization of the process with a
is
- Estimate and plot the mean function of the process over the generated samples.
Problem #2
sh
X(t) = cos(2πFt),
where F is a random variable uniformly distributed over some interval (0,fo) . For example,
generate the process for fo = 2 Hz, with 0.01 sample increments over a 10 seconds time interval
around t=0.
This study source was downloaded by 100000788984292 from CourseHero.com on 06-23-2021 22:07:03 GMT -05:00
https://www.coursehero.com/file/50082232/Prob-Lab4pdf/
a function of time and this one is not? Consider the member functions
of the respective ensembles for the two random processes.
m
t=[-4.995:0.01:4.995]; % Time axis.
er as
F=fo*rand(N,1); % Uniform frequencies.
X[n] = 21 X[n − 1] − 41 X[n − 2] − 41 X[n − 3] + Wn ,
co
x=cos(2*pi*F*t); % Each row is a
eH w
% realization of process.
where X[0] = W0 and X[n] = 0 for n < 0.
o.
sample_mean=sum(x)/N; rs e % Compute sample mean.
(b) Estimate the mean function of this process by generating a large num-
ou urc
(b) Estimate the
ber mean function of
of realizations ofthis
the process
randomby generating
process a large number
and computing of
the sample
realizations of the random process and computing the sample mean.
mean.
(c) Compute the timemean
averaged
of themean of the
fromprocess
a singlefrom a singleDoes
real-this
o
seem to give the same result as the ensemble mean estimated in part (b)?
estimated in part (b)?
vi y re
8.34#4A(Ahmed
Problem certain random process is created as a sum of a large number, n, of
Atef Gift)
sinusoids with random frequencies and random phases,
ed d
Simulate the Many realization of the following Random Process of Example 8.18. Plot the different
Chapter 8 Random Processes
ar stu
!n
realization as a function of t with different colors on a 2D graph. Calculate the mean and
X(t) = cos(2πFk t + θk ),
autocorrelation functions and plot i on a separate graph
k=1
is
where the random phases θk are IID and uniformly distributed over
Th
X (t) = E[
(a) Write aµMATLAB At + B] =toE[
program A]t + E[
generate B] = 0;
realizations of this random
process.
RXX (t,(b)
t +Assuming the +
τ ) = E[(At process
B)(A(tis +
stationary
τ ) + B)]and ergodic, use a single realization
to estimate the first order PDF of the process, fX (x).
2 2 1 1
= E[Athe]t(t
(c) Assuming + τ ) is
process E[B ] + E[
+stationary AB](2
and t + τuse
ergodic, 3 t(t +realization
) =a single τ) + 3 .
to estimate the mean of the process, µX .
Clearly, this process is not WSS.
This study source was downloaded by 100000788984292 from CourseHero.com on 06-23-2021 22:07:03 GMT -05:00
Many of the processes we deal with are WSS and hence have a constant mean
https://www.coursehero.com/file/50082232/Prob-Lab4pdf/
Powered by TCPDF (www.tcpdf.org)