# Confidence Interval Calculator For Two Proportions

Confidence interval calculator for the difference between two proportions with calculation steps, using the *normal distribution approximation*.

#### Two proportions confidence interval calculator

When using the sample data, we know the different between the sample proportions but we don't know the true value of the different between the population's proportions. Instead, we may treat the population's proportions as random variables and calculate the confidence interval.

First, we need to define the **confidence level** which is the required certainty level that the true value will be in the **confidence interval** Researchers commonly use a confidence level of **0.95**.

We use the normal approximation.

##### Two proportions confidence interval formula

CI = p̂_{1} - p̂_{2} ± Z_{1-α/2} √( | p̂_{1}(1 - p̂_{1}) | + | p̂_{2}(1 - p̂_{2}) | ) |

n_{1} | n_{2} |

##### Two proportions margin of error formula

MOE = Z_{1-α/2}*√(σ^{2}_{p̂1} + σ^{2}_{p̂2})

MOE = Z_{1-α/2}√( | p̂_{1}(1 - p̂_{1}) | + | p̂_{2}(1 - p̂_{2}) | ) |

n_{1} | n_{2} |

##### How to use the two proportion confidence interval calculator?

**Confidence level**- The certainty level that the**true value**of the estimated parameter will be in the confidence interval, usually 0.95.**Rounding**- how to round the results?

When a resulting value is larger than one, the tool rounds it, but when a resulting value is less than one the tool displays the significant figures.**Sample sizes (n**- the number of subjects._{1}, n_{2})**Sample proportion (p̂**If the value you entered is between 0 and 1 - the calculator assumed that you enter proportion (proabability)._{1}, p̂_{2}) or #successes (x_{1}, x_{2}):

When the value is 1, or larger - the calculator assumed that you enter the number of successes.

For example, when the sample size is 12 if you enter 3 the tool assumes 3 successes, x=3, and will calculate p̂ = 3/12 = 0.25.

If you enter 0.25, the tool assumes p̂ = 3/12 = 0.25, and the confidence interval will be the same.**Continuity correction**- since we use the continuous normal distribution to approximate the discrete binomial distribution, the Continuity correction support results more similar to the binomial distribution.

If you are a**student**, don't use the continuity correction.