Exact Analysis of Discrete Data