BookmarkSubscribeRSS Feed
P_S_
Obsidian | Level 7

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,

PS.

3 REPLIES 3
JacobSimonsen
Barite | Level 11

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.

Ksharp
Super User

Or test if their percentiles is equal or not .

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 2281 views
  • 6 likes
  • 4 in conversation