Repeat Illustrative Problem 9 .9 when the order of diversity is D = 3, and compare the Monte…

Repeat Illustrative Problem 9 .9 when the order of diversity is D = 3, and compare the Monte Carlo results with the theoretical error probability for large SNR.
Probem9
A digital communication system for transmitting information through a Rayleigh fading AWGN channel employs dual diversity by transmitting each information bit on two carrier frequencies having a separation that exceeds the coherence bandwidth of the channel. Thus, the two signals fade independently. The signals used for transmission on each carrier frequency are orthogonal. Therefore, the correlator outputs for the orthogonal signals, when the transmitted information bit is a 1, is
and feeds R1 and R2 to the detector, which decides in favor of the detected bit corresponding to the larger of (R1, R2). Perform a Monte Carlo simulation to estimate and plot the error probability for the dual diversity system as a function of the SNR/bit in dB. Select the sample size for the simulation to be N = 100, 000. For comparison, also plot the theoretical values of the error probability given by (9 .3 .21) for large SNR, say Pb ≥ 15 dB. Note that Pb = Dp, where Dis the order of diversity