SlideShare a Scribd company logo
1 of 28
Mustaqbal University
College of Engineering &Computer Sciences
Electronics and Communication Engineering Department
Course: EE301: Probability Theory and Applications
Part B
Prerequisite: Stat 219
Te×t Book: B.P. Lathi, “Modern Digital and Analog Communication Systems”, 3th edition, O×ford University Press, Inc., 1998
Reference: A. Papoulis, Probability, Random Variables, and Stochastic Processes, Mc-Graw Hill, 2005
Dr. Aref Hassan Kurdali
Discrete Memoryless Channels
The issue of information transmission is now considered,
with particular emphasis on reliability (error free).
Consider a discrete memoryless channel which is a
statistical model with an input A and an output B that is a
noisy version of A; both A and B are random discrete
variables. At every unit of time, the channel accepts an
input symbol ai selected from an input alphabet A {a1,a2,
...,ai, ., ar} and in response, it emits an output symbol B
from an output alphabet B {b1,b2, ...,bj, ., bs}. The
channel is said to be "discrete" when both of the
alphabets A and B have finite sizes. It is said to be
"memoryless" when the current output symbol depends
only on the current input symbol and not on any of the
previous ones. The input alphabet A and output
alphabet B need not have the same size.
A convenient way of describing a discrete memoryless channel is to arrange
the various conditional probabilities of the channel at the transmitter in the form
of a forward conditional channel matri× F as follows:
p(b1/a1) p(b2/a1) ............ p(bs/a1)
FM = p(b1/a2) p(b2/a2) ............ p(bs/a2)
.
p(b1/ar) p(b2/ar) ............ p(bs/ar)
The ith raw represents the output probability distribution given the input symbol
ai is transmitted. Thus, the sum over any raw has to equal to one.
Similarly, at the receiver, the backward conditional channel matri× can be
calculated and arranged as follows:
p(a1/b1) p(a2/b1) ............ p(ar/b1)
BM = p(a1/b2) p(a2/b2) ............ p(ar/b2)
.
p(a1/bs) p(a2/bs) ............ p(ar/bs)
The jth raw represents the input probability distribution given the output symbol
bj is received. Thus, the sum over any raw has also to equal to one.
The joint probability p(ai , bj) = p(bj/ai) p(ai) = p(ai/bj) p(bj) = p(bj , ai)
Tr R× Tr R×
a1 • • b1 P(a1) P(b1)
a2 • • b2 P(a2) P(b2)
a3 • • b3 P(a3) P(b3)
Forward channel Diagram
Backward channel Diagram
Forward Conditional Channel Matrix: Conditional output probability distribution at the transmitter
The output probabilities can be calculated as:
P(b1) = P(b1/a1)P(a1) + P(b1/a2) P(a2) + P(b1/a3) P(a3) = P(a1,b1) + P(a2,b1) + P(a3,b1)
P(b2) =
P(b3) =
Backward Conditional Channel Matrix: Conditional input probability distribution at the receiver
P(a1/b1) P(a2/b1) P(a3/b1) 0.8 0.15 0.05
P(a1/b2) P(a2/b2) P(a3/b2) 0.07 0.9 0.03
P(a1/b3) P(a2/b3) P(a3/b3) 0.01 0.29 0.7
Ideal Practical
P(b1/a1) P(b2/a1) P(b3/a1)
P(b1/a2) P(b2/a2) P(b3/a2)
P(b1/a3) P(b2/a3) P(b3/a3)
1 0 0
0 1 0
0 0 1
0.9 0.07 0.03
0.1 0.6 0.3
0.01 0.03 0.96
The marginal probability distribution of the output random variable
B {p(b1), p(b2), ...,p(bj), ., p(bs)} can be calculated from the priori
probability distribution of the input random variable A
{p(a1), p(a2), ...,p(ai), ., p(ar)} and the forward conditional channel
matri×. Where
P(bj) = sum over all i for p(bj/ai) p(ai), i=1, 2, ....., r
𝑃 𝑏𝑗 =
𝑖=1
𝑟
𝑝 𝑏𝑗 𝑎𝑖 𝑝(𝑎𝑖)
i.e., B = FMT A
Note that the input probability distribution A and the forward
channel matrix FM are independent and should be practically
calculated and given.
The binary symmetric channel (BSC) is of great theoretical
interest and practical importance. It is a special case of the
discrete memoryless channel with i = j = 2. The channel has two
input symbols (x0 = 0, xl = 1) and two output symbols (y0 = 0, y1 =
1). The channel is symmetric because the probability of receiving
a 1 if a 0 is sent is the same as the probability of receiving a 0 if a
1 is sent. This conditional probability of error is denoted by p. The
forward channel matrix and diagram of a binary symmetric
channel are shown above in Figure 9.8.
BSC forward transition matrix
1 − 𝑝 𝑝
𝑝 1 − 𝑝
Consider the transition probability diagram of a binary symmetric channel shown
in the figure below. The input binary symbols 0 and 1 occur with equal
probability.
a) Find the probabilities of the binary symbols 0 and 1 appearing at the channel
output.
b) Repeat the calculation in (a), assuming that the input binary symbols 0 and 1
occur with probabilities
1
4
and
3
4
, respectively.
Problem 1
Problem 1 - Solution
Problem 1 - Solution
Problem 2
Given the following forward ternary channel matrix:
0.8 0.13 0.07
0.08 0.9 0.02
0.2 0.1 0.7
where the channel input probabilities are: 𝑝 𝑎1 = 0.4, 𝑝 𝑎2 = 0.25
a) Complete: 𝑝 𝑏2|𝑎3 = , 𝑝 𝑏1|𝑎2 =
b) Draw the forward channel diagram.
c) Calculate the output probabilities.
d) Calculate the following joint probabilities: 𝑝 𝑎2, 𝑏2 , 𝑝 𝑎3, 𝑏1 .
e) Calculate the following conditional probabilities: 𝑝 𝑎2|𝑏2 , 𝑝 𝑎1|𝑏3 .
𝑝 𝑎1 = 0.4, 𝑝 𝑎2 = 0.25 => 𝑝 𝑎3 = 1 − [𝑝 𝑎1 + 𝑝 𝑎2 ] = 0.35
0.8 0.13 0.07
0.08 0.9 0.02
0.2 0.1 0.7
a) 𝑝 𝑏2|𝑎3 = 0.1 , 𝑝 𝑏1|𝑎2 = 0.08
b) The forward channel diagram
•
𝑎1 • 𝑏1
•
𝑎2 • 𝑏2
•
𝑎3 • 𝑏3
Problem 2 – Solution
0.13
0.8
0.07
𝑝 𝑎1 = 0.4, 𝑝 𝑎2 = 0.25 => 𝑝 𝑎3 = 1 − [𝑝 𝑎1 + 𝑝 𝑎2 ] = 0.35
0.8 0.13 0.07
0.08 0.9 0.02
0.2 0.1 0.7
c) The output probabilities.
𝑝 𝑏1 = 0.4 × 0.8 + 0.25 × 0.08 + 0.38 × 0.2 = 0.41
𝑝 𝑏2 = 0.4 × 0.13 + 0.25 × 0.9 + 0.38 × 0.1 = 0.312
𝑝 𝑏3 = 0.4 × 0.07 + 0.25 × 0.02 + 0.38 × 0.7 = 0.278
d) The joint probabilities:
𝑝 𝑎2, 𝑏2 = 𝑝 𝑏2|𝑎2 𝑝 𝑎2 = 0.9 × 0.25 = 0.225
𝑝 𝑎3, 𝑏1 = 𝑝 𝑏1|𝑎3 𝑝 𝑎3 = 0.2 × 0.25 = 0.07
e) Calculate the following conditional probabilities:
𝑝 𝑎2|𝑏2 =
𝑝 𝑎2, 𝑏2
𝑝 𝑏2
=
0.225
0.312
= 0.721
𝑝 𝑎1|𝑏3 =
𝑝 𝑎1, 𝑏3
𝑝 𝑏3
=
𝑝 𝑏3|𝑎1 𝑝 𝑎1
𝑝 𝑏3
=
0.07 × 0.4
0.278
= 0.101
Problem 2 – Solution
Receiver Decision Rules
Let the symbol bj has been received, which input symbol
ai should the receiver decide to be sent? d(bj) is the
receiver decision rule whenever bj is received. Using the
backward transition matrix and the maximum likelihood
rule over each row:
d(bj) = a*, where p(a*/bj) ≥ p(ai/bj) for all i
and in terms of the joint probabilities:
i.e. p(a*,bj) ≥ p(ai,bj) for all i
or the forward conditional probabilities p(bj/a*)p(a*) ≥ p(bj/ai)p(ai) for all i
If the input probability is uniform, then choose
d(bj) = a*, where p(bj /a*) ≥ p(bj /ai) for all i
Probability of Error Calculations
For a given channel matri× and a given receiver decision rule,
the conditional probability of error p(E/bj ) = 1- p(d(bj)/bj) and
the statistical average of error PE can be calculated as:
If the input probability is uniform, then
PE = 1- (1/r) (sum of all p(bj /a*) )


















