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...
2 tags
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…
4 tags
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.
1 tag
3 tags
Amanda Cox Talks about Developing Infographics at... →
The talk from the NYC R meetup was really great.
2 tags
1 tag
2 tags