The Kolmogorov-Smirnov test is a test for goodness of fit of data to a distribution. It is often used to test whether a variable is normally distributed.

learn more… | top users | synonyms (1)

2
votes
1answer
30 views

Can I use Kolmogorov–Smirnov test on my Data?

I am not good in statistics so I desperately need your help. So I have this dataset of distributions, and I want to know if I can use the KS-test on it. the Idea is saying that the feature's ...
1
vote
1answer
23 views

2 sampled ks test in r

I need to do a two-sample Kolmogorov-Smirnov (KS) test in R, only I don't understand the formulae and how it works when I look it up. I suspect this is because I ...
2
votes
1answer
36 views

comparing normal distributions using a two sample kolmogorov-smirnov test

I've been redirected here from another forum... I have used a two sample Kolmogorov-Smirnov test to compare the distributions of two sets of data. Basically I am comparing the error distributions ...
2
votes
0answers
36 views

Goodness of fit (Kolmogorov-Smirnov) test for a time series?

This is a somewhat basic question, I guess. I have a sequence of random variables $X_1,\ldots,X_n$ that I believe to be i.i.d. uniform on $[0,1]$. Being i.i.d. uniform corresponds to my model ...
2
votes
1answer
38 views

Simulation of KS-test with estimated parameters

We know that the original KS-test has a limitation, requiring the Null hypothesis testing underlying distribution to be fully specified, rather than estimated. But in practice, we usually need to test ...
1
vote
0answers
15 views

Scipy output of Kolmogorov–Smirnov test

I have made a call for the KS-test function on python to compare 12 features, to see which ones help more to discriminate one population group from another (I am showing only two in the example: size ...
2
votes
1answer
66 views

Kolmogorov-Smirnov for Pareto distribution on sample

I want to use the Kolmogorov-Smirnov test to test if a sample is drawn from a Pareto distribution. Unfortunately, the only way to estimate the distribution's parameters is from the sample. Does ...
3
votes
3answers
343 views

A naive question about the Kolmogorov Smirnov test

I have some times and I would like to test if they are distributed according to an exponential distribution. I can apply the Kolmogorov-Smirnov in python using ...
7
votes
1answer
150 views

What is the two-sample CDF of of $D^{+}$ and $D^{-}$ from the one-sided Kolmogorov-Smirnov Test?

I am trying to understand how to obtain $p$-values for the one-sided Kolmogorov-Smirnov test, and am struggling to find CDFs for $D^{+}_{n_{1},n_{2}}$ and $D^{-}_{n_{1},n_{2}}$ in the two-sample case. ...
6
votes
1answer
114 views

Does it make sense to perform a one-tailed Kolmogorov-Smirnov test?

Is it meaningful and possible to perform a one-tailed KS test? What would the null hypothesis of such a test be? Or is the KS test inherently a two-tailed test? I would benefit from an answer that ...
3
votes
0answers
39 views

two-sample Kolmogorov-Smirnov test in R p-value confusion

I'm confused about the appropriate interpretation of p-values returned by the two-sample Kolmogorov-Smirnov test (ks.test) in R. In slide 23 of this presentation about non-parametric two-sample ...
2
votes
3answers
38 views

Kolmogorov-Smirnov of two heart rate samples

I'm accumulating a lot of vital signs from emergency department patients, and would like to assess if different features yield significantly different distributions. Eg. for heart rate I have 888.424 ...
2
votes
0answers
81 views

Anderson-Darling test in 2D time series

Suppose two time series (of light flux). The goal is to determine whether the series are from the same distribution. It is usual to use the Kolmogorov-Smirnov (KS) test in this situation. However, ...
2
votes
0answers
20 views

Kolmogorov–Smirnov “with perturbation”

Let $F$ be known continuous CDF of a continuous R.V. and $F_n$ represent the empirical CDF for sample of size $n$, hypothesized to be drawn from $F$. The Kolmogorov–Smirnov statistic is $D_n :=sup ...
2
votes
1answer
83 views

Q-Q plot and KS test

I have a question regarding the QQ plot and KS test. I have a sample which is some positions on genome, and I calculated the distance between these positions. And I generated the null distribution ...
5
votes
3answers
886 views

My distribution is normal; Kolmogorov-Smirnov test doesn't agree

I have a problem with the normality of some data I have: I've done a Kolmogorov test which says it isn't normal with p=.0000, I don't understand: the skewness of my distribution =-.497, and the ...
3
votes
1answer
92 views

Statistical description of how two distributions are different

I am have a collection of events recorded in two separate conditions, and I have measured the duration of each one of them. I would like to know two things: 1) are the distributions of durations ...
0
votes
0answers
31 views

