Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use numpy, matplotlib.pyplot, itertools only For this part, we will analyze via simulation, the effect of probability of error in a binary symmetric channel (BSC)

Use numpy, matplotlib.pyplot, itertools only

image text in transcribed

For this part, we will analyze via simulation, the effect of probability of error in a binary symmetric channel (BSC) on the bit error rate for repetition codes with repetition rates 3 and 5. To this end, write a python script to perform the simulation with following parameters 1. Generate 106 message bits (random binary values (bool/int)) 2. Generate the corresponding code bits for r - 3,5. This means you will repeat the simulation once for each r value. You may, for example, do this in a loop 3. Transmit the code bits through a BSC with e, Ye E { 10%, =-3.-2.99.-2.98. . . . ,-0.3 Similar to the point above, this means that for each r value, you will repeat the simulation for each evalue. 4. Decode the received codebits form the output of the channel to extract the message bits. 5. Compare the original message bits to the extracted ones to compute the number of errorS Note: The probability of error in the received codebits will be equal (approximately, as determined by the law of large numbers) to the channel error probability e. But, if your channel coding is working, the actual error probability in the message bits should be lower. Using the results of your simulation, generate a plot containing the following information on the x-axis 2. log1o (error rate of message bits) on the y-axis 3. Two curves with different colors showing the error rates for r-3, 5 4. A legend identifying the curves 1. For this part, we will analyze via simulation, the effect of probability of error in a binary symmetric channel (BSC) on the bit error rate for repetition codes with repetition rates 3 and 5. To this end, write a python script to perform the simulation with following parameters 1. Generate 106 message bits (random binary values (bool/int)) 2. Generate the corresponding code bits for r - 3,5. This means you will repeat the simulation once for each r value. You may, for example, do this in a loop 3. Transmit the code bits through a BSC with e, Ye E { 10%, =-3.-2.99.-2.98. . . . ,-0.3 Similar to the point above, this means that for each r value, you will repeat the simulation for each evalue. 4. Decode the received codebits form the output of the channel to extract the message bits. 5. Compare the original message bits to the extracted ones to compute the number of errorS Note: The probability of error in the received codebits will be equal (approximately, as determined by the law of large numbers) to the channel error probability e. But, if your channel coding is working, the actual error probability in the message bits should be lower. Using the results of your simulation, generate a plot containing the following information on the x-axis 2. log1o (error rate of message bits) on the y-axis 3. Two curves with different colors showing the error rates for r-3, 5 4. A legend identifying the curves 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions