Skip to content

Instantly share code, notes, and snippets.

@psthomas
psthomas / microcovid.ipynb
Last active September 16, 2020 22:17
Comparing microcovid estimated infections to seroprevalence studies
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psthomas
psthomas / README.md
Last active January 7, 2018 05:33
Presidential Voter Turnout and Margins by County, 2004-2016

This scatter plot shows voter turnout and margins by county for the 2004-2016 presidential elections.

This visualization includes a search feature to allow users to filter by state or county, an option to explore "what-if" scenarios by clicking and dragging counties, and an option to weight the county bubble sizes by a variety of metrics.

More info here: https://pstblog.com/2017/06/05/national-election-vis.

@psthomas
psthomas / README.md
Last active November 16, 2017 04:45
My Mental Model of the World

This visualization shows my approach to thinking about the world, which is further explained here. I also came up with a way to sample from joint probability distributions for this post, which is further explained here.

@psthomas
psthomas / .block
Last active November 16, 2017 04:28
Zoomable Scatterplot
height: 600
scrolling: yes
@psthomas
psthomas / .block
Last active November 16, 2017 04:19
Zoomable log-log scatterplot
scrolling: yes
height: 600
@psthomas
psthomas / bandit.ipynb
Last active September 16, 2020 21:48
A Jupyter Notebook taking a look at the multi-armed bandit problem.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psthomas
psthomas / march.ipynb
Last active March 9, 2017 03:23
The code for my analysis comparing the Women's March and Tea Party. https://pstblog.com/2017/03/03/womens-march
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psthomas
psthomas / congress.ipynb
Last active March 1, 2017 05:56
Code for post looking at midterm 2018 prospects in House and Senate. https://pstblog.com/2017/02/15/midterm-election
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psthomas
psthomas / .block
Last active November 16, 2017 03:37
An interactive visualization of global obesity rates over time
height: 650
scrolling: yes
border: yes
@psthomas
psthomas / .block
Last active November 16, 2017 03:25
Wisconsin 2016 election results by county
height: 600
scrolling: yes
border: yes