2018-10-24
Head.Injury Other.Injury Wearing Helmet 372 4715 Not Wearing Helmet 267 1391
Tumour.Did.Not.Shrink Tumour.Did.Shrink Treatment 44 40 Placebo 24 16
Tumour.Did.Not.Shrink Tumour.Did.Shrink Total Treatment 44 40 84 Placebo 24 16 40 Total 68 56 68
\[E = \frac{row total \times col total}{overall total} \]
Observed frequencies:
Tumour.Did.Not.Shrink Tumour.Did.Shrink Treatment 44 40 Placebo 24 16
Expected frequencies:
Tumour.Did.Not.Shrink Tumour.Did.Shrink Treatment 46.1 37.9 Placebo 21.9 18.1
\[\chi^2_1 = \frac{(44-46.06)^2}{46.06} + \frac{(40-37.94)^2}{37.94} + \frac{(24-21.94)^2}{21.94} + \frac{(16-18.06)^2}{18.06}\]
Test statistic: \({\chi_1}^2\) = 0.43 df = 1 P-value = 0.43
Do not reject \(H_0\) (No evidence of an association between treatment group and tumour shrinkage)
Tumour.Did.Not.Shrink Tumour.Did.Shrink Total Treatment 8 3 11 Placebo 9 4 13 Total 17 7 17
Expected frequencies:-
Tumour.Did.Not.Shrink Tumour.Did.Shrink Treatment 7.8 3.2 Placebo 9.2 3.8
Turn scientific question to null and alternative hypothesis
Calculate expected frequencies
Think about test assumptions
Carry out chi-square or Fishers test if appropriate
Correlation does not equal causation
David Spiegelhalter, Chair, Winton Centre for Risk and Evidence Communication
"To consult the statistician after an experiment is finished is often merely to ask him to conduct a post mortem examination. He [/she] can perhaps say what the experiment died of" - R.A. Fisher
Design consultations available at Sheffield Bioinformatics Core:- bioinformatics-core@sheffield.ac.uk