/ExactDistR

Exact distribution tests for M counts in N bins

Primary LanguageR

ResearchDesign

This code conducts an exact test between two discrete distributions. For example, if you have 3 crimes that happen on Monday and 2 on Tuesday, is that consistent with the offender picking crimes for random days of the week? The typical Chi-Square statistic is based on asymptotics, but with a small number of observations you can estimate an exact distribution.

The published work is:

Wheeler, Andrew P. (2016) Testing serial crime events for randomness in day-of-week patterns with small samples. Journal of Investigative Pyschology and Offender Profiling 13(2): 148-165

And if you cannot get access to that file, the pre-print is posted on SSRN.

Example Use

See this blog post of mine for an example use of the test, as well as how to estimate the power of the test.

Other Uses

Send me other examples if you have them!