s
j
j
E
s
j
j
E
j
s
j
j
E
s
j
j
j
E
b
a
p
P
a
p
a
b
p
P
b
p
b
a
p
P
b
p
b
E
p
P
1
*
1
1
1
)
,
(
1
)
(
)
/
(
1
)
(
)
/
(
1
)
(
)
/
(
Problem 3
Consider the following backward 4-ary channel matrix
What is the receiver decision rule would be for: 𝑑 𝑏1 , 𝑑 𝑏2 , 𝑑 𝑏3 , 𝑑 𝑏4 .
Problem 3 - Solution
Consider the following backward 4-ary channel matrix
The receiver decision rule would be
𝑑 𝑏1 = 𝑎1
𝑑 𝑏2 = 𝑎1
𝑑 𝑏3 = 𝑎3
𝑑 𝑏4 = 𝑎2
Problem 4
A 4-symbols of memoryless source S {a, b, c, and d} is encoded using the following
binary Shannon-Fano encoder:
a 1100
b 10
c 0110
d 00
The source probability distribution is: p(a)=p(c)=0.0625, p(b)=p(d)=0.4375.
If this encoder output binary stream is applied to a binary channel, Calculate the
channel input probability distribution: P(0) and P(1).
Problem 4 - Solution
a 1100
b 10
c 0110
d 00
p(a)=p(c)=0.0625, p(b)=p(d)=0.4375.
𝑃 0 =
1
2
× 𝑝 𝑎 +
1
2
× 𝑝 𝑏 +
1
2
× 𝑝 𝑐 + 𝑝 𝑑
=
1
2
× 1 − 0.4375 + 0.4375 = 𝟎. 𝟕𝟏𝟖𝟕𝟓
𝑃 1 =
1
2
× 1 − 0.4375 = 𝟎. 𝟐𝟖𝟏𝟐𝟓
Problem 5
T Prob
Huffman
Ternary
Code
𝑝(𝑡1) 0.25 1
𝑝(𝑡2) 0.2 2
𝑝(𝑡4) 0.2 00
𝑝(𝑡5) 0.16 02
𝑝(𝑡3) 0.05 011
𝑝(𝑡7) 0.05 012
𝑝(𝑡6) 0.04 0100
𝑝(𝑡8) 0.04 0101
𝑝(𝑡9) 0.01 0102
If the shown ternary stream is applied to a ternary
channel with the following forward channel matrix:
0.9 0.05 0.05
0.15 0.7 0.15
0.1 0.1 0.8
a) Calculate the channel input probability distribution.
b) Calculate the channel output probability
distribution.
c) Find the receiver decision rule and its probability
of error.
d) Calculate the following conditional probabilities:
𝑝 𝑎2|𝑏1 , 𝑝 𝑎1|𝑏3
Problem 5 - Solution
T Prob
Huffman
Ternary Code
𝑝(𝑡1) 0.25 1
𝑝(𝑡2) 0.2 2
𝑝(𝑡4) 0.2 00
𝑝(𝑡5) 0.16 02
𝑝(𝑡3) 0.05 011
𝑝(𝑡7) 0.05 012
𝑝(𝑡6) 0.04 0100
𝑝(𝑡8) 0.04 0101
𝑝(𝑡9) 0.01 0102
a) The channel input probability distribution:
 𝒑 𝒂𝟏 = 𝒑 𝟎 = 0.2 +
