FAILURE MAP
← Case archive

FA-6344 / Statistics / Member archive

Frequency distribution entropy bits · case 04

Natural logarithms return nats under a bits contract.

Member previewVariant 4 · 3 implementations · 4 checks per implementation

Case contract

Integer finite observations and equal lengths for paired samples. Counts and weights are nonnegative. Rational results use reduced Fraction strings. Empty or undefined statistics return None where shown. Nonnegative frequency counts; ignore zero-probability terms and return None for zero total. Round base-two Shannon entropy to ten decimal places. Exact operational definition: round(-sum((c/sum(counts))*math.log2(c/sum(counts)) for c in counts if c),10) if sum(counts) else None

Why this case matters

Small exact fixtures expose this error without platform timing, external services, or probabilistic observations. Statistical estimators results depend on the stated convention.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
fixture 1: ([1, 1],)0.69314718061.0Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