How to compare two independent KS tests?

I have two vectors of observed data obs1 and obs2, and two vectors of expected data exp1 and ...
6
votes
1answer
183 views

Why can't one generalize the Kolmogorov-Smirnov test to 2 or more dimensions?

The question says it all. I've read both that one can't generalize KS to a dimension equal or larger than two, and that famous implementations like that in Numerical Recipes are simply wrong. Could ...
0
votes
0answers
22 views

What is the best test to compare pattern similarity in different condition?

I have several subjects, for each subject I have two measure (pre and post treatment) of several parameters, I have calculated a multivariate similarity measure (Mahalanobis distance) between each ...
6
votes
2answers
109 views

Is there a simple equivalence test version of the Kolmogorov–Smirnov test?

Has two one-sided tests for equivalence (TOST) been framed for the Kolmogorov–Smirnov test to test the negativist null hypothesis that two distributions differ by at least some researcher-specified ...
0
votes
0answers
75 views

Anderson-Darling vs Kolmogorov-Smirnov (Many points in sample)

Previous question In my previous question (Kolmogorov-Smirnov test - reliability) I misused two-sample KS test for normality testing of one-sample data. I was given an advice that I should use ...
1
vote
5answers
178 views

Kolmogorov-Smirnov test - reliability

Description I want to use Kolmogorov-Smirnov test to check how given clusters of 1D points differs from normal distribution (original question here: How to test which data match model at best). I am ...
1
vote
3answers
190 views

Testing if two non-normal distributions are significantly different (K-S or Wilcoxon or both?)

The Big Question I'm trying to decide between K-S and Wilcoxon (or something I haven't thought of yet) for two data sets I want to prove are significantly/insignificantly different from one another ...
-2
votes
1answer
88 views

how to interpret KS test or Shapiro wilk test for ordinal criterion variable?

Here Rank is my dependent variable from level (Strongly disagree to strongly agree) and Pre_Sales_support is one of the independent variable. Due to smaller sample size of 15, I am taking ...
4
votes
2answers
270 views

Plot Pareto tails in QQ-plot for log-normal distributions

I'm working on samples that I'm trying to fit into log-normal distributions. In some cases, Kolmogorov-Smirnov test statistics is something like D = 0.0056 with an associated p-value of 0. Hence, my ...
0
votes
1answer
30 views

Finding the probability of normality via Anderson-Darling, Shapiro-Wilk , and Kolomogrov-Smirov

I have quite a few distributions that were generated by some system, and I am trying to find the probability of accordance to normality for these distributions. So, the probability of accordance to ...
2
votes
3answers
219 views

Which test is better suited to compare averaged versus single data sets

I have a light curve, that is photon count rate versus time, of an astronomical object. These data are periodic, since the source signal is periodic. I can fold the data with the period and obtain an ...
2
votes
0answers
47 views

Generalization of one-sample Kolmogorov-Smirnov test for non identically distributed data?

