disc.ind2: Independence of Two Discrete Random Variables

Description Usage Arguments Value Examples

View source: R/ch4-fn.R

Description

Determine Independence of Two Discrete Random Variables

Usage

1
disc.ind2(X, Y, prt = TRUE)

Arguments

X

Sample space vector of X

Y

Sample space vector of Y

prt

Print detailed output? Default: TRUE

Value

Joint PDF

Examples

1
2
3
4
5
6
S = rolldie2(4)
sum3 = function(x) sum(x>=3)
X = apply(S, 1, sum3)
even = function(x) sum(x %% 2 ==0)
Y = apply(S,1, even)
disc.ind2(X, Y)

tjssu/Rstat documentation built on Aug. 8, 2020, 12:38 p.m.