A camera monitoring a work area detects a person. A second program receives a copy of the same image and reports the same detection. There are two reports, but one observation. A camera looking from another direction might instead reveal a previously hidden area. Its report could have exactly the same file size while changing what we know. Can file size, observation count, and newly obtained information all be measured by the same number?
The first question in this information theory series concerns measurement. We will construct the self-information of an individual outcome from its probability and prove why a logarithm appears. We will then calculate how this quantity differs from the number of bits actually transmitted and what we must know before adding the information in two observations. Entropy, the average information quantity, will be the central question of the next installment.
Our starting source is Lecture 2, January 14, 2026, five review slides and seven lecture-note pages, from Mingyue Jiβs University of Florida EEL6532, Spring 2026. We link those pages in order. The proofs, camera examples, and coding calculations below are independently developed teaching material. The official lecture video is an accompanying reference link. This article is not a transcript checked against the videoβs speech or timestamps.
The original Lecture 2 has two distinct PDFs: five review slides and seven handwritten lecture-note pages, both published by the university. Each original page is displayed here from the university-linked source, followed by explanations, proofs, and supplementary examples. No author-redrawn guide substitutes for an original lecture page. On browsers that cannot embed PDFs, open the matching original page using the link beneath it. Source documents: lecture notes Β· review slides.
#Original review slide 1/5 β Lecture title
The cover establishes the lecture, instructor, and date. Before measuring information, we define an experiment. Changing the experiment can change the probability assigned to exactly the same statement.
Suppose we choose a time interval at random and record whether a person was present in a work area. There are two outcomes, person present and person absent. Before reading the record, either is possible. After reading it, we know which occurred. As a starting point, an information measure can quantify how unexpected the particular outcome was under its assigned probability.
The statement person present does not determine that number by itself. Its probability differs between an experiment in which an operator is almost always present and one in which people enter only occasionally. We must first decide what counts as a trial and which times and environments define the probability. All numerical examples below belong to their specified probability models. They are not measurements from an actual laboratory.
#The two uses of the word bit
A binary digit is a storage or representation unit taking the value 0 or 1. A bit of information is a unit for a quantity calculated under a probability model. Coding and communication theorems connect the two precisely, but their numerical values need not agree in an individual case. MacKay distinguishes these uses while defining individual information content and its average in Β§2.4, chapter PDF page 11 / printed page 32.
If a receiver already knows the exact contents of a 100-bit file, receiving another copy does not reduce uncertainty about those contents. Conversely, a physical one-bit alarm can have an active outcome whose self-information exceeds one bit if that outcome is rare. The physical signal has not suddenly grown into a longer message. We will examine that distinction explicitly in the coding example.
#Original review slide 2/5 β The two questions of the lecture
Review slide 2 states the two questions for the lesson. The eight-state binary decision tree that follows is an independently authored mathematical example, not a figure from the original slide.
Begin with a restricted problem. A robot is in one of eight possible states. We can ask questions with yes-or-no answers and want to identify the state without error. In this example, questions can be designed freely. We do not separately charge for sending the questions and receiving the answers.
The first question divides the eight states into two groups of four. The second divides the remaining four into two groups of two. The third distinguishes the final pair. Concatenating the three answers produces the eight patterns from 000 to 111. This is a binary decision tree that reaches every answer within three questions.
Here is the number of states to distinguish and is the number of bits used for the answer. Binary strings of length exactly have only distinct values. A binary question tree that always finishes within questions also distinguishes at most that many outcomes. The inequality is therefore necessary. Assigning a different binary string to each state achieves the corresponding fixed-length bound.
| Number of possible states | Minimum fixed length / minimum worst-case questions | |
|---|---|---|
| 1 | 0 | 0 bits / 0 questions |
| 2 | 1 | 1 bit / 1 question |
| 3 | Approximately 1.584963 | 2 bits / 2 questions |
| 4 | 2 | 2 bits / 2 questions |
| 8 | 3 | 3 bits / 3 questions |
Notice the three-state row. Although lies between one and two, an individual fixed-length message cannot contain 1.584963 binary positions. Length is an integer, so we must take a ceiling. If there is only one possible state and both parties know that, no message is needed to identify it.
#Why multiply the possibilities but add the information?
Repeat the eight-state experiment independently twice. There are 64 possible ordered pairs. Three bits identify the first result and another three identify the second, for six bits in total. The number of possibilities multiplied while the representation length added.
A logarithm converts multiplication into addition. This is a central motivation for a logarithmic information measure. Moser introduces the Hartley measure of outcome count at this point in his 2026 lecture notes, version 6.22, Β§1.1, PDF page 20 / printed page 2. A natural motivation does not yet determine every information measure over probabilities. We now extend the question to outcomes that have different probabilities.
#Original review slide 3/5 β Information as uncertainty
Handwritten note page 2 compares uncertainty under fair and biased coins. The functional-equation derivation and uniqueness proof that follow are supplementary analysis rather than the lecturerβs stated proof.
Knowing that an experiment has two outcomes does not tell us how predictable they are. An experiment with probabilities 1/2 and 1/2 uses the same number of symbols as one with probabilities 99/100 and 1/100, but prediction begins from a different position. Before assigning one number to the experiment as a whole, we will assign a number to the particular outcome that occurred.
For an outcome with probability , write its self-information as , with domain . Its input is the probability assigned to the outcome, rather than the outcomeβs meaning or reward. Outcomes assigned the same probability receive the same number.
We choose the following conditions for our derivation. The probabilities of independent events multiply, so we require the information in their joint occurrence to add. We require continuity, preventing a small change in probability from producing a sudden jump in the quantity. Finally, we normalize the information in an outcome of probability 1/2 to one bit.
The first condition is a functional equation over probabilities. It does not assert that we may multiply the probabilities of any two events. It requires information to add in a situation where the joint probability is the product. For dependent observations, we will use conditional probabilities below.
Continuity is a regularity condition. We use it here to make the proof direct. Monotonicityβrequiring information not to decrease when probability decreasesβcan also provide the needed regularity. We need not list both as separate necessary assumptions. We should, however, avoid writing additivity alone and then asserting that every real-valued solution must be logarithmic.
#Deriving the logarithm by constructing an additive function
For , represent a probability as . Call the information at that probability .
The condition on probability products now becomes a condition on sums of real numbers.
Normalization gives . Because , we also have . For every positive integer , adding one that many times yields . Next, divide one into equal parts.
We therefore know the answer for every nonnegative rational number.
For any nonnegative real number , choose a sequence of rational numbers converging to it. Since and the exponential function are continuous, is continuous too. This is where the regularity assumption enters the proof.
Substituting determines the function satisfying our conditions.
This proves uniqueness under the stated conditions. It does not prove that every kind of information, knowledge, or value must use this measure. The axioms of entropy, average code lengths, and channel capacity each introduce their own conditions and operational problems.
#Halving the probability adds one bit
Read the difference between two information values rather than memorizing the formula alone.
Reducing probability from 1/2 to 1/4 adds one bit, and so does reducing it from 1/100 to 1/200. A probability ratio determines this difference, rather than a fixed absolute probability change.
| Outcome probability | Self-information | Interpretation |
|---|---|---|
| 1 | 0 bits | Certain under the model |
| Approximately 0.415037 bits | More predictable than a fair binary outcome | |
| 1 bit | The unitβs reference value | |
| 2 bits | One bit more than an outcome of probability | |
| 3 bits | One bit more than an outcome of probability | |
| Approximately 6.643856 bits | An outcome assigned a small probability |
Differentiating the curve confirms that information decreases as probability increases and changes more steeply near zero.
Probability zero lies outside the domain of this real-valued function. The limit as probability approaches zero from the right is infinite. If we observe an outcome to which our model assigned probability zero, we should first examine whether the modelβs support matches the data. The calculation does not mean that we have acquired an infinite amount of useful knowledge about the world.
#Original review slide 4/5 β Random variables and probability mass functions
Handwritten note page 3 defines the random variable and probability mass function (PMF). The person-detection example below is an independently authored application of those definitions.
Write for a random variable, for its possible values, and for one particular value. A discrete variableβs probability mass function, or PMF, assigns a probability to each value. Keeping these objects separate helps prevent mistakes about what goes into an information calculation.
| Notation | Meaning | Person-detection example |
|---|---|---|
| Random variable defined before an outcome is known | The detection report | |
| One possible value | = person detected | |
| Probability assigned to that outcome | ||
| Self-information of that particular outcome | bits | |
| An information random variable that varies across trials | Either 2 or approximately 0.415037 bits |
The last row connects to the next installment. Before the observation, is still a random variable. Detection produces two bits; no detection produces approximately 0.415037 bits. If we want to summarize the experiment by one number before knowing which outcome will occur, what operation should we choose? Keep that question separate from the definition of individual self-information.
#The logarithmβs base chooses the unit
Using a natural logarithm gives nats. Changing the base does not change which outcome is rarer; it changes the scale used to express the same quantity. The logarithmic units are listed in MIT 6.441 Spring 2016, Chapter 1, PDF page 2 / printed page 9.
One bit is approximately 0.693147 nats, and one nat is approximately 1.442695 bits. An outcome of probability 1/4 has two bits or approximately 1.386294 nats of self-information. Match the units before comparing a training loss calculated with natural logarithms against a compression rate expressed in bits.
At this stage, is a discrete outcomeβs probability. Do not silently substitute a continuous probability density in its place. A density carries units and can exceed one. We will explain the need for coordinate transformations and differential entropy in the installments about continuous information measures.
#Can an outcome worth 6.64 bits be reported using one bit?
Let an alarm variable satisfy . Its active outcome has the following self-information.
The sender can nevertheless use the code 1 for an active alarm and 0 for an inactive alarm. The receiver learns the outcome exactly, and each codeword has length one bit. There is no contradiction. Self-information is a quantity derived from probability; code length describes a representation we choose. There is no general requirement that each outcomeβs actual codeword be at least as long as its self-information. Theorems about average code length and compression limits consider the probabilities and the structure of the code together.
Return to the three-state example to understand fractional information values. Suppose its states are equally likely and we repeat the experiment independently times. Distinguishing all possible state sequences of length means distinguishing sequences. Map each block to a fixed-length binary string. The required block length and number of bits per state are then
| States per block | Possible sequences | Required total bits | Bits per state |
|---|---|---|---|
| 1 | 3 | 2 | 2 |
| 2 | 9 | 4 | 2 |
| 5 | 243 | 8 | 1.6 |
| 10 | 59,049 | 16 | 1.6 |
There are 256 binary strings of length eight, enough to distinguish all 243 sequences of five three-state outcomes. Sending each state separately in two bits would require ten bits. Numbering the entire block requires only eight. This assumes that both parties already know the numbering rule and the block boundaries. Larger blocks can introduce delay and implementation costs, so reducing storage alone does not complete a system design.
We have used only a counting argument to distinguish all equally likely state sequences. We have not yet proved the source coding theorem for a general source with unequal probabilities. The example does, however, answer an initial question precisely: how can information be fractional if an individual binary codeword has an integer length? The ratio of the whole blockβs integer length to its number of symbols can be a real number.
#Original review slide 5/5 β Entropy axioms and grouping
Handwritten pages 4β7 proceed through normalization, monotonicity and continuity of entropy, then grouping, its three-outcome formula and its generalization. All four original pages appear in that order.
We derived , which takes one probability as input. This page turns to conditions on , which takes an entire distribution. Their connection with logarithms does not make them the same uniqueness problem. Defining a distributionβs uncertainty also requires deciding how it decomposes when outcomes are grouped and then distinguished within the groups.
Write the grouping property for three outcomes. The positive probabilities sum to one. First determine whether the outcome belongs to the group consisting of the first two possibilities. Only if it does do we need to distinguish between those two possibilities.
The within-group term has weight , because that second step is not required on every trial. The equation for self-information had no such averaging over a distribution. One equation describes a particular joint outcome; the other summarizes an experiment over all of its possible outcomes.
This installment has solved the functional equation for self-information and identified the additional question entropy must answer. It does not claim a complete axiomatic uniqueness proof for entropy. Moser Β§1.1, PDF page 24 / printed page 6 likewise distinguishes intuitive motivations from sufficient conditions for uniqueness. A more formal set of conditions appears in Appendix 1.A, PDF pages 42β43 / printed pages 24β25.
#Adding two camera reports requires their joint probability
Return to the camera example. Let and be the binary results in two reports. If we observe , the self-information of that joint outcome is calculated from the joint probability, not from two marginal probabilities alone.
#A perfectly copied report does not double the information
Assign probability 1/4 to the first result being one, and let the second program copy the first result exactly: . The only possible report pairs are (0,0) and (1,1). The probability of (1,1) is 1/4.
Viewed separately, each report has probability 1/4 of being one. Multiplying those marginals to obtain 1/16 would replace the actual joint model with an independent model. It would produce four bits, but that would not answer the copying example. Once we have read the first report, the second is certain.
This does not imply that cameras pointed in the same direction always produce exact duplicates. Real sensors involve noise, occlusion, synchronization errors, and differing fields of view. Perfect copying is a clear limiting case for examining the claim that two reports necessarily contain twice the information.
#Calculating two partially dependent reports
The following author-defined joint distribution lies between perfect copying and independence. Each report is individually equally likely to be zero or one, but matching reports occur more often than mismatches.
| Marginal probability of | |||
|---|---|---|---|
| 0 | |||
| 1 | |||
| Marginal probability of | 1 |
If the first report is one, the conditional probability of a second one is 3/4. The first report has one bit of self-information. After knowing it, seeing a second one adds approximately 0.415037 bits of conditional self-information.
If the second report is zero instead, its conditional probability is 1/4, so the additional self-information is two bits. A mismatch is less expected under this particular model.
The calculation does not guarantee that disagreement improves our knowledge of the scene. To decide whether it indicates a sensor failure, discovery of a previously hidden person, or a false detection, we need a model connecting observations to the actual state. We have measured how unexpected the report pair itself is. Information obtained about a target will be distinguished in later installments on mutual information and inference.
#The general equation uses a conditional probability
For an observed pair with positive probability, the probability product rule gives the following result without assuming independence.
To replace the conditional distribution by the marginal and apply consistently to every outcome pair, the variables must be independent. Agreement for one particular pair does not establish independence. Moreover, sensors that are independent given the actual state need not be marginally independent when the state is unknown. The same personβs presence can influence both detection results. When assuming independence in sensor fusion, specify what has been held fixed by conditioning.
#Reproduce the calculations and check their interpretation
This code recalculates our teaching examples using only the Python standard library. It does not silently adjust inputs outside the stated domain. Replacing a zero probability with a small positive number changes the model, so such a decision should be made explicitly.
from math import ceil, isclose, log2
def self_information(probability: float) -> float:
"""Return self-information in bits for 0 < probability <= 1."""
if not 0.0 < probability <= 1.0:
raise ValueError("probability must satisfy 0 < p <= 1")
return -log2(probability)
p_x1 = 0.5
p_11 = 3 / 8
p_y1_given_x1 = p_11 / p_x1
joint_bits = self_information(p_11)
chain_bits = self_information(p_x1) + self_information(p_y1_given_x1)
assert isclose(joint_bits, chain_bits, abs_tol=1e-12)
assert isclose(self_information(1.0), 0.0, abs_tol=1e-12)
print(f"joint: {joint_bits:.6f} bits")
print(f"additional: {self_information(p_y1_given_x1):.6f} bits")
print(f"duplicate pair: {self_information(1 / 4):.6f} bits")
print(f"independent pair: {self_information((1 / 4) ** 2):.6f} bits")
for block_size in (1, 2, 5, 10):
bits = ceil(block_size * log2(3))
print(f"n={block_size}: {bits} bits, {bits / block_size:.6f} bits/state")
The output gives 1.415037 bits for the joint outcome and 0.415037 bits for the conditional increment. The copied and independent pairs have identical marginals but give 2.000000 and 4.000000 bits respectively. Block sizes 1, 2, 5, and 10 require total lengths of 2, 4, 8, and 16 bits. This is a floating-point check of small examples. An implementation requiring exact coding lengths for enormous integers must also handle rounding error in logarithms.
When probabilities are estimated from data, we will distinguish a true distribution from an estimated model . Calculating for the same outcome describes how unexpected it was to that model. A misspecified model may consider an ordinary observation rare. A large information value alone does not establish observation accuracy, the utility of an action, or the safety of a robot.
#Check your understanding
- What is the joint self-information of independently observing an outcome of probability 1/8 twice? What changes if the second result is a copy of the first?
- What is the minimum fixed length for five equally possible states? Why does it differ from ?
- In the joint distribution above, calculate the total self-information and the conditional self-information of the second report when the first result is zero and the second is one.
- An alarm with probability 0.01 has occurred. Does the 6.64-bit calculation tell us the alarm systemβs accuracy or the probability of an accident? What else would we need to define?
In the first question, the independent pair has six bits and the copied pair has three. The second answer is three bits: an exact binary representation requires an integer number of positions. The third gives three bits in total and two conditional bits. The fourth requires a joint model of alarms and actual states, along with the prediction or decision objective. Those ingredients are not yet present in the input to self-information.
#Next installment β How should we average information across outcomes?
We now have and its chain rule using conditional probabilities. Independent observations have additive information; a perfect copy has zero conditional self-information after the original is known. A fixed-length code has integer length, while dividing a blockβs bit count by its number of symbols gives a potentially fractional rate.
The next installment asks why entropy is average self-information. We have already constructed an experiment producing two bits with probability 1/4 and approximately 0.415037 bits with probability 3/4. We will calculate what weighting each information value by its probability measures, how that quantity satisfies grouping, and how a rare outcome with high self-information can coexist with low uncertainty for the experiment as a whole. That installment is planned.
#Sources and supplementary reading
- Source lecture: UF EEL6532 Spring 2026 index, Lecture 2, PDF pages 1β5. The page sequence and topics were checked. The video is linked as an official reference.
- Definitions and units: MIT 6.441 Spring 2016, Chapter 1, PDF pages 1β2 / printed pages 8β9. Use it to compare notation and logarithmic units.
- Individual information and its average: MacKay, Information Theory, Inference, and Learning Algorithms, Chapter 2, Β§2.4, PDF page 11 / printed page 32. Equations (2.34) and (2.35) connect this installment to the next.
- Logarithmic motivation and the scope of axioms: Moser, Information Theory, version 6.22, September 22, 2026, Β§1.1 and Appendix 1.A. Distinguish PDF page positions from printed page numbers.