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 by randomly draw positions from genome and calculated the distance between them in the same way. (1000 times) I want to test if the distribution of the distance of my sample are the same with the distribution of distance of randomly selected positions.
First I used the QQ plot to test it, and I get the QQ plot looks like this:
The QQ plot is skewed, then I want to use KS test to see if they are from the same distribution. However, I could not get a significant P-value from using ks.test() function in R. The P-value is around 0.09...
To be clear, this is the histogram of null distribution I generated by simulation:
Does anyone have idea why I couldn't get significant result from KS-test? Or if there is any alternative method I could use to test the difference between this two distributions? Thanks so much!