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?

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

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 *)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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