Function File: ber = berconfint (r, n)
Function File: [ber, interval] = berconfint (r, n)
Function File: [ber, interval] = berconfint (r, n, level)

Returns Bit Error Rate, ber, and confidence interval, interval, for the number of errors r and number of transmitted bits n with a confidence level of level. By default level is 0.95.

The confidence interval is the Wilson one (without continuity correction) for a proportion. By contrast, Matlab appears to return the Clopper–Pearson confidence interval.

Reference: Robert G. Newcombe (1998), "Two‐sided confidence intervals for the single proportion: comparison of seven methods", Statistics in Medicine 17(8):857-872.

Package: communications