Lab Experiment-5 Discrete Cosine Transform/discrete Fourier Transform Aim
Lab Experiment-5 Discrete Cosine Transform/discrete Fourier Transform Aim
= Au
Here A is a constant matrix. Hence the solutions will be of the form
x
Thus the steps for solving the difference equations are :
1. Find the eigen values is and the n independent eigen vectors xi of A.
2. Write the initial vector u(0) as a combination cx1+c2x2... of the eigen vectors
Then u(t) = c1
x1 + c2
[
s
+ + +
X = X + X1; % generating a sum 'n'of exponential random variables
end
X = (X-mean(X))./sqrt(var(X));
[y,axis_x]=hist(X);
fx = y/size;
figure
subplot(2,1,1),bar(axis_x,y);
title('Histogram');
subplot(2,1,2),plot(axis_x,fx);
title('pdf of the normalised sum random variable')
Results
0 5 10 15 20 25 30 35 40 45
0
2000
4000
6000
Histogram
0 5 10 15 20 25 30 35 40 45
0
0.2
0.4
0.6
0.8
pdf of exponential random variable
Discussion
We have verified the central limit theorem by generating a normalized sum of n iid random
variables (we have taken iid random variables as the exponential random variables in the
program) and observing that this resulting random variable has a Gaussian distribution.
-4 -3 -2 -1 0 1 2 3 4
0
1000
2000
3000
Histogram
-4 -3 -2 -1 0 1 2 3
0
0.1
0.2
0.3
0.4
pdf of the normalised sum random variable