View source: R/calculate_conditional_entropy.R
calculate_conditional_entropy | R Documentation |
This function calculates the conditional entropy of B given A in bits between two categorical vectors
calculate_conditional_entropy(vectorA, vectorB)
vectorA |
A categorical vector representing the conditioning variable A |
vectorB |
A categorical vector representing the conditioned variable B |
The conditional entropy of B given A in bits
vectorA <- c("A", "B", "A", "A", "B", "C", "C", "C", "A", "B")
vectorB <- c("X", "Y", "X", "Y", "X", "Y", "Y", "X", "X", "Y")
calculate_conditional_entropy(vectorA, vectorB)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.