Calculator: Empirical cumulative distribution

Enter the labelled inputs to calculate: Probability Fn(x); Count ≤x; Count N.

Probability Fn(x)
0.75
Count ≤x
3
Count N
4

How the calculation works

Fn(x)=#{i: xi≤x}/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?

Fn(x)=#{i: xi≤x}/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 of its code. Last passed: .

# Inputs Expected result
1
Values (spaces or semicolons; decimal point) = 1 2 3 4 5
Value x = 3
Probability Fn(x): 0.6
Count ≤x: 3
Count N: 5
2
Values (spaces or semicolons; decimal point) = 2.5 -1 4 4 0
Value x = 4
Probability Fn(x): 1
Count ≤x: 5
Count N: 5
3
Values (spaces or semicolons; decimal point) = 10 20 30
Value x = 5
Probability Fn(x): 0
Count ≤x: 0
Count N: 3

How we test our calculators →

Also try:

Back to category →