Skip to content

"This project analyzes Kenyan court case outcomes using historical data to identify trends in case types, outcomes, and durations. The analysis aims to provide insights into the efficiency and outcomes of the Kenyan legal system, with visualizations and summary statistics."

Notifications You must be signed in to change notification settings

1994-munk/kenyan-court-case-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‡°πŸ‡ͺ Kenyan Court Case Analysis

This project presents an exploratory data analysis (EDA) of synthetic Kenyan court case data. The goal was to uncover patterns and insights related to case types, outcomes, and timelines using Python and data science tools.


πŸ“ Project Files

  • data_exploration.ipynb β€” Main notebook used for data cleaning and analysis
  • court_cases_cleaned.csv β€” Cleaned version of the dataset
  • data_exploration.html β€” Exported HTML version of the notebook (easier to view)

πŸ” Summary

We analyzed a dataset of 100 synthetic Kenyan court cases with the following columns:

  • Case Type: e.g., Criminal, Civil, Constitutional
  • Outcome: e.g., Guilty, Not Guilty, Dismissed, Settled
  • Duration (days): Time taken from filing to conclusion
  • Filing Year: Year when the case was filed

✨ Key Insights

  • Criminal and Civil cases were the most common.
  • Outcomes varied by case type, with many criminal cases ending in convictions.
  • Some years showed spikes in case filings.
  • Case duration had a wide range, with outliers identified and removed for better accuracy.

πŸ“Š Tools & Libraries

  • Python 3
  • pandas for data wrangling
  • matplotlib and seaborn for data visualization
  • Jupyter Notebook in VS Code

πŸ“ˆ Visualizations

Visual insights were provided using count plots, box plots, and line charts showing trends in case filings and durations over the years.


πŸ“¬ How to View

You can open the interactive notebook here:
πŸ”— data_exploration.ipynb

Or view a clean HTML version of the report:
πŸ“„ data_exploration.html


🀝 About

This project was created as a hands-on data science exercise combining law and tech, focused on building real-world analytical skills using public-interest data.

About

"This project analyzes Kenyan court case outcomes using historical data to identify trends in case types, outcomes, and durations. The analysis aims to provide insights into the efficiency and outcomes of the Kenyan legal system, with visualizations and summary statistics."

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published