Computing the convolution of the difference between random variables

I have the empirical distributions of Z, and X, where Z= X + Y. I've fit pearson type 4 distribution to X and Z.
What is the best way in matlab to solve for the pdf of Y= Z-X ? I've discretized the pdf of z and x and run a double summation to come up with a vector of y's. However, the result just doesnt seem quite right..
Thanks!

 采纳的回答

For a first check, I'd run a Monte-Carlo simulation with the empirical CDFs of X and Z.
Best wishes
Torsten.

更多回答(1 个)

Too late probably for you to see this, but...
There is no way to compute the analytical pdf of the difference of the pair of Pearson distributions. Type 4 looks a bit on the non-standard side, so is not going to be amenable for that.
I would use statistical tolerancing to compute the difference. This can be as simple as a Monte Carlo. Then you compute a Pearson distribution from the computed first 4 moments of the random sample differences.
More accurate will be to use Taguchi style methods, specifically the modified Taguchi methods we explained in a few papers.
https://www.jstor.org/stable/1269802?seq=1#page_scan_tab_contents
As we showed in that paper, these methods are simply the equivalent to computing an expectation using Gaussian quadrature. Compute weighted moments, and you can get a fairly high degree of accuracy if you use more than the basic 3 point rules.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by