Group Abstract Group Abstract

Message Boards Message Boards

0
|
10.5K Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Calculate the distribution of the sum of two distributions in W|A?

Posted 10 years ago

I would like to query wolfram alpha to provide the distribution for the sum of two distributions, namely: - g is normal with mean=6% and sd=1%, and - x is exponential with lambda = 1%

What is the query needed to be written. Apparently wolfram alpha interprets each distribution correctly but not the sum. I tried: "probability distribution function of g+x, if g is normal with mean=6% and sd=1% and x is exponential with lambda = 1%"

POSTED BY: George Popescu
2 Replies
Posted 10 years ago

Current versions of Mathematica enable an even more direct solution than Craig's, although possibly not as instructive

In[12]:= PDF[
  TransformedDistribution[
   x + y, {x \[Distributed] NormalDistribution[\[Mu], \[Sigma]], 
    y \[Distributed] ExponentialDistribution[\[Lambda]]}]][z]

Out[12]= 1/2 E^(
 1/2 \[Lambda] (-2 z + 
    2 \[Mu] + \[Lambda] \[Sigma]^2)) \[Lambda] Erfc[(-z + \[Mu] + \
\[Lambda] \[Sigma]^2)/(Sqrt[2] \[Sigma])]
POSTED BY: Mike Luntz
POSTED BY: W. Craig Carter
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard