How to use this calculator
Measure the largest empirical CDF gap from a fully specified normal distribution with mean and standard deviation supplied independently of the sample.
- Enter Independent sample values, Specified normal mean, Specified normal standard deviation. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
One sample KS against a specified normal model explained
A numerical walkthrough
Independent sample values = 0.1,0.4,0.8,1.2,1.7,2.1,2.5,2.8; Specified normal mean = 1.4; Specified normal standard deviation = 1.
- One-sample KS distance D: 0.13303635
- Asymptotic two-sided p-value: 0.99890487
- D plus: 0.10074688
- D minus: 0.13303635
The model mean is fixed at 1.4 and its SD at 1, while eight values define the empirical CDF. Both jump edges are checked; comparing only i/n with F would miss one side.
The model behind the numbers
D+=max[i/n−F(x(i))]; D−=max[F(x(i))−(i−1)/n]; D=max(D+,D−).
Sort the observations and compare both sides of every empirical jump with the normal CDF. The reported approximate tail is the limiting Kolmogorov survival probability at √nD. The reference parameters must be fixed before examining this sample.
What to enter
x— Independent sample values- Ordered values in the role named above. Match row positions with other lists and use a consistent measurement unit within the same variable. Use comma-separated values in the stated order.
mu— Specified normal mean- Normal model mean fixed independently of the entered sample, in the same data unit.
sigma— Specified normal standard deviation- Positive population SD for that fixed normal model, in the same data unit. It must not be estimated from this tested sample.
Interpreting the result
Continuous, independent observations and externally specified parameters. The asymptotic p-value is not a finite-sample exact result. Estimating mean or SD from the same data invalidates this reference calibration.
Reading the outputs
D is a probability-scale distance, not a difference in measurement units. D+ and D− reveal which direction creates the maximum gap.
Frequently asked questions
Can I paste the sample mean and SD here?
You can compute a distance, but the displayed p-value would then be miscalibrated; use a fitted-model normality method.
Are duplicate values allowed?
The distance is computed, but ties weaken the continuous-reference justification.
Why does another program give a different p-value?
It may use an exact finite-sample distribution or a different correction rather than this limiting approximation.
How do I use the One sample KS against a specified normal model calculator?
Enter Independent sample values, Specified normal mean, Specified normal standard deviation. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of One sample KS against a specified normal model?
Independent sample values = 0.1,0.4,0.8,1.2,1.7,2.1,2.5,2.8; Specified normal mean = 1.4; Specified normal standard deviation = 1. One-sample KS distance D: 0.13303635 Asymptotic two-sided p-value: 0.99890487 D plus: 0.10074688 D minus: 0.13303635 The model mean is fixed at 1.4 and its SD at 1, while eight values define the empirical CDF. Both jump edges are checked; comparing only i/n with F would miss one side.
Method reference: SciPy one-sample Kolmogorov Smirnov reference.
Read our calculation methodology.