December 2011
11 posts
4 tags
Python function for sampling from an arbitrary...
Sampling is fun, right?  Here’s a simple implementation of a slice sampler for discrete probability distributions. And here’s how to call it: >>> px=[.2, .4, .1, .3] >>> slice_sampler(px, N=5) array([2, 3, 3, 3, 3]) >>> slice_sampler(px, N=5, x=[100, 200, 300, 400]) array([200, 200, 400, 200, 200]) Set N to something high and take a histogram and...
Dec 29th
12 notes
2 tags
Dec 28th
489 notes
Dec 26th
177 notes
Dec 24th
15 notes
NYC OpenData: We invite you to create and submit... →
nycopendata: We invite you to create and submit data visualizations from now until January 3rd using the dataset below on SAT Scores in New York City Public Schools. You are welcome to use correlative data from other sources as well (e.g. the U.S. Census. We will post some of our favorites on the…
Dec 23rd
102 notes
4 tags
WatchWatch
A video of Hadley Wickham (author of ggplot2, plyr, reshape, stringr, lubridate, etc) talking about “tidy data” at the NYC Open Statistical Programming Meetup. Highly recommended for anyone who works with data from multiple sources that comes in various structures.
Dec 20th
1 tag
Dec 12th
197 notes
3 tags
Amanda Cox Talks about Developing Infographics at... →
The talk from the NYC R meetup was really great.
Dec 8th
9 notes
2 tags
Dec 8th
1 tag
Dec 6th
9 notes
2 tags
Dec 5th
2 notes