Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


DPQ (version 0.4-1)

r_pois: Compute Relative Size of i-th term of Poisson Distribution Series

Description

Compute rλ(i):=(λi/i!)/ei1(λ), where λ=lambda, and en(x):=1+x+x2/2!+....+xn/n! is the n-th partial sum of exp(x)=ex.

Questions: As function of i

  • Can this be put in a simple formula, or at least be well approximated for large λ and/or large i?

  • For which i (:=im(λ)) is it maximal?

  • When does rλ(i) become smaller than (f+2i-x)/x = a + b*i ?

NB: This is relevant in computations for non-central chi-squared (and similar non-central distribution functions) defined as weighted sum with “Poisson weights”.

Usage

r_pois(i, lambda)
r_pois_expr  # the R expression() for the asymptotic branch of r_pois()

plRpois(lambda, iset = 1:(2*lambda), do.main = TRUE, log = 'xy', type = "o", cex = 0.4, col = c("red","blue"), do.eaxis = TRUE, sub10 = "10")

Arguments

i

integer ..

lambda

non-negative number ...

iset

.....

do.main

logical specifying if a main title should be drawn via (main = r_pois_expr).

type

type of (line) plot, see lines.

log

string specifying if (and where) logarithmic scales should be used, see plot.default().

cex

character expansion factor.

col

colors for the two curves.

do.eaxis

logical specifying if eaxis() (package sfsmisc) should be used.

sub10

argument for eaxis() (with a different default than the original).

Value

r_pois()

returns a numeric vector rλ(i) values.

r_pois_expr()

an expression.

Details

r_pois() is related to our series expansions and approximations for the non-central chi-squared; in particular ...........

plRpois() simply produces a “nice” plot of r_pois(ii, *) vs ii.

See Also

dpois().

Examples

Run this code
# NOT RUN {
<!-- %%>> more [incl other plots] in ==>> ../tests/chisq-nonc-ex.R <<== -->
# }
# NOT RUN {
plRpois(12)
plRpois(120)
# }

Run the code above in your browser using DataLab