1
2
× 0.16 +
1
3
× 0.05+
1
3
× 0.05 +
3
4
× 0.04+
1
2
× 0.04 +
1
2
× 0.01 = 𝟎. 𝟑𝟔𝟖𝟑
 𝒑 𝒂𝟐 = 𝒑 𝟏 = 0.25 +
2
3
× 0.05 +
1
3
× 0.05+
1
4
× 0.04+
1
2
× 0.04+
1
4
× 0.01 = 𝟎. 𝟑𝟑𝟐𝟓
 𝒑 𝒂𝟑 = 𝒑 𝟐 = 𝟎. 𝟐𝟗𝟗𝟐
0.9 0.05 0.05
0.15 0.7 0.15
0.1 0.1 0.8
b) Calculate the channel output probability distribution.
 𝒑 𝒃𝟏 = 𝒑 𝟎 = 0.9 × 𝒑 𝒂𝟏 + 0.15 × 𝒑 𝒂𝟐 + 𝟎. 𝟏
× 𝒑 𝒂𝟑 = 𝟎. 𝟒𝟏𝟏𝟑
 𝒑 𝒃𝟐 = 𝒑 𝟏 = 𝟎. 𝟐𝟖
 𝒑 𝒃𝟑 = 𝒑 𝟐 = 𝟎. 𝟑𝟎𝟕𝟔
