Skip to content

Instantly share code, notes, and snippets.

@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 Mar 23, 2020
A Jupyter Notebook taking a look at the multi-armed bandit problem. Blog post here: https://pstblog.com/2017/10/07/ignorant-bandits
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
@psthomas
psthomas / voting_wisconsin.ipynb
Last active Nov 16, 2017
Code for my blog post looking at a variety of ways to visualize presidential election results. https://pstblog.com/2016/12/08/presidential-election
View voting_wisconsin.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.