disc.ind2 | R Documentation |
Determine Independence of Two Discrete Random Variables
disc.ind2(X, Y, prt = TRUE)
X |
Sample space vector of X |
Y |
Sample space vector of Y |
prt |
Print detailed output? Default: TRUE |
Joint PDF
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.