![]() |
VOOZH | about |
With the help of sympy.stats.Skellam() method, we can create a discrete random variable with a Skellam distribution.
The Skellam is the distribution of the difference N1 - N2 of two statistically independent random variables N1 and N2 each Poisson-distributed with respective expected values mu1 and mu2.
Syntax: sympy.stats.Skellam(name, mu1, mu2) Parameters: mu1: A non-negative value mu2: A non-negative value Returns: discrete random variable with a Skellam distribution.
Example #1 :
Output:
(mu1/mu2)**(z/2)*exp(-mu1 - mu2)*besseli(z, 2*sqrt(mu1)*sqrt(mu2))
Example #2 :
Output:
sqrt(2)*exp(-3)*besseli(3, 2*sqrt(2))/4