Fantasy Football Auction Draft Analysis

Me and my coworkers recently had the draft for our fantasy football league.  Although I’ve done many fantasy leagues in the past, this was my first time doing an auction draft.  I left the draft room feeling pretty good about my team (the B-Sze Bees), but also excited about the possibilities for analysis.  Given the finite bank roll of each player, the auction draft leaves a lot more room for someone to have a horrible (or amazing) draft, depending on how they allocate their resources.

Although its hard to decide who had a good or bad draft before the season is over, I did think it was worthwhile to look at the draft results and use them to determine what our league valued, based on spending habits. The first, and most obvious piece of analysis, was to look at how spending broke down by position, across all teams. 

Continue reading “Fantasy Football Auction Draft Analysis”

Photo Hack Day 3

This past weekend, me and my co-worker Chris Chen participated in Photo Hack Day 3, a hackathon sponsored by FaceBook in the Dropbox HQ.  The hackathon gave participants a chance to build photo-oriented programs using a variety of APIs and tools.  Chris and I built a pretty simple Facebook app 1, since we wanted to learn how to use the Facebook API.  Our as-of-yet untitled project can be found at the following link:

Chris and Dave’s Photo Hack Day 3 Project

The app scrapes your most recent facebook photos, and ranks and resizes them based on popularity (a metric that we defined — simply the sum of the number of likes and comments the photo has).  We didn’t have time to finish the project, but the next step would be to cleverly re-arrange the re-sized photos into some aesthetically pleasing collage.  For now, they just get dumped in a list.

Notes:

  1. Neither of us are software engineers, although we both have some amount of programming experience

Tunesquare

A recent project of mine has been the development of a small python program called Tunesquare. Tunesquare creates an aural representation of a foursquare user’s entire check-in history. I was motivated to start this project while searching the web for a good check-in visualization tool. After WeePlaces stopped supporting foursquare check-ins, I was looking for a good website to view my foursquare check-ins on a map 1. It occurred to me that while tons of apps built around the foursquare API visualize a user’s check-in history, no one had attempted to create a non-visual representation of the data. Tunesquare does just that. Given a user’s check-in history, the program creates a sequence of MIDI notes whose length and pitch are determined by the latitude and longitude of the user’s check-ins 2. For interested parties, a rough version of the program is included below (along with a few notes for myself).

Tunesquare 0.1
Developed by Dave Holtz
Dependencies: numpy, Foursquare (A python wrapper for the Foursquare API), tkSnack
Things that need to be done:
– Envelope the sine wave to eliminate clipping.
– Fine-tune the use of the longitude and latitude for better musicality.
– Integrate into a web interface.
– Add map visualization (possibly with Google Maps).

While the application will eventually live within a web interface, for now you can still download it and run it from the command line. Here’s a brief tutorial of how to do that. Continue reading “Tunesquare”

Notes:

  1. Incidentally, 4sqmap is great for this.
  2. Tunesquare goes through the notes sequentially, with each note corresponding to one check-in.