Sale!

EE 381 Assignment 02 solution

Original price was: $35.00.Current price is: $30.00. $25.50

Category:

Description

5/5 - (6 votes)

Project on Conditional Probabilities: Communication through a noisy channel

0. Introduction and Background Material

0.1. Message transmission through a noisy communication channel

A digital message “M” is created and sent through a noisy communication channel
(Figure 1). The signal “S” to be transmitted consists of a series of zeros and ones:
• symbol “0” appears in the signal with probability 0 p
• symbol “1” appears in the signal with probability 1 0 p p = −1
The transmitted signal “S” is received at the other end of the channel as signal “R”.

Due to noise in the communication channel, a transmitted bit may change during
transmission:

• a transmitted bit 0 may be received as 1 with probability 0 ε (probability of
transmission error for symbol 0);
• a transmitted bit 1 may be received as 0 with probability 1 ε (probability of
transmission error for symbol 1).
The errors for different symbol transmissions are independent.
EE 381 Assignment 02

In order to create one bit of the transmitted message “S” you have to:
• Generate a random number: m = rand( )
• Generate the transmitted message “S” as: 0
0
0 if
1 if
m p S
m p
 ≤ = 
 >

In order to create the received signal “R” you have to:

• Generate a random number: t = rand( ) . Note that the random number t
should be different than the previous random number m .
• Generate the received signal “R” as:
0
0
1
1

1 if 0 and
0 if 0 and
1 if 1 and
0 if 1 and
S t
S t
R
S t
S t

ε
ε
ε
ε
 = ≤

 = > =  = > 
 = ≤

Figure 1. Probabilities for symbol transmission error
Reference: “Introduction to probability”, D. Bertsekas and N. Tsitsiklis, 2nd
Edition, Athena Scientific, 2008.
M
0
1
1
0
1
0
p0

0
0
1

1
p1
MESSAGE
(M)
SEND
(S)
RECEIVE
(R)
EE 381 Assignment 02

1. Probability of erroneous transmission

Consider the following experiment, where the required probabilities are given as:
00 1 p = = = 0.4 ; 0.02 ; 0.03 ε ε
• You transmit a one-bit message S and look at the received signal R . If R S = ,
the experiment in considered a success., otherwise it is a failure.
• You repeat this experiment N = 100,000 times and count the number of failures.
• Find the probability that the transmitted bit will be received incorrectly, i.e.
the probability of failure.

• SUBMIT your report in a Word or PDF file. Use the table below for your answer.
Note: You will need to replicate the table in your Word file, in order to provide
the answer in your report. Points will be taken off if you do not use the table.
Probability of transmission error
Ans. p = 0.0260

2. Conditional probability: P(R =1 S=1)

Consider the following experiment, where the required probabilities are given as:
0 1 ε ε = = 0.02 ; 0.03
• You create and transmit a one-bit message S as you did before. The goal is to
calculate the conditional probability PR S ( 1 1) = = . This means that you will
focus only in those transmissions where S = 1.

• For all the events for which the transmitted signal is S = 1, look at the received
bit R . If R = 1, the experiment is a success, i.e. success is defined as the
conditional event: ( 1 1) R S = =
• You repeat this experiment N=100,000 times and count the number of successes.
• Find the conditional probability PR S ( 1 1) = = , i.e. the probability that if
you transmit the symbol S = 1, it will be received correctly.

• SUBMIT your report in a Word or PDF file. Use the table below for your answer.
Note: You will need to replicate the table in your Word file, in order to provide
the answer in your report. Points will be taken off if you do not use the table.
Conditional probability PR S ( 1 1) = =
Ans. p = 0.9700
EE 381 Assignment 02

3. Conditional probability: P(S=1 R =1)

Consider the following experiment, where the required probabilities are given as:
00 1 p = = = 0.4 ; 0.02 ; 0.03 ε ε
• You create and transmit a one-bit message S as you did before. The goal is to
calculate the conditional probability PS R ( 1 1) = = . This means that you will
only be interested in those messages where the received signal is R = 1.
• For all the events for which the received signal is R = 1, look at transmitted bit
S . If S = 1, the experiment is a success, i.e. success is defined as the conditional
event: ( 1 1) S R = =

• You repeat this experiment N=100,000 times and count the number of successes.
• Find the conditional probability PS R ( 1 1) = = , i.e. the probability that if
you receive the symbol R = 1, you can correctly conclude that it actually came
from a transmitted signal of S = 1.

• SUBMIT your report in a Word or PDF file. Use the table below for your answer.
Note: You will need to replicate the table in your Word file, in order to provide
the answer in your report. Points will be taken off if you do not use the table.
Conditional probability PS R ( 1 1) = =
Ans. p = 0.9864
EE 381 Assignment 02

4. Enhanced transmission method

Consider the following experiment, where the required probabilities are given as:
00 1 p = = = 0.4 ; 0.02 ; 0.03 ε ε
• You create and transmit a one-bit message S as before. In order to improve
reliability, the same bit “S” is transmitted three times (S S S) as shown in
Figure 2.

• The received bits “R” are not necessarily the same as the transmitted bits “S”
due to transmission errors. The three received bits, shown as (R1 R2 R3) in
Figure 2 will be equal to one of the following eight triplets:

(R1 R2 R3) ={ (000), (001), (010), (100), (011), (101), (110), (111) }
When you look at the received triplet (R1 R2 R3) you must decide what was the
bit “S” originally transmitted by using voting and the majority rule. Here are
some examples of the majority rule.

• For example, if the three received bits are (R1 R2 R3)=(001), then the majority
rule will decide that the bit must be a “0”. We denote this as the decoded bit D=0.
• As another example if the three received bits are (R1 R2 R3)=(101), then the
majority rule will decode the bit as D=1.
• Another example: If you send S=0 three times, i.e. (S S S) = ( 0 0 0 ) and the
received string is (R1 R2 R3) = (000), (001), (010), or (100) then the symbol will
be decoded as D=0 and the experiment is a success, otherwise it is a failure.

• Another example: If you transmit S=1 three times, i.e. (S S S) = ( 1 1 1 ) and the
received string is (011), (101), (110), or (111) the symbol will be decoded as D=1
and the experiment is a success, otherwise it is a failure.
• This procedure as described above is considered one experiment.
• Repeat the experiment N=100,000 times and count the number of successes.
• Find the probability that the transmitted bit “S” will be received and
decoded incorrectly.

• Comment on whether the voting method used in this problem provides any
improvement as compared to the method of Problem 1.
• SUBMIT your report in a Word or PDF file. Use the table below for your answer.
Note: You will need to replicate the table in your Word file, in order to provide
the answer in your report. Points will be taken off if you do not use the table.
Probability of error with enhanced transmission
Ans. p = 0.0021
EE 381 Assignment 02

Figure 2. Enhanced message transmission method
M
0
1
p0
p1
MESSAGE
(M)

SEND 3 TIMES
(S1 S2 S3)
RECEIVE 3 BITS
(R1 R2 R3)
(R1 R2 R3)
(R1 R2 R3)
DECODE BY VOTING
(D)

1
0
1
0
(S1 S2 S3)
(S1 S2 S3)

EE 381 Assignment 02