Performs a chi square test on CSV data.