adding two different distributions example:Gaussian and Poisson distribution

조회 수: 5 (최근 30일)
Anusha S S
Anusha S S 2016년 6월 6일
댓글: Torsten 2016년 6월 8일
if we add two different distributions namely gaussian which as mean and standard deviation as variables and Poisson distribution with lambda variable how to mathematically relate the resultant distribution(What distribution the resulting value will take) and how to code it
  댓글 수: 1
Image Analyst
Image Analyst 2016년 6월 8일
What does "relate" mean to you? The new distribution will be the sum of the two you summed. What else do you need to know?

댓글을 달려면 로그인하십시오.

답변 (1개)

Torsten
Torsten 2016년 6월 6일
편집: Torsten 2016년 6월 6일
If X ~ Poisson(lambda), Y ~ N(mu,sigma^2), X, Y independent and Z=X+Y, then the cdf of Z is given by
P(Z<=z) = sum_{k=0}^{k=oo} P(X=k) * P(Y<=z-k).
P(X=k) = lambda^k/k! * exp(-lambda)
P(Y<=z-k) = 0.5*(1+erf((z-k-mu)/sqrt(2*sigma^2))) (erf: error function)
If needed, you can get the pdf of Z by differentiating the sum with respect to z.
Best wishes
Torsten.
  댓글 수: 3
Torsten
Torsten 2016년 6월 8일
So to get the cfd F_Z of Z=X+Y, you have to evaluate the infinite sum
F_Z(z)= sum_{k=0}^{k=Inf} lambda^k/k!*exp(-lambda)*0.5*(1+erf((z-k-mu)/sqrt(2*sigma^2)))
for different values of z.
Make an attempt. If it does not work, post the code with the error message you get.
Best wishes
Torsten.

댓글을 달려면 로그인하십시오.

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by