Wednesday, March 27, 2013

Hysterical Friend


or, "How an Absurd Late-Night Text Exchange with a Sexist Idiot managed to Ctrl + C the Infinite Loop of my Grieving Process."

(This one's not about stats.)

Tuesday, March 26, 2013

Bird Election!

Everybody knows that Benjamin Franklin wanted the turkey appointed national bird of the United States, but the more majestic bald eagle won out. Of course, if you've ever seen a bald eagle up close, you might wonder about the whole "majesty" thing.

Thankfully, the bald eagle is no longer endangered-- but now there are so many of them, people in western states with large bald eagle populations consider them pests. In Alaska, you're less likely to find a parking lot full of seagulls picking at discarded french fries, and more likely to find a dozen bald eagles hanging out in the cart corral at Wal-Mart sharing a couple goose carcasses. They have a weird, high-pitched squeaky call, less a "CAW!" than a "KEE-Ee-ee-eEE-ee-eee...," like a nervous teenager stuck in perpetual puberty. Their unique brow-shape gives them the appearance of ferocity and strength, unless you catch them at a weird angle, in which case they look to be deeply concerned about the colonoscopy results you just read to them. They mate by crashing into one another mid-flight and fucking frantically as they plummet to the ground. On closer inspection, the bald eagle seems less like the proud symbol of American democracy, and more like the really handsome guy at the party who seems cool until he takes a sip of his drink and accidentally spills it down his shirt.


"I totally meant to do that."
 
So let's elect a new national bird.

Tuesday, March 19, 2013

Battle of the Sexes: Who Tips Better?

Wow, it's been over a month since I posted anything-- sorry, loyal readers (all three of you)! I've been tied up looking for information on the cost of the equipment needed to counterfeit high-quality US currency, the suspected percentage of currently circulating US currency that's likely counterfeit, and the likelihood of getting caught passing counterfeit bills. Surprisingly, the US Department of the Treasury website is less than forthcoming with that information. Also, I think I'm on a couple government watch lists now. Sorry, Abhi. I'll keep working on answering your query about the expected value of a counterfeit dollar.

Lucky for me, my favorite coffee shop has provided an alternate subject to ponder: who tips better, men or women?

 

Friday, February 15, 2013

Does Familiarity breed Contempt?

Thanks to my new job, I have at my disposal piles of data on different radio stations around the country and their listeners' opinions of their songs. Each week, a station sends us 30 - 40 short song hooks, and we set up a survey where people play the hooks, then rate the song. They tell us first whether they're familiar with that song, then how much they like it, and finally whether or not they're sick of it.

Here's some graphs of the data from four different stations who've completed surveys in the last few weeks. In these graphs, each dot represents a particular song, "familiarity" represents the proportion of respondents familiar with the song, and "contempt" represents the proportion of those familiar who said they were sick of hearing it.

I've also included the regression formula, R-squared, and R values on each of these graphs. See, in a linear regression formula, the number in front of the x is the important one: it tells us whether the correlation is positive or negative. The R value tells us how strong the correlation is: when R is close to 0, the relationship is weak; when R is closer to +1 or -1, the relationship is strong. (To be technical, the R value tells you the proportion of the variation in your data that can be explained by the linear relationship rather than random error. The more variation you can explain, the better your model!) The y-intercept is important for positioning the line, but otherwise useless for analysis. It's just telling you the projected contemptibility of a theoretical song with 0% familiarity, which doesn't mean anything. Don't take y-intercepts too seriously in regression analysis. They're just out to confuse you.

Wednesday, February 13, 2013

Gingers, Genes, and the Binomial Function

Happy Birthday, Ansley! For your birthday, I'm going to answer your question! Ansley asks: "I would like to know how probable it is that my soulless kind (aka redheads) are actually going to die out in the current century."

Would you like to help Ansley stave off the extinction of her people?

Wednesday, February 6, 2013

Tuesday, February 5, 2013

Should I play the lottery?



It's easy to assume that those who buy lottery tickets have no understanding of mathematics, or at least no understanding of probability. These idiots are just letting the allure of a giant jackpot overpower their understanding of the odds. Why would anyone buy a ticket if they knew their chances of winning were infinitesimal?

Well, as it turns out, the gut instinct that motivates lottery players-- "Sure, I have almost no chance of winning, but if I do win, I could be a millionaire!"-- has a little mathematical support. One of the most useful formulas for everyday decision-making is the Expected Value Formula, pictured below:


In English, the idea is that the expected value of any random variable X (for example, the amount of money you might win from the lottery) can be calculated by multiplying each possible value of X (you win $5, you win $10, you win $100...) by that possibility's respective probability (there's a 10% chance of winning $5, a 3% chance of winning $10, a 1% chance of winning $100...) and add all those products together. Even if the chance of winning the jackpot is small, a big enough jackpot can outweigh the cost of participation.



Obviously, it's a little complicated to explain in the abstract, so let's use a simple example.