Re: [R] Density of the sum of two random variables

From: Spencer Graves <>
Date: Thu 05 May 2005 - 19:46:03 EST

          Have you considered package "distr"? It will do something similar to what you request, I think; it may or may not be adequate for your purposes.

          spencer graves

Duncan Murdoch wrote:

> Paul Smith wrote:

>> Dear All
>> I would like to know whether it is possible with R to get the
>> mathematical expression of the density of a sum of two independent
>> continuous random variables.

> No, that corresponds to a convolution of the two densities, and R can't
> do any symbolic integration.
> You could get numerical approximations to the density at any point using
> integrate() (or sum(), if a discrete distribution is involved).
> Duncan Murdoch
> ______________________________________________
> mailing list
> PLEASE do read the posting guide!
> mailing list PLEASE do read the posting guide! Received on Thu May 05 19:52:16 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:35 EST