Chi square test

We got this answer from @moneta in the past. I guess it is still valid.