Predictive policing by mathowl

View this thread on steempeak.com
· @mathowl · (edited)
$8.89
Predictive policing
<center>
![2858461.main_image.jpg](https://steemitimages.com/DQmTHV8pVxB27Agf6YZ4RqdswYSdTovPV2Zarm8hNHQXiUr/2858461.main_image.jpg)
</center>

Hi Steemicians. If you are a movie fan you must have seen Minority Report (and if you haven't you should definitely watch it). In the movie crime is predicted using three mutated humans called Pre-cogs. Would-be murders are hunted down and locked up before they can commit a crime. In our reality we also have a predictive policing tool called Predpol. It is not run by mutated humans but by amazing mathematics. Predpol is able to predict crime hubs. So if you send extra police to that area the criminals are deterred to commit a crime. It is proven to reduce crimes in certain areas by 15-30%[1]!  Today I will give a short introduction to the math behind it. 



# Crime dynamics
Before we get to the math we first need to make some assumptions on crime dynamics. We will restrict to house burglary. In certain cities there are neighourhoods where there is a lot of crime. In these neighbourhoods people who get burgled have been burgled before. Furthermore, their neighbours also have a high likelyhood to get burgled[2]. So why does happen? A burgler who robs the same house or same neighbourhood can get around easier since he knows the area. Also, in certain neighbourhoods the inside layout of houses is very similar which is beneficial if you want to get in and out quickly. So it makes sense to hit the same location twice.  Hence, we will make the following assumption on the dynamics of crime: **crime in the past effects crimes in the future**. 

<center>
![](https://steemitimages.com/DQmZeUCMGuQSK8vyzF3cevm681aarRr1ektymqcGQqU8nKH/image.png)
[Source](https://assets1.cdn-mw.com/mw/images/article/art-wap-landing-mp-lg/burglar-2055-183bf3f9f30c301725d6b321e0dd14f6@1x.jpg)
</center>
# Hawkes process
The Hawkes process, which is named after Alan G. Hawkes, is a mathematical model for so-called self-exciting process. This means that if an event occurs the process get 'excited'  in the sense that the occurence of a subsequent event  is increased. If you substitute process by crime  in the last sentence then you can see why it might be applicable in crime predicting. Hawkes processes also have applications in the field of seismology and financial trading[3]. If you want to check out the formal definition of a Hawkes process you can check these sources [3,4].    

# Implementing the Hawkes process for crime
The Hawkes process comes together with certain parameters that you need to determine using the crime data. The nice part is that the mathematics of Hawkes processes is not too difficult so you can run real-time updates on a small laptop. This is exactly what PredPol did. The software tells police officers in which areas there is a high-probability of crime so that the police can check it out.   

Does this sofware give any new information. By formulating everything in a 'Hawkes process setting' you can analyse subtle behaviour which gives you predictive power. Since PredPol is not a free-to-use software they of course don't  tell what these subtle things are. However, in [5] these type of predictive subtleties are found for terror attacks by the IRA in Northern Ireland. So I am sure that PredPol also found something similar. 

# The perfect crime

Suppose that the criminals have a bit of understanding of how PredPol works but they cannot actually get the sofware and the data they need. What can they do to stop the police from showing up when they want are about to burgler a house?  Easiest is to hit neighourhood with low crime. But for neighourhoods with low crime you cannot ask your criminal buddies if the houses are easy targets or if there is alot to get. 

From a mathematical perspective the best you can do it so model your criminal behaviour on a process where there is no correlation between the past and future. More specifically, you can use the Poisson distribution to do this since it gives the probability of a given number of events when these these events occur independently of the time since the last event [6]. **This means that the police has no extra benefit from using PredPol since your behaviour does not follow a Hawkes process.** Hope I won't help anybody by telling this D: 


<center>
![](https://steemitimages.com/DQmXwumuDYigPHBUx5SzDtMUKjcz4VBghp3HBhpxV45Xhik/image.png)
[Source](https://s1.ticketm.net/tm/en-us/dam/a/29c/eeecf849-409d-45e6-85a6-995ec0ed929c_104361_CUSTOM.jpg)
</center>

## Sources
[1] http://www.predpol.com/
[2] http://www.sciencemag.org/news/2010/02/mathematics-clumpy-crime
[3] Patrick J. Laub, Thomas Taimre, Philip K. Pollett, Hawkes Processes, [arXiv:1507.02822](https://arxiv.org/abs/1507.02822v1)
[4] http://mathworld.wolfram.com/HawkesProcess.html
[5] S. Tench, H. Fry, P. Gill, Spatio-temporal patterns of IED usage by the Provisional Irish Republican Army,  Volume 27, Issue 3 (Mathematical Modelling of Crime and Security), June 2016 , pp. 377-40
[6] Frank A. Haight, Handbook of the Poisson Distribution. New York  1967, John Wiley & Sons.

Top picture from the [Sun](https://www.thesun.co.uk/tech/3536544/british-cops-test-minority-report-style-system-to-stop-crimes-before-they-happen/) 

## Further reading/watching

If you are interested in finding out about the Poisson distribution you can also check this [wiki page](https://en.wikipedia.org/wiki/Poisson_distribution) and here is a [promo video](https://www.youtube.com/watch?v=FC-OHhTG2sk) of PredPol. Here is a nice [report](https://www.youtube.com/watch?v=WMAfBK7KITQ) of Al Jazeera.

<hr>

## Thank you!
Thanks for being so kind to read my post. You are awesome! Please follow me if you enjoyed it. If you have any questions just post them below and I will answer them. Or if you might have a nice topic you want me to cover also let me know below :o) 

<hr>


<center>
## Owl tax
![](https://steemitimages.com/DQmWxWESvDYak8NRaA8qCra5W77JLidfighWEMCsH1QLBLp/image.png)
[Source](https://en.wikipedia.org/wiki/Barn_owl])
</center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 13 others
properties (23)
post_id25,131,401
authormathowl
permlinkpredictive-policing-with-math
categorymathematics
json_metadata"{"app": "steemit/0.1", "format": "markdown", "links": ["https://assets1.cdn-mw.com/mw/images/article/art-wap-landing-mp-lg/burglar-2055-183bf3f9f30c301725d6b321e0dd14f6@1x.jpg", "https://s1.ticketm.net/tm/en-us/dam/a/29c/eeecf849-409d-45e6-85a6-995ec0ed929c_104361_CUSTOM.jpg", "http://www.predpol.com/", "http://www.sciencemag.org/news/2010/02/mathematics-clumpy-crime", "https://arxiv.org/abs/1507.02822v1", "http://mathworld.wolfram.com/HawkesProcess.html", "https://www.thesun.co.uk/tech/3536544/british-cops-test-minority-report-style-system-to-stop-crimes-before-they-happen/", "https://en.wikipedia.org/wiki/Poisson_distribution", "https://www.youtube.com/watch?v=FC-OHhTG2sk", "https://www.youtube.com/watch?v=WMAfBK7KITQ", "https://en.wikipedia.org/wiki/Barn_owl]"], "image": ["https://steemitimages.com/DQmTHV8pVxB27Agf6YZ4RqdswYSdTovPV2Zarm8hNHQXiUr/2858461.main_image.jpg"], "tags": ["mathematics", "steemstem", "science", "crime", "steemsquad"]}"
created2018-01-12 01:58:09
last_update2018-01-12 06:51:15
depth0
children2
net_rshares1,133,194,100,794
last_payout2018-01-19 01:58:09
cashout_time1969-12-31 23:59:59
total_payout_value6.779 SBD
curator_payout_value2.107 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length6,048
author_reputation26,709,555,875,589
root_title"Predictive policing"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (77)
@mathowl ·
@OriginalWorks
properties (22)
post_id25,131,505
authormathowl
permlinkre-mathowl-predictive-policing-with-math-20180112t015850416z
categorymathematics
json_metadata"{"app": "steemit/0.1", "users": ["originalworks"], "tags": ["mathematics"]}"
created2018-01-12 01:58:51
last_update2018-01-12 01:58:51
depth1
children1
net_rshares0
last_payout2018-01-19 01:58:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length14
author_reputation26,709,555,875,589
root_title"Predictive policing"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@originalworks ·
originalworks
The @OriginalWorks bot has determined this post by @mathowl to be original material and upvoted it! 
<center>![ezgif.com-resize.gif](https://steemitimages.com/DQmaBi37A5oTnQ9NBLH8YU4jpvhhmFauyvgg3YRrEJwskM9/ezgif.com-resize.gif)</center> 

To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message! 
 <center>*Please note that this is a BETA version. Feel free to leave a reply if you feel this is an error to help improve accuracy.*</center> 
properties (22)
post_id25,262,443
authororiginalworks
permlinkre-re-mathowl-predictive-policing-with-math-20180112t015850416z-20180112t163654
categorymathematics
json_metadata"{"app": "pysteem/0.5.4"}"
created2018-01-12 16:36:57
last_update2018-01-12 16:36:57
depth2
children0
net_rshares0
last_payout2018-01-19 16:36:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length488
author_reputation79,229,860,066,508
root_title"Predictive policing"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000