Download Applied Stochastic Processes and more Exercises Matlab skills in PDF only on Docsity!
ENGR 383 — APPLIED STOCHASTIC PROCESST Department of Engineering & Design at Eastern Washington University LAB #2: Lab Description In this lab, you are to simulate a simple binary communication channel characterized by appropriate conditional and prior probabilities and estimate the probability of error as well as the probability of receiving either a ij or a 0. Start with a symmetric binary communication channel characterized by the conditional probabilities P[Or/0s] = P[Ir/1s] = 0.995 and P[Or/1s] = P[1r|Os] = 0.005. The prior probabilities of a 0 or a 1 are given by P[0s] = 0.389 and P[1s] = 0.611 (1.e. 0 is slightly more likely than 1). The input to the binary communication channel is to be a sequence of Os and Is. Each 0 or | in the sequence is statistically independent of the others and is generated according to the probabilities P[0s] and P[1s] given above. 1. Generate the data input sequence of 0s and 1s according to the required probabilities. 2. Simulate the channel by writing a computer program to do the following: a. When a 0 is presented as input to the channel, the channel should generate an output of 0 with probability P[Or|Os] and an output of 1 with probability P[1r/Os] (where the numerical values are given above). b. When a 1 is presented to the channel, the channel should generate a 0 with probability P[Or|1s] and a 1 with probability P[1r|1s]. 3. Repeat the experiment with various lengths of input sequences, Sequence-1=1000 and Sequence-2=100,000,000 4. Compare the results for various length input sequences by tabulating and plotting the %error. In addition, in your lab report answer the following questions: Q1: Compute the theoretical values for the following probabilities: P[Os|Or], P[1s|1x] and P[error]. Q2: Explain the length of sequences regarding to the probability of P[error].