MATLAB Answers

Convolution of two different pdf (uniform and normal distribution)

16 views (last 30 days)
MINA WOO
MINA WOO on 22 Nov 2019
Answered: Jeff Miller on 22 Nov 2019
I want to calculate the pdf for convolution of uniform(x~u(a,b)) and normal distributions(y~N(m,sigma^2)).
How can I get the convolution pdf usgin MATLAB code?

  0 Comments

Sign in to comment.

Accepted Answer

Jeff Miller
Jeff Miller on 22 Nov 2019
The Cupid toolbox will do this. For example,
u = Uniform(0,100);
n = Normal(100,10); % 2nd parameter is sigma, not sigma^2
c = Convolution(u,n);
c.PlotDens; % See attached
somePDFvals = c.PDF(80:220);

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Products