By default, univariate data is compared to a
NormalDistribution:
The parameters have been estimated from the data:
Multivariate data is compared to a
MultinormalDistribution by default:
The parameters of the test distribution are estimated from the data if not specified:
Specified parameters are not estimated:
Maximum-likelihood estimates are used for unspecified parameters of the test distribution:
If the parameters are unknown,
KolmogorovSmirnovTest applies a correction when possible:
The parameters are estimated but no correction is applied:
The fitted distribution is the same as before and the

-value is corrected:
When parameters are estimated Lilliefors' correction is used:
Estimate the parameters prior to testing to perform the classical Kolmogorov-Smirnov test:
Conceptually, the Kolmogorov-Smirnov test computes the maximum absolute difference between the empirical and theoretical CDFs:
Plot the CDFs, showing the maximum absolute difference:
Independent marginal densities are assumed in tests for multivariate goodness-of-fit:
The test statistic is identical when independence is assumed: