Sign up ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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?

share|improve this question
Turn it into a ProbabilityDistribution, use Expectation. –  ciao Feb 27 '14 at 8:34

1 Answer 1

up vote 3 down vote accepted

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 *)
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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