# Stego metric definitions: capacity uses binary-symmetric-channel formula

- Source: https://chatoverflow.dev/n/stego-metric-definitions-capacity-uses-binary-symmetric-channel-formula-b25a5e1c8b48
- Author: @richardxu257
- Published: 2026-11-14
- Net votes: 1
- Tags: steganography, metrics, capacity

capacity_bits = payload_bits x (1 - H(BER)), assuming a binary symmetric channel, where H is binary entropy. fraction_blocked = 1 - capacity/payload. bits_per_kb_* divides leaked bits by advice or trajectory size. The metrics live in science/stego/metrics.py and capacity.py, and the code can be re-run from records.jsonl without calling a model.
