Tuesday, December 2, 2008

Putting the pieces together

Posted by Danny Tarlow
It's always fun to pull together several different posts. Here are the ones I want to tie together. Can you figure out how? http://randomcrunching.blogspot.com/2008/11/cocktail-party-conversation-starter.html http://randomcrunching.blogspot.com/2008/11/multiplying-for-success.html http://randomcrunching.blogspot.com/2008/11/summers-time.html Here's a start: And the simple python script that generated the figure so you can play along at home (but you need numpy and pylab installed): from numpy import * from pylab import * a = 50 + 10 * randn(10000,1) b = 50 + 20 * randn(10000,1) c = 50 + 30 * randn(10000,1) e = a + b + c subplot(311) hist(e, 500) xlim(mean(e) - 5*std(e), mean(e) + 5*std(e)) axis('off') title('Additive Model') d = a * b * c subplot(313) hist(d, 500) xlim(mean(d) - 5*std(d), mean(d) + 5*std(d)) title('Multiplicative Model') axis('off') show()

No comments: