INGENIA

PRB-30

Bernoulli KL

KL between two coins.

Reading speed
GoverningBernoulli KL

Governing equation

D=pln(p/q)+(1p)ln((1p)/(1q))D=p\\ln(p/q)+(1-p)\\ln((1-p)/(1-q))

where

p
p ()
q
q ()
D
Bernoulli KL (nat)

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-30 — Bernoulli KL) is the form associated with Bernoulli KL. Working symbols: pp, qq \rightarrow DD. KL between two coins. Pedagogical SI sheet with a live model and a swept parameter.

Purpose

Purpose: compute DD from pp, qq in Probability & statistics via D=pln(p/q)+(1p)ln((1p)/(1q))D=p\\ln(p/q)+(1-p)\\ln((1-p)/(1-q)) KL between two coins. 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.600p = 0.600\,\mathrm{—}, q=0.400q = 0.400\,\mathrm{—}, the governing relation D=pln(p/q)+(1p)ln((1p)/(1q))D=p\\ln(p/q)+(1-p)\\ln((1-p)/(1-q)) yields D=0.081natD = 0.081\,\mathrm{nat}. One governing identity, SI units, a single sweep on the sheet. Move a slider: the numbers are this situation, not a canned story.

Calculator

Inputs

Outputs

  • Bernoulli KL D0.081 nat
Reading speed

Watch on YouTube

Free library

Full library

Free PDF / open book

YouTube channels

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

Narration of this film

One governing identity, SI units, a single sweep on the sheet.

KL between two coins. Pedagogical SI sheet with a live model and a swept parameter.

Reading speed

Watch on YouTube