Skip to main content
2 of 2
edited body
Galen
  • 9.7k
  • 3
  • 27
  • 61

The way to compare empirical distributions is to make cumulative distribution functions out of the raw data [use ecdf()] then compare them by plotting [via qqplot()]. And then use KS. Discrete distributions can have direct functions called probability mass functions. Continuous can not because any single realization instance (say 3.57867363474624) can not have a probability, only an interval can (say 3-4). You could compare histograms but ecdf are used far far more often.

ran8
  • 157
  • 8