EE 315 âMatlab Assignment 2
Term 122
Due on April 3.
EE 315 âMatlab Assignment 2
Term 122
Due on April 3.
Guidelines:
Students are allowed to work in groups (two per group). Copying is strictly prohibited.
Submit a Hard copy and upload a soft copy in WebCT, including Matlab programs.
Matlab programs need to be explained through comment lines.
Consider an exponentially distributed RV with a=0, use the inverse transform method to generate a sequence of exponentially distributed random numbers for different values of the parameter b. Plot the histograms (probability density function (pdf)) and compare with the analytical pdf for each value of the parameter b. See Sec. 3.5 in the textbook.
It is well-known that the sum of independent and identically distributed exponential RVs has a gamma distribution. Generate four independent exponential RVs (using exprnd) with a=0 and b=4 (or mu=4), sum them and plot the pdf of the sum. Compare the obtained pdf with the theoretical gamma pdf and comment on the obtained results.





