Difference between revisions of "Aufgaben:Exercise 1.12Z: Comparison of HC (7, 4, 3) and HC (8, 4, 4)"

From LNTwww
Line 9: Line 9:
  
 
are compared with each other. The following are used as a basis
 
are compared with each other. The following are used as a basis
*the  [[Channel_Coding/Channel_Models_and_Decision_Structures#Binary_Symmetric_Channel_.E2.80.93_BSC|BSC channel model]]  (parameters  $\varepsilon$, in particular  $\varepsilon = 0.01$  for numerical results),
+
*the  [[Channel_Coding/Channel_Models_and_Decision_Structures#Binary_Symmetric_Channel_.E2.80.93_BSC|"BSC channel model"]]  (parameters  $\varepsilon$, in particular  $\varepsilon = 0.01$  for numerical results),
*the  [[Channel_Coding/Decoding_of_Linear_Block_Codes#Principle_of_syndrome_decoding|syndrome decoding]], which implements maximum likelihood detection for both codes; correct assignment of the syndrome table yields the minimum block error probability in each case.
+
*the  [[Channel_Coding/Decoding_of_Linear_Block_Codes#Principle_of_syndrome_decoding|"syndrome decoding"]], which implements maximum likelihood detection for both codes; correct assignment of the syndrome table yields the minimum block error probability in each case.
  
  
  
For the  $(7, 4, 3)$ code was calculated in the  [[Aufgaben:Exercise_1.12:_Hard_Decision_vs._Soft_Decision|Exercise 1.12]] :
+
For the  $(7, 4, 3)$ code was calculated in the  [[Aufgaben:Exercise_1.12:_Hard_Decision_vs._Soft_Decision|"Exercise 1.12"]] :
  
 
:$${\rm Pr(block\:error)} = 1 - (1 - \varepsilon)^7 - 7 \cdot \varepsilon \cdot (1 - \varepsilon)^6 \hspace{0.05cm}.$$
 
:$${\rm Pr(block\:error)} = 1 - (1 - \varepsilon)^7 - 7 \cdot \varepsilon \cdot (1 - \varepsilon)^6 \hspace{0.05cm}.$$
Line 21: Line 21:
  
 
It should be noted that only hard decisions are possible due to the BSC channel model. With  [[Channel_Coding/Decoding_of_Linear_Block_Codes#Coding_gain_-_bit_error_rate_with_AWGN|"Soft Decision"]]  slightly smaller block error probabilities result.
 
It should be noted that only hard decisions are possible due to the BSC channel model. With  [[Channel_Coding/Decoding_of_Linear_Block_Codes#Coding_gain_-_bit_error_rate_with_AWGN|"Soft Decision"]]  slightly smaller block error probabilities result.
 +
Now the block error probability for the extended  $(8, 4, 4)$ code is to be determined:
 +
*The calculation in subtask '''(4)''' is made with the proviso that, as for the  $(7, 4, 3)$ code, only the error patterns with a single "$1$" are corrected. In the right column of the above table, the results are entered, except for the value for  $\varepsilon = 0.01$, which is to be calculated explicitly.
  
Nun soll die Blockfehlerwahrscheinlichkeit für den erweiterten  $(8, 4, 4)$–Code ermittelt werden:
+
*In the subtask '''(5)''', on the other hand, it is to be taken into account that with the extended  $(8, 4, 4)$ code, parts of the syndrome table can still be filled with weight-2 error patterns.
*Die Berechnung in Teilaufgabe '''(4)''' erfolgt unter der Maßgabe, dass wie beim  $(7, 4, 3)$–Code nur die Fehlermuster mit einer einzigen „$1$” korrigiert werden. In der rechten Spalte obiger Tabelle sind die Ergebnisse eingetragen, bis auf den Wert für  $\varepsilon = 0.01$, der explizit berechnet werden soll.
 
  
*In der Teilaufgabe '''(5)''' soll dagegen berücksichtigt werden, dass beim erweitereten  $(8, 4, 4)$–Code Teile der Syndromtabelle noch mit Gewicht–2–Fehlermustern aufgefüllt werden können.
 
  
  
Line 31: Line 31:
  
  
 
+
Hints:
 
+
* This exercise belongs to the chapter  [[Channel_Coding/Decoding_of_Linear_Block_Codes|"Decoding of Linear Block Codes]"].  
''Hinweise:''
+
* Of particular interest for solving this exercise is the page  [[Channel_Coding/Decoding_of_Linear_Block_Codes#Generalization_of_syndrome_coding|"Generalization of Syndrome Decoding"]].
* Die Aufgabe gehört zum Kapitel  [[Channel_Coding/Decodierung_linearer_Blockcodes|Decodierung linearer Blockcodes]].  
 
* Von Interesse für die Lösung dieser Aufgabe ist insbesondere die Seite  [[Channel_Coding/Decodierung_linearer_Blockcodes#Verallgemeinerung_der_Syndromdecodierung|Verallgemeinerung der Syndromdecodierung]].
 
 
  
  
  
  
===Fragebogen===
+
===Questions===
 
<quiz display=simple>
 
<quiz display=simple>
{Wieviele Einträge beinhalten die jeweiligen Syndromtabellen  insgesamt?
+
{How many entries do the respective syndrome tables contain in total?
 
|type="{}"}
 
|type="{}"}
$(7, 4, 3){\rm Code} \text{:} \hspace{0.4cm} N_{\rm ges} \ = \ $ { 8 }
+
$(7, 4, 3)\:{\rm code} \text{:} \hspace{0.4cm} N_{\rm ges} \ = \ $ { 8 }
$(8, 4, 4){\rm Code} \text{:} \hspace{0.4cm} N_{\rm ges} \ = \ $ { 16 }
+
$(8, 4, 4)\:{\rm code} \text{:} \hspace{0.4cm} N_{\rm ges} \ = \ $ { 16 }
  
{Wieviele Gewicht–2–Fehlermuster&nbsp; $(N_2')$&nbsp; gibt es insgesamt?
+
{How many weight-2 error patterns&nbsp; $(N_2')$&nbsp; are there in total?
 
|type="{}"}
 
|type="{}"}
$(7, 4, 3){\rm Code} \text{:} \hspace{0.4cm} N_2' \ = \ $ { 21 }
+
$(7, 4, 3)\:{\rm code} \text{:} \hspace{0.4cm} N_2' \ = \ $ { 21 }
$(8, 4, 4){\rm Code} \text{:} \hspace{0.4cm} N_2' \ = \ $ { 28 }
+
$(8, 4, 4)\:{\rm code} \text{:} \hspace{0.4cm} N_2' \ = \ $ { 28 }
  
{Wieviele Fehlermuster in den Syndromtabellen&nbsp; $(N_2)$&nbsp; beinhalten zwei Einsen?
+
{How many error patterns in the syndrome tables&nbsp; $(N_2)$&nbsp; contain two ones?
 
|type="{}"}
 
|type="{}"}
$(7, 4, 3){\rm Code} \text{:} \hspace{0.4cm} N_2 \ = \ $ { 0. }
+
$(7, 4, 3)\:{\rm code} \text{:} \hspace{0.4cm} N_2 \ = \ $ { 0. }
$(8, 4, 4){\rm Code} \text{:} \hspace{0.4cm} N_2 \ = \ $ { 7 }
+
$(8, 4, 4)\:{\rm code} \text{:} \hspace{0.4cm} N_2 \ = \ $ { 7 }
  
{Es gelte nun&nbsp; $\varepsilon = 0.01.$ Welche Blockfehlerwahrscheinlichkeit ergibt sich für den erweiterten&nbsp; $(8, 4, 4)$–Code <u>ohne Gewicht–2–Fehlerkorrektur</u>?
+
{Let it now&nbsp; $\varepsilon = 0.01.$ What is the block error probability for the extended&nbsp; $(8, 4, 4)$ code <u>without weight-2 error correction</u>?
 
|type="{}"}
 
|type="{}"}
${\rm Pr(Blockfehler)} \ = \ $ { 2.69 3% } $\ \cdot 10^{-3}$  
+
${\rm Pr(block\:error)} \ = \ $ { 2.69 3% } $\ \cdot 10^{-3}$  
  
{Welches Ergebnis erzielt man demgegenüber <u>mit Gewicht–2–Fehlerkorrektur</u>?
+
{In contrast, what result is obtained <u>with weight-2 error correction</u>?
 
|type="{}"}
 
|type="{}"}
$\ {\rm  Pr(Blockfehler)}  \ = \ $ { 2.03 3% } $\ \cdot 10^{-3}$  
+
$\ {\rm  Pr(block\:error)}  \ = \ $ { 2.03 3% } $\ \cdot 10^{-3}$  
 
</quiz>
 
</quiz>
  
===Musterlösung===
+
===Solution===
 
{{ML-Kopf}}
 
{{ML-Kopf}}
'''(1)'''&nbsp; Die Größe der Syndromtabelle ist allgemein $N_{\rm ges} = 2^m$, wobei $m = n - k$ die Anzahl der Prüfbits angibt.
+
'''(1)'''&nbsp; The size of the syndrome table is generally $N_{\rm ges} = 2^m$, where $m = n - k$ indicates the number of parity bits.
*Beim $(7, 4, 3)$–Hamming–Code ist $m = n - k = 3$ &nbsp;⇒&nbsp; die Länge der Tabelle ist $N_{\rm ges} =2^3 \ \underline{= 8}.$
+
*In the $(7, 4, 3)$ Hamming code, $m = n - k = 3$ &nbsp;⇒&nbsp; the length of the table is $N_{\rm ges} =2^3 \ \underline{= 8}.$
*Die Syndromtabelle des $(8, 4, 4)$–Codes ist doppelt so groß: &nbsp; $N_{\rm ges} = 2^4 \ \underline{= 16}$.
+
*The syndrome table of the $(8, 4, 4)$ code is twice as large: &nbsp; $N_{\rm ges} = 2^4 \ \underline{= 16}$.
  
  
  
'''(2)'''&nbsp;  Allgemein gilt für die Anzahl der Einträge mit Gewicht–2–Fehlermustern: $N_2' = $$n {\rm \ über \ } 2$. Daraus ergeben sich die Zahlenwerte
+
'''(2)'''&nbsp;  In general, for the number of entries with weight-2 error patterns, $N_2' = $"$n {\rm \ over \ } 2$". This results in the numerical values
*$N_2' \ \underline{= 21} \ $ für $n = 7 \ \ ⇒ \ \ (7, 4, 3)$–Code,
+
*$N_2' \ \underline{= 21} \ $ für $n = 7 \ \ ⇒ \ \ (7, 4, 3)$ code,
*$N_2' \ \underline{= 28} \ $ für $n = 8 \ \ \Rightarrow \ \  (8, 4, 4)$–Code.
+
*$N_2' \ \underline{= 28} \ $ für $n = 8 \ \ \Rightarrow \ \  (8, 4, 4)$ code.
  
  
  
'''(3)'''&nbsp;  Beim $(7, 4, 3)$–Hamming–Code ist die Syndromtabelle gefüllt mit einem Eintrag für den fehlerfreien Fall $(N_{0}= 1)$ und $n = 7$ Einträge mit Gewicht–1–Fehlermustern $(N_{1} = 7)$. Damit ist die Anzahl der Einträge mit Gewicht–2–Fehlermustern gleich
+
'''(3)'''&nbsp;  In the $(7, 4, 3)$ Hamming code, the syndrome table is filled with one entry for the error-free case $(N_{0}= 1)$ and $n = 7$ entries with weight-1 error patterns $(N_{1} = 7)$. Thus, the number of entries with weight-2 error patterns is equal to
  
 
:$$N_2 = N_{\rm ges} - N_0 - N_1 \hspace{0.15cm} \underline{= 0} \hspace{0.05cm}.$$
 
:$$N_2 = N_{\rm ges} - N_0 - N_1 \hspace{0.15cm} \underline{= 0} \hspace{0.05cm}.$$
  
Dagegen gilt für den erweiterten $(8, 4, 4)$–Hamming–Code:
+
In contrast, for the extended $(8, 4, 4)$ Hamming code:
  
 
:$$N_0 = 1\hspace{0.05cm},\hspace{0.2cm}N_1 = 8 \hspace{0.3cm} \Rightarrow \hspace{0.3cm} N_2 = N_{\rm ges} - N_0 - N_1 \hspace{0.15cm} \underline{= 7} \hspace{0.05cm}.$$
 
:$$N_0 = 1\hspace{0.05cm},\hspace{0.2cm}N_1 = 8 \hspace{0.3cm} \Rightarrow \hspace{0.3cm} N_2 = N_{\rm ges} - N_0 - N_1 \hspace{0.15cm} \underline{= 7} \hspace{0.05cm}.$$
Line 91: Line 88:
  
  
'''(4)'''&nbsp; Analog zur [[Aufgaben:1.12_Hard_/_Soft_Decision#collapse1|Musterlösung]] der ersten beiden Teile der Aufgabe 1.12 erhält man hier:
+
'''(4)'''&nbsp; Analogous to the[[Aufgaben:Exercise_1.12:_Hard_Decision_vs._Soft_Decision| "solution"]] of the first two parts of Exercise 1.12, here you get:
[[File:P_ID2410__KC_Z_1_12d.png|right|frame|Blockfehlerwahrscheinlichkeit von $(7, 4, 3)$–  und $(8, 4, 4)$–Code]]
+
[[File:P_ID2410__KC_Z_1_12d.png|right|frame|Block error probability of $(7, 4, 3)$ and $(8, 4, 4)$ code]]
:$${\rm Pr(Blockfehler)} = 1 - (1 - \varepsilon)^8 - 8 \cdot \varepsilon \cdot (1 - \varepsilon)^7$$
+
:$${\rm Pr(block\:error)} = 1 - (1 - \varepsilon)^8 - 8 \cdot \varepsilon \cdot (1 - \varepsilon)^7$$
:$$\Rightarrow \hspace{0.3cm}{\rm Pr(Blockfehler)} =1 - 0.922745 - 0.074655\hspace{0.15cm} \underline{= 2.69 \cdot 10^{-3}} \hspace{0.05cm}.$$
+
:$$\Rightarrow \hspace{0.3cm}{\rm Pr(block\:error)} =1 - 0.922745 - 0.074655\hspace{0.15cm} \underline{= 2.69 \cdot 10^{-3}} \hspace{0.05cm}.$$
  
*In der Tabelle sind für diesen Fall und für verschiedene BSC–Parameter $ε$ die Ergebnisse in der dritten Spalte &nbsp; &rArr; &nbsp; ${\rm Pr}(\ge \text{2Fehler)}$ eingetragen.  
+
*In the table, for this case and for different BSC parameters $ε$, the results are entered in the third column &nbsp; &rArr; &nbsp; ${\rm Pr}(\ge \text{2Errors)}$.  
*Gegenüber dem $(7, 4, 3)$–Code entsprechend der zweiten Spalte ergibt sich stets eine Verschlechterung.
+
*Compared to the $(7, 4, 3)$ code corresponding to the second column, there is always a deterioration.  
 
<br clear=all>
 
<br clear=all>
'''(5)'''&nbsp;  Bei bestmöglicher Korrektur (gefüllte Syndromtabelle) werden auch sieben Gewicht–2–Fehlermuster korrigiert.  
+
'''(5)'''&nbsp;  With the best possible correction (filled syndrome table), seven weight-2 error patterns are also corrected.  
*Damit vermindert sich die Blockfehlerwahrscheinlichkeit um die "Verbesserung" (Spalte 4):
+
*This reduces the block error probability by the "improvement" (column 4):
 
   
 
   
:$${\rm Pr(Gewicht\hspace{-0.1cm}-\hspace{-0.1cm}2\hspace{-0.1cm}-\hspace{-0.1cm}Fehlermuster\hspace{0.15cm} wird \hspace{0.15cm} korrigiert)} = 7 \cdot \varepsilon^2 \cdot (1 - \varepsilon)^6 \hspace{0.05cm}.$$
+
:$${\rm Pr(Corrected\hspace{0.15cm}weight\hspace{-0.1cm}-\hspace{-0.1cm}2\hspace{0.15cm}error\hspace{0.15cm} pattern)} = 7 \cdot \varepsilon^2 \cdot (1 - \varepsilon)^6 \hspace{0.05cm}.$$
  
*Für $\varepsilon = 0.01$ macht diese „Verbesserung” etwa $6.59 · 10^{–4}$ aus.  
+
*For $\varepsilon = 0.01$, this "improvement" accounts for about $6.59 - 10^{-4}$.  
*Die Blockfehlerwahrscheinlichkeit des $(8, 4, 4)$–Codes (letzte Spalte) ergibt sich somit zu
+
*The block error probability of the $(8, 4, 4)$ code (last column) is thus given by
  
:$${\rm Pr(Blockfehler)} = 2.69 \cdot 10^{-3} - 0.66 \cdot 10^{-3} \underline{= 2.03 \cdot 10^{-3}} \hspace{0.05cm}.$$
+
:$${\rm Pr(block\:error)} = 2.69 \cdot 10^{-3} - 0.66 \cdot 10^{-3} \underline{= 2.03 \cdot 10^{-3}} \hspace{0.05cm}.$$
 
    
 
    
In der obigen Tabelle ist diese Rechnung für verschiedene BSC–Parameter $\varepsilon$ durchgeführt. Man erkennt:  
+
In the table above, this calculation is performed for different BSC parameters $\varepsilon$. One can see:  
*Die Blockfehlerwahrscheinlichkeit des erweiterten $(8, 4, 4)$–Hamming–Codes (letzte Spalte) stimmt exakt mit der des $(7, 4, 3)$–Hamming–Codes (Spalte 2) überein.  
+
*The block error probability of the $(8, 4, 4)$ extended Hamming code (last column) exactly matches that of the $(7, 4, 3)$ Hamming code (column 2).  
*Die Korrektur von $25\%$ der Gewicht–2–Fehlermuster gleicht genau die Tatsache aus, dass beim $(8, 4, 4)$–Code Fehlermuster mit mehr als einem Fehler (Spalte 3) wahrscheinlicher sind als beim $(7, 4, 3)$–Code (Spalte 2).
+
*The $25\%$ correction to the weight-2 error patterns exactly balances the fact that error patterns with more than one error (column 3) are more likely for the $(8, 4, 4)$ code than for the $(7, 4, 3)$ code (column 2).
 
{{ML-Fuß}}
 
{{ML-Fuß}}
  
  
 
[[Category:Channel Coding: Exercises|^1.5 Linear Block Code Decoding^]]
 
[[Category:Channel Coding: Exercises|^1.5 Linear Block Code Decoding^]]

Revision as of 22:03, 16 July 2022

Block error probabilities of  $\rm HC \ (7, 4, 3)$  and  $\rm HC \ (8, 4, 4)$

Now the block error probabilities

  • of the $(7, 4, 3)$ Hamming code and
  • of the extended  $(8, 4, 4)$ Hamming code


are compared with each other. The following are used as a basis

  • the  "BSC channel model"  (parameters  $\varepsilon$, in particular  $\varepsilon = 0.01$  for numerical results),
  • the  "syndrome decoding", which implements maximum likelihood detection for both codes; correct assignment of the syndrome table yields the minimum block error probability in each case.


For the  $(7, 4, 3)$ code was calculated in the  "Exercise 1.12" :

$${\rm Pr(block\:error)} = 1 - (1 - \varepsilon)^7 - 7 \cdot \varepsilon \cdot (1 - \varepsilon)^6 \hspace{0.05cm}.$$

The numerical values are given in the second column of the table above. They are the actual values, i.e. not the approximation derived in  Exercise 1.12    ${\rm Pr(block\:error)} \approx 21 \cdot \varepsilon^2$.

It should be noted that only hard decisions are possible due to the BSC channel model. With  "Soft Decision"  slightly smaller block error probabilities result. Now the block error probability for the extended  $(8, 4, 4)$ code is to be determined:

  • The calculation in subtask (4) is made with the proviso that, as for the  $(7, 4, 3)$ code, only the error patterns with a single "$1$" are corrected. In the right column of the above table, the results are entered, except for the value for  $\varepsilon = 0.01$, which is to be calculated explicitly.
  • In the subtask (5), on the other hand, it is to be taken into account that with the extended  $(8, 4, 4)$ code, parts of the syndrome table can still be filled with weight-2 error patterns.




Hints:

  • This exercise belongs to the chapter  [[Channel_Coding/Decoding_of_Linear_Block_Codes|"Decoding of Linear Block Codes]"].
  • Of particular interest for solving this exercise is the page  "Generalization of Syndrome Decoding".



Questions

1

How many entries do the respective syndrome tables contain in total?

$(7, 4, 3)\:{\rm code} \text{:} \hspace{0.4cm} N_{\rm ges} \ = \ $

$(8, 4, 4)\:{\rm code} \text{:} \hspace{0.4cm} N_{\rm ges} \ = \ $

2

How many weight-2 error patterns  $(N_2')$  are there in total?

$(7, 4, 3)\:{\rm code} \text{:} \hspace{0.4cm} N_2' \ = \ $

$(8, 4, 4)\:{\rm code} \text{:} \hspace{0.4cm} N_2' \ = \ $

3

How many error patterns in the syndrome tables  $(N_2)$  contain two ones?

$(7, 4, 3)\:{\rm code} \text{:} \hspace{0.4cm} N_2 \ = \ $

$(8, 4, 4)\:{\rm code} \text{:} \hspace{0.4cm} N_2 \ = \ $

4

Let it now  $\varepsilon = 0.01.$ What is the block error probability for the extended  $(8, 4, 4)$ code without weight-2 error correction?

${\rm Pr(block\:error)} \ = \ $

$\ \cdot 10^{-3}$

5

In contrast, what result is obtained with weight-2 error correction?

$\ {\rm Pr(block\:error)} \ = \ $

$\ \cdot 10^{-3}$


Solution

(1)  The size of the syndrome table is generally $N_{\rm ges} = 2^m$, where $m = n - k$ indicates the number of parity bits.

  • In the $(7, 4, 3)$ Hamming code, $m = n - k = 3$  ⇒  the length of the table is $N_{\rm ges} =2^3 \ \underline{= 8}.$
  • The syndrome table of the $(8, 4, 4)$ code is twice as large:   $N_{\rm ges} = 2^4 \ \underline{= 16}$.


(2)  In general, for the number of entries with weight-2 error patterns, $N_2' = $"$n {\rm \ over \ } 2$". This results in the numerical values

  • $N_2' \ \underline{= 21} \ $ für $n = 7 \ \ ⇒ \ \ (7, 4, 3)$ code,
  • $N_2' \ \underline{= 28} \ $ für $n = 8 \ \ \Rightarrow \ \ (8, 4, 4)$ code.


(3)  In the $(7, 4, 3)$ Hamming code, the syndrome table is filled with one entry for the error-free case $(N_{0}= 1)$ and $n = 7$ entries with weight-1 error patterns $(N_{1} = 7)$. Thus, the number of entries with weight-2 error patterns is equal to

$$N_2 = N_{\rm ges} - N_0 - N_1 \hspace{0.15cm} \underline{= 0} \hspace{0.05cm}.$$

In contrast, for the extended $(8, 4, 4)$ Hamming code:

$$N_0 = 1\hspace{0.05cm},\hspace{0.2cm}N_1 = 8 \hspace{0.3cm} \Rightarrow \hspace{0.3cm} N_2 = N_{\rm ges} - N_0 - N_1 \hspace{0.15cm} \underline{= 7} \hspace{0.05cm}.$$


(4)  Analogous to the "solution" of the first two parts of Exercise 1.12, here you get:

Block error probability of $(7, 4, 3)$ and $(8, 4, 4)$ code
$${\rm Pr(block\:error)} = 1 - (1 - \varepsilon)^8 - 8 \cdot \varepsilon \cdot (1 - \varepsilon)^7$$
$$\Rightarrow \hspace{0.3cm}{\rm Pr(block\:error)} =1 - 0.922745 - 0.074655\hspace{0.15cm} \underline{= 2.69 \cdot 10^{-3}} \hspace{0.05cm}.$$
  • In the table, for this case and for different BSC parameters $ε$, the results are entered in the third column   ⇒   ${\rm Pr}(\ge \text{2Errors)}$.
  • Compared to the $(7, 4, 3)$ code corresponding to the second column, there is always a deterioration.


(5)  With the best possible correction (filled syndrome table), seven weight-2 error patterns are also corrected.

  • This reduces the block error probability by the "improvement" (column 4):
$${\rm Pr(Corrected\hspace{0.15cm}weight\hspace{-0.1cm}-\hspace{-0.1cm}2\hspace{0.15cm}error\hspace{0.15cm} pattern)} = 7 \cdot \varepsilon^2 \cdot (1 - \varepsilon)^6 \hspace{0.05cm}.$$
  • For $\varepsilon = 0.01$, this "improvement" accounts for about $6.59 - 10^{-4}$.
  • The block error probability of the $(8, 4, 4)$ code (last column) is thus given by
$${\rm Pr(block\:error)} = 2.69 \cdot 10^{-3} - 0.66 \cdot 10^{-3} \underline{= 2.03 \cdot 10^{-3}} \hspace{0.05cm}.$$

In the table above, this calculation is performed for different BSC parameters $\varepsilon$. One can see:

  • The block error probability of the $(8, 4, 4)$ extended Hamming code (last column) exactly matches that of the $(7, 4, 3)$ Hamming code (column 2).
  • The $25\%$ correction to the weight-2 error patterns exactly balances the fact that error patterns with more than one error (column 3) are more likely for the $(8, 4, 4)$ code than for the $(7, 4, 3)$ code (column 2).