chicago crime analysis

16
Chicago Crime Analysis 2013314025 서서서

Upload: jangyoung

Post on 15-Apr-2017

104 views

Category:

Education


1 download

TRANSCRIPT

Page 1: Chicago crime analysis

Chicago Crime Analysis

2013314025 서장영

Page 2: Chicago crime analysis

1. Data SearchingSource https://data.cityofchicago.org/view/5cd6-ry5g

TitleChicago crime 2001 ~

Filtered by Date2016-08-01 ~2016–11-24

This dataset has rows of 87000

Page 3: Chicago crime analysis

2. Data preparation

I deleted some useless variables(like ID, block, iUCR, Beat, FBI cord, etc..)

I change my record to analysis easy.(like change TRUE to 1, change FALSE to 0)

Page 4: Chicago crime analysis

1. Proportion of Domestic crime

Domestic crime is just 15%

X axis = domestic or notY axis = proportion

Page 5: Chicago crime analysis

2. Crime occurrence – commu-nity

X axis = Community of ChicagoY axis = Crime occurrence

Page 6: Chicago crime analysis

3. Crime occurrence – Primary.-Type

X axis = crime type ( but omitted because of axis length )Y axis = crime occurrence

Page 7: Chicago crime analysis

4. Crime type visualization

Used package :“ggplot2”

X axis = Fre-quencyY axis = crime type

Page 8: Chicago crime analysis

5. Crime description word cloud

Used packages :“wordcloud”“KoNlp”“tm”

There are too many value in Crime Description

So, I make it into wordcloudWordcloud is good tool to do textmining.

Page 9: Chicago crime analysis

6. Location wordcloudI used wordcloud methodWithout extractNoun function

This is crime location

Emphasised word : Street, Residence, Side walk

Page 10: Chicago crime analysis

7. Time series

X axis = Crime dateY axis = occurrenceThe number of crime is decreased in November than August

Page 11: Chicago crime analysis

8. Map Visualization

Used packages :“ggmap”“ggplot2”

This is Map of ChicagoWith red point(=Crime)

Page 12: Chicago crime analysis

8. Map Visualization

Used packages :“ggmap”“ggplot2”

This is Map of ChicagoWith red point(=Crime)

Page 13: Chicago crime analysis

9. Crime Type – Arrest Propor-tion

X axis :Proportion of arrest

Y axis :Crime type.

There are big differ-ences between crime type

Page 14: Chicago crime analysis

10. District Arrest proportionX axis :Arrest proportion

Y axis :District 1 ~ 31

Page 15: Chicago crime analysis

11. Chisq-TestChisq – Test is only method I can use.

Because all of variables in my dataset is categorial

This result shows

Arrest and crime type is dependant

District and crime type is depen-

dant

Arrest and District is dependant

Page 16: Chicago crime analysis

12. Verification

I execute chisq-Test one more on data set2015 May crime dataset.

And I deduce same re-sults.