前章では、より少ないビットでメッセージを表現する方法を問いました。本章では:回線にエラーが発生した場合、受信側が私たちが何を送信したかを依然として把握できるようにするにはどうすればよいでしょうか?
各ビットを3回送信し、多数決で誤りを訂正する方法はありますが、そのレートは 1/3 に低下します。繰り返し回数をさらに増やすと、レートはさらに低下します。シャノンの結論はより強力です。適切なチャネルに対して、容量未満の正のレートを固定し、次第に長く、適切に設計されたブロック符号を使用することで、ブロック復号誤り確率をゼロに近づけることができます。
ここで言う「次第に長く」は、レイテンシ、ストレージ、計算コストをもたらすだけでなく、長く選ばれた符号が必ずしも性能を改善するわけではないという保証もありません。以下では、メモリレスチャネルについて議論し、離散式はすべて底を2とし、単位は bit とします。
チャネルは条件付確率モデルである
チャネルは P ( Y = y ∣ X = x ) で表されます。入力分布 P ( X ) は送信側がチャネルをどのように使用するかを記述し、条件分布 P ( Y ∣ X ) は回線が入力をどのように変化させるかを記述します。これらは異なる対象です。
二元対称チャネル(BSC)は以下のように書けます:
Y = X ⊕ Z , Z ∼ Bernoulli ( p )
ここで Z は X と独立であり、使用ごとにノイズも独立です。p は反転確率、1 − p は元の値を保持する確率です。
1回使用あたりの平均情報伝達は相互情報量 によって測定されます:
I ( X ; Y ) = H ( X ) − H ( X ∣ Y ) = H ( Y ) − H ( Y ∣ X )
これは入力分布が与えられた場合の平均量であり、受信される各具体的なビットが同じ情報量を持っているという意味ではありません。
なぜ容量は入力分布について最大化するのか?
送信側が 1 を送信する確率を α = P ( X = 1 ) とします。出力が 1 になるには2つの経路があります:入力が 1 で反転しなかった場合、または入力が 0 で反転した場合です。したがって:
β = P ( Y = 1 ) = α ( 1 − p ) + ( 1 − α ) p = p + α ( 1 − 2 p )
任意の入力が与えられた場合、出力に残る不確実性はすべて反転ノイズの二元エントロピー h 2 ( p ) であるため、以下が成り立ちます:
I ( X ; Y ) = h 2 ( β ) − h 2 ( p )
チャネルパラメータ p を固定すると、第2項は不変です。相互情報量を大きくするには、出力エントロピー h 2 ( β ) をできるだけ大きくする必要があります。
図を準備しています 再読み込み
同じチャネルでも、入力方法によって伝達される情報が異なる BSC の反転確率 p を選び、次に 1 を送信する割合 α を変更する。ドットは現在入力されている相互情報量を示し、曲線はすべての α を示し、破線は最大値 C を示す。式は出力エントロピーからノイズエントロピーを引く形に分解される。
{"id":"channel-bsc","title":"同じチャネルでも、入力方法によって伝達される情報が異なる","summary":"BSC の反転確率 p を選び、次に 1 を送信する割合 α を変更する。ドットは現在入力されている相互情報量を示し、曲線はすべての α を示し、破線は最大値 C を示す。式は出力エントロピーからノイズエントロピーを引く形に分解される。","height":950,"html":"<p class=\"eyebrow\" data-i18n=\"eyebrow\"></p><h2 data-i18n=\"heading\"></h2><p class=\"intro\" data-i18n=\"intro\"></p>\n<div class=\"presets\" role=\"group\" data-i18n-label=\"noise\"><button data-p=\"0\">p = 0</button><button data-p=\"0.11\">p = 0.11</button><button data-p=\"0.5\">p = 0.5</button><button data-p=\"1\">p = 1</button></div>\n<label class=\"control\" for=\"bias\"><span data-i18n=\"control\"></span><output id=\"bias-value\"></output></label><input id=\"bias\" type=\"range\" min=\"0\" max=\"100\" value=\"20\" step=\"1\">\n<div class=\"flow\"><div><span data-i18n=\"input\"></span><strong id=\"input-value\"></strong><div class=\"binary-band\"><div id=\"input-one\"></div></div></div><span class=\"arrow\">→</span><div><span data-i18n=\"output\"></span><strong id=\"output-value\"></strong><div class=\"binary-band\"><div id=\"output-one\"></div></div></div></div>\n<p class=\"note\" data-i18n=\"axis\"></p><div class=\"plot\"><svg viewBox=\"0 0 600 190\" preserveAspectRatio=\"none\" role=\"img\" data-i18n-label=\"chart\"><path id=\"capacity-curve\" class=\"curve\"/></svg><div id=\"capacity-line\"></div><div id=\"current-point\"></div></div>\n<div class=\"scale\"><span>α = 0</span><span class=\"middle\">0.5</span><span>1</span></div>\n<div class=\"formula\"><div id=\"output-formula\"></div><div id=\"information-formula\"></div></div>\n<div class=\"metric-pair\"><div><span data-i18n=\"current\"></span><strong id=\"information\"></strong></div><div><span data-i18n=\"maximum\"></span><strong id=\"capacity\"></strong></div></div>\n<div class=\"copy-stack\"><p id=\"explanation\" aria-live=\"polite\"></p><p class=\"reserve\" aria-hidden=\"true\" data-i18n=\"ordinary\"></p><p class=\"reserve\" aria-hidden=\"true\" data-i18n=\"random\"></p><p class=\"reserve\" aria-hidden=\"true\" data-i18n=\"inverted\"></p></div>","css":".intro { margin:8px 0 18px; color:var(--muted); font-size:14px; }\n.control { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:18px; }\n.control output { min-width:4em; flex-shrink:0; text-align:center; background:var(--accent-soft); color:var(--accent); padding:2px 8px; border-radius:6px; font-weight:600; }\n.formula { margin-top:18px; padding:14px 0; border-block:1px solid var(--rule); font-size:16px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }\n.copy-stack { display:grid; margin-top:14px; color:var(--muted); font-size:14px; }\n.copy-stack > * { grid-area:1/1; }\n.copy-stack .reserve { visibility:hidden; }\n.note { margin-top:14px; color:var(--muted); font-size:12px; }\n.metric-pair { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:18px; }\n.metric-pair > div { min-width:0; }\n.metric-pair span { display:block; font-size:12px; color:var(--muted); }\n.metric-pair strong { display:block; font-size:24px; font-weight:500; font-variant-numeric:tabular-nums; }\n.scale { display:flex; justify-content:space-between; color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }\n@media(max-width:480px) { .metric-pair strong { font-size:21px; } }\n.presets { display:flex; }\n.plot { position:relative; margin-top:18px; height:190px; border-left:1px solid var(--rule); border-bottom:1px solid var(--muted); }\n.plot svg { width:100%; height:100%; overflow:hidden; }\n.plot .curve { fill:none; stroke:var(--accent); stroke-width:2.5; vector-effect:non-scaling-stroke; }\n.plot .curve.secondary { stroke:var(--second); stroke-dasharray:5 4; }\n.scale { position:relative; }.scale .middle { position:absolute; left:50%; transform:translateX(-50%); }\n.formula { font-size:14px; }.formula div+div { margin-top:6px; }\n@media(max-width:480px) { .plot { height:170px; } }\n.plot .curve { transition:d .28s cubic-bezier(.22,1,.36,1); }\n.flow { display:grid; grid-template-columns:1fr auto 1fr; gap:12px; align-items:center; margin-top:12px; }\n.flow > div { min-width:0; }.flow span { font-size:12px; color:var(--muted); }.flow strong { display:block; font-size:16px; font-variant-numeric:tabular-nums; }.arrow { padding-top:20px; }\n.binary-band { height:12px; margin-top:6px; background:var(--surface); box-shadow:inset 0 0 0 1px var(--rule); }.binary-band div { height:100%; background:var(--accent); transition:width .28s; }\n#capacity-line { position:absolute; left:0; right:0; border-top:1px dashed var(--muted); }\n#current-point { position:absolute; width:11px; height:11px; border:2px solid var(--paper); border-radius:50%; background:var(--accent); box-shadow:0 0 0 1px var(--accent); transform:translate(-50%,50%); transition:left .2s,bottom .2s; }\n@media(max-width:480px) { .presets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }.flow { gap:8px; }.flow strong { font-size:14px; } }\n#capacity-line { transition:bottom .28s cubic-bezier(.22,1,.36,1); }\n","js":"let flip=.11;const bias=document.querySelector('#bias');const h=a=>viz.entropy([a,1-a]);\nfunction draw(){const a=+bias.value/100,b=flip+a*(1-2*flip),noise=h(flip),capacity=1-noise,information=Math.max(0,h(b)-noise);\n document.querySelector('#bias-value').textContent=viz.number(a,2);document.querySelector('#input-value').textContent='α = '+viz.number(a,2);document.querySelector('#output-value').textContent='β = '+viz.number(b,4);\n document.querySelector('#input-one').style.width=a*100+'%';document.querySelector('#output-one').style.width=b*100+'%';\n const points=Array.from({length:201},(_,i)=>{const x=i/200,y=Math.max(0,h(flip+x*(1-2*flip))-noise);return (i?'L':'M')+(x*600).toFixed(3)+','+((1-y)*190).toFixed(3);});document.querySelector('#capacity-curve').setAttribute('d',points.join(' '));\n document.querySelector('#capacity-line').style.bottom=capacity*100+'%';const dot=document.querySelector('#current-point');dot.style.left=a*100+'%';dot.style.bottom=information*100+'%';\n document.querySelector('#output-formula').textContent='β = p + α(1 − 2p) = '+viz.number(b,4);\n document.querySelector('#information-formula').textContent='I = h₂(β) − h₂(p) = '+viz.number(h(b),3)+' − '+viz.number(noise,3)+' ≈ '+viz.number(information,3);\n document.querySelector('#information').textContent=viz.number(information,3)+' bit';document.querySelector('#capacity').textContent=viz.number(capacity,3)+' bit';\n document.querySelector('#explanation').textContent=viz.t(flip===.5?'random':flip===1?'inverted':'ordinary');document.querySelectorAll('[data-p]').forEach(button=>button.setAttribute('aria-pressed',String(+button.dataset.p===flip)));\n}\nbias.addEventListener('input',draw);document.querySelectorAll('[data-p]').forEach(button=>button.addEventListener('click',()=>{flip=+button.dataset.p;draw();}));draw();","audio":false,"strings":{"axis":"横軸:入力割合 α;縦軸:I、0〜1 bit に固定。実線は I(α)、破線は容量 C、ドットは現在の値。","chart":"入力割合に対する BSC 相互情報量の曲線。容量と現在入力されている位置に対応する。","control":"1 を送信する割合 α","current":"現在入力されている I(X;Y)","eyebrow":"容量における max は何を最適化しているのか","heading":"チャネルは変わっていないのに、なぜ伝達される情報が変化したのか?","input":"送信側","intro":"チャネルを固定し、入力の割合を変更する。曲線は全体が表示されたまま、ドットがその上を移動する。反転確率を変更すると、曲線全体を比較する。","inverted":"p = 1 の場合、β = 1 − α となる。出力は入力と常に逆になるが、入力は完全に復元可能である。ノイズエントロピーは 0 で、容量は 1 のまま。一様入力時に最大値に達する。","maximum":"曲線全体の最大値 C","noise":"BSC 反転確率","ordinary":"α を 0.5 に調整すると、出力エントロピーは 1 に達し、相互情報量は容量に達する。入力が決定されている場合、出力のランダム性はすべてノイズに由来し、I は 0 となる。容量自体はこれによって小さくならない。","output":"受信側","random":"p = 0.5 の場合、受信側は常に半分が 1 となり、入力割合に関係なく H(Y) と H(Y|X) はどちらも 1 となる。相互情報量の曲線全体は 0 となり、どの入力も情報を伝達できない。"}}
二元出力のエントロピーは最大でも 1 であり、一様入力 α = 1/2 は β = 1/2 をもたらすため、以下が得られます:
C = α ∈ [ 0 , 1 ] max I ( X ; Y ) = 1 − h 2 ( p )
曲線上の1点は現在入力されている分布の相互情報量であり、曲線全体の最大値こそが容量です。常に同じ決定されたビットを送信する場合、H ( X ) = 0 となり、チャネルが完全にノイズレスであっても、区別できる新しいランダムメッセージはありません。
いくつかの境界条件でこの公式を検証できます:
反転確率 容量(bit/使用) 理由
p = 0 1 入力は完全に復元可能
p = 0.11 約 0.500 一様入力時、出力エントロピーの約半分は予測不可能な反転に由来
p = 0.5 0 出力は入力と独立しており、どの入力分布でも相互情報量は 0
p = 1 1 出力は入力の反値であり、受信側で反転すれば復元可能
したがって、ランダム性が最大となる p = 0.5 が最も破壊的であり、決定論的な反転自体は情報を失いません。一般的な離散メモリレスチャネルでは、容量は C = max P ( X ) I ( X ; Y ) と書かれ、最適な入力が必ずしも一様であるとは限りません。関連定理は MIT 6.441 第 16 章 を参照してください。
シャノンの定理が保証する「信頼性」とはどのようなものか?
ブロック符号は、M 個の可能なメッセージそれぞれを長さ n の符号語にマッピングします。レートは以下の通りです:
R = n log 2 M bit / チャネル使用
復号器は受信シーケンス全体に基づいてメッセージを推定します。以下では、P e を等確率メッセージにおけるブロック誤り確率 、つまりメッセージ全体が誤って復号される確率を表すために使用します。これは、個々のチャネルビットが反転する確率 p とは異なります。
離散メモリレスチャネルにおいて、R < C を固定すると、n → ∞ のとき P e → 0 となるレートがその値に漸近する符号列が存在します。逆に、R > C を固定すると、ブロック誤り確率がゼロに漸近する符号列は存在しません。
R < C
R > C
C
R
ドットは符号語を表し、外の色の領域はノイズによる受信領域を示しています。メッセージがより密集すると、領域は重なりやすくなります。平面上の位置はハミング距離を表すものではなく、ドットの大きさは誤り確率でもありません。この図は容量の空間的直感を理解するためのものです。
図中のしきい値は漸近的到達可能性を示しています。これは有限のブロック長における誤り率を提示するものではなく、R = C の境界において任意の符号が信頼できることを意味するものでもありません。容量未満であることは、優れた符号が存在するための条件であり、具体的な実装では符号、復号器、ブロック長を選択する必要があります。
「冗長性を追加しても R > C は救えない」というのも正確に読む必要があります。もしチャネルシンボルをより多く送信すれば、実際のレート R は低下し、容量未満になる可能性があります。逆定理は、レートを容量以上に保ちながら、誤り確率がゼロに漸近することを禁止するものです。
数え上げの直感:なぜ BSC の容量は 1 − h 2 ( p ) なのか?
0 < p < 1/2 の長い BSC ブロックにおいて、典型的なノイズパターンの数は約 2 n h 2 ( p ) の指数規模を持ちます。1つの符号語がノイズを通ると、それは可能な受信シーケンスの領域に対応します。約 2 n R 個の符号語があり、受信空間全体で 2 n 個の二元列しかない場合、各メッセージの確率の高い受信領域を十分に区別可能にするには、以下の数え上げ関係が生じます:
2 n R 2 n h 2 ( p ) ≲ 2 n ⟹ R ≲ 1 − h 2 ( p )
これは前章の典型集合 と容量を結びつけます。これは指数スケールの直感であり、有限長さにおいて互いに素な領域の完全な証明ではありません。厳密な定理には到達可能性と逆定理の両方が必要であり、ノイズ事象がすべて訂正される必要はありません。
まず 64 個の位置で「競合空間」を明確に見る
以下では、6ビットの受信列を列挙します。各符号語の半径 t 近傍には V t = ∑ j = 0 t ( j 6 ) 個の列が含まれます。t = 1 の場合、7個です。これらの近傍が互いに重ならないためには、M V t ≤ 64 である必要がありますが、数え上げ条件を満たしても、実際にそのような符号語集合が存在する保証はありません。図では、平面距離をハミング距離と見なすのではなく、各位置の所属を直接チェックします。
図を準備しています 再読み込み
受信空間は有限であり、より多くの符号語はどのようにそれと争うのか? 6ビット受信空間のすべての 64 個の文字列を列挙する。符号語を増やし、ノイズ近傍の半径を変更し、一意の被覆と重なりを観察する。また、p=0.1 のときの正確な平均 ML ブロック誤り率を独立に計算し、有限近傍と漸近的容量の数え上げをそれぞれ説明する。
{"id":"channel-packing","title":"受信空間は有限であり、より多くの符号語はどのようにそれと争うのか?","summary":"6ビット受信空間のすべての 64 個の文字列を列挙する。符号語を増やし、ノイズ近傍の半径を変更し、一意の被覆と重なりを観察する。また、p=0.1 のときの正確な平均 ML ブロック誤り率を独立に計算し、有限近傍と漸近的容量の数え上げをそれぞれ説明する。","height":850,"html":"<p class=\"eyebrow\" data-i18n=\"eyebrow\"></p><h2 data-i18n=\"heading\"></h2><p class=\"intro\" data-i18n=\"intro\"></p>\n<div class=\"packing-controls\"><div><p class=\"control\" data-i18n=\"messages\"></p><div class=\"presets\" role=\"group\" data-i18n-label=\"messages\"><button data-count=\"2\">2</button><button data-count=\"4\">4</button><button data-count=\"8\">8</button><button data-count=\"16\">16</button></div></div><div><p class=\"control\" data-i18n=\"radius\"></p><div class=\"presets\" role=\"group\" data-i18n-label=\"radius\"><button data-radius=\"0\">0</button><button data-radius=\"1\">1</button><button data-radius=\"2\">2</button></div></div></div>\n<div class=\"metrics\"><div class=\"metric\"><span data-i18n=\"rate\"></span><strong id=\"rate\"></strong><span>C ≈ 0.531</span></div><div class=\"metric\"><span data-i18n=\"error\"></span><strong id=\"error\"></strong></div></div>\n<div class=\"space-wrap\"><div><div id=\"space\" role=\"img\" data-i18n-label=\"space\"></div><div class=\"space-legend\"><span class=\"unique\" data-i18n=\"unique\"></span><span class=\"overlap\" data-i18n=\"overlap\"></span><span class=\"codeword\" data-i18n=\"codeword\"></span></div></div><div class=\"space-readout\"><p class=\"note\" data-i18n=\"gridNote\"></p><div class=\"occupancy-stack\"><div class=\"formula\" id=\"occupancy\"></div><div class=\"formula reserve\" id=\"occupancy-reserve\" aria-hidden=\"true\"></div></div><p class=\"note\" id=\"noise-mass\"></p></div></div>\n<label class=\"control\" for=\"received\"><span data-i18n=\"received\"></span><output id=\"received-value\"></output></label><input id=\"received\" type=\"range\" min=\"0\" max=\"63\" value=\"0\">\n<div class=\"probe\" aria-live=\"polite\"><span data-i18n=\"owners\"></span><strong id=\"owners\"></strong><span data-i18n=\"nearest\"></span><div class=\"nearest-stack\"><strong id=\"nearest\"></strong><strong class=\"reserve\" aria-hidden=\"true\">000000, 000000, 000000 (d=6)</strong></div></div>\n<details class=\"audit-details\"><summary data-i18n=\"details\"></summary><div class=\"formula\" id=\"codebook\"></div><p class=\"note\" data-i18n=\"capacity\"></p><div class=\"formula\" id=\"asymptotic\"></div><p class=\"note\" data-i18n=\"asymptoticNote\"></p><p class=\"note\" data-i18n=\"errorNote\"></p></details>","css":"\n.intro { margin:8px 0 14px; color:var(--muted); font-size:14px; }\n.presets { display:flex; flex-wrap:wrap; margin:12px 0; }\n.presets button { flex:1 1 auto; min-width:0; }\n.control { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; font-size:14px; }\n.control output { flex-shrink:0; font-variant-numeric:tabular-nums; font-weight:600; }\n.metrics { grid-template-columns:repeat(2,minmax(0,1fr)); margin:12px 0; }\n.metric strong { font-size:23px; }.metric span { font-size:12px; overflow-wrap:anywhere; }\n.note { color:var(--muted); font-size:12px; line-height:1.65; margin-top:10px; }\n.formula { font-size:14px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; margin:10px 0; }\n.copy-stack { display:grid; margin:12px 0; font-size:13px; line-height:1.65; }\n.copy-stack > p { grid-area:1/1; min-width:0; }.reserve { visibility:hidden; pointer-events:none; user-select:none; }\n.audit-details { border-top:1px solid var(--rule); margin-top:14px; padding-top:10px; font-size:13px; }\n.audit-details summary { cursor:pointer; color:var(--accent); min-height:32px; padding:5px 0; }\n.audit-details summary:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }\n@media(max-width:480px){.intro{font-size:13px}.metric strong{font-size:21px}.presets button{font-size:13px}.formula{font-size:13px}}\n\n.packing-controls { display:grid; grid-template-columns:1fr 1fr; gap:16px; }.packing-controls .presets { margin:6px 0; }.packing-controls button { padding-inline:8px; }.packing-controls .control { margin:0; }\n.space-wrap { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; margin-top:16px; }#space { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:3px; }.cell { display:grid; place-items:center; height:29px; border-radius:3px; background:var(--surface); color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }.cell.unique { background:var(--accent-soft); color:var(--ink); }.cell.overlap { background:repeating-linear-gradient(135deg,transparent 0 4px,var(--second-soft) 4px 8px),var(--paper);color:var(--ink);border-bottom:2px solid var(--second); }.cell.codeword { box-shadow:inset 0 0 0 1.5px var(--ink); font-weight:700; }.cell.selected { outline:2px solid var(--accent); outline-offset:1px; }\n.space-legend { display:flex; flex-wrap:wrap; gap:4px 12px; font-size:11px; margin-top:8px; }.space-legend span::before{content:'';display:inline-block;width:10px;height:10px;margin-right:4px;background:var(--accent-soft);border:1px solid var(--accent)}.space-legend .overlap::before{background:var(--second-soft);border-color:var(--second)}.space-legend .codeword::before{background:var(--paper);border-color:var(--ink)}\n.probe { display:grid; grid-template-columns:auto minmax(0,1fr); gap:6px 12px; font-size:13px; margin-top:6px; }.probe strong { font-weight:500; text-align:right; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }.probe span{color:var(--muted)}\n.occupancy-stack,.nearest-stack{display:grid;min-width:0}.occupancy-stack>div,.nearest-stack>strong{grid-area:1/1;min-width:0}.nearest-stack strong{font-family:var(--viz-font-ui)}.probe{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}#occupancy,#occupancy-reserve{line-height:1.8}#codebook{font-size:12px;line-height:1.8}#received-value { font-family:var(--viz-font-ui); }\n@media(max-width:600px){.space-wrap{grid-template-columns:1fr;gap:4px}.space-readout{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.space-readout>p:first-child{grid-column:1/-1}#occupancy{margin:6px 0}.packing-controls{gap:8px}#space{max-width:360px;margin:auto}.cell{height:25px}.space-wrap{margin-top:10px}.probe{font-size:12px}}\n","js":"const $=s=>document.querySelector(s),bits=x=>x.toString(2).padStart(6,'0'),dist=(a,b)=>bits(a^b).replaceAll('0','').length;let count=4,radius=1;\n// Fixed nested codebooks: greedily maximize distance to existing codewords, break ties by integer value.\nconst book=[0];while(book.length<16){let best=-1,score=-1;for(let v=0;v<64;v++){if(book.includes(v))continue;const d=Math.min(...book.map(c=>dist(v,c)));if(d>score){score=d;best=v;}}book.push(best);}\nfor(let i=0;i<64;i++){const e=document.createElement('span');e.className='cell';e.textContent=i.toString().padStart(2,'0');$('#space').append(e);}\nfunction draw(){const codes=book.slice(0,count),y=+$('#received').value,p=.1,vol=[1,7,22][radius],h=viz.entropy([p,1-p]),rate=Math.log2(count)/6;let overlaps=0,covered=0,success=0;\n for(let v=0;v<64;v++){const ds=codes.map(c=>dist(v,c)),owners=ds.filter(d=>d<=radius).length;overlaps+=owners>1;covered+=owners>0;success+=Math.max(...ds.map(d=>p**d*(1-p)**(6-d)))/count;const e=$('#space').children[v];e.classList.toggle('unique',owners===1);e.classList.toggle('overlap',owners>1);e.classList.toggle('codeword',codes.includes(v));e.classList.toggle('selected',v===y);e.dataset.coverage=owners;e.setAttribute('aria-label',bits(v)+': '+owners);}\n const ds=codes.map(c=>dist(y,c)),min=Math.min(...ds),near=codes.filter((c,i)=>ds[i]===min),ownerCount=ds.filter(d=>d<=radius).length,noiseMass=[.9**6,.9**6+6*.1*.9**5,.9**6+6*.1*.9**5+15*.1**2*.9**4][radius];\n $('#rate').textContent=viz.number(rate,3);$('#error').textContent=viz.number((1-success)*100,3)+'%';$('#received-value').textContent=bits(y)+' / '+y;\n $('#occupancy').textContent='M·Vₜ = '+count+' × '+vol+' = '+count*vol+'; '+viz.t('covered')+' '+covered+'/64; '+viz.t('overlap')+' '+overlaps+'/64';$('#noise-mass').textContent='P(d ≤ '+radius+') = '+viz.number(noiseMass*100,3)+'%';\n $('#occupancy-reserve').textContent='M·Vₜ = 16 × 22 = 352; '+viz.t('covered')+' 64/64; '+viz.t('overlap')+' 64/64';$('#owners').textContent=ownerCount+' / '+count;$('#nearest').textContent=near.map(bits).join(', ')+' (d='+min+')';$('#codebook').textContent=viz.t('codeword')+': '+codes.map(bits).join(' · ');$('#asymptotic').textContent='n = 120: 2^[n(R+h₂(p))] = 2^'+viz.number(120*(rate+h),2)+'; 2^n = 2^120';\n $('#space').setAttribute('aria-label',viz.t('space')+' M='+count+', t='+radius+', '+viz.t('covered')+' '+covered+'/64; '+viz.t('overlap')+' '+overlaps+'/64.');document.querySelectorAll('[data-count]').forEach(e=>e.setAttribute('aria-pressed',String(+e.dataset.count===count)));document.querySelectorAll('[data-radius]').forEach(e=>e.setAttribute('aria-pressed',String(+e.dataset.radius===radius)));}\n document.querySelectorAll('[data-count]').forEach(e=>e.addEventListener('click',()=>{count=+e.dataset.count;draw();}));document.querySelectorAll('[data-radius]').forEach(e=>e.addEventListener('click',()=>{radius=+e.dataset.radius;draw();}));$('#received').addEventListener('input',draw);draw();","audio":false,"strings":{"asymptoticNote":"現在の R を維持し、ブロック長が 120 に変化したと想定する。ここでは典型的なノイズ近傍の総需要と受信空間の指数規模を比較し、指数未満の因子を無視する。これは上記の短い符号の拡張シミュレーションではなく、正確な典型集合の数でもない。R+h₂(p)>1 の場合、需要の指数は空間を超え、容量のしきい値に接続される R<C。","capacity":"容量 C≈0.531 bit/使用。ここでは n は 6 に固定されている。R<C でも、この短い符号の誤り率がゼロに近づく保証はない。","codeword":"符号語","covered":"被覆済み","details":"完全な符号語集合、漸数的数え上げ、誤り率の口径","error":"正確な平均 ML ブロック誤り率","errorNote":"符号語集合は、既存の符号語までの最小距離を最大化するように逐次構築され、同点の場合は小さい整数が選択され、大域的最適であるとは主張しない。誤り率は等確率メッセージ、すべての 64 個の受信列について正確に合計される:Pₑ=1−Σᵧ max꜀ P(y|c)/M。最も近い符号語が同点の場合、1つを固定して選択する。t は表示される近傍のみを変更し、チャネルや ML 復号器は変更しないため、t を調整しても Pₑ は変化しない。重なり合うマスの数も誤り確率ではない。","eyebrow":"有限受信空間 → 漸数的数え上げ","gridNote":"番号 00–63 は数値順に並べられた6ビット二元列に対応する。画面での近さはハミング距離ではない。空白のマスは半径 t の近傍で覆われていない。","heading":"メッセージが増えると、ノイズ近傍はどのように重なるのか?","intro":"n=6、BSC p=0.1 を固定する。各符号語の周囲で距離 ≤t の受信列を取り、メッセージ数 M を増やし、それらが 64 個の位置をどのように争うか観察する。","messages":"メッセージ数 M","nearest":"最も近い符号語","overlap":"重なり","owners":"半径 t 内の候補数","radius":"近傍半径 t","rate":"R · bit/使用","received":"受信列をチェック","space":"64 個の受信列の近傍被覆図","unique":"一意の被覆"}}
近傍の重なり、見逃されたノイズの尾部、そして最終的な復号誤りは、異なる対象である。 固定された符号語集合に対して、図では完全な BSC 確率を使用して平均最大尤度(ML)ブロック誤り率を計算し、近傍半径は観察のためだけに使用される。近傍が互いに重ならなくても、t を超えるノイズは誤りを引き起こす可能性がある。
長いブロックの議論では、小さな図の有限近傍を、確率が 1 に漸近する典型的なノイズ集合に置き換え、その規模は約 2 n h 2 ( p ) となる。この場合、総需要の指数は n ( R + h 2 ( p )) 、受信空間の指数は n である。これは容量の数え上げの由来を説明するが、6ビットの例示によってランダム符号定理が証明されたわけではない。以下のハミング符号が、具体的な誤り訂正構造をさらに示す。
実際の小さな符号:なぜ距離 3 で 1 ビットを訂正できるのか?
2つの等長の二元列の ハミング距離 は、異なる位置の数である。ある符号の最小距離 d m i n は、任意の2つの異なる正当な符号語間の最小距離である。
受信列が元の符号語から最大 t ビットだけ外れ、かつ正当な符号語がすべて少なくとも 2 t + 1 離れている場合、元の符号語は唯一の最も近い候補である。その理由は三角不等式である。もし同じ受信列が2つの符号語の両方から t 以内の距離にあるとすると、それら2つの符号語間の距離は 2 t 以下となり、条件に矛盾する。
d m i n ≥ 2 t + 1
以下では、実際のハミング ( 7 , 4 ) 符号を使用する。4ビットのメッセージが 7ビットの符号語になり、合計 16 個の正当な符号語があり、最小距離は 3 である。受信列のビットをクリックして反転を導入し、以下ではすべての候補とそれらの受信列までの距離を同時に表示する。
図を準備しています 再読み込み
受信ビットを反転させ、最小符号距離がメッセージをどのように保護するかを見る 送信メッセージ 0000 を固定し、Hamming(7,4) の全ゼロ符号語にエンコードする。7つの受信ビットをクリックして反転を導入し、リアルタイムで 16 個の正当な符号語すべてとの距離を比較する。1ビットのエラーは訂正可能だが、2ビットのエラーは誤訂正される。
{"id":"channel-hamming","title":"受信ビットを反転させ、最小符号距離がメッセージをどのように保護するかを見る","summary":"送信メッセージ 0000 を固定し、Hamming(7,4) の全ゼロ符号語にエンコードする。7つの受信ビットをクリックして反転を導入し、リアルタイムで 16 個の正当な符号語すべてとの距離を比較する。1ビットのエラーは訂正可能だが、2ビットのエラーは誤訂正される。","height":950,"html":"<p class=\"eyebrow\" data-i18n=\"eyebrow\"></p><h2 data-i18n=\"heading\"></h2><p class=\"intro\" data-i18n=\"intro\"></p>\n<div class=\"sent\"><span data-i18n=\"sent\"></span><strong>0000 → 0000000</strong></div>\n<fieldset><legend data-i18n=\"received\"></legend><div id=\"received-bits\"></div></fieldset>\n<div class=\"reset-row\"><span><span data-i18n=\"flips\"></span> <strong id=\"flip-count\"></strong></span><button id=\"reset\" data-i18n=\"reset\"></button></div>\n<div class=\"decoded\"><span data-i18n=\"decoded\"></span><strong id=\"decoded\"></strong></div>\n<div class=\"formula\">d<sub>min</sub> = 3 ≥ 2t + 1 ⇒ t<sub>max</sub> = 1</div>\n<div class=\"copy-stack\"><p id=\"explanation\" aria-live=\"polite\"></p><p class=\"reserve\" aria-hidden=\"true\" data-i18n=\"clean\"></p><p class=\"reserve\" aria-hidden=\"true\" data-i18n=\"corrected\"></p><p class=\"reserve\" aria-hidden=\"true\" data-i18n=\"wrong\"></p></div>\n<details class=\"audit-details\"><summary data-i18n=\"detailLabel\"></summary><p class=\"note\" data-i18n=\"candidates\"></p><div id=\"codebook\"></div></details>\n<p class=\"note\" data-i18n=\"note\"></p>","css":".intro { margin:8px 0 18px; color:var(--muted); font-size:14px; }\n.control { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:18px; }\n.control output { min-width:4em; flex-shrink:0; text-align:center; background:var(--accent-soft); color:var(--accent); padding:2px 8px; border-radius:6px; font-weight:600; }\n.formula { margin-top:18px; padding:14px 0; border-block:1px solid var(--rule); font-size:16px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }\n.copy-stack { display:grid; margin-top:14px; color:var(--muted); font-size:14px; }\n.copy-stack > * { grid-area:1/1; }\n.copy-stack .reserve { visibility:hidden; }\n.note { margin-top:14px; color:var(--muted); font-size:12px; }\n.metric-pair { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:18px; }\n.metric-pair > div { min-width:0; }\n.metric-pair span { display:block; font-size:12px; color:var(--muted); }\n.metric-pair strong { display:block; font-size:24px; font-weight:500; font-variant-numeric:tabular-nums; }\n.scale { display:flex; justify-content:space-between; color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }\n@media(max-width:480px) { .metric-pair strong { font-size:21px; } }\n.presets { display:flex; }\n.plot { position:relative; margin-top:18px; height:190px; border-left:1px solid var(--rule); border-bottom:1px solid var(--muted); }\n.plot svg { width:100%; height:100%; overflow:hidden; }\n.plot .curve { fill:none; stroke:var(--accent); stroke-width:2.5; vector-effect:non-scaling-stroke; }\n.plot .curve.secondary { stroke:var(--second); stroke-dasharray:5 4; }\n.scale { position:relative; }.scale .middle { position:absolute; left:50%; transform:translateX(-50%); }\n.formula { font-size:14px; }.formula div+div { margin-top:6px; }\n@media(max-width:480px) { .plot { height:170px; } }\n.plot .curve { transition:d .28s cubic-bezier(.22,1,.36,1); }\n.sent,.decoded { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px; font-size:13px; }.sent strong,.decoded strong { font:600 17px/1.5 var(--viz-font-ui); }\nfieldset { border:0; padding:0; margin:18px 0 0; min-width:0; }legend { font-size:13px; padding:0; margin-bottom:8px; }\n#received-bits { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }#received-bits button { min-height:50px; display:flex; flex-direction:column; gap:0; padding:5px; }#received-bits small { font-size:10px; color:var(--muted); }#received-bits strong { font-size:19px; }#received-bits button[aria-pressed='true'] { background:var(--second-soft); color:var(--second); border-color:var(--second); }\n.reset-row { display:flex; justify-content:space-between; align-items:center; margin-top:10px; font-size:13px; }\n#codebook { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin-top:10px; }\n.codeword { padding:7px 6px; text-align:center; border:1px solid var(--rule); border-radius:6px; background:var(--surface); transition:background .2s,border-color .2s; }.codeword code { display:block; font:13px/1.4 var(--viz-font-mono); }.codeword span { display:block; font-size:11px; color:var(--muted); }.codeword.sent-word { box-shadow:inset 0 0 0 1px var(--ink); }.codeword.nearest { background:var(--accent-soft); border-color:var(--accent); }.codeword.nearest.mistaken { background:var(--second-soft); border-color:var(--second); }\n.decoded { margin-top:16px; }\n@media(max-width:480px) { #received-bits { grid-template-columns:repeat(4,minmax(0,1fr)); }#codebook { grid-template-columns:repeat(2,minmax(0,1fr)); } }\n\n.decoded{margin-top:12px}.copy-stack{margin-top:10px}.formula{margin-top:10px;padding:10px 0}.note{margin-top:10px}\n@media(max-width:480px){#received-bits{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}#received-bits button{padding:4px 0;min-width:0}.intro{font-size:13px;margin-bottom:12px}.sent{margin-top:12px}.copy-stack{font-size:13px}}\n\n.audit-details { border-top:1px solid var(--rule); margin-top:14px; padding-top:8px; }\n.audit-details summary { cursor:pointer; color:var(--accent); font-size:13px; min-height:36px; padding:6px 0; }\n.audit-details summary:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }\n.audit-details .formula { border:0; margin-top:8px; padding:8px 0; }\n","js":"function encode(value){const [a,b,c,d]=value.toString(2).padStart(4,'0').split('').map(Number);return [a^b^d,a^c^d,a,b^c^d,b,c,d];}\nconst words=Array.from({length:16},(_,i)=>encode(i)),received=Array(7).fill(0),bits=document.querySelector('#received-bits'),book=document.querySelector('#codebook');\nfor(let i=0;i<7;i++){const button=document.createElement('button');button.type='button';button.innerHTML='<small>'+(i+1)+'</small><strong>0</strong>';button.setAttribute('aria-label',viz.t('bit')+' '+(i+1));button.addEventListener('click',()=>{received[i]^=1;draw();});bits.append(button);}\nwords.forEach(word=>{const item=document.createElement('div');item.className='codeword';item.innerHTML='<code>'+word.join('')+'</code><span></span>';book.append(item);});\nfunction draw(){const distances=words.map(word=>word.reduce((s,bit,i)=>s+(bit!==received[i]),0)),nearest=distances.indexOf(Math.min(...distances)),flips=received.reduce((a,b)=>a+b,0);\n received.forEach((bit,i)=>{bits.children[i].querySelector('strong').textContent=bit;bits.children[i].setAttribute('aria-pressed',String(!!bit));});\n distances.forEach((d,i)=>{const el=book.children[i];el.classList.toggle('sent-word',i===0);el.classList.toggle('nearest',i===nearest);el.classList.toggle('mistaken',nearest!==0);el.querySelector('span').textContent='d = '+d;});\n document.querySelector('#flip-count').textContent=flips;document.querySelector('#decoded').textContent=words[nearest].join('')+' → '+nearest.toString(2).padStart(4,'0');document.querySelector('#explanation').textContent=viz.t(flips===0?'clean':flips===1?'corrected':'wrong');\n}\ndocument.querySelector('#reset').addEventListener('click',()=>{received.fill(0);draw();});draw();","audio":false,"strings":{"bit":"受信ビットを反転","candidates":"16 個の正当な符号語すべて。d は現在の受信列と異なる位置の数。","clean":"反転なし。受信列は元の符号語であり、距離は 0。他の正当な符号語は少なくとも 3 ビット離れており、この間隔が誤り訂正のための空間を残している。","corrected":"反転が 1 つだけ。元の符号語までの距離は 1、他の正当な符号語までの距離は少なくとも 2 であるため、元の符号語は依然として唯一の最も近い候補であり、4ビットのメッセージは正しく復元される。","decoded":"最も近い符号語 → デコードメッセージ","detailLabel":"16 個の正当な符号語すべてを展開","eyebrow":"最小符号距離から誤り訂正半径へ","flips":"反転ビット数","heading":"1ビットしか違わないのに、なぜ元のメッセージを認識できるのか?","intro":"受信ビットをクリックすると、0 と 1 が入れ替わる。濃い枠線は実際に送信された符号語を、彩色の背景は最も近い候補を示す。候補の位置は常に不変である。","note":"この図は実際の偶数パリティハミング(7,4)符号と最も近い符号語復号を使用し、ランダムサンプリングには依存しない。レートは 4/7、最小距離は 3。有限の小さな符号の誤り訂正のデモンストレーションは、シャノナリミットに達したことを証明するものではない。","received":"受信列:任意のビットをクリックして反転","reset":"反転をクリア","sent":"固定送信","wrong":"単一エラー訂正範囲を超えた。最も近い候補は別の正当な符号語になり、デコード結果が誤る。このハミング符号は常に唯一の最も近い候補を見つけるが、唯一であることが正解であるとは限らない。"}}
ここでは、データビットを位置 3 , 5 , 6 , 7 に配置し、3つの偶数パリティビットを位置 1 , 2 , 4 に配置する。4つのデータビットが a , b , c , d の場合、符号語は以下のようになる:
( a ⊕ b ⊕ d , a ⊕ c ⊕ d , a , b ⊕ c ⊕ d , b , c , d )
全ゼロ符号語を固定して送信するのは、どのビットが反転したかを容易に見るためであり、この線形符号は他のメッセージに対しても同じ単一エラー訂正能力を持つ。図では最も近い符号語復号を採用しており、これは BSC の p < 1/2 でメッセージが等確率の場合、最大尤度復号とも一致する。
任意の1ビットの反転は訂正可能である。2ビット反転の場合、この符号は別の正当な符号語に近づき、誤訂正を引き起こす。実際、その 16 個の半径 1 の近傍は、すべての 2 7 = 128 個の受信列をちょうど覆うため、最も近い符号語は常に唯一であるが、唯一であることが正解であるとは限らない。 より高いエラーウェイトは単一エラーの保証に含まれない。
この小さな符号はシャノナリミットの証明ではない。そのレートは固定で 4/7 ≈ 0.571 である。BSC の p = 0.1 の場合、最も近い符号語復号が成功するのは、ノイズが最大で 1 ビットを反転した場合に限られるため、以下となる:
P e = 1 − ( 1 − p ) 7 − 7 p ( 1 − p ) 6 ≈ 0.1497
このとき容量は約 0.531 で、この符号のレートより低い。例示しているのは、有限符号がどのように誤りを訂正するかであり、このレートを固定すれば誤りを任意に小さくできるわけではない。
ガウスチャネルに入る前に:密度と微分エントロピー
前述では離散確率を使用した。実数信号では確率密度 f ( x ) を使用し、区間上の確率は密度の積分である。密度の値自体が実数が出現する確率ではない ことに注意されたい。また、1 より大きくなることもある。微分エントロピーは以下のように定義される:
h ( X ) = − ∫ f ( x ) log 2 f ( x ) d x .
例えば、X が幅 a の区間に一様分布している場合、密度は 1/ a であり、したがって h ( X ) = log 2 a となる。a < 1 の場合、これは負の値になる。同じ量を異なる単位に換算すると、その数値も変化する。一般的に h ( c X ) = h ( X ) + log 2 ∣ c ∣ が成り立つ(c = 0 、関連エントロピーが存在する場合)。
したがって、微分エントロピーは「実数を正確に符号化するために必要なビット数」ではない。実際の符号化では量子化精度を指定する必要がある。次の節では、同じ座標と単位の下でガウス出力とノイズを比較し、エントロピー差における共通のスケール因子は打ち消し合う。KL 発散と相互情報量は、適切な可逆座標変換の下で不変である。
AWGN:対数と 1/2 はどこから来るのか?
実数加性ガウス白噪声チャネルは以下のように書かれる:
Y = X + N , N ∼ N ( 0 , σ 2 ) , E [ X 2 ] ≤ P
ノイズは入力と独立であり、σ 2 > 0 、使用ごとにノイズは独立である。平均電力制約を指定する必要がある。そうしないと、信号電力を無限に大きくできるため、有限の容量上界が存在しない。
X が与えられた場合、Y は単にノイズの平行移動であるため、h ( Y ∣ X ) = h ( N ) となる。ここで h は微分エントロピーである。ガウスノイズのエントロピーは以下の通り:
h ( N ) = 2 1 log 2 ( 2 π e σ 2 )
そして Var ( Y ) ≤ P + σ 2 である。分散が与えられた場合、ガウス分布の微分エントロピーは最大となる。したがって:
I ( X ; Y ) = h ( Y ) − h ( N ) ≤ 2 1 log 2 σ 2 P + σ 2
独立な零平均ガウス入力 X ∼ N ( 0 , P ) を使用すると等号が達成され、したがって:
C = 2 1 log 2 ( 1 + SNR ) = log 2 σ N σ Y , SNR = σ 2 P
後者の書き方は特に直感的である。ガウス分布の標準偏差が何倍に拡大しても、微分エントロピーはその倍数の対数だけ増加する。 分散比で表現する場合、標準偏差は分散の平方根であるため、対数の前に 1/2 が現れる。
図を準備しています 再読み込み
ガウス分布が広がるにつれ、エントロピー差は対数的に増加する ノイズ分散を 1 に固定し、容量を達成するガウス入力を使用する。電力 P を変更すると、出力標準偏差は √(1+P) となり、容量は標準偏差比の対数となる。下部の独立したエントロピー帯は h(Y) を固定された h(N) と追加された容量に分割する。
{"id":"channel-awgn","title":"ガウス分布が広がるにつれ、エントロピー差は対数的に増加する","summary":"ノイズ分散を 1 に固定し、容量を達成するガウス入力を使用する。電力 P を変更すると、出力標準偏差は √(1+P) となり、容量は標準偏差比の対数となる。下部の独立したエントロピー帯は h(Y) を固定された h(N) と追加された容量に分割する。","height":950,"html":"<p class=\"eyebrow\" data-i18n=\"eyebrow\"></p><h2 data-i18n=\"heading\"></h2><p class=\"intro\" data-i18n=\"intro\"></p>\n<label class=\"control\" for=\"power\"><span data-i18n=\"control\"></span><output id=\"power-value\"></output></label><input id=\"power\" type=\"range\" min=\"0\" max=\"150\" value=\"30\" step=\"1\">\n<div class=\"legend\"><span class=\"noise\" data-i18n=\"noise\"></span><span class=\"output\" data-i18n=\"output\"></span></div>\n<div class=\"plot\"><svg viewBox=\"0 0 600 190\" preserveAspectRatio=\"none\" role=\"img\" data-i18n-label=\"chart\"><path id=\"output-density\" class=\"curve\"/><path id=\"noise-density\" class=\"curve secondary\"/></svg></div>\n<div class=\"scale\"><span>−12</span><span class=\"middle\">0</span><span>12</span></div>\n<div class=\"formula\"><div id=\"variance-ratio\"></div><div id=\"capacity-formula\"></div></div>\n<p class=\"note\" data-i18n=\"entropy\"></p><div class=\"entropy-track\"><div id=\"noise-entropy\"></div><div id=\"capacity-extra\"></div></div><div class=\"scale\"><span>0</span><span>4.5 bit</span></div>\n<div class=\"metric-pair\"><div><span data-i18n=\"base\"></span><strong id=\"base\"></strong></div><div><span data-i18n=\"capacity\"></span><strong id=\"capacity\"></strong></div></div>\n<p class=\"note\" data-i18n=\"note\"></p>","css":".intro { margin:8px 0 18px; color:var(--muted); font-size:14px; }\n.control { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:18px; }\n.control output { min-width:4em; flex-shrink:0; text-align:center; background:var(--accent-soft); color:var(--accent); padding:2px 8px; border-radius:6px; font-weight:600; }\n.formula { margin-top:18px; padding:14px 0; border-block:1px solid var(--rule); font-size:16px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }\n.copy-stack { display:grid; margin-top:14px; color:var(--muted); font-size:14px; }\n.copy-stack > * { grid-area:1/1; }\n.copy-stack .reserve { visibility:hidden; }\n.note { margin-top:14px; color:var(--muted); font-size:12px; }\n.metric-pair { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:18px; }\n.metric-pair > div { min-width:0; }\n.metric-pair span { display:block; font-size:12px; color:var(--muted); }\n.metric-pair strong { display:block; font-size:24px; font-weight:500; font-variant-numeric:tabular-nums; }\n.scale { display:flex; justify-content:space-between; color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }\n@media(max-width:480px) { .metric-pair strong { font-size:21px; } }\n.presets { display:flex; }\n.plot { position:relative; margin-top:18px; height:190px; border-left:1px solid var(--rule); border-bottom:1px solid var(--muted); }\n.plot svg { width:100%; height:100%; overflow:hidden; }\n.plot .curve { fill:none; stroke:var(--accent); stroke-width:2.5; vector-effect:non-scaling-stroke; }\n.plot .curve.secondary { stroke:var(--second); stroke-dasharray:5 4; }\n.scale { position:relative; }.scale .middle { position:absolute; left:50%; transform:translateX(-50%); }\n.formula { font-size:14px; }.formula div+div { margin-top:6px; }\n@media(max-width:480px) { .plot { height:170px; } }\n.plot .curve { transition:d .28s cubic-bezier(.22,1,.36,1); }\n.legend { display:flex; flex-wrap:wrap; gap:12px; margin-top:10px; font-size:12px; }.legend span::before { content:''; display:inline-block; width:16px; margin-right:6px; vertical-align:middle; border-top:2px solid var(--accent); }.legend .noise::before { border-color:var(--second); border-top-style:dashed; }\n.entropy-track { height:25px; display:flex; margin-top:8px; background:var(--surface); }#noise-entropy { background:var(--second); }#capacity-extra { background:var(--accent); transition:width .28s; }\n","js":"const input=document.querySelector('#power'),noiseEntropy=.5*Math.log2(2*Math.PI*Math.E);\nfunction density(sigma){return Array.from({length:481},(_,i)=>{const x=-12+i/20,y=Math.exp(-x*x/(2*sigma*sigma))/(Math.sqrt(2*Math.PI)*sigma);return(i?'L':'M')+(i*600/480).toFixed(3)+','+(190*(1-y/.45)).toFixed(3);}).join(' ');}\ndocument.querySelector('#noise-density').setAttribute('d',density(1));document.querySelector('#noise-entropy').style.width=noiseEntropy/4.5*100+'%';document.querySelector('#base').textContent=viz.number(noiseEntropy,3)+' bit';\nfunction draw(){const power=+input.value/10,ratio=Math.sqrt(1+power),capacity=Math.log2(ratio);document.querySelector('#power-value').textContent=viz.number(power,1);document.querySelector('#output-density').setAttribute('d',density(ratio));\n document.querySelector('#variance-ratio').textContent='σY / σN = √(1 + '+viz.number(power,1)+') ≈ '+viz.number(ratio,3);\n document.querySelector('#capacity-formula').textContent='C = log₂(σY / σN) = ½ log₂(1 + '+viz.number(power,1)+') ≈ '+viz.number(capacity,3)+' bit';\n document.querySelector('#capacity-extra').style.width=capacity/4.5*100+'%';document.querySelector('#capacity').textContent=viz.number(capacity,3)+' bit';\n}\ninput.addEventListener('input',draw);draw();","audio":false,"strings":{"base":"固定ノイズエントロピー h(N)","capacity":"エントロピー差 h(Y) − h(N) = C","chart":"固定ノイズとガウス出力の確率密度。横軸は −12 から 12、縦軸は 0 から 0.45 に固定。","control":"入力電力 P(σ² = 1)","entropy":"エントロピー帯:金色は h(N)、青色は C、2つの合計は h(Y)。","eyebrow":"標準偏差の倍数 → エントロピー差","heading":"なぜ容量は ½ log₂(1 + SNR) なのか?","intro":"ノイズは変わらない。ガウス入力の電力を増やすと、出力分布がどのように広がるか、そしてそれがどの程度の追加情報に対応するかを観察する。","noise":"破線:固定ノイズ N","note":"密度図はすべて x ∈ [−12,12]、密度 0–0.45 のスケールを統一して使用する。2つの完全な密度の積分はどちらも 1 であり、容量はそれらの面積差ではない。ここでは独立ガウス入力と平均電力制約を使用する。下部のエントロピー帯は別途 0–4.5 bit のスケールを使用し、容量の単位は bit/実数チャネル使用。","output":"実線:出力 Y = X + N"}}
図ではノイズ分散を 1 に固定し、容量を達成するガウス入力を使用する。P = 0 の場合、出力分布はノイズと等しく、容量は 0 である。P = 3 の場合、標準偏差比は 2 で、エントロピー差は 1 bit である。P = 15 の場合、比は 4 で、エントロピー差は 2 bit である。2つの完全な密度曲線下の積分はどちらも 1 であり、容量はそれらの面積差ではない。
この導出は、電力利得の対数的増加も説明する。高 SNR において電力を2倍にしても、1回の実数チャネル使用あたりの容量は約 0.5 bit しか増加しない。二元入力や他のコンステレーションに制限する場合、通常、ここでガウス入力の容量を直接取得することはできない。MIT 6.441 第 17 章 を参照。
帯域幅 B の連続時間、標準的な実数 AWGN モデルでは、両側ノイズ電力スペクトル密度が N 0 /2 の場合、帯域内ノイズ電力は N 0 B となり、通常 C = B log 2 ( 1 + P / ( N 0 B )) bit/s と書かれる。これは上記の「1回の実数使用」単位とは異なり、係数を直接比較することはできない。
理論的限界から工学実装へ
符号化定理は到達可能なレートの境界を与えるが、実際のシステムではブロック長、目標ブロック誤り率、復号レイテンシ、消費電力、計算予算を指定する必要がある。ハミング、リード・ソロモン、ターボ、LDPC、ポーラなどの符号は、異なる構造と制約に対してトレードオフを行う。「符号語がより長い」ことや、特定の符号族の名前だけで、すでに容量に近いと断言することはできない。
ランダム符号の議論は優れた符号が存在することを示すが、巨大な符号語集合を直接保存して全探索復号を行うのは通常実用的ではない。工学における重要な作業は、構造化され、効率的に符号化および復号可能であり、かつ有限長性能要件を満たす符号を見つけることである。
情報源・チャネル分離:単位を合わせてからレートを比較する
情報源符号化は情報源の予測可能な冗長性を除去し、チャネル符号化は意図的に誤り訂正冗長性を付加する。古典的なポイントツーポイント、有限アルファベット定常エルゴード情報源および離散メモリレスチャネルの場合、長いブロックが許容される条件下では、まず圧縮してから誤り訂正を行い、漸近的に最適な信頼できる伝送条件を実現できる。
情報源が秒あたり f s 個のシンボルを生成し、エントロピー率が H ˉ bit/情報源シンボルである場合。チャネルが秒あたり f c 回使用され、容量が C bit/使用である場合、以下を比較する必要がある:
f s H ˉ < f c C
例えば、秒あたり 1000 個の情報源シンボル、エントロピー率 0.4 bit/シンボルの場合、約 400 bit/s の漸的情息レートが必要である。秒あたり 1000 回使用され、容量が 0.5 bit/使用であるチャネルは 500 bit/s の理論予算を提供するため、圧縮出力レートとチャネル符号レートの間で選択できる。有限ブロックのオーバーヘッドと目標信頼性は依然として個別に計算する必要がある。
分離結論には適用条件がある。短いレイテンシ、マルチユーザーネットワーク、または他の厳格な制約の下では、圧縮と誤り訂正を独立して最適化することが必ずしも最善ではないとは限らない。関連する境界は MIT 6.441 第 20 章 を参照。次回は、一定の情報損失が許容される場合の率歪みと情報ボトルネック について議論する。
参考文献