ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

How uncertain is a bit?

Change a probability, compare the outcomes, and find where binary uncertainty reaches its maximum.

Teaching model · computed in your browser

Teaching model · computed in your browser

Uncertainty in one bit

Move from a certain outcome to an even chance. See exactly where each bit of uncertainty comes from.

H(p)=−plog⁡2p−(1−p)log⁡2(1−p)H(p)=-p\log_2 p-(1-p)\log_2(1-p)

p is the probability of one binary outcome, and 1 − p is the probability of the other. Logarithms use base 2, so the result is in bits. At the endpoints, 0 log₂ 0 is assigned its limiting value 0.

Try this: compare p = 0.1 and p = 0.9. Then explain why p = 0.5 gives the maximum.

Experiment controls

The default worked example is shown below.

Probability of outcome 10.5
Probability of outcome 00.5
Binary entropy1 bits
Binary entropy by probabilityp = 0.5 gives 1 bits. Entropy is zero at certain outcomes and reaches one bit at p = 0.5.000.550.51.11Probability pH(p), bits
p = 0.5 gives 1 bits. Entropy is zero at certain outcomes and reaches one bit at p = 0.5.

Two contributions: −p log₂ p = 0.5; −(1 − p) log₂(1 − p) = 0.5. Add them to obtain 1 bits.

Probability and uncertainty
p1 − pH(p), bits
010
0.10.90.469
0.250.750.8113
0.50.51
0.750.250.8113
0.90.10.469
100
Turn exploration into understanding

Learn the ideas behind this lab.

Follow a worked example, practice on your own, and return to the original project sources.

Progress is kept in this browser. How learning works

Search equations, builds, manuscript text, and recovered sources.