Suppose that each bit is transmitted three times, with independent noise added on each transmission. Make your "overall" decision for each bit as the majority of the three individual decisions. What is the probability of a bit error for this system? You can analyze this system similarly to Example 1.41 in the text. Or, you can just look at the sample space of repeating the experiment three independent times. What are the probabilities of the outcomes in this sample space? Which outcomes correspond to an error when the majority rule is used?
Recall that the observations at the receiver are modeled as
x = s + n ,
where the signal (s) and noise (n) are independent, and where s, n take on values with the following probabilities:
n P[n] s P[s] -- ---- -- ---- -2 0.1 -1 0.5 -1 0.2 +1 0.5 0 0.4 +1 0.2 +2 0.1
We discussed various "decision rules" in class, where the purpose of a decision rule is to decide whether a -1 or a +1 was transmitted based on the observation of the "noisy received signal," x = s + n. In class, we also calculated the probability of a bit error (also called bit error rate or BER) using mathematical analysis. Now we will use MATLAB to simulate the digital communication system and evaluate the BER for three situations, as described below.
Sample MATLAB programs digcom1.m and digcom2.m are available to help you get started. These are the programs that we discussed in class.
What is the simulated BER for this system, for the cases of r = 1,
0.5, and 0 in your randomized decision rule?
Does the BER vary with r?
Compare your simulated BER with the analytical BER that you
derive in item 6 below.
Be sure to do enough runs in your simulation so that you can
accurately compare the simulated and analytical BERs.
Optional: If you would like, repeat this exercise using five transmissions of each bit, with majority decisions, and compare simulated and analytical BERs. (This is not required.)
For each of these three simulation cases, please email your MATLAB programs to me. Then submit written materials that present the BER results from running your programs (including a listing of the number of "trials" or runs that were performed) and compare your simulated BER with the analytical BER. You should explain clearly and completely how the analytical BER is calculated for each case. If you do things correctly, you should obtain excellent agreement between the simulated and analytical BERs!
Hint: Derive the conditional probability of a bit error given that s = -1 was transmitted (as a function of r), and do the same given that s = +1 was transmitted. Then you should be able to combine these two conditional BERs to obtain the "total" BER, which will be a function of r.