Plot the Probability Density Functions Using MATLAB
Question
Let X be a continuous random variable, plot the probability density function f(x) if
- X is an exponential distribution, X ~ Exp (λ), λ
- X is a normal distribution, X ~ N ( µ, 2), where ( µ, 2) are from {(-1,1), (0,1), (1,1), (0,4), (0,16)}.
For each of those two cases, you have to plot multiple curves, one for each of the probability density functions when the parameter is _xed. For example, for the exponential distribution, you have to plot the probability density functions for Exp(0:5);Exp(1);Exp(2).
Please use different colors (e.g., red, blue, black) for those curves and put those curves in one figure. Please analyze those curves in this figure and draw a conclusion for how does the curve changes when we increase (or decrease) the parameter value.
1. MATLAB codes, which should be put in script _les (.m);
2. Two figures, which should be in eps format (.eps);
3. Two observations (conclusions), which should be in a plain text _le (.txt).
Summary
This question belongs to MATLAB software and discusses about application of MATLAB to probability and statistics and to plot the probability density functions of given data.
