Simulation of a Chi-Squared Test of Association in a Two-Way Contingency Table

This code simulates a test of association for any two-way contingency table and compares it to the appropriate Chi-Squared distribution.

Publisher: T³ Europe

Author: Nevil Hopley

Topic:  Mathematics

Tags  Equations ,  Electricity ,  Functions ,  Engineering ,  Statistics ,  Magnetism ,  Stochastics ,  STEM ,  Test of hypothesis

Creative Commons license - Attribution

 

 More info: creativecommons.org.