Calculator: Wilson score interval

Enter the labelled inputs to calculate: Probability p̂; Probability L; Probability U.

Probability p̂
0.5
Probability L
0.4019419324
Probability U
0.5980580676

How the calculation works

c=(p̂+z²/(2n))/(1+z²/n); h=z√(p̂(1−p̂)/n+z²/(4n²))/(1+z²/n)

Paired lists must have equal lengths. Variances use sample standard deviations where labelled. Probabilities must be nonnegative and sum to one; information is in bits, with zero-mass terms omitted. Pearson statistics use no continuity correction. Wilson uses the supplied normal critical value z.

Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

Frequently asked questions

How is the result calculated?

c=(p̂+z²/(2n))/(1+z²/n); h=z√(p̂(1−p̂)/n+z²/(4n²))/(1+z²/n)

What assumptions apply?

Paired lists must have equal lengths. Variances use sample standard deviations where labelled. Probabilities must be nonnegative and sum to one; information is in bits, with zero-mass terms omitted. Pearson statistics use no continuity correction. Wilson uses the supplied normal critical value z.

How precise are the displayed results?

Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

How we verified this calculator

The calculator is checked against 3 reference cases computed independently from the sources below. Last passed: .

# Inputs Expected result
1
Number of trials = 100
Number of successes = 50
Value z = 1.96
Probability p̂: 0.5
Probability L: 0.4038298286
Probability U: 0.5961701714
2
Number of trials = 20
Number of successes = 0
Value z = 1.96
Probability p̂: 0
Probability L: 0
Probability U: 0.1611301255
3
Number of trials = 250
Number of successes = 37
Value z = 2.576
Probability p̂: 0.148
Probability L: 0.09928051914
Probability U: 0.2149226573

Sources

How we test our calculators →

Also try:

Back to category →