Tell me more ×
Cross Validated is a question and answer site for statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.

I'm trying to simulate a data protocol running over a 5 Mbps RF link. The datasheet for the RF chip gives a logarithmic BER vs SNR plot (BER := bit error rate; SNR := signal to noise ratio), but to simplify I am choosing to fix the BER to the same value that many of the RF characteristics are measured: BER = 10^-4.

How do I determine the instantaneous success of a packet transfer of size N bits (N := { 36000, 18000, 9000, 4500})?

I'm not looking for the probability of success (but that may be needed as an interim calculation). I need to be able to make a boolean decision about each packet as the simulation time ticks by. I also have a random number generator available as input and can keep a packet transfer history if necessary. I'm using the SimPy package for even simulation.

share|improve this question

1 Answer

I may be misunderstanding your question. You just want to know immediately if a packet has a bit error? If not, could you clarify your question to more clearly state what you want to find?

BER is essentially the probability of a bit error. 1 in 10,000 bits has an error. So, if you do (1-BER)^N you'll get the probability that packet succeeded. Then, for your simulation to determine if any given packet was successful get a number between 0 and 1 from your PRNG. If it's less than your (1-BER)^N, that packet was successful. Otherwise that packet contained a bit error.

share|improve this answer
Yes, the presence of a bit error is what I want to find. I arrived at a similar solution as you, but I didn't trust my decade-old one-semester grasp of statistics. I thought there might be more to it that this. – Dean Aug 23 '11 at 18:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.