(WBL), ETHZ Applied Multivariate Statistics, Week 5

Total Page:16

File Type:pdf, Size:1020Kb

(WBL), ETHZ Applied Multivariate Statistics, Week 5 Advanced Studies in Applied Statistics (WBL), ETHZ Applied Multivariate Statistics, Week 5 Lecturer: Beate Sick [email protected] Remark: Much of the material have been developed together with Oliver Dürr for different lectures at ZHAW. 1 Topics of today • Clustering • How to assess the quality of a clustering? • K-means clustering cntd. • Visualization of K-means clusters • Quality measures for cluster result • Pros and Cons • Hierarchical clustering • Principles of hierarchical clustering • Linkage methods • Visualization and quality measures • Density based or network analysis based clustering is skipped • Summary on clustering 2 Partition clustering A division of data objects into non-overlapping subsets (clusters) 3 What is optimized in K-means clustering ? The goal in K-means is to partition the observations into K homogeneous clusters such that the total within-cluster variation (WCV), summed over all K clusters Ck, is as small as possible. WCVtotal= WCV of cluster Ck: Squared Euclidian distance between observations i and i’ where |Ck| denotes the number of observations in the kth cluster and p is the number of features (dimensions). 4 How to choose the “best” number of clusters in K-means ? • Run K-Means for several k • Determine minimized sum of WCV • Plot minimized sum of WCV vs. k • Choose k at the last big drop of WCV ## find suitable number of centers wss = rep(0, 6) # initialize wss[1] = (n-1) * sum(apply(pots, 2, var)) # wss if all data in 1 cluster for (i in 2:6) wss[i] <- sum(kmeans(pots, centers = i)$withinss) plot(1:6, wss, type = "b", xlab = "Number of groups", ylab = "Within groups sum of squares") ## 3 groups is a good choice ## Result varies because of the random starting configuration in K-means 5 Quantum Clustering (QC) of clustering: Check out the silhouette widths The silhouette width of observation i is defined as: x2 i ∈1,1 max , ai average distance between data point i and all other points in the same cluster to which i belongs. x1 bi average distance between i and its “neighbor” cluster, i.e., the nearest one to which it does not belong Range: b ≫ Neighboring cluster far away → 1 b Neighboring cluster close → 0 Warning: Clustering methods optimizing average Euclidian distances tend to get better sil values. 6 How to visualize the result of K-means ? • silhouette plot •2D: PCA or MDS # visualize in PC 1 & 2 p1=prcomp(pots,retx=TRUE) # check explained variance ckm <- kmeans(pots, centers=3) summary(p1) grpsKM = ckm$cluster plot( p1$x[,1] , p1$x[,2], # Silhouette plot xlab="PC1", ylab="PC2", plot(silhouette(grpsKM, dist.pots)) pch=grpsKM, col=grpsKM) 7 What does the average silhouette width tell us? For each object, the silhouette plot visualizes with a bar the closeness of the object to its cluster compared to the closeness to the next neighbour cluster (with range: -1 < sil < 1) – the longer the bars the better the cluster The 'average width' the cluster coefficient gives the average sil: 0.70 < sil < 1.00: Good structure has been found 0.50 < sil < 0.70: Reasonable structure found 0.25 < sil < 0.50: Weak structure, requiring confirmation -1 < sil < 0.25: Forget it! 8 What does a negative silhouette width tell us? This clustering makes sense but would not result from a k-means (k=2) clustering Example leading to negative silhouette A negative value indicates that a point is on average closer to the points of another cluster than to points with in its own cluster. → this does not necessarily indicate poor clustering (only w.r.t. Euclidean distance mean sil criterion). 9 K-means results can strongly depend on starting configuration Image credits: ISLR 10 Issues with K-means (non-convex sets) A non-convex set The color indicates the result of the K-means clustering. Eye-ball analysis would result in 2 clusters corresponding to the 2 bananas. https://pafnuty.wordpress.com/2013/08/14/non-convex-sets-with-k-means-and-hierarchical-clustering/ 11 Comments on the K-means method Strength • Fast Weakness • Need to specify k, the number of clusters, in advance • Unable to handle noisy data and outliers • Not suitable to discover clusters with non-convex shapes • Can terminate at a local optimum • Is based on Euclidean distances and cannot handle other dissimilarities 12 The K-medoids clustering method Find representative objects, called medoids, in clusters PAM (Partitioning Around Medoids) - starts from an initial set of medoids - iteratively replaces one of the medoids by one of the non-medoids if it improves the total distance of the resulting clustering Pro’s: - more robust against outliers - can deal with any dissimilarity measure - easy to find representative objects per cluster (e.g. for easy interpretation) Con’s: - PAM is slow for large data sets (only fast for small data sets) 13 K-means clustering in R # sample from a 3D normal distributions in 2D: x <- rbind(matrix(rnorm(100, sd = 0.3), ncol = 2), matrix(rnorm(100, mean = 1, sd = 0.3), ncol = 2), matrix(rnorm(100, mean = 1.6, sd = 0.3), ncol = 2) ) colnames(x) <- c("x", "y") (cl <- kmeans(x, 3)) plot(x, col = cl$cluster) points(cl$centers, col = 1:2, pch = 8, cex = 2) 14 PAM cl <- pam(x, 3) plot(x, col = cl$cluster,main='PAM') points(cl$medoids, col = 1:2, pch = 8, cex = 2) Center is always on an observation 15 Partitioning Methods in R Function “kmeans” in package “stats” Function “pam” in package “cluster” 16 Hierarchical clustering A set of nested clusters organized as a hierarchical tree 17 How to do hierarchical clustering? Without proof: The number of Since we cannot test all possible possible dendrograms with n dendrograms we will have to leafs is heuristically search for all (n -2) (2n -3)!/[(2 ) (n -2)!] possible dendrograms. We could do this.. Number Number of Possible of Leafs Dendrograms 21 Bottom-Up (agglomerative): 33 Starting with each item in its 415 own cluster, find the best pair to 5 105 ... … merge into a new cluster. 10 34,459,425 Repeat until all clusters are fused together. Top-Down (divisive): Starting with all the items in a single cluster, consider every possible way to divide the cluster into two. Choose the best division and recursively operate on both sides. 18 Agglomerative Hierarchical Clustering Feature 2 Problem: Need a generalization of the distance between the objects to cluster of objects. Feature 1 Feature 2 What is the distance between dendrogram those objects?-> Linkage Feature 1 19 Dissimilarity between samples or observations Any dissimilarity we have seen before can be used - Euclidean - Manhattan - Simple Matching Coefficient - Jaccard dissimilarity - Gower’s dissimilarity - etc. 20 Dissimilarity between clusters: Linkages single link (min) Single link: smallest distance between point-pairs linking both clusters Complete link: largest distance complete link Average: avg distance between (max) Wards: With this method we try to minimize the variance of the merged clusters Hint: in R use always "ward.D2" average wards 21 How to read a dendrogram The position of the join node on the distance-scale indicates the distance between clusters (this distance depends on the linkage method). For example, if you see two clusters joined at a height 22, it means that the distance between those clusters was 22 . Distance (R: clust$height) When you read a dendrogram, you want to determine at which stage the distance between combined clusters is large. You look for large distances between sequential join nodes (here horizontal lines). 22 Agglomerative hierarchical clustering is often visualized by a dendrogram https://www.researchgate.net/figure/Example-of-hierarchical-clustering-clusters-are-consecutively-merged-with-the-most_fig3_273456906 23 Simple example Draw a dendrogram visualizing the grouping of the following 1D data: Use Euclidian distances and single-linkage. 24 Simple example [Solution] x = c(1,3,6,6.5) names(x) = c('1','3','6', '6.5') d = dist(x) cluster = hclust(d, method = 'single') plot(cluster, hang=-10, axes = FALSE) axis(2) cutree(cluster, k=3) #1 3 6 6.5 #1 2 3 3 25 Cluster result depends on the used distances and linkage methods Distances between Linkage Methods based on 2 data points / observations “distances” between 2 clusters: • Euclidean • Single link: smallest distance • Manhattan between point-pairs linking both clusters • Simple Matching Coefficent • Jaccard dissimilarity • Complete link: largest distance between point-pairs linking both • Gower’s dissimilarity clusters • etc. • Average: avg distance between point-pairs linking both clusters • Wards: with this method we try to minimize the variance of the merged clusters 26 Agglomerative Clustering in R Functions “hclust”, “cutree” in package “stats” Alternative: Function “agnes” in package “cluster” ## determine euclidean distances dist.pots = dist(pots) ## apply agglomerative clutstering using Ward linkage hc = hclust(dist.pots, method="ward.D2") # plot the dendrogram plot(hc) ## split into 3 groups grps = cutree(hc, k=3) grps # 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 # 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 # # 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 # 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 27 Use a dataset about cars to do a heatmap representation > str(dat) 'data.frame': 38 obs. of 8 variables: $ Country : Factor w/ 6 levels "France","Germany",..: 6 6 6 ... $ Car : Factor w/ 38 levels "AMC Concord D/L",..: 6 21..
Recommended publications
  • Distribution of Mutual Information
    Distribution of Mutual Information Marcus Hutter IDSIA, Galleria 2, CH-6928 Manno-Lugano, Switzerland [email protected] http://www.idsia.ch/-marcus Abstract The mutual information of two random variables z and J with joint probabilities {7rij} is commonly used in learning Bayesian nets as well as in many other fields. The chances 7rij are usually estimated by the empirical sampling frequency nij In leading to a point es­ timate J(nij In) for the mutual information. To answer questions like "is J (nij In) consistent with zero?" or "what is the probability that the true mutual information is much larger than the point es­ timate?" one has to go beyond the point estimate. In the Bayesian framework one can answer these questions by utilizing a (second order) prior distribution p( 7r) comprising prior information about 7r. From the prior p(7r) one can compute the posterior p(7rln), from which the distribution p(Iln) of the mutual information can be cal­ culated. We derive reliable and quickly computable approximations for p(Iln). We concentrate on the mean, variance, skewness, and kurtosis, and non-informative priors. For the mean we also give an exact expression. Numerical issues and the range of validity are discussed. 1 Introduction The mutual information J (also called cross entropy) is a widely used information theoretic measure for the stochastic dependency of random variables [CT91, SooOO] . It is used, for instance, in learning Bayesian nets [Bun96, Hec98] , where stochasti­ cally dependent nodes shall be connected. The mutual information defined in (1) can be computed if the joint probabilities {7rij} of the two random variables z and J are known.
    [Show full text]
  • Lecture 3: Entropy, Relative Entropy, and Mutual Information 1 Notation 2
    EE376A/STATS376A Information Theory Lecture 3 - 01/16/2018 Lecture 3: Entropy, Relative Entropy, and Mutual Information Lecturer: Tsachy Weissman Scribe: Yicheng An, Melody Guan, Jacob Rebec, John Sholar In this lecture, we will introduce certain key measures of information, that play crucial roles in theoretical and operational characterizations throughout the course. These include the entropy, the mutual information, and the relative entropy. We will also exhibit some key properties exhibited by these information measures. 1 Notation A quick summary of the notation 1. Discrete Random Variable: U 2. Alphabet: U = fu1; u2; :::; uM g (An alphabet of size M) 3. Specific Value: u; u1; etc. For discrete random variables, we will write (interchangeably) P (U = u), PU (u) or most often just, p(u) Similarly, for a pair of random variables X; Y we write P (X = x j Y = y), PXjY (x j y) or p(x j y) 2 Entropy Definition 1. \Surprise" Function: 1 S(u) log (1) , p(u) A lower probability of u translates to a greater \surprise" that it occurs. Note here that we use log to mean log2 by default, rather than the natural log ln, as is typical in some other contexts. This is true throughout these notes: log is assumed to be log2 unless otherwise indicated. Definition 2. Entropy: Let U a discrete random variable taking values in alphabet U. The entropy of U is given by: 1 X H(U) [S(U)] = log = − log (p(U)) = − p(u) log p(u) (2) , E E p(U) E u Where U represents all u values possible to the variable.
    [Show full text]
  • A Statistical Framework for Neuroimaging Data Analysis Based on Mutual Information Estimated Via a Gaussian Copula
    bioRxiv preprint doi: https://doi.org/10.1101/043745; this version posted October 25, 2016. The copyright holder for this preprint (which was not certified by peer review) is the author/funder, who has granted bioRxiv a license to display the preprint in perpetuity. It is made available under aCC-BY-NC-ND 4.0 International license. A statistical framework for neuroimaging data analysis based on mutual information estimated via a Gaussian copula Robin A. A. Ince1*, Bruno L. Giordano1, Christoph Kayser1, Guillaume A. Rousselet1, Joachim Gross1 and Philippe G. Schyns1 1 Institute of Neuroscience and Psychology, University of Glasgow, 58 Hillhead Street, Glasgow, G12 8QB, UK * Corresponding author: [email protected] +44 7939 203 596 Abstract We begin by reviewing the statistical framework of information theory as applicable to neuroimaging data analysis. A major factor hindering wider adoption of this framework in neuroimaging is the difficulty of estimating information theoretic quantities in practice. We present a novel estimation technique that combines the statistical theory of copulas with the closed form solution for the entropy of Gaussian variables. This results in a general, computationally efficient, flexible, and robust multivariate statistical framework that provides effect sizes on a common meaningful scale, allows for unified treatment of discrete, continuous, uni- and multi-dimensional variables, and enables direct comparisons of representations from behavioral and brain responses across any recording modality. We validate the use of this estimate as a statistical test within a neuroimaging context, considering both discrete stimulus classes and continuous stimulus features. We also present examples of analyses facilitated by these developments, including application of multivariate analyses to MEG planar magnetic field gradients, and pairwise temporal interactions in evoked EEG responses.
    [Show full text]
  • Information Theory 1 Entropy 2 Mutual Information
    CS769 Spring 2010 Advanced Natural Language Processing Information Theory Lecturer: Xiaojin Zhu [email protected] In this lecture we will learn about entropy, mutual information, KL-divergence, etc., which are useful concepts for information processing systems. 1 Entropy Entropy of a discrete distribution p(x) over the event space X is X H(p) = − p(x) log p(x). (1) x∈X When the log has base 2, entropy has unit bits. Properties: H(p) ≥ 0, with equality only if p is deterministic (use the fact 0 log 0 = 0). Entropy is the average number of 0/1 questions needed to describe an outcome from p(x) (the Twenty Questions game). Entropy is a concave function of p. 1 1 1 1 7 For example, let X = {x1, x2, x3, x4} and p(x1) = 2 , p(x2) = 4 , p(x3) = 8 , p(x4) = 8 . H(p) = 4 bits. This definition naturally extends to joint distributions. Assuming (x, y) ∼ p(x, y), X X H(p) = − p(x, y) log p(x, y). (2) x∈X y∈Y We sometimes write H(X) instead of H(p) with the understanding that p is the underlying distribution. The conditional entropy H(Y |X) is the amount of information needed to determine Y , if the other party knows X. X X X H(Y |X) = p(x)H(Y |X = x) = − p(x, y) log p(y|x). (3) x∈X x∈X y∈Y From above, we can derive the chain rule for entropy: H(X1:n) = H(X1) + H(X2|X1) + ..
    [Show full text]
  • Fundamentals of Principal Component Analysis (PCA), Independent Component Analysis (ICA), and Independent Vector Analysis (IVA)
    Advanced Signal Processing Group Fundamentals of Principal Component Analysis (PCA), Independent Component Analysis (ICA), and Independent Vector Analysis (IVA) Dr Mohsen Naqvi School of Electrical and Electronic Engineering, Newcastle University [email protected] UDRC Summer School Advanced Signal Processing Group Acknowledgement and Recommended text: Hyvarinen et al., Independent Component Analysis, Wiley, 2001 UDRC Summer School 2 Advanced Signal Processing Group Source Separation and Component Analysis Mixing Process Un-mixing Process 푥 푠1 1 푦1 H W Independent? 푠푛 푥푚 푦푛 Unknown Known Optimize Mixing Model: x = Hs Un-mixing Model: y = Wx = WHs =PDs UDRC Summer School 3 Advanced Signal Processing Group Principal Component Analysis (PCA) Orthogonal projection of data onto lower-dimension linear space: i. maximizes variance of projected data ii. minimizes mean squared distance between data point and projections UDRC Summer School 4 Advanced Signal Processing Group Principal Component Analysis (PCA) Example: 2-D Gaussian Data UDRC Summer School 5 Advanced Signal Processing Group Principal Component Analysis (PCA) Example: 1st PC in the direction of the largest variance UDRC Summer School 6 Advanced Signal Processing Group Principal Component Analysis (PCA) Example: 2nd PC in the direction of the second largest variance and each PC is orthogonal to other components. UDRC Summer School 7 Advanced Signal Processing Group Principal Component Analysis (PCA) • In PCA the redundancy is measured by correlation between data elements • Using
    [Show full text]
  • On the Estimation of Mutual Information
    proceedings Proceedings On the Estimation of Mutual Information Nicholas Carrara * and Jesse Ernst Physics department, University at Albany, 1400 Washington Ave, Albany, NY 12222, USA; [email protected] * Correspondence: [email protected] † Presented at the 39th International Workshop on Bayesian Inference and Maximum Entropy Methods in Science and Engineering, Garching, Germany, 30 June–5 July 2019. Published: 15 January 2020 Abstract: In this paper we focus on the estimation of mutual information from finite samples (X × Y). The main concern with estimations of mutual information (MI) is their robustness under the class of transformations for which it remains invariant: i.e., type I (coordinate transformations), III (marginalizations) and special cases of type IV (embeddings, products). Estimators which fail to meet these standards are not robust in their general applicability. Since most machine learning tasks employ transformations which belong to the classes referenced in part I, the mutual information can tell us which transformations are most optimal. There are several classes of estimation methods in the literature, such as non-parametric estimators like the one developed by Kraskov et al., and its improved versions. These estimators are extremely useful, since they rely only on the geometry of the underlying sample, and circumvent estimating the probability distribution itself. We explore the robustness of this family of estimators in the context of our design criteria. Keywords: mutual information; non-parametric entropy estimation; dimension reduction; machine learning 1. Introduction Interpretting mutual information (MI) as a measure of correlation has gained considerable attention over the past couple of decades for it’s application in both machine learning [1–4] and in dimensionality reduction [5], although it has a rich history in Communication Theory, especially in applications of Rate-Distortion theory [6] (While MI has been exploited in these examples, it has only recently been derived from first principles [7]).
    [Show full text]
  • Weighted Mutual Information for Aggregated Kernel Clustering
    entropy Article Weighted Mutual Information for Aggregated Kernel Clustering Nezamoddin N. Kachouie 1,*,†,‡ and Meshal Shutaywi 2,‡ 1 Department of Mathematical Sciences, Florida Institute of Technology, Melbourne, FL 32901, USA 2 Department of Mathematics, King Abdulaziz University, Rabigh 21911, Saudi Arabia; [email protected] * Correspondence: nezamoddin@fit.edu † Current address: 150 W. University Blvd., Melbourne, FL, USA. ‡ These authors contributed equally to this work. Received: 24 January 2020; Accepted: 13 March 2020; Published: 18 March 2020 Abstract: Background: A common task in machine learning is clustering data into different groups based on similarities. Clustering methods can be divided in two groups: linear and nonlinear. A commonly used linear clustering method is K-means. Its extension, kernel K-means, is a non-linear technique that utilizes a kernel function to project the data to a higher dimensional space. The projected data will then be clustered in different groups. Different kernels do not perform similarly when they are applied to different datasets. Methods: A kernel function might be relevant for one application but perform poorly to project data for another application. In turn choosing the right kernel for an arbitrary dataset is a challenging task. To address this challenge, a potential approach is aggregating the clustering results to obtain an impartial clustering result regardless of the selected kernel function. To this end, the main challenge is how to aggregate the clustering results. A potential solution is to combine the clustering results using a weight function. In this work, we introduce Weighted Mutual Information (WMI) for calculating the weights for different clustering methods based on their performance to combine the results.
    [Show full text]
  • Unsupervised Discovery of Temporal Structure in Noisy Data with Dynamical Components Analysis
    Unsupervised Discovery of Temporal Structure in Noisy Data with Dynamical Components Analysis David G. Clark∗;1;2 Jesse A. Livezey∗;2;3 Kristofer E. Bouchard2;3;4 [email protected] [email protected] [email protected] ∗Equal contribution. 1Center for Theoretical Neuroscience, Columbia University 2Biological Systems and Engineering Division, Lawrence Berkeley National Laboratory 3Redwood Center for Theoretical Neuroscience, University of California, Berkeley 4Helen Wills Neuroscience Institute, University of California, Berkeley Abstract Linear dimensionality reduction methods are commonly used to extract low- dimensional structure from high-dimensional data. However, popular methods disregard temporal structure, rendering them prone to extracting noise rather than meaningful dynamics when applied to time series data. At the same time, many successful unsupervised learning methods for temporal, sequential and spatial data extract features which are predictive of their surrounding context. Combining these approaches, we introduce Dynamical Components Analysis (DCA), a linear dimen- sionality reduction method which discovers a subspace of high-dimensional time series data with maximal predictive information, defined as the mutual information between the past and future. We test DCA on synthetic examples and demon- strate its superior ability to extract dynamical structure compared to commonly used linear methods. We also apply DCA to several real-world datasets, showing that the dimensions extracted by DCA are more useful than those extracted by other methods for predicting future states and decoding auxiliary variables. Over- all, DCA robustly extracts dynamical structure in noisy, high-dimensional data while retaining the computational efficiency and geometric interpretability of linear dimensionality reduction methods. 1 Introduction Extracting meaningful structure from noisy, high-dimensional data in an unsupervised manner is a fundamental problem in many domains including neuroscience, physics, econometrics and climatology.
    [Show full text]
  • Contents SYSTEMS GROUP
    DATABASE Contents SYSTEMS GROUP 1) Introduction to clustering 2) Partitioning Methods –K-Means –K-Medoid – Choice of parameters: Initialization, Silhouette coefficient 3) Expectation Maximization: a statistical approach 4) Density-based Methods: DBSCAN 5) Hierarchical Methods – Agglomerative and Divisive Hierarchical Clustering – Density-based hierarchical clustering: OPTICS 6) Evaluation of Clustering Results 7) Further Clustering Topics – Ensemble Clustering Clustering DATABASE Evaluation of Clustering Results SYSTEMS GROUP Ein paar Grundgedanken: – Clustering: Anwendung eines Verfahrens auf ein konkretes Problem (einen bestimmten Datensatz, über den man Neues erfahren möchte). Zur Erinnerung: KDD ist der Prozess der (semi-) automatischen Extraktion von Wissen aus Datenbanken, das gültig, bisher unbekannt und potentiell nützlich ist. – Frage: Was kann man mit den Ergebnissen anfangen? nicht unbedingt neue Erkenntnisse, aber gut überprüfbare Anwendung auf Daten, die bereits gut bekannt sind Anwendung auf künstliche Daten, deren Struktur by design bekannt ist Frage: Werden Eigenschaften/Strukturen gefunden, die der Algorithmus nach seinem Model finden sollte? Besser als andere Algorithmen? Überprüfbarkeit alleine ist aber fragwürdig! – grundsätzlich: Clustering ist unsupervised ein Clustering ist nicht richtig oder falsch, sondern mehr oder weniger sinnvoll ein “sinnvolles” Clustering wird von den verschiedenen Verfahren auf der Grundlage von verschiedenen Annahmen (Heuristiken!) angestrebt Überprüfung der Sinnhaftigkeit erfordert
    [Show full text]
  • Lecture 2 Entropy and Mutual Information Instructor: Yichen Wang Ph.D./Associate Professor
    Elements of Information Theory Lecture 2 Entropy and Mutual Information Instructor: Yichen Wang Ph.D./Associate Professor School of Information and Communications Engineering Division of Electronics and Information Xi’an Jiaotong University Outlines Entropy, Joint Entropy, and Conditional Entropy Mutual Information Convexity Analysis for Entropy and Mutual Information Entropy and Mutual Information in Communications Systems Xi’an Jiaotong University 3 Entropy Entropy —— 熵 Entropy in Thermodynamics(热力学) It was first developed in the early 1850s by Rudolf Clausius (French Physicist). System is composed of a very large number of constituents (atoms, molecule…). It is a measure of the number of the microscopic configurations that corresponds to a thermodynamic system in a state specified by certain macroscopic variables. It can be understood as a measure of molecular disorder within a macroscopic system. Xi’an Jiaotong University 4 Entropy Entropy in Statistical Mechanics(统计力学) The statistical definition was developed by Ludwig Boltzmann in the 1870s by analyzing the statistical behavior of the microscopic components of the system. Boltzmann showed that this definition of entropy was equivalent to the thermodynamic entropy to within a constant number which has since been known as Boltzmann's constant. Entropy is associated with the number of the microstates of a system. How to define ENTROPY in information theory? Xi’an Jiaotong University 5 Entropy Definition The entropy H(X) of a discrete random variable X is defined by p(x) is the probability mass function(概率质量函数)which can be written as The base of the logarithm is 2 and the unit is bits. If the base of the logarithm is e, then the unit is nats.
    [Show full text]
  • Estimating the Mutual Information Between Two Discrete, Asymmetric Variables with Limited Samples
    entropy Article Estimating the Mutual Information between Two Discrete, Asymmetric Variables with Limited Samples Damián G. Hernández * and Inés Samengo Department of Medical Physics, Centro Atómico Bariloche and Instituto Balseiro, 8400 San Carlos de Bariloche, Argentina; [email protected] * Correspondence: [email protected] Received: 3 May 2019; Accepted: 13 June 2019; Published: 25 June 2019 Abstract: Determining the strength of nonlinear, statistical dependencies between two variables is a crucial matter in many research fields. The established measure for quantifying such relations is the mutual information. However, estimating mutual information from limited samples is a challenging task. Since the mutual information is the difference of two entropies, the existing Bayesian estimators of entropy may be used to estimate information. This procedure, however, is still biased in the severely under-sampled regime. Here, we propose an alternative estimator that is applicable to those cases in which the marginal distribution of one of the two variables—the one with minimal entropy—is well sampled. The other variable, as well as the joint and conditional distributions, can be severely undersampled. We obtain a consistent estimator that presents very low bias, outperforming previous methods even when the sampled data contain few coincidences. As with other Bayesian estimators, our proposal focuses on the strength of the interaction between the two variables, without seeking to model the specific way in which they are related. A distinctive property of our method is that the main data statistics determining the amount of mutual information is the inhomogeneity of the conditional distribution of the low-entropy variable in those states in which the large-entropy variable registers coincidences.
    [Show full text]
  • Relation Between the Kantorovich-Wasserstein Metric and the Kullback-Leibler Divergence
    Relation between the Kantorovich-Wasserstein metric and the Kullback-Leibler divergence Roman V. Belavkin Abstract We discuss a relation between the Kantorovich-Wasserstein (KW) metric and the Kullback-Leibler (KL) divergence. The former is defined us- ing the optimal transport problem (OTP) in the Kantorovich formulation. The latter is used to define entropy and mutual information, which appear in variational problems to find optimal channel (OCP) from the rate distortion and the value of information theories. We show that OTP is equivalent to OCP with one additional constraint fixing the output measure, and there- fore OCP with constraints on the KL-divergence gives a lower bound on the KW-metric. The dual formulation of OTP allows us to explore the relation between the KL-divergence and the KW-metric using decomposition of the former based on the law of cosines. This way we show the link between two divergences using the variational and geometric principles. Keywords: Kantorovich metric · Wasserstein metric · Kullback-Leibler di- vergence · Optimal transport · Rate distortion · Value of information 1 Introduction The study of the optimal transport problem (OTP), initiated by Gaspar Monge [9], was advanced greatly when Leonid Kantorovich reformulated the arXiv:1908.09211v1 [cs.IT] 24 Aug 2019 problem in the language of probability theory [7]. Let X and Y be two mea- surable sets, and let P(X) and P(Y ) be the sets of all probability measures on X and Y respectively, and let P(X × Y ) be the set of all joint probability measures on X × Y . Let c : X × Y → R be a non-negative measurable func- tion, which we shall refer to as the cost function.
    [Show full text]