How to sum two probability density functions?
古いコメントを表示
hello
I have created two probability density functions using this formula:
I would like to sum two of these pdfs and also substract both, but I have not idea how to do it.
Thanks in advance for your help
pd = fitdist(L1.Z(:),'Normal');
x_pdf = [min(L1.Z(:)):0.01:max(L1.Z(:))];
y = pdf(pd,x_pdf);
plot(x_pdf,y,'-')
2 件のコメント
Jules Ray
2019 年 2 月 25 日
移動済み: John D'Errico
2023 年 5 月 10 日
John D'Errico
2019 年 2 月 25 日
移動済み: John D'Errico
2023 年 5 月 10 日
Please don't add answers just to ask another question.
Anyway, from reading your various comments, I don't think you understand what a PDF means. Forming the difference of two PDFs has almost no meaning that I can think of.
I think perhaps you want to form the sum and difference of two random variables? That is very, VERY different from forming the sum or difference of two PDFs. Perhaps that is what you mean.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Noncentral t Distribution についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!