Programming the statistical procedures from SAS

Distribution of Two Samples (Population)

Posts: 42

Distribution of Two Samples (Population)

Hi Everyone,

I need a statistical test to show that the distribution of two samples are the same.

I was thinking I could probably test to see if both the distributions are normal or not but then it necessarily does not have to be a normal distribution and these could be any other distribution. So this might not work for my case.

Is there a way i could test that the distibutions are the same. Any code/examples will be very helpful.

Thank you,


Super User
Posts: 20,735

Re: Distribution of Two Samples (Population)

Super Contributor
Posts: 301

Re: Distribution of Two Samples (Population)

The Kolmogorov Smirnov test whether the two distribution-functions are the same in a nonparametric way.

this can be done with PROC NPAR1WAY with the KS-option. It also gives some some other test for the same hypothesis, but the Kolmogorov-Smirnov test are the most well-know.

Super User
Posts: 10,214

Re: Distribution of Two Samples (Population)

Or test if their percentiles is equal or not .

Ask a Question
Discussion stats
  • 3 replies
  • 4 in conversation