Is there a standard approach for testing goodness-of-fit to a probability distribution when the samples are independent but not identically distributed? In other words, given the data $\{\{x_1, y_1\}, ...
1
vote
1answer
55 views

how do normality check in ks test assess for equivalence or difference in data sets?

I have a series of data of photon counts versus time. These data are periodic, then I can fold them and obtain an average profile of the data. Nonetheless, some variations appear sometime in the ...
0
votes
0answers
18 views

Mann-Whitney U and KS tests in R are not producing significant results [duplicate]

I wish to compare two test data sets using the Mann-Whitney U and KS tests in R. As a start, I thought to compare two similar sets (an A/A test) expecting to see a highly significant indication of ...
1
vote
1answer
52 views

PIT on a sample with m bins, and KS test used to estimate a good value for m

I know about PIT, but this works only when you know the distribution, or at least have a strong hint. What I am trying to achieve is to transform a given sample into an equivalent sample with ...
0
votes
1answer
28 views

In testing random numbers, what other tests should I use to complement the Kolmogorov-Smirnov? [duplicate]

I'm using the Kolmogorov-Smirnov test to test a random number generator. I'm wondering if there are other tests that I should implement as well. So far, I've looked at the equidistribution and serial ...
2
votes
0answers
57 views

Kolmogorov-Smirnov test for large sample [duplicate]

I am investigating if an exponential distribution is a good fit for a large sample of data (200) I have. I have already looked at a histogram but was wanting to investigate further. I was going to use ...
0
votes
0answers
98 views

How to guess a curve distribution from count data

I have a sample composed by 2500 count data values. I've plotted in R the corresponding histogram and ecdf. I've run the One-Sample Kolmogorov-Smirnov test to check if the distribution is either ...
2
votes
0answers
70 views

goodness of fit for censored data

How to estimate the goodness of fit of a sample containing censored values? There is some older work on the matter (here), but i'd like to know if there is anything more modern. I think a reasonable ...
1
vote
1answer
22 views

How to test if a value is over-represented in one sample vs another

I have two multinomial data samples that both have N discrete categories. I know that a Kolmogorov-Smirnov test will let me know if the distributions of the two ...
1
vote
1answer
44 views

Kolmogorov-Smirnov with parameter estimates

Can someone explain in as clear a (formalish mathematical) way as possible why the KS test in original form with parameter estimates is unreliable?
1
vote
2answers
119 views

Test for difference between 2 empirical discrete distributions

I have test data where I have several large samples from discrete distributions which I am using as empirical distributions. I am wanting to test whether the distributions are actually different and ...
0
votes
0answers
33 views

Is it meaningful to use Kolmogorov-Smirnov test in small sub sample?

I have a data set with around 14,000 observations. This is a sample data set not the population. I have fitted a model (based on fuzzy logic) based on this data. I have 27 actual values(from 14,000 ...
1
vote
0answers
53 views

Convergence of Empirical cumulative distribution functions?

I am exploring the cumulative distribution function of two samples. I am comparing the distribution of observations in which a focal animal was disturbed with the distribution of observations in which ...
7
votes
1answer
276 views

Kolmogorov-Smirnov test?

I am studying disturbance caused by ship traffic to a small seabird. I observed focal animals for a set amount of time and record whether or not they fly from the water during the observation. This ...
9
votes
3answers
964 views

Which to believe: Kolmogorov-Smirnov test or Q-Q plot?

I'm trying to determine if my dataset of continuous data follows a gamma distribution with parameters shape $=$ 1.7 and rate $=$ 0.000063. The problem is when I use R to create a Q-Q plot of my ...
5
votes
1answer
400 views

Evaluating goodness of fit for distributions (e.g. LogNorm, Gamma, …) with estimated parameters using KS tests (and R)

Currently I am trying to find a well-known distribution that fits to my positive skewed dataset (n=70) the best. First I used the fitdistrplus R package to estimate ...
0
votes
0answers
67 views

Is it possible to calculate the probability that two samples are drawn from the same distribution?

Given $X_1$..$X_n$ and $Y_1$..$Y_n$ drawn from unknown distributions $F(x)$ and $G(x)$ respectively, statistical tests such as two-sample Kolomogorov-Smirnov, Cramer-von Mises, and Anderson-Darling ...
0
votes
1answer
154 views

Interpretation and usage of Kolmogorov-Smirnov Test in Python

I have a sample of data, and I want to know weather it is Gaussian-distributed or not. The mean of my data is not zero. To check weather I'm using the K-S test correct, I generated some ...
1
vote
0answers
30 views

Kolmogorov-Smirnov test using half the sample to estimate mean and variance and testing against the other half moments for normality

using a monte carlo simulation Im just trying to test the null hypothesis for normality in a sample that splits N values into 2, using the first N/2 values to estimate the sample mean and variance, ...
4
votes
1answer
233 views

Small sample sizes and the Kolmogorov-Smirnov test

I have split my data set into four categories but one of them only has four data points in it. I have run K-S normality tests on the other three categories which are each normal and when the data ...
0
votes
1answer
128 views

Is a p-value correction necessary for assessing pairwise location shifts on centered data?

I am currently assessing whether or not a location-shift can be assumed in non-parametric comparisons to be able to formulate the rejection of the null hypothesis in other terms than the probabilistic ...
1
vote
3answers
202 views

How to compare two samples of frequencies with categorical x values where one is subset of the other

I am trying to compare two arrays of frequencies. The second is a subset of the first. I want to know if the second is a representative of the first. The arrays are: ...