The Mechanism · Gated-generation receipt

gen-define-mutual-information-and-give-one-short-worked-example-69d8

stable pending witness
2026-05-29 06:04:27 UTC · anthropic/claude-sonnet-4-5

Prompt

Define mutual information and give one short worked example.
60 chars

Generation

# Mutual Information **Definition:** Mutual information I(X;Y) measures how much information one random variable reveals about another. It quantifies the reduction in uncertainty about X when Y is observed (and vice versa). $$I(X;Y) = \sum_{x \in X} \sum_{y \in Y} p(x,y) \log_2 \frac{p(x,y)}{p(x)p(y)}$$ Equivalently: $I(X;Y) = H(X) - H(X|Y) = H(Y) - H(Y|X)$ where H is entropy. ## Worked Example Consider two binary random variables: - **X**: Whether it's raining (R) or not (N) - **Y**: Whether someone carries an umbrella (U) or not (N) Joint distribution: | | Y=U | Y=N | p(X) | |-------|-----|-----|------| | **X=R** | 0.3 | 0.1 | 0.4 | | **X=N** | 0.1 | 0.5 | 0.6 | | **p(Y)** | 0.4 | 0.6 | | **Calculate I(X;Y):** $$I(X;Y) = \sum \sum p(x,y) \log_2 \frac{p(x,y)}{p(x)p(y)}$$ $$= 0.3\log_2\frac{0.3}{0.4 \times 0.4} + 0.1\log_2\frac{0.1}{0.4 \times 0.6} + 0.1\log_2\frac{0.1}{0.6 \times 0.4} + 0.5\log_2\frac{0.5}{0.6 \times 0.6}$$ $$= 0.3(0.907) + 0.1(-0.585) + 0.1(-0.585) + 0.5(0.474)$$ $$I(X;Y) \approx \textbf{0.39 bits}$$ **Interpretation:** Observing whether someone carries an umbrella reduces uncertainty about rain by 0.39 bits.
17 tokens in · 565 tokens out · 10387 ms · $0.0085

The four gates

RED
pass
no disqualifying input patterns detected
FLOOR
pass
output above protective minimum; no mismatches
WAY
pass
no declared way_path (Way check NA); no coercion language
EXECUTION
deferred
no witnesses available (Witness Roll not yet constituted)

Verifier results

scripture_anchors NOT_APPLICABLE
0 Scripture citation(s) extracted
theology_doctrine NOT_APPLICABLE
no doctrine keyword patterns detected

Metrics

Total latency
10394.7 ms
Base LLM
10387.3 ms
Verifiers
0.4 ms
Gates
0.0 ms
Cost
$0.0085

Trail

06:04:27 received prompt_chars=60 verifiers=['scripture_anchors', 'theology_doctrine']
06:04:27 red_gate decision=pass reason=no disqualifying input patterns detected
06:04:38 base_llm_call model=anthropic/claude-sonnet-4-5 tokens_in=17 tokens_out=565 latency_ms=10387.3 cost_usd=0.0085
06:04:38 verifier:scripture_anchors verdict=NOT_APPLICABLE summary=0 Scripture citation(s) extracted
06:04:38 verifier:theology_doctrine verdict=NOT_APPLICABLE summary=no doctrine keyword patterns detected
06:04:38 floor_gate decision=pass reason=output above protective minimum; no mismatches
06:04:38 way_gate decision=pass reason=no declared way_path (Way check NA); no coercion language
06:04:38 execution_gate decision=deferred reason=no witnesses available (Witness Roll not yet constituted)
06:04:38 signed hash_algo=sha256 hash=sha256:7515bd65e8d0e0aac99d51c2f1a0f1b3397f122d039b628ffda5f8e08f61850a

Content hash

sha256:7515bd65e8d0e0aac99d51c2f1a0f1b3397f122d039b628ffda5f8e08f61850a

SHA256 over the canonical JSON (excluding this field). Tamper detection. Ed25519 signing planned for v2 once the operator’s signing key is provisioned on disk.

Bring another teaching · Run a discernment