biv.bern {streamDAG}R Documentation

Bivariate Bernoulli Distribution

Description

Densities (probabilities) of a bivariate Bernoulli distribution, Y_1,Y_2.

Usage

biv.bern(p11, p10, p01, p00, y1, y2)

Arguments

p11

The probability that y_1,y_2 = 1,1.

p10

The probability that y_1,y_2 = 1,0.

p01

The probability that y_1,y_2 = 0,1.

p00

The probability that y_1,y_2 = 0,0.

y1

Outcome for Y_1.

y2

Outcome for Y_2.

Value

Densities (probability) of the joint Bernoulli distribution.

Author(s)

Ken Aho

Examples

biv.bern(0.25,0.25,0.25,0.25,1,0)
biv.bern(0.1,0.4,0.3,0.2,1,0)

[Package streamDAG version 1.5 Index]