Andy Wheeler's Avatar

Andy Wheeler

@crimede-coder.bsky.social

Data scientist, with background in criminal justice. Consulting website at https://crimede-coder.com/ Personal blog at https://andrewpwheeler.com/

120 Followers  |  57 Following  |  80 Posts  |  Joined: 16.01.2025  |  2.143

Latest posts by crimede-coder.bsky.social on Bluesky

Preview
Fitting a plateau effects model in scipy Dealing with a few models recently that people fit non-linear effects (either via polynomials or splines), and the results are just on their face too curvy. There is also a common social science tr…

Reminded of this old blog post in a thread on X, if you want to know how to fit a plateau in a regression model, this shows one way to constrain the coefficients and fit the model in scipy.

andrewpwheeler.com/2022/05/02/f...

04.08.2025 11:35 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Schmid also has a book on creating graphics by hand. Incredibly hard work and display of craftmanship.

30.07.2025 12:30 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Historical hot spot map of crimes in Seattle

Historical hot spot map of crimes in Seattle

Reminded of this old post, as Chris Bruce is doing a talk on historical overview of the crime analysis field.

Seattle hotspots are basically unchanged in 100 years (Schmid has a few in the 20's).

andrewpwheeler.com/2015/06/12/f...

30.07.2025 12:30 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
The difference between models, drive-time vs fatality edition Easily one of the most common critiques I make when reviewing peer reviewed papers is the concept, the difference between statistically significant and not statistically significant is not itself s…

New blog post, in which I discuss the error of "the difference between stat significant and not is not itself stat significant". It often causes people to post-hoc try to explain things that are easily just due to the standard error of estimates, andrewpwheeler.com/2025/07/28/t...

28.07.2025 11:19 β€” πŸ‘ 4    πŸ” 3    πŸ’¬ 1    πŸ“Œ 0
Asking ChatGPT to create an SVG knife from an example icon, and it messes up quite badly.

Asking ChatGPT to create an SVG knife from an example icon, and it messes up quite badly.

For an example much simpler than a pelican riding a bicycle, both Claude and ChatGPT cannot create an SVG knife.

27.07.2025 16:47 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Cost-benefit analysis of Gun Shot Detection Tech Is gun shot detection tech worth the cost?

Is gun shot detection tech worth the cost? I give an example cost-benefit analysis in this blog post, discussing lives saved. There is no consistent evidence at this point GSD reduces crime or increases clearances.

crimede-coder.com/blogposts/20...

25.07.2025 13:17 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Some notes on project management Have recently participated in several projects that I think went well at the day gig – these were big projects, multiple parties, and we came together and got to deployment on a shortened timeline.…

New blog post on project management, andrewpwheeler.com/2025/07/20/s...

High level goal make a list of things to-do and do them in a reasonable amount of time. Everything you do should keep these high level goals in mind.

20.07.2025 19:58 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Oh the problem is not limited to Crim (the clearly shady examples at GSU I found were in business school and one music prof). Those examples students cumulatively spend 100k per year in a class.

To be clear, these are examples profs self publishing, not just requiring an expensive textbook.

18.07.2025 15:47 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Ditto. Because these practices are not illegal, me and Scott are not sure where to go to next. Been trying to pitch to uni's to hire us to do a report. We may have to start writing congressmen (student grants do pay for some of them).

Most programs turn a blind eye.

18.07.2025 15:32 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
How much do students pay for textbooks at GSU? Given I am a big proponent of open data, replicable scientific results, and open access publishing, I struck up a friendship with Scott Jacques at Georgia State University. One of the projects we p…

Me and Scott Jacques have done a similar analysis looking at book prices at GSU, andrewpwheeler.com/2025/02/06/h...

If you want analysis of this for your institution, feel free to get in touch.

18.07.2025 14:58 β€” πŸ‘ 1    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
Investigations: The School of Music and Dance’s half million dollar question - Daily Emerald A professor within the University of Oregon’s School of Music and Dance has earned roughly $570,000 in revenue from students in the past four years with his self-published book. However the issue was ...

Another example of a prof selling their own self published (likely mediocre) book to thousands of students. The article does not say online, but this prof may have made over 100k profit per year from sales.

dailyemerald.com/152165/featu...

18.07.2025 14:58 β€” πŸ‘ 3    πŸ” 1    πŸ’¬ 2    πŸ“Œ 0
Preview
Using LLMs to Extract Data from Text Using LLMs to Extract Data from Text

New blog post, I show how to use LLMs to extract pieces of information from plain text, with an example of extracting out info like modus operandi from police narratives

crimede-coder.com/blogposts/20...

17.07.2025 14:25 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0
Preview
Data Science for Crime Analysis with Python Data Science | Crime Analysis | python | book

Purchases for the Data Science for Crime Analysis with Python continue to trickle in, crimede-coder.com/blogposts/20...,

One of the reasons I promote python is because python jobs are much more common in private sector. It is IMO a better personal investment than R.

16.07.2025 12:13 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
GSU Book Prices GSU Book Prices Tables

Weekend project, using R2 + DuckDB wasm to build a low price frontend for big data analytics crimede-coder.com/graphs/GSUBo...

29.06.2025 21:53 β€” πŸ‘ 7    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
Finding outliers in proportions Finding outliers in proportions

New blog post, finding outliers in proportions crimede-coder.com/blogposts/20...

Useful for flagging officers in early intervention systems, or examining data with varying denominators.

25.06.2025 15:53 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Blog_Code/Python/SequentialDec/SequentialDecision.ipynb at master Β· apwheele/Blog_Code Code associated with my blog posts. Contribute to apwheele/Blog_Code development by creating an account on GitHub.

Nerdsniped by a sequential decision problem on X, wrote up a few different solutions + simulations in python github.com/apwheele/Blo...

19.06.2025 14:50 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Working on databases from prison: How I got here, part 2.

Interesting post of self teaching coding and now working in software dev in prison, turso.tech/blog/working...

17.06.2025 11:20 β€” πŸ‘ 1    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
Build Stuff I have had this thought in my head for awhile – criminology research to me is almost all boring. Most of the recent advancement in academia is focused on making science more rigorous – more open me…

New blog post, academic criminologists should be more focused on building stuff than writing papers, andrewpwheeler.com/2025/06/12/b...

12.06.2025 14:22 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Denver's STAR Program and Disorder Crime Reductions Denver's STAR Program and Disorder Crime Reductions

With the new ASEBP site, my Criminal Justician essays were not transferred over. Putting them up on my crime de-coder site. First one is description why I am skeptical of a study of Denver alt response having large crime reductions, crimede-coder.com/blogposts/20....

03.06.2025 20:58 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
AMA OLS vs Poisson regression Crazy busy with Crime De-Coder and day job, so this blog has gone by the wayside for a bit. I am doing more python training for crime analysts, most recently in Austin. If you want to get a flavor …

I recently received a question on Poisson vs OLS models for a dose response relationship, and posted the exchange to my blog. Long story short even with count data OLS models can make sense, it depends on the functional form.

andrewpwheeler.com/2025/05/28/a...

02.06.2025 12:24 β€” πŸ‘ 5    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0

One of the projects on the forever bucket list is to try to use police data (victimizations and offenses of homeless individuals) and see how well that spatially correlates with PIT or your tent measure here.

25.05.2025 14:35 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Besides the fact you could almost do this yourself anymore (you can post pre-prints with self-cites and they get picked up). My personal blog is picked up by Google Scholar.

Blog cited around ~10 times in real papers, and it had references in the posts. Then GS crawled rest of my site.

18.05.2025 10:45 β€” πŸ‘ 1    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
A plea for open access to qualitative criminology: With a Python script for anonymizing data and illustrative analysis of error rates This is the online version of the article. To access a print version with page numbers for citation and reference purposes, select

Paper with Scott Jacques on stripping sensitive information from narratives is out, www.qualitativecriminology.com/pub/zhiuy6jg.... Ultimate goal to make it easier for qual people to share there data for replication. Has links to python code and uses open source models.

16.05.2025 14:35 β€” πŸ‘ 4    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0

Please make your papers open access: there really are people out there who want to read them but don’t have access to subscription journals.

Fortunately, making your work open access is both very easy and 100% free: www.lesscrime.info/post/how-to-...

03.05.2025 21:17 β€” πŸ‘ 20    πŸ” 7    πŸ’¬ 0    πŸ“Œ 0
Tutorial on Using Quarto + VS Code
YouTube video by CrimeDe-Coder Tutorial on Using Quarto + VS Code

Most of my personal work on creating reports I have migrated from Jupyter notebooks to Quarto. Here is a video tutorial I made for Kansas City crime analysts python training using Quarto + VS Code.

www.youtube.com/watch?v=gaPP...

04.05.2025 12:18 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Are you interested in designing network experiments where you control the number of direct treated vs spillover? Check out these functions I have written in python to optimally spread out treatment in your network given constraints

github.com/apwheele/Blo...

03.05.2025 13:09 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
How to get property fraud alerts using Wake County’s new land-use records system Deed fraud is rare in Wake County. However, it’s come under scrutiny after a recent high-profile case in Raleigh.

It has happened enough times in triangle area in NC for the local paper to have several stories, www.newsobserver.com/news/busines...

www.newsobserver.com/news/local/c...

02.05.2025 11:04 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Robberies in Houston by month going down

Robberies in Houston by month going down

Burglaries in Phoenix by month decreasing

Burglaries in Phoenix by month decreasing

One of the ideas I had, but have never put the details to paper, is a monitoring system for crimes that looks at the relative mix. Mostly for theft related crimes, to see if displacement occurs from one type to another.

There are all sorts of large scale changes in US.

24.04.2025 19:41 β€” πŸ‘ 1    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Preview
Crime Analysis and Mapping: Professional Training in ArcGIS Pro Β· CrimRxiv

Eric Piza has a nice set of courses on crime mapping using ArcGIS in his grad program at Northeastern

www.crimrxiv.com/northeastern...

24.04.2025 16:56 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Using Esri + python: arcpy notes I shared a series of posts this week using Esri + arcpy tools on my Crime De-Coder LinkedIn page. LinkedIn eventually removes the posts though, so I am putting those same tips here on the blog. Esr…

I put my notes on using python + ArcGIS (mostly have been posting on LinkedIn) on my blog.

Mostly for the bots at this point to read and have better examples.

andrewpwheeler.com/2025/04/20/u...

20.04.2025 16:06 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@crimede-coder is following 20 prominent accounts