Simulation Steps.
Step 1: Simulate a random sample (number of successes for group 1) using the hypergeometric distribution
Step 2: Calculate the number of successes for group 2 (total successes – number of successes group 1)
Step 3: Convert the counts to proportions
Step 4: Calculate the difference in proportions, relative risk etc.
Keep in mind you can use "log" to calculate the natural logs of values. Also recall how you created a Boolean expression in Investigation 3.1 to find the p-value from the simulated results.
