P: Probability of event

Description Usage Arguments Examples

Description

Compute the probability of an event for a random variable

Usage

1
  P(event)

Arguments

event

The outcome of some comparison acting on a random variable

Examples

1
2
3
4
fair.die <- make.RV(1:6, rep(1/6, 6))
P(fair.die == 1)
P(fair.die > 3)
P(fair.die^2 == 16)

Dasonk/drvc documentation built on May 6, 2019, 1:37 p.m.

Related to P in Dasonk/drvc...