Skip to content

Instantly share code, notes, and snippets.

@psthomas
psthomas / microcovid.ipynb
Last active Sep 16, 2020
Comparing microcovid estimated infections to seroprevalence studies
View microcovid.ipynb
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 Jan 7, 2018
Presidential Voter Turnout and Margins by County, 2004-2016
View README.md

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 Nov 16, 2017
My Mental Model of the World
View README.md

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 Nov 16, 2017
Zoomable Scatterplot
View .block
height: 600
scrolling: yes
@psthomas
psthomas / .block
Last active Nov 16, 2017
Zoomable log-log scatterplot
View .block
scrolling: yes
height: 600
@psthomas
psthomas / bandit.ipynb
Last active Sep 16, 2020
A Jupyter Notebook taking a look at the multi-armed bandit problem.
View bandit.ipynb
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 Mar 9, 2017
The code for my analysis comparing the Women's March and Tea Party. https://pstblog.com/2017/03/03/womens-march
View march.ipynb
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 Mar 1, 2017
Code for post looking at midterm 2018 prospects in House and Senate. https://pstblog.com/2017/02/15/midterm-election
View congress.ipynb
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 Nov 16, 2017
An interactive visualization of global obesity rates over time
View .block
height: 650
scrolling: yes
border: yes
@psthomas
psthomas / .block
Last active Nov 16, 2017
Wisconsin 2016 election results by county
View .block
height: 600
scrolling: yes
border: yes
You can’t perform that action at this time.