I use matlab to create a mixture distribution norm and exp.
the pdf and cdf are defined:
pdf_mixture = @(x,p,mu1,mu2,sigma1)p*normpdf(x,mu1,sigma1) + (1-p)*exppdf(x,mu2);
cdf_mixture = @(x,p,mu1,mu2,sigma1)p*normcdf(x,mu1,sigma1) + (1-p)*expcdf(x,mu2);
and this is the graph from the functionleft)
but this is not the goal, the goal looks like thisright)
how can i change the pdf or cdf to get the required graph.the exponential distribution should be lower than the normal distribution.


LinkBack URL
About LinkBacks
left)