Hi Jim,
That's great, it's so cool!
Just a very last question. I want to know the distribution of X2, as in my model when x1>x2, it's a "collision": x1 can't go further as it bumps into x2. So X2 distribution "restricts" everything. Would this code be correct?
pdfx2 = Integrate[jointPDF, {x1, x2 , Infinity}, Assumptions -> {x2 \[Element] Reals, mu1 <= mu2, sigma > 0}]
parms = {mu1 -> 0, mu2 -> 3, sigma -> 1};
Plot[{PDF[NormalDistribution[mu1, sigma] /. parms, x2],
PDF[NormalDistribution[mu2, sigma] /. parms, x2],
pdfx2 /. parms}, {x2, -10, 10}, PlotStyle -> {Red, Blue, Green},
PlotRange -> All, AspectRatio -> 1/4]
Many thanks for your tremendous help!
Best,
Attila
Attachments: