50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


Distributacalcul (version 0.4.0)

Pois: Poisson Distribution

Description

Poisson distribution with rate parameter λ.

Usage

expValPois(lambda)

varPois(lambda)

expValTruncPois(d, lambda, k0, less.than.d = TRUE)

TVatRPois(kap, lambda, k0)

mgfPois(t, lambda)

pgfPois(t, lambda)

Value

Function :

  • expValPois gives the expected value.

  • varPois gives the variance.

  • expValTruncPois gives the truncated mean.

  • TVatRPois gives the Tail Value-at-Risk.

  • mgfPois gives the moment generating function (MGF).

  • pgfPois gives the probability generating function (PGF).

Invalid parameter values will return an error detailing which parameter is problematic.

Arguments

lambda

Rate parameter λ.

d

cut-off value.

k0

point up to which to sum the distribution for the approximation.

less.than.d

logical; if TRUE (default) truncated mean for values <= d, otherwise, for values > d.

kap

probability.

t

t.

Details

The Poisson distribution with rate parameter λ has probability mass function : Pr(X=k)=λkeλk! for k=0,1,2,, and λ>0

Examples

Run this code
expValPois(lambda = 3)

varPois(lambda = 3)

expValTruncPois(d = 0, lambda = 2, k0 = 2E2, less.than.d = FALSE)
expValTruncPois(d = 2, lambda = 2, k0 = 2E2, less.than.d = TRUE)

TVatRPois(kap = 0.8, lambda = 3, k0 = 2E2)

mgfPois(t = 1, lambda = 3)

pgfPois(t = 1, lambda = 3)

Run the code above in your browser using DataLab