How much can one trial teach?
Separate surprise from learning, watch mass cancel Fisher curvature, and find pi in the price of coding an unknown coin.
Three expedition notebooks predict a coin will land heads half the time.
The first belongs to someone who has barely met the coin. The second records a modest collection of trials. The third has watched it for ages. Tomorrow’s flip still catches all three off guard: heads and tails remain equally likely.
Would that flip teach each notebook the same amount?
The question sends us across a useful border. Predicting the next outcome and learning the mechanism that produces outcomes are different jobs. Epistemic Physics keeps a coordinate for each side of this distinction: the mean tells us where a belief points, while its total trial amount helps determine how much it can change.
We will find two equations waiting at that border. In the first, normalized mass cancels Fisher information, leaving a simple scale for learning from one trial. In the second, the Fisher length
A coin inside a notebook
Call the coin’s unknown heads rate
The positive shapes
A fresh outcome
We use natural logarithms first. Surprisal is
Natural logarithms measure information in nats. Divide by
Now imagine a friendly laboratory sprite whispers the exact value of
The average advantage of hearing the sprite’s answer is therefore
This quantity is mutual information: how much learning one variable reveals about the other, on average. Read the equation in either direction. Knowing the rate helps predict the flip; seeing the flip helps learn the rate. The same joint distribution supplies both readings.
The three notebooks can now submit different answers:
| Notebook | Next-outcome entropy | Expected learning about the rate |
|---|---|---|
| 1 bit | 0.442695 bits | |
| 1 bit | 0.068546 bits | |
| 1 bit | 0.007177 bits |
The last notebook has nearly settled the rate while leaving the individual flip unpredictable. Balanced support and opposition can make a belief resistant to change even when its next answer remains a toss-up.
One outcome, two amounts of learning
Both notebooks predict the same chance of heads. A starts with total Beta amount 1; B can carry much more. Before revealing a trial, predict which notebook will learn more about the coin's hidden heads rate.
Notebook B's total amount: 100
Each bar totals the entropy of the next outcome. Gold is the part learnable about the rate; sky is the average unpredictability that remains even if the rate were revealed. Bar scale: 0 to 1 bit.
Notebook A: amount 1
Beta(0.50, 0.50)
- Next-outcome entropy
- 1.0000 bits
- Expected learning about the rate
- 0.4427 bits
- Variance of the rate
- 0.125000
- Geometric approximation
- 0.3607 bits
Notebook B: amount 100
Beta(50.00, 50.00)
- Next-outcome entropy
- 1.0000 bits
- Expected learning about the rate
- 0.0072 bits
- Variance of the rate
- 0.002475
- Geometric approximation
- 0.0071 bits
The approximation is in nats before dividing by ln 2. It improves as both Beta shapes grow. Here both notebooks have velocity 0.00 and normalized mass 1.000; their total amounts differ.
Now open one outcome
Try a 90% prediction, then reveal tails. Compare its surprisal with the posterior KL in each notebook. The gold values above are averages over both possible outcomes.
Revealing heads or tails compares one specified observation against each starting notebook. It does not accumulate a history. Changing an amount preserves the starting mean.
Open the trial-information experiment in the playground.
Surprise opens one door; learning measures the step
After heads, the notebook becomes
To measure how far an update moves the whole probability distribution, use Kullback-Leibler divergence, abbreviated KL. For a posterior density
The subscript
Bayes’ rule makes the ratio beautifully simple. If the outcome is heads,
The posterior favors rates that gave the observed heads greater probability. Averaging the logarithm of this ratio over possible heads and tails gives
So the gold quantity in the demo can be calculated two ways: subtract the entropy left after knowing the rate, or average the KL movement caused by each possible observation. The expected-information viewpoint is central to Lindley’s measure of what an experiment provides.
Try the demo at a predicted heads probability of
An exact Beta calculation
The Beta density’s normalizing integral is
Differentiating a power brings down a logarithm. For example, differentiating the same integral with
Here
Repeating the step for
For one revealed heads, the exact information gain is
Replace
Watch mass cancel curvature
Now bring the notebook into the evidence cone. Its centered mean is the velocity-like coordinate
Write normalized mass as
The Beta variance then becomes
This measures the spread of possible rates. A second ingredient measures how strongly neighboring rates can be distinguished by a trial. For a Bernoulli outcome, its Fisher information is
The same quantity appears as negative entropy curvature:
Put the two cone formulas side by side:
Multiply them and the directional factors disappear:
The cancellation is exact. Using that product for mutual information is a large-concentration approximation, with the mean held inside
Moving toward an extreme mean narrows the Beta spread, while increasing how sharply a trial distinguishes nearby rates. At leading order, those changes balance. The total amount sets the remaining learning scale:
This invites an alternative clock for a learning system. A clock that counts trials advances once for every incoming tracelet. A clock that accumulates expected information slows as repeated observations settle the same question. New contexts or new mechanisms could make it hurry again. The displayed equations give us a concrete starting point for exploring such a clock.
A message arrives with no instruction manual
Imagine sending a long record of coin flips through a storage channel. An encoder assigns a short description to likely sequences and a longer description to unlikely ones. Its ideal logarithmic bill is
If both sender and receiver know the true heads rate
Here
An encoder without
There is no binomial coefficient here: we are pricing one ordered message. When averaging over all possible messages with
The sequential Beta code is explored in When the numbers refuse to fit. Our new question is its redundancy: the expected extra cost of learning compared with already knowing the true rate.
In nats, that cost is
This is another KL divergence, now between two distributions over complete messages. It is nonnegative, although a particular unusual message can receive a shorter bill from the learning encoder.
What does an unknown rate add to the bill?
A coin sends a message. One encoder knows its fixed heads rate; a second learns using Beta(½, ½) predictions. Compare their expected ideal code lengths, then double the message. Predict the extra cost before pressing the button.
- Encoder knows the true rate
- 128.000 bits
- Encoder learns the rate
- 131.104 bits
- Expected extra cost
- 3.1044 bits
- Extra cost per trial
- 0.02425 bits
Doubling a long message adds about half a bit to the total learning cost. The cost per trial falls as the encoder learns. At this length the approximation gives 3.1044 bits.
Inspect one message instead of the average
Any ordering with these counts has the same bill under these models. The hindsight encoder chooses its rate after reading the message; its displayed bill omits the cost of telling the decoder that fitted rate.
- Learning encoder
- 131.829 bits
- Known-rate encoder
- 128.000 bits
- Hindsight fit, rate 50.0%
- 128.000 bits
- Regret versus hindsight
- 3.829 bits
For this message, learning minus knowing is 3.829 bits. An individual message can favor the learner; the expected extra cost is nonnegative. All bills are ideal values −log₂(probability), before any whole-bit or file-format overhead.
Open the learning-code-cost experiment in the playground.
Pi sends an invoice
Why did the learner begin with half a trial on each side?
Recall the Fisher geometry of the coin:
Substitute
Uniform weight along this geometric length gives the Jeffreys density
That is precisely
For a regular one-parameter model, a smooth positive prior, and a fixed interior true parameter, the expected coding redundancy has the large-sample form
The term
Insert the Jeffreys density. Its local Fisher factor cancels, leaving the total Fisher length:
The same
Try a fair coin at 128 trials in the demo, then keep doubling the message. The asymptotic difference is
That is half a bit. An ever-longer message costs more in total, while its learning overhead per trial approaches zero.
Change the competitor, change the constant
There is another tempting encoder to race: one that reads the entire message first and selects the best-fitting rate
Its bill for that same message is
The learning encoder’s excess over that benchmark is called regret:
Using the displayed Beta formula and Stirling’s large-argument approximation for
The
Endpoint sources offer another experiment. Set the true rate to zero: only the all-tails message can occur. Its exact learning bill follows from the same Beta formula, while the fixed-interior approximation loses its correct constant. The finite calculation remains available throughout the slider’s range.
Return to our expedition notebooks. A new trial adds one unit of amount, yet its expected information can shrink like the inverse of that amount. A longer message offers more chances to learn, yet the accumulated price grows only logarithmically. Between those two scales sit the mass, curvature, and length of a remarkably familiar cone.
Reading map
- A belief is more than a number develops the distinction between a mean, trial amount, spread, and malleability.
- A coin, a magnet, and a learning machine connects entropy and KL to thermodynamics and learning.
- Lindley, On a measure of the information provided by an experiment develops expected information as a way to evaluate experiments.
- Clarke and Barron, Information-theoretic asymptotics of Bayes methods supplies the general asymptotic redundancy formula.