• We are pleased to announce that the winner of our Feedback Prize Draw for the Winter 2024-25 session and winning £150 of gift vouchers is Zhao Liang Tay. Congratulations to Zhao Liang. If you fancy winning £150 worth of gift vouchers (from a major UK store) for the Summer 2025 exam sitting for just a few minutes of your time throughout the session, please see our website at https://www.acted.co.uk/further-info.html?pat=feedback#feedback-prize for more information on how you can make sure your name is included in the draw at the end of the session.
  • Please be advised that the SP1, SP5 and SP7 X1 deadline is the 14th July and not the 17th June as first stated. Please accept out apologies for any confusion caused.

CP2 - Chi-square test

Bharti Singla

Senior Member
IFoA, April 2020 - Chi Square test

Method 1

Paper A - They have used a chi-square test to validate the random numbers fall into uniform distribution. Here, they have used an excel formula =CHHINV(probability, DOF) and gives 16.9 and compares it with sum of (a-e)^2/e

Method 2
Paper B - Here, they have used an another type of chi-square test using an excel formula =CHISQ.TEST(actual range, expected range) and compared it with probability 95%

But if I use the method 2 in Paper A by using the actual and expected ranges, I am getting a P-value of 71% which is less than 95% and test fails.
How do we know which formula to use for chi-square test?
 
I was confused about this earlier. I think the we should use the probability of 5% rather than 95% (which is extremely high) in paper 2 for testing. Hence, if you compare the P-value of 71% with 5%, the test should pass.
 
It would indeed be more appropriate for the value in 'Data checks'!F10 to be 5% rather than 95%.
This is because the CHISQ.TEST function returns the right-tailed probability of the chi-squared distribution.
 
Back
Top