View midterm.html on GitHub

1 Introduction

Crime is a major concern in urban areas, and understanding the patterns of victimization can help improve public safety. In this project, I am analyzing a large dataset of reported crimes from Los Angeles, which includes details about crime type, victim demographics (such as gender, age, and ethnicity), and other relevant factors. The dataset is sourced from Los Angeles Open Data and contains millions of records covering various types of offenses over several years.

The goal of my analysis is to explore how victim demographics influence the type of crime they experience. Specifically, I aim to answer the following questions:

Do different genders experience different types of crimes? Are certain age groups more vulnerable to specific crimes? How does crime type vary across different ethnic groups? Can we predict the most likely crime a person might experience based on their demographics? To answer these questions, I will conduct statistical analyses, visualize trends using heatmaps and bar charts, and ultimately develop a machine learning model to predict crime risks based on victim attributes. The findings could provide insights into crime prevention efforts and help identify high-risk individuals who may need additional safety measures.

2 Interactive Visualization 1: Crime Types by Victim Gender

This visualization shows how different genders experience different types of crimes. The interactive bar chart allows you to hover over bars to see exact counts and compare crime types between genders.

Figure 1: This chart shows the distribution of different crime types between male and female victims. The interactive elements allow you to hover over bars to see exact counts for each gender and crime type combination.

3 Interactive Visualization 2: Crime Distribution by Victim Age Group

This visualization explores how different age groups experience various types of crimes. The interactive heatmap shows the relative frequency of different crime types across age groups.

Figure 2: This heatmap shows the distribution of crime types across different age groups. Darker colors represent higher percentages. You can hover over each cell to see the exact percentage of a specific crime type within each age group.

4 Interactive Visualization 3: Crime Map by Location

This visualization shows the geographic distribution of crimes across Los Angeles. The interactive map allows you to explore crime hotspots and patterns by location.

Figure 3: This map shows the geographic distribution of different crime types across Los Angeles. Each point represents a crime incident, colored by type. You can hover over points to see details about each incident, including the type, date, time, and area.

##Interactive Visualization 4: Crime Trends Over Time This visualization shows how crime patterns have changed over time in Los Angeles, allowing you to identify seasonal patterns and long-term trends.

Figure 4: This time series plot shows how different crime types have varied by month. The interactive features allow you to hover over data points to see exact counts for specific months and crime types. You can also click on crime types in the legend to hide or show them.

##Interactive Data Table The table below provides an interactive way to explore the raw data. You can search, filter, and sort the entries to find specific patterns or cases of interest.

5 Summary and Interpretation

The interactive visualizations presented on this page reveal several important patterns in Los Angeles crime data:

Gender differences in victimization: Men and women experience different types of crimes, with men more likely to be victims of theft, assault, and robbery, while women are more frequently victims of sexual crimes and certain types of fraud. Age-related crime patterns: Different age groups show distinct crime victimization patterns. Young adults (18-29) experience higher rates of robbery and assault, while older adults are more likely to be victims of fraud and property crimes. Geographic crime distribution: Crime is not evenly distributed across Los Angeles. Certain neighborhoods have higher concentrations of specific crime types, which could be related to socioeconomic factors, policing patterns, or urban infrastructure. Temporal trends: Crime rates fluctuate throughout the year, with some crime types showing seasonal patterns. Understanding these temporal trends can help with resource allocation for crime prevention efforts.