To find a moment generating function of a discrete random variable 

AIM: To find a  moment generating function  of a discrete random variable  

EQUIPMENTS:

   PC with windows (95/98/XP/NT/2000).

   MATLAB Software

MATLAB PROGRAM:

clear all;

close all;

s=0;t=1;

x=[1 2 3 4 5 6];

p=[1/6 1/6 1/6 1/6 1/6 1/6];

for i=1:6

s= sum(exp(t*x(i)).*p(i))

end

disp(s)
 

RESULT:

s = 0.4530

s = 1.2315

VIVA QUESTIONS

1. What is Aliasing Effect.

Ans.If the frequency of reproduction is less than sampling frequency samples will overlap and cause an error called Aliasing Effect.

2.what is Under sampling.

Ans:If fs<2fm then sampling called under sampling. 

3. What is Over sampling.

Ans: If fs>2fm then sampling called under sampling.