Learn R Programming

algebraic.dist (version 0.9.1)

poisson_dist: Construct a Poisson distribution object.

Description

Creates an S3 object representing a Poisson distribution with rate parameter \(\lambda\). The PMF is \(P(X = k) = \lambda^k e^{-\lambda} / k!\) for \(k = 0, 1, 2, \ldots\).

Usage

poisson_dist(lambda)

Value

A poisson_dist object with classes c("poisson_dist", "univariate_dist", "discrete_dist", "dist").

Arguments

lambda

Rate parameter (mean), must be a positive scalar.

Examples

Run this code
x <- poisson_dist(lambda = 5)
mean(x)
vcov(x)
format(x)

Run the code above in your browser using DataLab