Problem 5 - Solution
T Prob
Huffman
Ternary Code
𝑝(𝑡1) 0.25 1
𝑝(𝑡2) 0.2 2
𝑝(𝑡4) 0.2 00
𝑝(𝑡5) 0.16 02
𝑝(𝑡3) 0.05 011
𝑝(𝑡7) 0.05 012
𝑝(𝑡6) 0.04 0100
𝑝(𝑡8) 0.04 0101
𝑝(𝑡9) 0.01 0102
0.9 0.05 0.05
0.15 0.7 0.15
0.1 0.1 0.8
c) The receiver decision rule:
d(0) = 0
d(1) = 1
d(2) = 2
Its probability of error:
𝑝 0,0 = 0.3683 × 0.9 = 0.3315
𝑝 1,1 = 0.3325 × 0.7 = 0.2328
𝑝 2,2 = 0.2992 × 0.8 = 0.23934
𝑷𝑬 = 1 − 0.3315 + 0.2328 + 0.23934 = 𝟏𝟗. 𝟔𝟒%
d)
𝑝 𝑎2|𝑏1 =
𝑝 𝑎2, 𝑏1
𝑝 𝑏1
=
𝑝 𝑏1|𝑎2 𝑝 𝑎2
𝑝 𝑏1
=
0.15 × 0.3325
0.4113
= 0.1213
𝑝 𝑎1|𝑏3 =
𝑝 𝑎1,𝑏3
𝑝 𝑏3
=
𝑝 𝑏3|𝑎1 𝑝 𝑎1
𝑝 𝑏3
=
0.05×0.36833
0.3076
= 0.0599
Problem 6
Given the following forward ternary channel matrix:
0.7 0.13 0.17
0.08 0.9 0.02
0.2 0.3 0.5
Where the channel input probability distribution is 0.4, 0.5 & 0.1.
1. Draw the forward channel diagram.
2. Calculate the output probability distribution.
3. Calculate the joint channel matrix.
4. Calculate the backward channel matrix.
5. Find the receiver decision rule.
Problem 6 - Solution
2. The output probability distribution
P(b1) = P(b1/a1)P(a1) + P(b1/a2)P(a2) + P(b1/a3) P(a3)
= P(a1,b1) + P(a2,b1) + P(a3,b1)
= 0.4×0.7 + 0.5×0.08 + 0.1×0.2
= 0.28 + 0.04 + 0.02 = 0.34
P(b2) = 0.13×0.4 + 0.9×0.5 +0.3×0.1 = 0.052 + 0.45 + 0.03 = 0.532
P(b3) = 0.17×0.4 +0.02×0.5 + 0.5×0.1 = 0.068 + 0.01 + .05 = 0.128
3. The joint channel matrix
p(a1,b1) p(a1,b2) p(a1,b3)
p(a2,b1) p(a2,b2) p(a2,b3)
p(a3,b1) p(a3,b2) p(a3,b3)
=
0.28 0.052 0.068
0.04 0.45 0.01
0.02 0.03 0.05
→ 𝑵𝒐𝒕𝒆 𝒕𝒉𝒂𝒕:
0.28 + 0.052 + 0.068 =𝑷 𝒂𝟏 = 𝟎. 𝟒
0.04 + 0.45 + 0.01 = 𝑷 𝒂𝟐 = 𝟎. 𝟓
0.02 + 0.03 + 0.05 =𝑷 𝒂𝟑 = 𝟎. 𝟏
0.28 + 0.04 + 0.02 =𝑷 𝒃𝟏 = 𝟎. 𝟑𝟒
0.052 + 0.45 + 0.0𝟑 = 𝑷 𝒃𝟐 = 𝟎. 𝟓𝟑𝟐
0.068 + 0.01 + 0.05 =𝑷 𝒃𝟑 = 𝟎. 𝟏𝟐𝟖
4. The backward channel matrix
BW=
P(a1/b1) P(a2/b1) P(a3/b1)
P(a1/b2) P(a2/b2) P(a3/b2)
P(a1/b3) P(a2/b3) P(a3/b3)
=
0.824 0.118 0.058
0.098 0.846 0.056
0.531 0.078 0.391
5. The receiver decision rule
d(b1) = a1, d(b2) = a2 & d(b3) = a1
𝐹𝑀 =
0.7 0.13 0.17
0.08 0.9 0.02
0.2 0.3 0.5
Problem 7
A source S has six symbols with probability distribution [0.55, 0.1, 0.15, 0.13,
0.03, and 0.04].
a) Construct a ternary Huffman code.
b) If the encoder output stream is transmitted via a ternary symmetric channel
with probability of error p = 0.1. Calculate the input probability distribution
of the channel.
c) Write the forward ternary channel matrix.
d) Calculate the output probability distribution.
e) Calculate the joint channel matrix.
f) Calculate the backward channel matrix.
g) Find the receiver decision rule and calculate its probability of error PE.
h) How could you reduce the probability of error PE?
Problem 7 - Solution
Ternary symmetric channel forward diagram:
Problem 7 - Solution
Problem 8
Given the following forward ternary channel matrix:
0.9 0.03 0.07
0.08 0.7 0.22
0.1 0.4 0.5
Find the receiver decision rule and its Probability of error for each input
probability distribution [p(a1), p(a2), P(a3)]:
a) [0.8, 0.15 & 0.05]
b) [0.15, 0.8 & 0.05]
c) [0.1, 0.15 & 0.8]
d) Comment

More Related Content

Similar to Information Theory and Coding - Lecture 4

Test yourself for JEE(Main)TP-5
Test yourself for JEE(Main)TP-5Test yourself for JEE(Main)TP-5
Test yourself for JEE(Main)TP-5Vijay Joglekar
 
Optimization algorithms for solving computer vision problems
Optimization algorithms for solving computer vision problemsOptimization algorithms for solving computer vision problems
Optimization algorithms for solving computer vision problemsKrzysztof Wegner
 
Solucao_Marion_Thornton_Dinamica_Classic (1).pdf
Solucao_Marion_Thornton_Dinamica_Classic (1).pdfSolucao_Marion_Thornton_Dinamica_Classic (1).pdf
Solucao_Marion_Thornton_Dinamica_Classic (1).pdfFranciscoJavierCaedo
 
Notes and Formulae Mathematics SPM
Notes and Formulae Mathematics SPM Notes and Formulae Mathematics SPM
Notes and Formulae Mathematics SPM Zhang Ewe
 
Notes and-formulae-mathematics
Notes and-formulae-mathematicsNotes and-formulae-mathematics
Notes and-formulae-mathematicsAh Ching
 
cp467_12_lecture14_image compression1.pdf
cp467_12_lecture14_image compression1.pdfcp467_12_lecture14_image compression1.pdf
cp467_12_lecture14_image compression1.pdfshaikmoosa2003
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manualnmahi96
 
Math 2318 - Test 3In this test we will try something differe.docx
Math 2318 - Test 3In this test we will try something differe.docxMath 2318 - Test 3In this test we will try something differe.docx
Math 2318 - Test 3In this test we will try something differe.docxandreecapon
 

Similar to Information Theory and Coding - Lecture 4 (20)

Engg math's practice question by satya prakash 1
Engg math's practice question by satya prakash 1Engg math's practice question by satya prakash 1
Engg math's practice question by satya prakash 1
 
Test yourself for JEE(Main)TP-5
Test yourself for JEE(Main)TP-5Test yourself for JEE(Main)TP-5
Test yourself for JEE(Main)TP-5
 
Linear Algebra Assignment help
Linear Algebra Assignment helpLinear Algebra Assignment help
Linear Algebra Assignment help
 
