Travis: Segment 34

From Computational Statistics (CSE383M and CS395T)
Jump to navigation Jump to search

To Calculate

1. Use the permutation test to decide whether the contingency table <math> \begin{bmatrix} 5 & 3 & 2\\ 2 & 3 & 6 \\ 0 & 2 & 3 \end{bmatrix}</math> shows a significant association. What is the p-value?

I first used the Pearson chi-square statistic. Performing 100,000 iterations, I computed p-values of 22.4% exclusive and 22.8% inclusive. My code is essentially copied from the slides.

2. Repeat the calculation using the Pearson chi-square statistic instead of the Wald statistic, or vice versa.

To Think About

1. Is slide's 7 suggestion, that you figure out how to implement the permutation test without "expanding all the data", actually possible? If so, what is your method?