Recent from talks
Nothing was collected or created yet.
Information content
View on WikipediaThis article may require cleanup to meet Wikipedia's quality standards. The specific problem is: unclear terminology. (June 2017) |
In information theory, the information content, self-information, surprisal, or Shannon information is a basic quantity derived from the probability of a particular event occurring from a random variable. It can be thought of as an alternative way of expressing probability, much like odds or log-odds, but which has particular mathematical advantages in the setting of information theory.
The Shannon information can be interpreted as quantifying the level of "surprise" of a particular outcome. As it is such a basic quantity, it also appears in several other settings, such as the length of a message needed to transmit the event given an optimal source coding of the random variable.
The Shannon information is closely related to entropy, which is the expected value of the self-information of a random variable, quantifying how surprising the random variable is "on average". This is the average amount of self-information an observer would expect to gain about a random variable when measuring it.[1]
The information content can be expressed in various units of information, of which the most common is the "bit" (more formally called the shannon), as explained below.
The term 'perplexity' has been used in language modelling to quantify the uncertainty inherent in a set of prospective events.[citation needed]
Definition
[edit]Claude Shannon's definition of self-information was chosen to meet several axioms:
- An event with probability 100% is perfectly unsurprising and yields no information.
- The less probable an event is, the more surprising it is and the more information it yields.
- If two independent events are measured separately, the total amount of information is the sum of the self-informations of the individual events.
The detailed derivation is below, but it can be shown that there is a unique function of probability that meets these three axioms, up to a multiplicative scaling factor. Broadly, given a real number and an event with probability , the information content is defined as the negative log probability:The base corresponds to the scaling factor above. Different choices of b correspond to different units of information: when , the unit is the shannon (symbol Sh), often called a 'bit'; when , the unit is the natural unit of information (symbol nat); and when , the unit is the hartley (symbol Hart).
Formally, given a discrete random variable with probability mass function , the self-information of measuring as outcome is defined as:[2]The use of the notation for self-information above is not universal. Since the notation is also often used for the related quantity of mutual information, many authors use a lowercase for self-entropy instead, mirroring the use of the capital for the entropy.
Properties
[edit]This section needs expansion. You can help by adding to it. (August 2025) |
Monotonically decreasing function of probability
[edit]For a given probability space, the measurement of rarer events are intuitively more "surprising", and yield more information content than more "common" events. Thus, self-information is a strictly decreasing monotonic function of the probability, or sometimes called an "antitonic" function.[3]
While standard probabilities are represented by real numbers in the interval , self-information values are non-negative extended real numbers in the interval . Specifically:
- An event with probability (a certain event) has an information content of . Its occurrence is perfectly unsurprising and reveals no new information.
- An event with probability (an impossible event) has an information content of , which is undefined but is taken to be by convention. This reflects that observing an event believed to be impossible would be infinitely surprising.[4]
This monotonic relationship is fundamental to the use of information content as a measure of uncertainty. For example, learning that a one-in-a-million lottery ticket won provides far more information than learning it lost (See also Lottery mathematics.) This also establishes an intuitive connection to concepts like statistical dispersion; events that are far from the mean or typical outcome (and thus have low probability in many common distributions) have high self-information.
Relationship to log-odds
[edit]The Shannon information is closely related to the log-odds. The log-odds of an event , with probability , is defined as the logarithm of the odds, . This can be expressed as a difference of two information content values:where denotes the event not .
This expression can be interpreted as the amount of information gained (or surprise) from learning the event did not occur, minus the information gained from learning it did occur. This connection is particularly relevant in statistical modeling where log-odds are the core of the logit function and logistic regression.[5]
Additivity of independent events
[edit]The information content of two independent events is the sum of each event's information content. This property is known as additivity in mathematics. Consider two independent random variables and with probability mass functions and . The joint probability of observing the outcome is given by the product of the individual probabilities due to independence:The information content of this joint event is:This additivity makes information content a more mathematically convenient measure than probability in many applications, such as in coding theory where the amount of information needed to describe a sequence of independent symbols is the sum of the information needed for each symbol.[3]
The corresponding property for likelihoods is that the log-likelihood of independent events is the sum of the log-likelihoods of each event. Interpreting log-likelihood as "support" or negative surprisal (the degree to which an event supports a given model: a model is supported by an event to the extent that the event is unsurprising, given the model), this states that independent events add support: the information that the two events together provide for statistical inference is the sum of their independent information.
Relationship to entropy
[edit]The Shannon entropy of the random variable is defined as:by definition equal to the expected information content of measurement of .[6]: 11 [7]: 19–20
The expectation is taken over the discrete values over its support.
Sometimes, the entropy itself is called the "self-information" of the random variable, possibly because the entropy satisfies , where is the mutual information of with itself.[8]
For continuous random variables the corresponding concept is differential entropy.
Notes
[edit]This measure has also been called surprisal, as it represents the "surprise" of seeing the outcome (a highly improbable outcome is very surprising). This term (as a log-probability measure) was introduced by Edward W. Samson in his 1951 report "Fundamental natural concepts of information theory".[9][10] An early appearance in the Physics literature is in Myron Tribus' 1961 book Thermostatics and Thermodynamics.[11][12]
When the event is a random realization (of a variable) the self-information of the variable is defined as the expected value of the self-information of the realization.[citation needed]
Examples
[edit]Fair coin toss
[edit]Consider the Bernoulli trial of tossing a fair coin . The probabilities of the events of the coin landing as heads and tails (see fair coin and obverse and reverse) are one half each, . Upon measuring the variable as heads, the associated information gain is so the information gain of a fair coin landing as heads is 1 shannon.[2] Likewise, the information gain of measuring tails is
Fair die roll
[edit]Suppose we have a fair six-sided die. The value of a die roll is a discrete uniform random variable with probability mass function The probability of rolling a 4 is , as for any other valid roll. The information content of rolling a 4 is thusof information.
Two independent, identically distributed dice
[edit]Suppose we have two independent, identically distributed random variables each corresponding to an independent fair 6-sided dice roll. The joint distribution of and is
The information content of the random variate is and can also be calculated by additivity of events
Information from frequency of rolls
[edit]If we receive information about the value of the dice without knowledge of which die had which value, we can formalize the approach with so-called counting variables for , then and the counts have the multinomial distribution
To verify this, the 6 outcomes correspond to the event and a total probability of 1/6. These are the only events that are faithfully preserved with identity of which dice rolled which outcome because the outcomes are the same. Without knowledge to distinguish the dice rolling the other numbers, the other combinations correspond to one die rolling one number and the other die rolling a different number, each having probability 1/18. Indeed, , as required.
Unsurprisingly, the information content of learning that both dice were rolled as the same particular number is more than the information content of learning that one die was one number and the other was a different number. Take for examples the events and for . For example, and .
The information contents are
Let be the event that both dice rolled the same value and be the event that the dice differed. Then and . The information contents of the events are
Information from sum of dice
[edit]The probability mass or density function (collectively probability measure) of the sum of two independent random variables is the convolution of each probability measure. In the case of independent fair 6-sided dice rolls, the random variable has probability mass function , where represents the discrete convolution. The outcome has probability . Therefore, the information asserted is
General discrete uniform distribution
[edit]Generalizing the § Fair dice roll example above, consider a general discrete uniform random variable (DURV) For convenience, define . The probability mass function is In general, the values of the DURV need not be integers, or for the purposes of information theory even uniformly spaced; they need only be equiprobable.[2] The information gain of any observation is
Special case: constant random variable
[edit]If above, degenerates to a constant random variable with probability distribution deterministically given by and probability measure the Dirac measure . The only value can take is deterministically , so the information content of any measurement of isIn general, there is no information gained from measuring a known value.[2]
Categorical distribution
[edit]Generalizing all of the above cases, consider a categorical discrete random variable with support and probability mass function given by
For the purposes of information theory, the values do not have to be numbers; they can be any mutually exclusive events on a measure space of finite measure that has been normalized to a probability measure . Without loss of generality, we can assume the categorical distribution is supported on the set ; the mathematical structure is isomorphic in terms of probability theory and therefore information theory as well.
The information of the outcome is given
From these examples, it is possible to calculate the information of any set of independent DRVs with known distributions by additivity.
Derivation
[edit]By definition, information is transferred from an originating entity possessing the information to a receiving entity only when the receiver had not known the information a priori. If the receiving entity had previously known the content of a message with certainty before receiving the message, the amount of information of the message received is zero. Only when the advance knowledge of the content of the message by the receiver is less than 100% certain does the message actually convey information.
For example, quoting a character (the Hippy Dippy Weatherman) of comedian George Carlin:
Weather forecast for tonight: dark. ] Continued dark overnight, with widely scattered light by morning.[13]
Assuming that one does not reside near the polar regions, the amount of information conveyed in that forecast is zero because it is known, in advance of receiving the forecast, that darkness always comes with the night.
Accordingly, the amount of self-information contained in a message conveying an occurrence of event, , depends only on the probability of that event.for some function to be determined. If , then . If , then .
Further, by definition, the measure of self-information is nonnegative and additive. If an event is the intersection of two independent events and , then the information of event occurring is the sum of the amounts of information of the individual events and :Because of the independence of events and , the probability of event is:Relating the probabilities to the function :This is a functional equation. The only continuous functions with this property are the logarithm functions. Therefore, must be of the form:for some base and constant . Since a low-probability event must correspond to high information content, the constant must be negative. We can write and absorb any scaling into the base of the logarithm. This gives the final form:The smaller the probability of event , the larger the quantity of self-information associated with the message that the event indeed occurred. If the above logarithm is base 2, the unit of is shannon. This is the most common practice. When using the natural logarithm of base , the unit will be the nat. For the base 10 logarithm, the unit of information is the hartley.
As a quick illustration, the information content associated with an outcome of 4 heads (or any specific outcome) in 4 consecutive tosses of a coin would be 4 shannons (probability 1/16), and the information content associated with getting a result other than the one specified would be shannons. See above for detailed examples.
See also
[edit]References
[edit]- ^ Jones, D.S., Elementary Information Theory, Vol., Clarendon Press, Oxford pp 11–15 1979
- ^ a b c d McMahon, David M. (2008). Quantum Computing Explained. Hoboken, NJ: Wiley-Interscience. ISBN 9780470181386. OCLC 608622533.
- ^ a b Cover, T.M.; Thomas, J.A. (2006). Elements of Information Theory (2nd ed.). Wiley-Interscience. p. 20. ISBN 978-0471241959.
- ^ MacKay, David J.C. (2003). Information Theory, Inference, and Learning Algorithms. Cambridge University Press. p. 32. ISBN 978-0521642989.
- ^ Bishop, Christopher M. (2006). Pattern Recognition and Machine Learning. Springer. p. 205. ISBN 978-0387310732.
- ^ Borda, Monica (2011). Fundamentals in Information Theory and Coding. Springer. ISBN 978-3-642-20346-6.
- ^ Han, Te Sun; Kobayashi, Kingo (2002). Mathematics of Information and Coding. American Mathematical Society. ISBN 978-0-8218-4256-0.
- ^ Thomas M. Cover, Joy A. Thomas; Elements of Information Theory; p. 20; 1991.
- ^
Samson, Edward W. (1953) [Originally published October 1951 as Tech Report No. E5079, Air Force Cambridge Research Center]. [[suspicious link removed] "Fundamental natural concepts of information theory"]. ETC: A Review of General Semantics. 10 (4, Summer 1953, special issue on information theory): 283–297. JSTOR 42581366.
{{cite journal}}: Check|url=value (help) - ^ Attneave, Fred (1959). Applications of Information Theory to Psychology: A Summary of Basic Concepts, Methods, and Results (1 ed.). New York: Holt, Rinehart and Winston.
- ^ Bernstein, R. B.; Levine, R. D. (1972). "Entropy and Chemical Change. I. Characterization of Product (And Reactant) Energy Distributions in Reactive Molecular Collisions: Information and Entropy Deficiency". The Journal of Chemical Physics. 57 (1): 434–449. Bibcode:1972JChPh..57..434B. doi:10.1063/1.1677983.
- ^ Myron Tribus (1961) Thermodynamics and Thermostatics: An Introduction to Energy, Information and States of Matter, with Engineering Applications (D. Van Nostrand, 24 West 40 Street, New York 18, New York, U.S.A) Tribus, Myron (1961), pp. 64–66 borrow.
- ^ "A quote by George Carlin". www.goodreads.com. Retrieved 2021-04-01.
Further reading
[edit]- C.E. Shannon, A Mathematical Theory of Communication, Bell Systems Technical Journal, Vol. 27, pp 379–423, (Part I), 1948.
External links
[edit]Information content
View on GrokipediaBasic Concepts
Formal Definition
In information theory, the information content, also known as self-information, quantifies the amount of information associated with the occurrence of a specific outcome in a discrete probability space.[4] For a discrete random variable taking values in a finite or countably infinite set , the information content of the event , where , is defined as with denoting the probability of the event and the base of the logarithm.[4] This formulation applies specifically to discrete probability distributions, where is given by the probability mass function of . A common notation convention uses the lowercase function , with . The choice of base determines the units: yields bits, while yields nats. A special case occurs when , corresponding to a certain event, in which . This reflects that no additional information is conveyed by an outcome that is guaranteed to happen.Interpretation as Surprisal
The information content of an event, often interpreted as surprisal, quantifies the degree of surprise or unexpectedness associated with its occurrence. Low-probability events are highly surprising and therefore carry substantial information content, as their realization resolves a greater degree of prior doubt. In contrast, high-probability events are anticipated and contribute only minimal information, reflecting their lack of novelty. This perspective emphasizes that information arises from the resolution of uncertainty rather than mere occurrence.[5] The foundational concept of information as a measure of surprise originated in Claude Shannon's 1948 paper "A Mathematical Theory of Communication," which described the information provided by an outcome in probabilistic terms to model efficient communication systems. The term "surprisal" itself, denoting this specific quantity, was coined by Myron Tribus in his 1961 book Thermostatics and Thermodynamics, where he applied information-theoretic ideas to physical systems and engineering contexts. This terminology has since become standard in discussions of self-information.[4][6] Surprisal differs from broader measures of uncertainty in that it evaluates the surprise of a single, specific outcome rather than the overall unpredictability across an entire probability distribution. While the latter captures average expected surprise, surprisal focuses on the instantaneous information yield from one realization. This distinction highlights surprisal's role in pinpointing event-specific informativeness.[7] Conceptually, surprisal represents the reduction in uncertainty achieved upon observing the event, transforming prior probabilistic expectations into a definite knowledge state. This aligns with the formal definition of information content as the negative logarithm of the event's probability, underscoring its interpretive value in both communication and decision-making processes.[8]Mathematical Properties
Monotonicity with Respect to Probability
The information content of an event with probability , denoted , is a monotonically decreasing function of for .[9] Specifically, , reflecting that a certain event carries no information, and , indicating that an impossible event would provide infinite information if observed.[4] This monotonicity holds regardless of the logarithmic base used, as long as it is greater than 1.[9] To see why is monotonically decreasing, consider the negative logarithm function , which is strictly decreasing on the interval because the logarithm itself is strictly increasing. Composing this with , an increasing parameter in that interval, preserves the decreasing nature of the overall function.[9] Thus, as the probability increases, the information content decreases.[4] This property has key implications for understanding information: rarer events, characterized by smaller , yield higher information content upon realization, as they are more surprising.[9] In contrast, highly probable events provide minimal or no information, aligning with intuitive notions of surprise in communication.[4] Qualitatively, the curve of versus (using the natural logarithm, for instance) resembles a hyperbola, starting asymptotically from infinity near and curving downward to reach zero at .[9] This shape underscores the unbounded growth of information for vanishing probabilities while ensuring finite values for all practical .[4]Additivity for Independent Events
One key mathematical property of information content is its additivity when applied to independent events. For two independent random variables and , the information content of the joint outcome equals the sum of the individual information contents:This holds because independence ensures that the joint probability factors multiplicatively, preserving the logarithmic structure of the measure.[10] The derivation follows directly from the definition of information content. Given independence, the joint probability satisfies . Substituting into the formula yields
where the logarithm's additive property over products is key. This result underscores the measure's compatibility with probabilistic independence.[10] This additivity enables the decomposition of joint information into independent marginal components, a principle central to information theory's applications in coding and compression. For instance, it justifies assigning code lengths in source coding that sum across independent symbols, optimizing average code length to approach the entropy bound.[4] The property generalizes to any finite collection of independent events , where the joint information content is the linear sum: . This extension supports scalable analyses in multi-source communication systems.[10]
Relationship to Log-Odds
In the context of binary events, where an outcome occurs with probability and fails to occur with probability , the log-odds is defined as the logarithm of the odds ratio, given by .[11] This measure quantifies the relative likelihood of the event versus its complement on a logarithmic scale, providing a symmetric transformation that maps probabilities in (0,1) to the real line.[11] The information content, or surprisal, for a binary event with probability is , representing the surprise associated with observing the event. Similarly, the surprisal for the complementary event is . The log-odds can then be expressed directly in terms of these surprisals as .[12] This relation highlights the log-odds as the difference between the surprisals of the two possible outcomes, underscoring an inherent asymmetry in the information content unless , where and the log-odds is zero.[12] Additionally, the sum of the surprisals for the binary outcomes yields , which captures the total information scale for the partition into success and failure. This tie emphasizes how information content structures the uncertainty across the binary possibilities. This connection finds practical application in logistic regression, where model coefficients are interpreted as changes in the log-odds of the outcome given predictors, effectively modeling shifts in the relative surprisals between classes. Such odds-based measures extend to information criteria in model selection, where deviations in surprisal differences inform predictive asymmetry. The framework highlights the non-symmetric nature of surprisal in binary scenarios, influencing how improbable events contribute disproportionately to log-odds variations. While log-odds is inherently tied to binary partitions, the underlying concept of contrasting surprisals informs broader information measures for non-binary cases, such as in partition-based decompositions where outcomes are grouped into mutually exclusive categories.[12]Connections to Information Theory
Relation to Entropy
The Shannon entropy of a discrete random variable emerges as the expected value of the information content over the probability distribution . This relationship is expressed mathematically as where the summation is taken over all possible outcomes in the support of .[13][4] This formulation arises because entropy serves to quantify the average uncertainty inherent in the random variable , while the information content provides the specific measure of uncertainty resolved upon observing a particular outcome . By computing the expectation, averages the surprisal across outcomes, weighted by their probabilities, thereby capturing the overall informational unpredictability of the distribution.[13] Through this expectation, entropy inherits essential properties from the information content function. For instance, the non-negativity of ensures that , reflecting that uncertainty cannot be negative. Similarly, the additivity of information content for independent events transfers to entropy, yielding when and are independent random variables.[13] Claude Shannon originally derived the entropy formula in 1948 by positing axioms for an uncertainty measure, including continuity in probabilities, monotonicity under refinement of partitions, and additivity for independent ensembles, which uniquely determine the surprisal-based expression.[4]Units of Information
The unit of information content depends on the base of the logarithm in its definition . When , the resulting unit is the bit (also called the shannon). For , the unit is the nat. When , the unit is the ban (also known as the decit or hartley, though rarely used in contemporary work). Conversions between these units follow from the change-of-base formula for logarithms. Specifically, 1 nat bits, while 1 bit nats. Likewise, 1 ban bits, while 1 bit bans. In information theory, bits serve as the conventional unit for digital systems and communication applications, aligning with binary representations, whereas nats are favored in theoretical and continuous-domain analyses for their compatibility with natural logarithms. These units extend to entropy , the expected information content of a random variable , where the numerical value scales with the base but preserves conceptual properties. The choice of base does not affect qualitative aspects of information content, such as its monotonicity in probability, since the measure differs only by a multiplicative constant .Illustrative Examples
Fair Coin Toss and Die Roll
In the case of a fair coin toss, each outcome—heads or tails—occurs with probability . The information content for observing heads (or tails) is given by bit, quantifying the surprisal of an event that is equally likely.[4] The average information content, or entropy, over both outcomes is thus 1 bit, reflecting the uncertainty resolved by the toss.[4] For a fair six-sided die roll, each face has probability . The information content for any specific face is bits, indicating greater surprisal due to the lower probability compared to the coin.[4] This value is the same for all faces, and the average entropy is approximately 2.585 bits.[4] Coin outcomes carry less information content than die outcomes because their higher probability makes them less surprising, consistent with the monotonic decrease of information content as probability increases.[4] The following table compares the probabilities and information contents for these uniform cases:| Experiment | Number of Outcomes | Probability per Outcome | Information Content per Outcome (bits) |
|---|---|---|---|
| Fair Coin Toss | 2 | 0.5 | 1 |
| Fair Six-Sided Die | 6 | 1/6 (≈0.1667) | ≈2.585 |
Dice Rolls: Frequency and Sum
When two fair six-sided dice are rolled independently, each specific outcome pair, such as (1,1) or (3,4), has a joint probability of , yielding an information content of bits.[14] This value arises from the additivity property for independent events, where the self-information of the joint outcome equals the sum of the individual self-informations: bits per die.[14] In contrast, consider the information content associated with the sum of the two dice faces, which ranges from 2 to 12 but with unequal probabilities due to the varying number of ways each sum can occur. For instance, the sum of 7 has the highest probability of , resulting in bits, reflecting its relative unsurprising nature.[15] Conversely, the sum of 2 (or 12) has the lowest probability of , giving bits, which conveys more surprise as an outcome.[15] This demonstrates how the information content for a derived quantity like the sum depends solely on its marginal probability, independent of the underlying joint distribution details. The following table summarizes the probabilities and corresponding information contents for all possible sums of two fair dice:| Sum | Probability | Information Content (bits) |
|---|---|---|
| 2 | ≈5.170 | |
| 3 | ≈4.170 | |
| 4 | ≈3.585 | |
| 5 | ≈3.170 | |
| 6 | ≈2.847 | |
| 7 | ≈2.585 | |
| 8 | ≈2.847 | |
| 9 | ≈3.170 | |
| 10 | ≈3.585 | |
| 11 | ≈4.170 | |
| 12 | ≈5.170 |
