Learn R Programming

lestat (version 1.9)

probability: The Probability at a Value for a Discrete Distribution

Description

Given a possible value for a probability distribution, the probability at that value is computed.

Usage

probability(object, val)

Arguments

object

A discrete probability distribution.

val

The value at which the probability should be computed.

Value

The probability at val.

See Also

probabilitydensity

Examples

Run this code
# NOT RUN {
probability(poissondistribution(3), 1)
probability(binomialdistribution(10, 0.24), 2)
# }

Run the code above in your browser using DataLab