Multivariate Methods Assignment Help
Multivariate Methods Assignment HelpMultivariate Methods Assignment Help
Multivariate Methods Assignment Help
 
Optimization algorithms for solving computer vision problems
Optimization algorithms for solving computer vision problemsOptimization algorithms for solving computer vision problems
Optimization algorithms for solving computer vision problems
 
Ee gate-2011
Ee gate-2011 Ee gate-2011
Ee gate-2011
 
Solucao_Marion_Thornton_Dinamica_Classic (1).pdf
Solucao_Marion_Thornton_Dinamica_Classic (1).pdfSolucao_Marion_Thornton_Dinamica_Classic (1).pdf
Solucao_Marion_Thornton_Dinamica_Classic (1).pdf
 
Notes and Formulae Mathematics SPM
Notes and Formulae Mathematics SPM Notes and Formulae Mathematics SPM
Notes and Formulae Mathematics SPM
 
Notes and-formulae-mathematics
Notes and-formulae-mathematicsNotes and-formulae-mathematics
Notes and-formulae-mathematics
 
Mathematics formulas
Mathematics formulasMathematics formulas
Mathematics formulas
 
4th Semester CS / IS (2013-June) Question Papers
4th Semester CS / IS (2013-June) Question Papers 4th Semester CS / IS (2013-June) Question Papers
4th Semester CS / IS (2013-June) Question Papers
 
Takue
TakueTakue
Takue
 
Probability and Statistics - Week 2
Probability and Statistics - Week 2Probability and Statistics - Week 2
Probability and Statistics - Week 2
 
Input analysis
Input analysisInput analysis
Input analysis
 
cp467_12_lecture14_image compression1.pdf
cp467_12_lecture14_image compression1.pdfcp467_12_lecture14_image compression1.pdf
cp467_12_lecture14_image compression1.pdf
 
Digital Logic
Digital LogicDigital Logic
Digital Logic
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manual
 
b
bb
b
 
Math iecep
Math iecepMath iecep
Math iecep
 
Math 2318 - Test 3In this test we will try something differe.docx
Math 2318 - Test 3In this test we will try something differe.docxMath 2318 - Test 3In this test we will try something differe.docx
Math 2318 - Test 3In this test we will try something differe.docx
 

Recently uploaded

Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01KreezheaRecto
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 

Recently uploaded (20)

Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 

