Skip to content

Latest commit

 

History

History
145 lines (135 loc) · 9.31 KB

index.markdown

File metadata and controls

145 lines (135 loc) · 9.31 KB
layout
default
Site logo
<title>Profile Cards</title> <style> .container { display: flex; /* 使用flex布局 */ justify-content: space-around; /* 子元素平均分布在容器中 */ align-items: left; /* 垂直居中对齐 */ background-color: #f2f2f2; #border-radius: 10px; #padding: 10px; max-width: 600px; margin: auto; } .profile { display: flex; /* 使用flex布局 */ align-items: center; /* 垂直居中对齐 */ } .avatar { width: 106px; height: 106px; #border-radius: 50%; /* 圆形头像 */ #margin-right: 10px; border: none; /* 移除边框 */ box-shadow: none; /* 移除阴影 */ -webkit-box-shadow: none; -moz-box-shadow: none; -o-box-shadow: none; -ms-box-shadow: none; } .role,.name { margin: 0; } .role { font-size: 14px; font-weight: 500; font-family: 'Lucida Grande', 'Calibri', Helvetica, Arial, sans-serif; color: #777; } .name { font-size: 14px; font-weight: 500; font-family: 'Lucida Grande', 'Calibri', Helvetica, Arial, sans-serif; color: #333; } </style>
Contributor Avatar
@Danyiran Zhang_S232260
CONTRIBUTOR
Teacher Avatar
@Sune Lehmann Jørgensen
TEACHER

Deciphering the Data: A Preliminary Look at Crime and Safety in San Francisco

In San Francisco, a new research project is exploring the city's crime data to help the public understand the safety of their neighborhoods. The study's dataset is sourced from the official website of SF.gov at https://data.sfgov.org/, a platform that centralizes data from multiple departments and public agencies with the goal of improving accessibility and efficiency of services while saving taxpayer dollars through the efforts of digital and data services teams.

The dataset used in the study contains a wealth of column information, including case ID (PdId), Incident number (IncidntNum), incident code (Incident Code), Category, Descript, Day of the week, Date, Time, PdDistrict, Resolution, Address, coordinate X, coordinate Y, and location (location). With this data, researchers can conduct in-depth analyses to identify areas and time periods of high crime rates, as well as trends in specific crime types.

Using data visualization tools such as Plotly, the researchers were able to map clearly which places are relatively safe and which are likely to require more public attention. This visual approach not only helps the public understand the security situation in the community, but also visually shows the areas where certain types of crime are most common, or when crime incidents are most common.

In addition, most of the graphic design is designed to visually communicate information, such as by reading the bar chart, the public can quickly learn which types of crime incidents are the most frequent, and by visualizing the map, which areas are relatively safe or dangerous.

It's worth noting that while the study covered data from 2003 to the end of 2017, the latest data is available from 2018 to the present on SF.gov. For readers interested in such studies, they can download the data directly to conduct their own analysis and research.

Through the regional and temporal analysis of crime data, this project not only increases public awareness of community safety, but also provides a practical tool that enables people to make more informed decisions based on data, thereby improving their quality of life.

Three visualizations

Ⅰ Number of Crimes per Hour of the Week by Category

Number of Crimes per Hour of the Week by Category

Each crime type shows a pattern of crime distribution over the course of a week, and it can be seen that certain crimes have a distinct high incidence period at certain times.

The spikes in some charts are higher than others, suggesting that some types of crime are more common than others. The number of burglaries, for example, is significantly higher than cases of drunkenness or drugs.

Such information could be particularly useful for law enforcement agencies in crime prevention and resource allocation, as it could guide them to step up policing at specific times of the week.

At the same time, it is also very good information for people living in the nearby communities, and they can make targeted measures based on this information to protect themselves and their families.

Ⅱ Visualizing geodata

The colors for many areas can be very similar, making the visual differences less apparent." I try to use a logarithmic scale for color mapping, which would reduce the visual gap between high and low values, making the differences in mid-range values more pronounced.

As a result, we can clearly see from the graph that parking in the Richmond area on Sundays is the safest, while the Southern area is the least safe for parking.

Ⅲ Interactive visualizations

Unfortunately, if we want to fully replicate the effect of clicking on the legend to hide data on this scatter plot, the overall size of the webpage would become very large, and the browsing speed would be very slow—even with a limited amount of data. Therefore, in order to make the display of this assignment smoother, I had to reduce the amount of data and also remove the effect of clicking on an individual legend to hide the corresponding data.

This image is an interactive crime map that shows the geographic distribution of different crime types in San Francisco. Each color represents a type of crime, and each dot in the image represents a crime incident. We can observe the pattern of crime occurrence, the high incidence areas and the distribution of crime types. The legend lists various types of crimes and marks them with different colors, such as vehicle theft, assault, and robbery. This graph also shows that the data density is high, with events occurring at almost every location.

Current San Francisco Situation

In this website (https://abc7news.com/feature/san-francisco-bay-area-safety-tracker-crime-stats-how-safe-is-my-neighborhood-zip-code-statistics/12442207/) I found some relevant information (homicide rate), which is from 2020 through March 31, 2024, and the trend of the data on the graph is basically consistent with our second part: Richmond, PARK, TARAVAL, and INGLESIDE have not only a low crime rate, but also a low homicide rate.

A closer look at San Francisco homicides by neighborhood

The map color codes each neighborhood by the homicide rate over the last 12 months. The three darker blues highlight neighborhoods where the murder rate is higher than the citywide rate.

2021 homicide rate comparison in select major cities

Meanwhile, I can see in the last picture of this website that compared with other cities in the United States, San Francisco's homicide rate in 2021 is not very high, ranking among the lowest, indicating that San Francisco's security situation is relatively good in the United States.

Conclution

In the Assignment submitted this time, I chose more data related to the map. We can only draw a conclusion about which areas of San Francisco are safer, and we can't observe the trend of crime in the long decade. If more conclusions are needed, more data processing will be needed to draw them.

Contribution

Danyiran Zhang-S232260 is a LONE WOLF, so his contribution is 100%.