Tag Archives: R

Outer Product of Character Vectors in R

What follows is like a kata to strengthen your R fundamentals. The lovely stats in the wild recently posted some hott data analysis of Olympians’ ages and sexes. Because I’m annoyingly picky about graphics, I asked for his code so I … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , | Leave a comment

multiplicities of freedom demonstrates Chaos Theory in Excel. If he filled in more initial values, you would see a thick bar—like a picture of white-noise. Butterflies flapping their wings in Vermont to change the wind in Hangzhou? A drop of … Continue reading

Image | Posted on by | Tagged , , , , , , , , , , | Leave a comment

How do I Create the Identity Matrix in R? Also a bit of group theory.

I googled for this once upon a time and nothing came up. Hopefully this saves someone ten minutes of digging about in the documentation. You make identity matrices with the keyword diag, and the number of dimensions in parentheses. > … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment

This gallery contains 9 photos.

An unabashedly narcissistic data analysis of my own tweets. The unequivocally lovely Jeff Gentry (@geoffjentry) has contributed an R package with easy-to-read documentation that works, which I’ll walk through here so that you, too, can gaze at your own face … Continue reading

Gallery | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Bare-bones intro to Plotting options in R

If you’re using base::plot in R for the first time you may have looked at ?plot (2 page help file) or ?par (12 page help file) to figure out what’s going on. It’s overwhelming. This document explains how I set … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

How Not To Draw a Probability Distribution

If I google for “probability distribution” I find the following extremely bad picture: It’s bad because it conflates ideas and oversimplifies how variable probability distributions can generally be. Most distributions are not unimodal. Most distributions are not symmetric. Most distributions … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | Leave a comment

lembarrasduchoix asked: thank you for the introduction to Newcomb’s paradox! Could you do a post on your favorite paradoxes?    The decision theory paradoxes I’m familiar with are: Ellsberg Paradox— Theorists encode both situations with unknown probabilities, such as the chance … Continue reading

Image | Posted on by | Tagged , , , , , , , , , , , | Leave a comment