Information Theory and Coding - Lecture 4

  • 1. Mustaqbal University College of Engineering &Computer Sciences Electronics and Communication Engineering Department Course: EE301: Probability Theory and Applications Part B Prerequisite: Stat 219 Te×t Book: B.P. Lathi, “Modern Digital and Analog Communication Systems”, 3th edition, O×ford University Press, Inc., 1998 Reference: A. Papoulis, Probability, Random Variables, and Stochastic Processes, Mc-Graw Hill, 2005 Dr. Aref Hassan Kurdali
  • 2. Discrete Memoryless Channels The issue of information transmission is now considered, with particular emphasis on reliability (error free). Consider a discrete memoryless channel which is a statistical model with an input A and an output B that is a noisy version of A; both A and B are random discrete variables. At every unit of time, the channel accepts an input symbol ai selected from an input alphabet A {a1,a2, ...,ai, ., ar} and in response, it emits an output symbol B from an output alphabet B {b1,b2, ...,bj, ., bs}. The channel is said to be "discrete" when both of the alphabets A and B have finite sizes. It is said to be "memoryless" when the current output symbol depends only on the current input symbol and not on any of the previous ones. The input alphabet A and output alphabet B need not have the same size.
  • 3. A convenient way of describing a discrete memoryless channel is to arrange the various conditional probabilities of the channel at the transmitter in the form of a forward conditional channel matri× F as follows: p(b1/a1) p(b2/a1) ............ p(bs/a1) FM = p(b1/a2) p(b2/a2) ............ p(bs/a2) . p(b1/ar) p(b2/ar) ............ p(bs/ar) The ith raw represents the output probability distribution given the input symbol ai is transmitted. Thus, the sum over any raw has to equal to one. Similarly, at the receiver, the backward conditional channel matri× can be calculated and arranged as follows: p(a1/b1) p(a2/b1) ............ p(ar/b1) BM = p(a1/b2) p(a2/b2) ............ p(ar/b2) . p(a1/bs) p(a2/bs) ............ p(ar/bs) The jth raw represents the input probability distribution given the output symbol bj is received. Thus, the sum over any raw has also to equal to one. The joint probability p(ai , bj) = p(bj/ai) p(ai) = p(ai/bj) p(bj) = p(bj , ai)
  • 4. Tr R× Tr R× a1 • • b1 P(a1) P(b1) a2 • • b2 P(a2) P(b2) a3 • • b3 P(a3) P(b3) Forward channel Diagram Backward channel Diagram
  • 5. Forward Conditional Channel Matrix: Conditional output probability distribution at the transmitter The output probabilities can be calculated as: P(b1) = P(b1/a1)P(a1) + P(b1/a2) P(a2) + P(b1/a3) P(a3) = P(a1,b1) + P(a2,b1) + P(a3,b1) P(b2) = P(b3) = Backward Conditional Channel Matrix: Conditional input probability distribution at the receiver P(a1/b1) P(a2/b1) P(a3/b1) 0.8 0.15 0.05 P(a1/b2) P(a2/b2) P(a3/b2) 0.07 0.9 0.03 P(a1/b3) P(a2/b3) P(a3/b3) 0.01 0.29 0.7 Ideal Practical P(b1/a1) P(b2/a1) P(b3/a1) P(b1/a2) P(b2/a2) P(b3/a2) P(b1/a3) P(b2/a3) P(b3/a3) 1 0 0 0 1 0 0 0 1 0.9 0.07 0.03 0.1 0.6 0.3 0.01 0.03 0.96
  • 6. The marginal probability distribution of the output random variable B {p(b1), p(b2), ...,p(bj), ., p(bs)} can be calculated from the priori probability distribution of the input random variable A {p(a1), p(a2), ...,p(ai), ., p(ar)} and the forward conditional channel matri×. Where P(bj) = sum over all i for p(bj/ai) p(ai), i=1, 2, ....., r 𝑃 𝑏𝑗 = 𝑖=1 𝑟 𝑝 𝑏𝑗 𝑎𝑖 𝑝(𝑎𝑖) i.e., B = FMT A Note that the input probability distribution A and the forward channel matrix FM are independent and should be practically calculated and given.
  • 7. The binary symmetric channel (BSC) is of great theoretical interest and practical importance. It is a special case of the discrete memoryless channel with i = j = 2. The channel has two input symbols (x0 = 0, xl = 1) and two output symbols (y0 = 0, y1 = 1). The channel is symmetric because the probability of receiving a 1 if a 0 is sent is the same as the probability of receiving a 0 if a 1 is sent. This conditional probability of error is denoted by p. The forward channel matrix and diagram of a binary symmetric channel are shown above in Figure 9.8. BSC forward transition matrix 1 − 𝑝 𝑝 𝑝 1 − 𝑝
  • 8. Consider the transition probability diagram of a binary symmetric channel shown in the figure below. The input binary symbols 0 and 1 occur with equal probability. a) Find the probabilities of the binary symbols 0 and 1 appearing at the channel output. b) Repeat the calculation in (a), assuming that the input binary symbols 0 and 1 occur with probabilities 1 4 and 3 4 , respectively. Problem 1
  • 9. Problem 1 - Solution
  • 10. Problem 1 - Solution
  • 11. Problem 2 Given the following forward ternary channel matrix: 0.8 0.13 0.07 0.08 0.9 0.02 0.2 0.1 0.7 where the channel input probabilities are: 𝑝 𝑎1 = 0.4, 𝑝 𝑎2 = 0.25 a) Complete: 𝑝 𝑏2|𝑎3 = , 𝑝 𝑏1|𝑎2 = b) Draw the forward channel diagram. c) Calculate the output probabilities. d) Calculate the following joint probabilities: 𝑝 𝑎2, 𝑏2 , 𝑝 𝑎3, 𝑏1 . e) Calculate the following conditional probabilities: 𝑝 𝑎2|𝑏2 , 𝑝 𝑎1|𝑏3 .
  • 12. 𝑝 𝑎1 = 0.4, 𝑝 𝑎2 = 0.25 => 𝑝 𝑎3 = 1 − [𝑝 𝑎1 + 𝑝 𝑎2 ] = 0.35 0.8 0.13 0.07 0.08 0.9 0.02 0.2 0.1 0.7 a) 𝑝 𝑏2|𝑎3 = 0.1 , 𝑝 𝑏1|𝑎2 = 0.08 b) The forward channel diagram • 𝑎1 • 𝑏1 • 𝑎2 • 𝑏2 • 𝑎3 • 𝑏3 Problem 2 – Solution 0.13 0.8 0.07
  • 13. 𝑝 𝑎1 = 0.4, 𝑝 𝑎2 = 0.25 => 𝑝 𝑎3 = 1 − [𝑝 𝑎1 + 𝑝 𝑎2 ] = 0.35 0.8 0.13 0.07 0.08 0.9 0.02 0.2 0.1 0.7 c) The output probabilities. 𝑝 𝑏1 = 0.4 × 0.8 + 0.25 × 0.08 + 0.38 × 0.2 = 0.41 𝑝 𝑏2 = 0.4 × 0.13 + 0.25 × 0.9 + 0.38 × 0.1 = 0.312 𝑝 𝑏3 = 0.4 × 0.07 + 0.25 × 0.02 + 0.38 × 0.7 = 0.278 d) The joint probabilities: 𝑝 𝑎2, 𝑏2 = 𝑝 𝑏2|𝑎2 𝑝 𝑎2 = 0.9 × 0.25 = 0.225 𝑝 𝑎3, 𝑏1 = 𝑝 𝑏1|𝑎3 𝑝 𝑎3 = 0.2 × 0.25 = 0.07 e) Calculate the following conditional probabilities: 𝑝 𝑎2|𝑏2 = 𝑝 𝑎2, 𝑏2 𝑝 𝑏2 = 0.225 0.312 = 0.721 𝑝 𝑎1|𝑏3 = 𝑝 𝑎1, 𝑏3 𝑝 𝑏3 = 𝑝 𝑏3|𝑎1 𝑝 𝑎1 𝑝 𝑏3 = 0.07 × 0.4 0.278 = 0.101 Problem 2 – Solution
  • 14. Receiver Decision Rules Let the symbol bj has been received, which input symbol ai should the receiver decide to be sent? d(bj) is the receiver decision rule whenever bj is received. Using the backward transition matrix and the maximum likelihood rule over each row: d(bj) = a*, where p(a*/bj) ≥ p(ai/bj) for all i and in terms of the joint probabilities: i.e. p(a*,bj) ≥ p(ai,bj) for all i or the forward conditional probabilities p(bj/a*)p(a*) ≥ p(bj/ai)p(ai) for all i If the input probability is uniform, then choose d(bj) = a*, where p(bj /a*) ≥ p(bj /ai) for all i
  • 15. Probability of Error Calculations For a given channel matri× and a given receiver decision rule, the conditional probability of error p(E/bj ) = 1- p(d(bj)/bj) and the statistical average of error PE can be calculated as: If the input probability is uniform, then PE = 1- (1/r) (sum of all p(bj /a*) )                   s j j E s j j E j s j j E s j j j E b a p P a p a b p P b p b a p P b p b E p P 1 * 1 1 1 ) , ( 1 ) ( ) / ( 1 ) ( ) / ( 1 ) ( ) / (
  • 16. Problem 3 Consider the following backward 4-ary channel matrix What is the receiver decision rule would be for: 𝑑 𝑏1 , 𝑑 𝑏2 , 𝑑 𝑏3 , 𝑑 𝑏4 .
  • 17. Problem 3 - Solution Consider the following backward 4-ary channel matrix The receiver decision rule would be 𝑑 𝑏1 = 𝑎1 𝑑 𝑏2 = 𝑎1 𝑑 𝑏3 = 𝑎3 𝑑 𝑏4 = 𝑎2
  • 18. Problem 4 A 4-symbols of memoryless source S {a, b, c, and d} is encoded using the following binary Shannon-Fano encoder: a 1100 b 10 c 0110 d 00 The source probability distribution is: p(a)=p(c)=0.0625, p(b)=p(d)=0.4375. If this encoder output binary stream is applied to a binary channel, Calculate the channel input probability distribution: P(0) and P(1).
  • 19. Problem 4 - Solution a 1100 b 10 c 0110 d 00 p(a)=p(c)=0.0625, p(b)=p(d)=0.4375. 𝑃 0 = 1 2 × 𝑝 𝑎 + 1 2 × 𝑝 𝑏 + 1 2 × 𝑝 𝑐 + 𝑝 𝑑 = 1 2 × 1 − 0.4375 + 0.4375 = 𝟎. 𝟕𝟏𝟖𝟕𝟓 𝑃 1 = 1 2 × 1 − 0.4375 = 𝟎. 𝟐𝟖𝟏𝟐𝟓
  • 20. Problem 5 T Prob Huffman Ternary Code 𝑝(𝑡1) 0.25 1 𝑝(𝑡2) 0.2 2 𝑝(𝑡4) 0.2 00 𝑝(𝑡5) 0.16 02 𝑝(𝑡3) 0.05 011 𝑝(𝑡7) 0.05 012 𝑝(𝑡6) 0.04 0100 𝑝(𝑡8) 0.04 0101 𝑝(𝑡9) 0.01 0102 If the shown ternary stream is applied to a ternary channel with the following forward channel matrix: 0.9 0.05 0.05 0.15 0.7 0.15 0.1 0.1 0.8 a) Calculate the channel input probability distribution. b) Calculate the channel output probability distribution. c) Find the receiver decision rule and its probability of error. d) Calculate the following conditional probabilities: 𝑝 𝑎2|𝑏1 , 𝑝 𝑎1|𝑏3
  • 21. Problem 5 - Solution T Prob Huffman Ternary Code 𝑝(𝑡1) 0.25 1 𝑝(𝑡2) 0.2 2 𝑝(𝑡4) 0.2 00 𝑝(𝑡5) 0.16 02 𝑝(𝑡3) 0.05 011 𝑝(𝑡7) 0.05 012 𝑝(𝑡6) 0.04 0100 𝑝(𝑡8) 0.04 0101 𝑝(𝑡9) 0.01 0102 a) The channel input probability distribution:  𝒑 𝒂𝟏 = 𝒑 𝟎 = 0.2 + 1 2 × 0.16 + 1 3 × 0.05+ 1 3 × 0.05 + 3 4 × 0.04+ 1 2 × 0.04 + 1 2 × 0.01 = 𝟎. 𝟑𝟔𝟖𝟑  𝒑 𝒂𝟐 = 𝒑 𝟏 = 0.25 + 2 3 × 0.05 + 1 3 × 0.05+ 1 4 × 0.04+ 1 2 × 0.04+ 1 4 × 0.01 = 𝟎. 𝟑𝟑𝟐𝟓  𝒑 𝒂𝟑 = 𝒑 𝟐 = 𝟎. 𝟐𝟗𝟗𝟐 0.9 0.05 0.05 0.15 0.7 0.15 0.1 0.1 0.8 b) Calculate the channel output probability distribution.  𝒑 𝒃𝟏 = 𝒑 𝟎 = 0.9 × 𝒑 𝒂𝟏 + 0.15 × 𝒑 𝒂𝟐 + 𝟎. 𝟏 × 𝒑 𝒂𝟑 = 𝟎. 𝟒𝟏𝟏𝟑  𝒑 𝒃𝟐 = 𝒑 𝟏 = 𝟎. 𝟐𝟖  𝒑 𝒃𝟑 = 𝒑 𝟐 = 𝟎. 𝟑𝟎𝟕𝟔
  • 22. Problem 5 - Solution T Prob Huffman Ternary Code 𝑝(𝑡1) 0.25 1 𝑝(𝑡2) 0.2 2 𝑝(𝑡4) 0.2 00 𝑝(𝑡5) 0.16 02 𝑝(𝑡3) 0.05 011 𝑝(𝑡7) 0.05 012 𝑝(𝑡6) 0.04 0100 𝑝(𝑡8) 0.04 0101 𝑝(𝑡9) 0.01 0102 0.9 0.05 0.05 0.15 0.7 0.15 0.1 0.1 0.8 c) The receiver decision rule: d(0) = 0 d(1) = 1 d(2) = 2 Its probability of error: 𝑝 0,0 = 0.3683 × 0.9 = 0.3315 𝑝 1,1 = 0.3325 × 0.7 = 0.2328 𝑝 2,2 = 0.2992 × 0.8 = 0.23934 𝑷𝑬 = 1 − 0.3315 + 0.2328 + 0.23934 = 𝟏𝟗. 𝟔𝟒% d) 𝑝 𝑎2|𝑏1 = 𝑝 𝑎2, 𝑏1 𝑝 𝑏1 = 𝑝 𝑏1|𝑎2 𝑝 𝑎2 𝑝 𝑏1 = 0.15 × 0.3325 0.4113 = 0.1213 𝑝 𝑎1|𝑏3 = 𝑝 𝑎1,𝑏3 𝑝 𝑏3 = 𝑝 𝑏3|𝑎1 𝑝 𝑎1 𝑝 𝑏3 = 0.05×0.36833 0.3076 = 0.0599
  • 23. Problem 6 Given the following forward ternary channel matrix: 0.7 0.13 0.17 0.08 0.9 0.02 0.2 0.3 0.5 Where the channel input probability distribution is 0.4, 0.5 & 0.1. 1. Draw the forward channel diagram. 2. Calculate the output probability distribution. 3. Calculate the joint channel matrix. 4. Calculate the backward channel matrix. 5. Find the receiver decision rule.
  • 24. Problem 6 - Solution 2. The output probability distribution P(b1) = P(b1/a1)P(a1) + P(b1/a2)P(a2) + P(b1/a3) P(a3) = P(a1,b1) + P(a2,b1) + P(a3,b1) = 0.4×0.7 + 0.5×0.08 + 0.1×0.2 = 0.28 + 0.04 + 0.02 = 0.34 P(b2) = 0.13×0.4 + 0.9×0.5 +0.3×0.1 = 0.052 + 0.45 + 0.03 = 0.532 P(b3) = 0.17×0.4 +0.02×0.5 + 0.5×0.1 = 0.068 + 0.01 + .05 = 0.128 3. The joint channel matrix p(a1,b1) p(a1,b2) p(a1,b3) p(a2,b1) p(a2,b2) p(a2,b3) p(a3,b1) p(a3,b2) p(a3,b3) = 0.28 0.052 0.068 0.04 0.45 0.01 0.02 0.03 0.05 → 𝑵𝒐𝒕𝒆 𝒕𝒉𝒂𝒕: 0.28 + 0.052 + 0.068 =𝑷 𝒂𝟏 = 𝟎. 𝟒 0.04 + 0.45 + 0.01 = 𝑷 𝒂𝟐 = 𝟎. 𝟓 0.02 + 0.03 + 0.05 =𝑷 𝒂𝟑 = 𝟎. 𝟏 0.28 + 0.04 + 0.02 =𝑷 𝒃𝟏 = 𝟎. 𝟑𝟒 0.052 + 0.45 + 0.0𝟑 = 𝑷 𝒃𝟐 = 𝟎. 𝟓𝟑𝟐 0.068 + 0.01 + 0.05 =𝑷 𝒃𝟑 = 𝟎. 𝟏𝟐𝟖 4. The backward channel matrix BW= P(a1/b1) P(a2/b1) P(a3/b1) P(a1/b2) P(a2/b2) P(a3/b2) P(a1/b3) P(a2/b3) P(a3/b3) = 0.824 0.118 0.058 0.098 0.846 0.056 0.531 0.078 0.391 5. The receiver decision rule d(b1) = a1, d(b2) = a2 & d(b3) = a1 𝐹𝑀 = 0.7 0.13 0.17 0.08 0.9 0.02 0.2 0.3 0.5
  • 25. Problem 7 A source S has six symbols with probability distribution [0.55, 0.1, 0.15, 0.13, 0.03, and 0.04]. a) Construct a ternary Huffman code. b) If the encoder output stream is transmitted via a ternary symmetric channel with probability of error p = 0.1. Calculate the input probability distribution of the channel. c) Write the forward ternary channel matrix. d) Calculate the output probability distribution. e) Calculate the joint channel matrix. f) Calculate the backward channel matrix. g) Find the receiver decision rule and calculate its probability of error PE. h) How could you reduce the probability of error PE?
  • 26. Problem 7 - Solution Ternary symmetric channel forward diagram:
  • 27. Problem 7 - Solution
  • 28. Problem 8 Given the following forward ternary channel matrix: 0.9 0.03 0.07 0.08 0.7 0.22 0.1 0.4 0.5 Find the receiver decision rule and its Probability of error for each input probability distribution [p(a1), p(a2), P(a3)]: a) [0.8, 0.15 & 0.05] b) [0.15, 0.8 & 0.05] c) [0.1, 0.15 & 0.8] d) Comment

Editor's Notes

  1. 1