I have 2 samples with numerous repeating numbers like this:
Sample 1: 1,1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,4,4,4,4,...
Sample 2: 1,1,1,2,2,2,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,...
and I would like to compare whether their respective distributions differ.
I initially wanted to use the 2-sample Kolmogorov-Smirnov test for this, but it seems like the test (especially the R implementation of it) doesn't work with ties, which my data obviously has.
Would the K-Sample Anderson-Darling test be a sufficient alternative to the 2-sample KS test? What other alternatives would you recommend (like the 2-table Chi Squared test maybe)?
EDIT: If my 2 samples come from 2 different populations and the corresponding p-values is less than 0.05, then I can reject the null hypothesis (which states that all samples come from a common population). Would the correct conclusion be that the populations from which the samples are derived from are different?