Skip to content

Instantly share code, notes, and snippets.

View ilanman's full-sized avatar

Ilan Man ilanman

  • Brooklyn Data Co.
  • New York
View GitHub Profile
@ilanman
ilanman / README.md
Last active August 29, 2015 13:57
TV Landings

This is a simple visualization of customer landings to a website due to advertisement. Project forward the time series prior to advertisement, then calculate the difference between the actual landings to the projected. See blog for more details.

Looking for suggestions to improve code and/or visual design.

@ilanman
ilanman / README.md
Created March 19, 2014 11:54
Analysis of healthcare data

The US government released medicare data in early 2013. This is an analysis of that data across the US. It compares the cost of treatments per hospital and state vs. total medicare coverage and shows where there is greatest discrepancy.

@ilanman
ilanman / _density_plot_gif.r
Last active August 29, 2015 14:12
Bike Share blog post
library(ggplot2)
library(scales)
library(reshape)
## Get the data from here: https://archive.ics.uci.edu/ml/machine-learning-databases/00275/
data <- read.csv('day.csv')
data$workingday <- as.factor(data$workingday)
data$weathersit <- as.factor(data$weathersit)
data$weekday <- as.factor(data$weekday)
@ilanman
ilanman / box.js
Last active August 29, 2015 14:14
Box plots using d3 to visualize consistency NFL combine physical performances across time.
(function() {
// Inspired by http://informationandvisualization.de/blog/box-plot
d3.box = function() {
var width = 1,
height = 1,
duration = 0,
domain = null,
value = Number,
whiskers = boxWhiskers,
@ilanman
ilanman / heatmap_both.gif
Last active September 25, 2015 18:54
This gist produces a heatmap of probability densities for every roll of a game of snakes and ladders. The densities are calculated using Markov Chains and the heatmaps are pieced together into a .gif file using the animation module from matplotlib.
heatmap_both.gif
@ilanman
ilanman / 2d_boundary.png
Last active October 8, 2015 22:54
This gist is used in my post about the kernel trick. It uses 3d animation to show how the kernel trick can be used to increase dimensionality of a dataset in order to make it linearly separable. I used code from http://www.eric-kim.net/eric-kim-net/posts/1/kernel_trick.html as inspiration.
2d_boundary.png
@ilanman
ilanman / image_compression.ipynb
Last active November 24, 2015 00:13
Photobomb blog post
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ilanman
ilanman / README.md
Last active December 25, 2015 14:29
Student vices

This is my first foray in d3. It's a force directed graph representing correlations amongst college students' vices. Thicker bands represent stronger correlations, and larger nodes represent larger proportions of student partaking in that vice. More info found on my blog.

@ilanman
ilanman / README.md
Last active January 2, 2016 21:59
Congressional Bills

This chart compares congressional workload over the years to the appropriations they are given. There is also the option of looking at the U.S. CPI over the same time to highlight the discrepancy. I am using d3-tip for my tooltips. More context around this chart can be found on my blog post.

@ilanman
ilanman / Adaboost.ipynb
Last active March 13, 2016 19:34
This gist stores the code used for this blog post about Adaboost. https://ilanthedataman.squarespace.com/the-data-game/2015/10/29/wisdom-of-crowds
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.