0
$\begingroup$

I've a custom pdf in the sense that it's the convolution of several other PDFs

p[t_] := Convolve[p1[x],p2[x],x,t];

Now I want to calculate the expected value of this 'new' pdf w.r.t $t$

$\mu = \mathbb{E}_t [ p(t) ]$

How can I do this with mathematica?

$\endgroup$
1
  • $\begingroup$ Turn it into a ProbabilityDistribution, use Expectation. $\endgroup$
    – ciao
    Commented Feb 27, 2014 at 8:34

1 Answer 1

3
$\begingroup$

Something like the following:

dist = ProbabilityDistribution[
  Convolve[PDF[NormalDistribution[4, 5], x], 
   PDF[NormalDistribution[3, 1], x], x, t], {t, -Infinity, Infinity}]

Expectation[z, z \[Distributed] dist]

(* 7 *)
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.