Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
The Relationship Between Socioeconomic Factors and Crime: Exploring the Associations Between Socioeconomic Features and Reported Crime Rates Using Machine Learning Algorithms
Uppsala University, Disciplinary Domain of Humanities and Social Sciences, Faculty of Social Sciences, Department of Economics.
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

Understanding the socioeconomic drivers of crime is crucial for designing effective prevention strategies and providing a basis for evidence-based policy decisions. This thesis applies machine learning algorithms to examine how socioeconomic factors influence crime rates across Swedish municipalities. 

Crime rates in four categories: economic, property, violent, and total are predicted using Random Forest models trained on a broad set of demographic and socioeconomic variables, including unemployment, education levels, income inequality, family structure, and age dis- tribution. Model performance is assessed using both out-of-sample forecasting and 5-fold cross-validation, with results benchmarked against traditional linear regression models. 

The models perform well for property, violent, and total crime, suggesting that these categories are more systematically associated with the observed socioeconomic indicators. In contrast, economic crime is more difficult to predict, likely due to its complexity, lower visibility and weaker connection to structural disadvantage. 

To improve interpretability, the analysis incorporates Cross-Validated Permutation Fea- ture Importance (CVPFI) and SHapley Additive exPlanations (SHAP). These methods re- veal the most influential predictors and determine their directional effects. Variables such as education levels, unemployment, and family structure are consistently important for ex- plaining property, violent, and total crime. In contrast, economic crime shows weaker and less consistent associations with structural disadvantage and appears more closely linked to opportunity-related factors that may not be fully captured in the available data. 

Overall, the findings demonstrate that combining machine learning with interpretability techniques offers valuable insights into the complex, non-linear relationships between socioe- conomic structures and crime. The findings highlight the potential of data-driven methods in supporting both academic research and policy development. 

Place, publisher, year, edition, pages
2025. , p. 50
Keywords [en]
Crime prediction, machine learning algorithms, Random Forest, Cross-Validated Permutation Feature Importance (CVPFI), SHapley Additive exPlanations Values (SHAP), socioeconomic factors, Swedish municipalities
National Category
Economics
Identifiers
URN: urn:nbn:se:uu:diva-563587OAI: oai:DiVA.org:uu-563587DiVA, id: diva2:1983252
Subject / course
Economics
Educational program
Master Programme in Economics
Supervisors
Examiners
Available from: 2025-08-04 Created: 2025-07-10 Last updated: 2025-08-04Bibliographically approved

Open Access in DiVA

fulltext(5729 kB)349 downloads
File information
File name FULLTEXT01.pdfFile size 5729 kBChecksum SHA-512
45e22a10306891f2202d963e87c7b6dc1d5fd07ca7421ef5b02b38aa0e5142d66dd0ead553b38435be01304dac445635945484817fb3cb9edf914ee68c750a55
Type fulltextMimetype application/pdf

By organisation
Department of Economics
Economics

Search outside of DiVA

GoogleGoogle Scholar
Total: 353 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 539 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf