probability {lestat}R Documentation

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.

Author(s)

Petter Mostad <mostad@chalmers.se>

See Also

probabilitydensity

Examples

probability(poissondistribution(3), 1)
probability(binomialdistribution(10, 0.24), 2)

[Package lestat version 1.9 Index]