Peer
uest

blog

4

Common methods to calculate confidence band for binomial distribution

• 0

The textbook confidence interval for binomial trial is given by

\(CI=\hat{p}\pm z\sqrt{\frac{\hat{p}(1-\hat{p})}{\tilde{n}}}\)

It is widely recognizedthat the actual coverage probability of the standard interval is poor for p near 0 or 1.Below are some alternatives that give a much better confidence bands

**Agrestii-Coull Interval**

The confidence band is given by

\(CI_{AC}=\tilde{p}\pm z\sqrt{\frac{\tilde{p}(1-\tilde{p})}{\tilde{n}}}\)

where

\(\tilde{n}=n+z^2\)

and

\(\tilde{p}=\frac{1}{\tilde{n}}(x+\frac{z^2}{2})\)

**Wilson Interval**

\(CI_W =\frac{x+z^2/2}{n+z^2}\pm \frac{z\sqrt{n}}{n+z^2}\sqrt{\hat{p}(1-\hat{p})+z^2/(4n)}\)

**Exact Confidence Band**

For small sample size, exact confidence band should be used.

• 0

prerequisite

related

Add a Comment

Seller:

Amazon

Description

Python Machine learning

Seller:

Amazon

Description

Deep Learning (Adaptive Computation and Machine Learning series)

You may also be interested in

Common methods to calculate confidence band for binomial distribution

Test the performance of a PD model: CAP curve and Accuracy Ratio

A simple binning approach for probability of default modeling

Cox proportional hazard model and its applications in financial modeling

YAML basic with python examples

Deep copy vs shallow copy in Python

Principal component analysis (PCA) explained

How to use *args and **kwargs in Python

Object-Oriented (OO) design pattern through examples: the factory pattern

Python lambda functions

×

×