Abstract
This chapter introduces methods to explore the relationship between two categorical variables (either measured at the nominal or ordinal levels) using the British Crime Survey data. We will cover how to tabulate and visualize this kind of relationships using a two-way contingency table (also referred to as cross tabulation or cross tabs), but also review the chi-square test (χ2 test), which is the statistical significance test used to infer association in these cases. The chapter also covers Fisher’s exact test and calculation of residuals (difference between observed and expected frequencies).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Reference
Home Office, Research, Development and Statistics Directorate, BMRB, Social Research. (2009). British crime survey, 2007-2008 (3rd ed.) [data file]. UK Data Service. SN: 6066. Retrieved from https://doi.org/10.5255/UKDA-SN-6066-1.
Author information
Authors and Affiliations
Electronic Supplementary Material
Data 9.1
(DTA 625 kb)
Key Terms
- Chi-square statistic
-
The test statistic resulting from applying the chi-square formula to the observed and expected frequencies for each cell. This statistic tells us how much the observed distribution differs from that expected under the null hypothesis.
- Contingency table
-
A tabular way of viewing the relationship between categorical variables (also referred to as cross tabs).
- Expected frequency
-
The number of observations one would predict for a cell in a contingency table if the null hypothesis were true.
- Marginal
-
The value in the margin of a table that totals the scores in the appropriate column or row.
- Observed frequency
-
The observed result of the study, recorded in a cell of a contingency table.
- Residual
-
An index of the relative deviation of the observed frequency from the expected frequency for a cell of a contingency table. It is useful for guiding the interpretation of an association between two nominal variables.
Rights and permissions
Copyright information
© 2021 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this chapter
Cite this chapter
Wooditch, A., Johnson, N.J., Solymosi, R., Medina Ariza, J., Langton, S. (2021). Chi-Square and Contingency Tables. In: A Beginner’s Guide to Statistics for Criminology and Criminal Justice Using R. Springer, Cham. https://doi.org/10.1007/978-3-030-50625-4_9
Download citation
DOI: https://doi.org/10.1007/978-3-030-50625-4_9
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-50624-7
Online ISBN: 978-3-030-50625-4
eBook Packages: Law and CriminologyLaw and Criminology (R0)