kb:kolmogorov-lilliefors_test

Kolmogorov-Lilliefors test

The Kolmogorov-Lilliefors Test tests if a random variable follows a certain family of distributions (e.g. Gaussian). Donsker's theorem is no longer valid, which means that Kolmogorov-Smirnov values will no longer work. We also cannot plug in estimators from the data into the potential distribution that we are testing against, because that would result in conclusions that are too conservative.

Let $X_1, \ldots, X_n$ be i.i.d. random variables and follow the cdf $F$. Let $\hat{F^0}$ be a continuous cdf of the family that we are testing against. Let parameters of the $\hat{F^0}$ (e.g. $\mu$ and $\sigma^2$ for Gaussian) be the estimators from $X_i$s, assuming that they come from a distribution of that family ($\hat{\mu}$ and $\hat{\sigma}^2$ for Gaussian). This test that tells us whether those values come from a distribution of that family.

$$H_0: F = \hat{F^0}$$ $$H_1: F \neq \hat{F^0}$$

Let $F_n$ be the empirical cdf of the sample $X_1, \ldots, X_n$. If $F=F^0$, then $F_n(t)\approx F^0(t)$ for $t\in [0,1]$.

The test statistic is:

$$\widetilde{T}_n = \sqrt{n} \sup_{t \in \mathbb{R}} | F_n(t) - \hat{F^0}(t)|$$

The Kolmogorov-Smirnov with asymptotic level $\alpha$ is defined as:

$$\Psi_\alpha=\mathbb{1}\{T_n > q_\alpha\}$$

The quantiles of the Kolmogorov-Lilliefors test are smaller than those of the Kolmogorov-Smirnov test. This is because the K-L test is more conservative, since the null hypothesis distribution is based on information from the samples.

  • kb/kolmogorov-lilliefors_test.txt
  • Last modified: 2024-04-30 04:03
  • by 127.0.0.1