infotheo (version 1.2.0.1)

entropy: entropy computation

Description

entropy takes the dataset as input and computes the entropy according to the entropy estimator method.

Usage

entropy(X, method="emp")

Arguments

X

data.frame denoting a random vector where columns contain variables/features and rows contain outcomes/samples.

method

The name of the entropy estimator. The package implements four estimators : "emp", "mm", "shrink", "sg" (default:"emp") - see details. These estimators require discrete data values - see discretize.

Value

entropy returns the entropy of the data in nats.

Details

  • "emp" : This estimator computes the entropy of the empirical probability distribution.

  • "mm" : This is the Miller-Madow asymptotic bias corrected empirical estimator.

  • "shrink" : This is a shrinkage estimate of the entropy of a Dirichlet probability distribution.

  • "sg" : This is the Schurmann-Grassberger estimate of the entropy of a Dirichlet probability distribution.

References

Meyer, P. E. (2008). Information-Theoretic Variable Selection and Network Inference from Microarray Data. PhD thesis of the Universite Libre de Bruxelles.

J. Beirlant, E. J. Dudewica, L. Gyofi, and E. van der Meulen (1997). Nonparametric entropy estimation : An overview. Journal of Statistics.

Hausser J. (2006). Improving entropy estimation and the inference of genetic regulatory networks. Master thesis of the National Institute of Applied Sciences of Lyon.

See Also

condentropy, mutinformation, natstobits

Examples

Run this code
# NOT RUN {
  data(USArrests)
  H <- entropy(discretize(USArrests),method="shrink")
# }

Run the code above in your browser using DataCamp Workspace