Thursday, December 30, 2010

BER as a function of SNR in Rayleigh Channel


At times, finding the correct SNR (Signal to Noise Ratio) for the desired BER (Bit Error Rate) in a communication channel becomes a pain. Its easy to tell that the BER goes on improving as we increase the SNR level of the input signal before it makes out on the channel.
The Bit Error Probability is given as

 
where 

The BER now is the function of the Probability Density Function and can be summed as the integral of the product of Bit Error Probability and probability density function.

If anyone does remember the Gaussian Distribution, the probability density function extends from the mid-half to either sides towards infinity. Applying similar theory we  get,

where,
 is the Probability density Function of  and
 is our Energy of the Bits to Noise Ratio or the plain old SNR would do. Now, I am not going much deeper into the integral calculations to find out what's the result going to be because I am weak at maths. But the result from the books would show the BER as



Anyways here is the catch. If you want to compare how these signals behave as a function of SNR in Rayleigh Channel or in plain old AWGN (Additive White Gaussian Noise) channel, here is the matlab code for it.
http://dl.dropbox.com/u/15048456/Final Code/task3.m 
http://dl.dropbox.com/u/15048456/Final Code/rayleigh_modulator.m

Just put those files together in the same active or working directory while compiling and executing them. Watch and learn

Wednesday, December 29, 2010

Three Lions hunt down Kangaroos



Poor Aussies...feel good to see that Ashes now is where it should have been.