{"id":4138,"date":"2024-09-22T15:01:52","date_gmt":"2024-09-22T15:01:52","guid":{"rendered":"https:\/\/workhouse.sweetdishy.com\/?p=4138"},"modified":"2024-09-24T11:28:10","modified_gmt":"2024-09-24T11:28:10","slug":"mathematical-characteristics-of-the-entropy-function","status":"publish","type":"post","link":"https:\/\/workhouse.sweetdishy.com\/index.php\/2024\/09\/22\/mathematical-characteristics-of-the-entropy-function\/","title":{"rendered":"Mathematical characteristics of the entropy function"},"content":{"rendered":"\n<p>We will denote by an ensemble X the collection of events (represented by<\/p>\n\n\n\n<p>a random variable) x occurring with probability p(x):<\/p>\n\n\n\n<p>X \u2261 {x, p(x)}. (11.4)<\/p>\n\n\n\n<p>De\ufb01nition 11.1. The entropy function for an ensemble X is given by<\/p>\n\n\n\n<p>H(X) = \u2212k<\/p>\n\n\n\n<p>X<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>p(x) log p(x). (11.5)<\/p>\n\n\n\n<p>The number k is a constant which depends on the units in which H is mea-<\/p>\n\n\n\n<p>sured.<\/p>\n\n\n\n<p>The function H(X) satis\ufb01es the following properties.<\/p>\n\n\n\n<p>1. H(X) is always positive, and is continuous as a function of p(x) that is<\/p>\n\n\n\n<p>symmetric under exchange of any two events x<\/p>\n\n\n\n<p>i<\/p>\n\n\n\n<p>and x<\/p>\n\n\n\n<p>j<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>See footnote 1 on page 111.<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"https:\/\/learning.oreilly.com\/api\/v2\/epubs\/urn:orm:book:9781482238129\/files\/bgf2.png\" width=\"685\" height=\"868\"><\/p>\n\n\n\n<p>Characterization of Quantum Information 217<\/p>\n\n\n\n<p>2. It has a minimum value of 0, when only one event occurs with probability<\/p>\n\n\n\n<p>1 and all the rest have probability 0. This is obvious to see since H(p)<\/p>\n\n\n\n<p>is a positive function and its minimum has to be zero.<\/p>\n\n\n\n<p>3. It has a maximum value of k log n when each x occurs with equal prob-<\/p>\n\n\n\n<p>ability 1\/n. Here is a simple proof of this fact:<\/p>\n\n\n\n<p>H(X) \u2212 k log n = k<\/p>\n\n\n\n<p>X<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>p(x) log<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>p(x)<\/p>\n\n\n\n<p>\u2212 k<\/p>\n\n\n\n<p>X<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>p(x) log n<\/p>\n\n\n\n<p>= k<\/p>\n\n\n\n<p>X<\/p>\n\n\n\n<p>p(x) log<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>np(x)<\/p>\n\n\n\n<p>\u2264 k<\/p>\n\n\n\n<p>X<\/p>\n\n\n\n<p>p(x)<\/p>\n\n\n\n<p>\ue012<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>np(x)<\/p>\n\n\n\n<p>\u2212 1<\/p>\n\n\n\n<p>\ue013<\/p>\n\n\n\n<p>.<\/p>\n\n\n\n<p>This is because log x \u2264 x \u2212 1, with equality only if x = 1 (see Figure 11.2),<\/p>\n\n\n\n<p>an important result often used in information theoretic proofs.<\/p>\n\n\n\n<p>FIGURE 11.2: Graph of y = x \u2212 1 compared with y = ln x.<\/p>\n\n\n\n<p>So we have<\/p>\n\n\n\n<p>H(X) \u2212 k log n \u2264 k<\/p>\n\n\n\n<p>\ue012<\/p>\n\n\n\n<p>X<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>n<\/p>\n\n\n\n<p>\u2212<\/p>\n\n\n\n<p>X<\/p>\n\n\n\n<p>p(x)<\/p>\n\n\n\n<p>\ue013<\/p>\n\n\n\n<p>= 0,<\/p>\n\n\n\n<p>\u2234 H(X) \u2264 k log n. (11.6)<\/p>\n\n\n\n<p>Box 11.1: Binary Entropy<\/p>\n\n\n\n<p>A very useful concept is the entropy function of a probability distribution<\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"https:\/\/learning.oreilly.com\/api\/v2\/epubs\/urn:orm:book:9781482238129\/files\/bgf3.png\" width=\"685\" height=\"964\"><\/p>\n\n\n\n<p>218 Introduction to Quantum Physics and Information Processing<\/p>\n\n\n\n<p>of a binary random variable, such as the result of the toss of a coin, not<\/p>\n\n\n\n<p>necessarily unbiased. Here, one value occurs with probability p and the other<\/p>\n\n\n\n<p>with 1 \u2212 p. We then have<\/p>\n\n\n\n<p>H<\/p>\n\n\n\n<p>bin<\/p>\n\n\n\n<p>(p) = \u2212p log p \u2212 (1 \u2212 p) log(1 \u2212 p). (11.7)<\/p>\n\n\n\n<p>In this simple case all the listed properties of the mathematical entropy func-<\/p>\n\n\n\n<p>tion are obvious.<\/p>\n\n\n\n<p>1. Positive: H<\/p>\n\n\n\n<p>bin<\/p>\n\n\n\n<p>(p) &gt; 0 always;<\/p>\n\n\n\n<p>2. Symmetric: H<\/p>\n\n\n\n<p>bin<\/p>\n\n\n\n<p>(p) = H<\/p>\n\n\n\n<p>bin<\/p>\n\n\n\n<p>(1 \u2212 p);<\/p>\n\n\n\n<p>3. H<\/p>\n\n\n\n<p>bin<\/p>\n\n\n\n<p>(p) has a maximum of 1 when p = 1\/2 as in a fair coin;<\/p>\n\n\n\n<p>4. H<\/p>\n\n\n\n<p>bin<\/p>\n\n\n\n<p>(p) has a minimum of 0 when p = 1 as in a two-headed coin.<\/p>\n\n\n\n<p>FIGURE 11.3: The binary entropy function.<\/p>\n\n\n\n<p>This function is a useful tool in deriving properties of entropy, especially when<\/p>\n\n\n\n<p>di\ufb00erent probability distributions are mixed together. An important property<\/p>\n\n\n\n<p>of the entropy function is made evident in this simple case: that of concavity.<\/p>\n\n\n\n<p>This property is used very often in concluding various results in classical as<\/p>\n\n\n\n<p>well as quantum information theory. The graph in Figure 11.3 shows that the<\/p>\n\n\n\n<p>function is literally concave. A mathematical statement of this property is<\/p>\n\n\n\n<p>that the function lies above any line cutting the graph. Algebraically, for two<\/p>\n\n\n\n<p>points x<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>, x<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>&lt; 1, we have<\/p>\n\n\n\n<p>H<\/p>\n\n\n\n<p>bin<\/p>\n\n\n\n<p>\ue000<\/p>\n\n\n\n<p>px<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>+ (1 \u2212 p)x<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>\ue001<\/p>\n\n\n\n<p>\u2265 pH<\/p>\n\n\n\n<p>bin<\/p>\n\n\n\n<p>(x<\/p>\n\n\n\n<p>1<\/p>\n\n\n\n<p>) + (1 \u2212 p)H<\/p>\n\n\n\n<p>bin<\/p>\n\n\n\n<p>(x<\/p>\n\n\n\n<p>2<\/p>\n\n\n\n<p>). (11.8)<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Characterization of Quantum Information 219<\/p>\n\n\n\n<p>11.1.3 Relations between entropies of two sets of events<\/p>\n\n\n\n<p>From the way it is de\ufb01ned, Shannon entropy is closely related to probability<\/p>\n\n\n\n<p>theory. In this book, we do not expect a thorough background in probability<\/p>\n\n\n\n<p>theory, so I will simply draw your attention to some important results, so<\/p>\n\n\n\n<p>that you may be piqued enough to look them up on your own. Consider two<\/p>\n\n\n\n<p>ensembles X = {x, p(x)} and Y = {y, p(y)}. We will de\ufb01ne various measures<\/p>\n\n\n\n<p>to compare the probability distributions {p(x)} and {p(y)}.<\/p>\n\n\n\n<p>1. Relative entropy of X and Y measures the di\ufb00erence between the two<\/p>\n\n\n\n<p>probability distributions {p(x)} and {p(y)}:<\/p>\n\n\n\n<p>H(X k Y ) = \u2212<\/p>\n\n\n\n<p>X<\/p>\n\n\n\n<p>x,y<\/p>\n\n\n\n<p>p(x) log p(y) \u2212 H(X)<\/p>\n\n\n\n<p>=<\/p>\n\n\n\n<p>X<\/p>\n\n\n\n<p>x,y<\/p>\n\n\n\n<p>p(x) log<\/p>\n\n\n\n<p>p(y)<\/p>\n\n\n\n<p>p(x)<\/p>\n\n\n\n<p>. (11.9)<\/p>\n\n\n\n<p>Here again we use the convention that<\/p>\n\n\n\n<p>\u22120 log 0 \u2261 0, \u2212p(x) log 0 \u2261 \u221e, p(x) &gt; 0. (11.10)<\/p>\n\n\n\n<p>An important property of the relative entropy is that it is positive. The<\/p>\n\n\n\n<p>relative entropy is also called the Kullback\u2013Leibler distance. However,<\/p>\n\n\n\n<p>it is not symmetric, and so is not a true distance measure, but it gives<\/p>\n\n\n\n<p>us, for example, the error in assuming that a certain random variable<\/p>\n\n\n\n<p>has probability distribution {p(y)} when the true distribution is {p(x)}.<\/p>\n\n\n\n<p>Thus this de\ufb01nition is more useful when we have a set of events X with<\/p>\n\n\n\n<p>two di\ufb00erent probability distributions {p(x)} and {q(x)},<\/p>\n\n\n\n<p>H(p k q) =<\/p>\n\n\n\n<p>X<\/p>\n\n\n\n<p>x<\/p>\n\n\n\n<p>p(x) log<\/p>\n\n\n\n<p>p(x)<\/p>\n\n\n\n<p>q(x)<\/p>\n\n\n\n<p>. (11.11)<\/p>\n\n\n\n<p>2. Joint entropy of X and Y measures the combined information pre-<\/p>\n\n\n\n<p>sented by both distributions. Classically, the joint probability of X and<\/p>\n\n\n\n<p>Y , denoted by {p(x, y)}, is de\ufb01ned over a set X \u2297Y . The joint entropy<\/p>\n\n\n\n<p>is then<\/p>\n\n\n\n<p>H(X, Y ) = \u2212<\/p>\n\n\n\n<p>X<\/p>\n\n\n\n<p>x,y<\/p>\n\n\n\n<p>p(x, y) log p(x, y). (11.12)<\/p>\n\n\n\n<p>If X and Y are independent events, then<\/p>\n\n\n\n<p>H(X, Y ) = H(X) + H(Y ). (11.13)<\/p>\n\n\n\n<p>3. Conditional entropy measures the information gained by the occur-<\/p>\n\n\n\n<p>rence of X if Y has already occurred and we know the outcome. The<\/p>\n\n\n\n<p><code><mark style=\"background-color:#111111\" class=\"has-inline-color has-contrast-color\"><sup><img loading=\"lazy\" decoding=\"async\" width=\"358\" height=\"930\" src=\"https:\/\/learning.oreilly.com\/api\/v2\/epubs\/urn:orm:book:9781482238129\/files\/bgf5.png\" alt=\"\"><\/sup><\/mark><\/code><\/p>\n\n\n\n<p>220 Introduction to Quantum Physics and Information Processing<\/p>\n\n\n\n<p>FIGURE 11.4: Relationship between entropic quantities.<\/p>\n\n\n\n<p>classical conditional probability of an event x given y is de\ufb01ned as<\/p>\n\n\n\n<p>p(x|y) = p(x, y)\/p(y), and we have<\/p>\n\n\n\n<p>H(X|Y ) = \u2212<\/p>\n\n\n\n<p>X<\/p>\n\n\n\n<p>x,y<\/p>\n\n\n\n<p>p(x|y) log p(x|y) (11.14)<\/p>\n\n\n\n<p>= H(X, Y ) \u2212 H(Y ). (11.15)<\/p>\n\n\n\n<p>The second equation is an important relation: a chain rule for entropies:<\/p>\n\n\n\n<p>H(X, Y ) = H(X) + H(Y |X). (11.16)<\/p>\n\n\n\n<p>4. Mutual information measures the correlation between the distribu-<\/p>\n\n\n\n<p>tions of X and Y . This is the di\ufb00erence between the information gained<\/p>\n\n\n\n<p>by the occurrence of X, and the information gained by occurrence of X<\/p>\n\n\n\n<p>if Y has already occurred. The mutual information is symmetric, so we<\/p>\n\n\n\n<p>have<\/p>\n\n\n\n<p>I(X; Y ) = H(X) \u2212 H(X|Y ) = H(Y ) \u2212 H(Y |X) (11.17)<\/p>\n\n\n\n<p>= H(X) + H(Y ) \u2212 H(X, Y ). (11.18)<\/p>\n\n\n\n<p>The mutual information is a measure of how much the uncertainty about<\/p>\n\n\n\n<p>X is reduced by a knowledge of Y . You can also see that it is the relative<\/p>\n\n\n\n<p>entropy of the joint distribution p(x, y) and the product distribution<\/p>\n\n\n\n<p>p(x)p(y):<\/p>\n\n\n\n<p>I(X; Y ) =<\/p>\n\n\n\n<p>X<\/p>\n\n\n\n<p>x,y<\/p>\n\n\n\n<p>p(x, y) log<\/p>\n\n\n\n<p>p(x, y)<\/p>\n\n\n\n<p>p(x)p(y)<\/p>\n\n\n\n<p>. (11.19)<\/p>\n\n\n\n<p>One way to picture the interrelationships between these entropic quantities<\/p>\n\n\n\n<p>is the Venn diagram of Figure 11.4. Given these de\ufb01nitions, the Shannon<\/p>\n\n\n\n<p>entropies satisfy the following properties that are easily proved<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We will denote by an ensemble X the collection of events (represented by a random variable) x occurring with probability p(x): X \u2261 {x, p(x)}. (11.4) De\ufb01nition 11.1. The entropy function for an ensemble X is given by H(X) = \u2212k X x p(x) log p(x). (11.5) The number k is a constant which depends [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4045,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[500],"tags":[],"class_list":["post-4138","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-characterization-of-quantum-information"],"jetpack_featured_media_url":"https:\/\/workhouse.sweetdishy.com\/wp-content\/uploads\/2024\/09\/quantum-computing-2.png","_links":{"self":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts\/4138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/comments?post=4138"}],"version-history":[{"count":4,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts\/4138\/revisions"}],"predecessor-version":[{"id":4577,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts\/4138\/revisions\/4577"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/media\/4045"}],"wp:attachment":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/media?parent=4138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/categories?post=4138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/tags?post=4138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}