INGENIA

PRB-06

Binary entropy

Max at p=½.

Reading speed
Probabilityentropy

Governing equation

H=−plog2p−(1−p)log2(1−p)H=-p\\log_2 p-(1-p)\\log_2(1-p)

p∈[0.01,0.99]p \in \left[0.01, 0.99\right]

where

p
p (—)
H
H (bit)

The figure, part by part

Each numbered marker wears the color of its card. Hover a card to light the marker. Tap a marker to jump to that card. The slider walks a red point along the curve; Animate drawing traces it like a pen.

PRB-06 · curve
00:0 / 00:08
①

Governing law — red

H=−plog2p−(1−p)log2(1−p)H=-p\\log_2 p-(1-p)\\log_2(1-p)

p∈[0.01,0.99]p \in \left[0.01, 0.99\right]

p=0.01p = 0.01H=0.081H = 0.081

②

Domain of the variable — blue

pmin⁡=0.01,pmax⁡=0.99p_{\min} = 0.01,\quad p_{\max} = 0.99

p∈[0.01,0.99]p \in \left[0.01, 0.99\right]

p=0.01p = 0.01p=0.01p = 0.01

③

Response curve — green

H=−plog2p−(1−p)log2(1−p)H=-p\\log_2 p-(1-p)\\log_2(1-p)

p∈[0.01,0.99]p \in \left[0.01, 0.99\right]

p=0.01p = 0.01H=0.081H = 0.081

④

Rate of change — amber

dHdp\frac{\mathrm{d}H}{\mathrm{d}p}

p∈[0.01,0.99]p \in \left[0.01, 0.99\right]

p=0.016p = 0.016H′=5.964H^{\prime} = 5.964

Lecture brief

Historical brief

Bernoulli trials, Poisson, Gauss, Bayes and Shannon entropy turned chance into a calculus of belief and noise. The lab computes likelihood, interval and information in SI-free counts. This sheet (PRB-06 — Binary entropy) is the form associated with entropy. Working symbols: pp →\rightarrow HH. Max at p=½.

Purpose

Purpose: compute HH from pp in Probability & statistics via H=−plog2p−(1−p)log2(1−p)H=-p\\log_2 p-(1-p)\\log_2(1-p) Max at p=½. Use it when a real probability & statistics question must be answered in SI before a code check.

Live realistic example

In symbols

Live case. Given p=0.300 —p = 0.300\,\mathrm{—}, the governing relation H=−plog2p−(1−p)log2(1−p)H=-p\\log_2 p-(1-p)\\log_2(1-p) yields H=0.8813 bitH = 0.8813\,\mathrm{bit}. Max at p=½. Move a slider: the numbers are this situation, not a canned story.

Calculator

Inputs

Outputs

  • H H0.8813 bit
Reading speed

Watch on YouTube

Free library

Full library

Free PDF / open book

YouTube channels

PRB-06 · curve
00:0 / 00:08

Narration of this film

Max at p=½.

Max at p=½.

Reading speed

Watch on YouTube