Solution Library

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.

 

 

 

Download Full Solution

Comments

  • HWA
    Rasha

    this is a very good website

  • HWA
    maani

    I have 50 questions for the same test your page is showing only 28

  • HWA
    joeanne

    hi can you please help or guide me to answer my assignments. thanks

  • HWA
    joeanne

    hi can anyone help or guide me to my assignments. thanks

  • HWA
    Monik


  • HWA
    Cristina

    This solution is perfect ...thanks

  • HWA
    Janete

    Hello Allison,I love the 2nd image that you did! I also, had never heard of SumoPaint, is something that I will have to exolpre a bit! I understand completely the 52 (or so) youtube videos that you probably watched. Sometimes they have what you want, sometimes they don't! However, it is always satisfying when you are able to produce something that you have taught yourself. Great job!Debra 0 likes

  • HWA
    Sandeep

    Perfect bank of solution. 

  • HWA
    Oxana

    great !

  • HWA
    Paul Brandon-Fritzius

    thanks for the quick response. the solution looks good. :)

  • HWA
    tina Johnson

    thnx for the answer. it was perfect. just the way i wanted it. 

  • HWA
    Giuseppe

    works fine.