Good examples of lurking variables?

Rama Ganesan writes:

I have been using many of your demos from the Teaching Stats book . . . Do you by any chance have a nice easy dataset that I can use to show students how ‘lurking variables’ work using regression? For instance, in your book you talk about the relationship between height and salaries – where gender is the hidden variable.

Any suggestions?

I got 99 comparisons but multiplicity ain’t one

After I gave my talk at an econ seminar on Why We (Usually) Don’t Care About Multiple Comparisons, I got the following comment:

One question that came up later was whether your argument is really with testing in general, rather than only with testing in multiple comparison settings.

My reply:

Yes, my argument is with testing in general. But it arises with particular force in multiple comparisons. With a single test, we can just say we dislike testing so we use confidence intervals or Bayesian inference instead, and it’s no problem—really more of a change in emphasis than a change in methods. But with multiple tests, the classical advice is not simply to look at type 1 error rates but more specifically to make a multiplicity adjustment, for example to make confidence intervals wider to account for multiplicity. I don’t want to do this! So here there is a real battle to fight.

P.S. Here’s the article (with Jennifer and Masanao), to appear in the Journal of Research on Educational Effectiveness. (Sounds like an obscure outlet but according to Jennifer it’s read by the right people. Education researchers are very interested in multiple comparisons.)

Blog bribes!

Nick Rizzo points to this amusing Gawker item (sorry!) from Hamilton Nolan about advertisers trying to sneak links into blog content. The Gawker blogger got the following email:

Greetings,
My name is Bryan Clark, and I’m a big fan of your writing. I contacted you because I think I have a mutually beneficial agreement that will allow you to make additional money for articles you are already writing online. Let me give you an idea of how we can help each other.
We’re looking for writers that can help increase the profile of our clients by linking to them within the context of their articles. The clients are huge, and we generally have one that can fit naturally in the context of most article niches.
In return, we pay generously for a single link for our clients.
If you are interested, I’d love to talk about it more.

Regards,
Bryan Clark

Hey, that looks kinda familiar! Here’s an email I received a couple weeks ago [actually, last month, as we’re currently on a 1-month lag for non-topical items]:

Dear Andrew Gelman,

I just got done reading your “Using a “pure infographic” to explore differences between information visualization and statistical graphics” and loved it! I was wondering if you did advertising? I’m marketing out a few sites and can pay you $50 via PayPal to add a text link into one of your older posts. The link would go to an education site and I’d make sure the site relates to your post’s content.

Thanks and let me know if we can work something out!

Mandy Lando

Apparently, Mandy Lando and I have one thing in common—I too loved my post on infographics!—and one area where we disagree: I do not want to add extraneous links to my blog posts. Still, I appreciated the offer of $50, so I replied politely:

Sorry, we’re not doing any ads right now.
AG

Hamilton Nolan was more enterprising. I guess that’s why he is a reporter and I’m not. I try to avoid awkward situations, but a good reporter will try to push things further. Here’s the follow-through:

I [Nolan] responded, “Who are your clients? What’s the deal?”

Hamilton,

I’d love to jump on Skype with you or gChat perhaps if you’d like to talk more.
We work with big clients like Dell, T-Mobile, Sanford Brown, Motorola, etc. that are constantly looking for links to their products or websites. Writers like you are the natural medium to approach, as you write articles where these can appear naturally within the context of the article. We aren’t looking for anything that doesn’t occur semi-naturally.
We pay based on the size of the site the link goes on. If you want to send me a list of sites you currently write for I can give you a price breakdown.

Regards,
Bryan

Me: “Well, I write for Gawker.com, so feel free to send me a price breakdown based on that.”

For a link on Gawker, we would pay $130 [later upped to $175 — ed.] per link.
-B

Not bad for five seconds of work!

There’s more, but here’s what I took away from this exchange:

1. They aren’t looking for anything that doesn’t occur “semi-naturally,” so really it’s all ok.

2. Gakwer gets $175 per link, whereas Statistical Modeling, Causal Inference, and Social Science gets only $50.

If I can’t even get paid as much as a writer for a gossip site, forget about it!

P.S. to future spammers: Some of my friends call me “Andy” or “Drew.” That will work better than “Dear Andrew Gelman.”

World record running times vs. distance

Julyan Arbel plots world record running times vs. distance (on the log-log scale):

The line has a slope of 1.1. I think it would be clearer to plot speed vs. distance—then you’d get a slope of -0.1, and the numbers would be more directly interpretable.

Indeed, this paper by Sandra Savaglio and Vincenzo Carbone (referred to in the comments on Julyan’s blog) plots speed vs. time. Graphing by speed gives more resolution:

The upper-left graph in the grid corresponds to the human running records plotted by Arbel. It’s funny that Arbel sees only one line whereas Savaglio and Carbone see two—but if you remove the 100m record at one end and the 100km at the other end, you can see two lines in Arbel’s graph as well. The bottom two graphs show swimming records. Knut would probably have something to say about all this.

Wickham R short course

Hadley writes:

I [Hadley] am going to be teaching an R development master class in New York City on Dec
12-13. The basic idea of the class is to help you write better code,
focused on the mantra of “do not repeat yourself”. In day one you will
learn powerful new tools of abstraction, allowing you to solve a wider
range of problems with fewer lines of code. Day two will teach you how
to make packages, the fundamental unit of code distribution in R,
allowing others to save time by allowing them to use your code.

To get the most out of this course, you should have some experience
programming in R already: you should be familiar with writing
functions, and the basic data structures of R: vectors, matrices,
arrays, lists and data frames. You will find the course particularly
useful if you’re an experienced R user looking to take the next step,
or if you’re moving to R from other programming languages and you want
to quickly get up to speed with R’s unique features. A couple session
outline is available here.

Both days will incorporate a mix of lectures and hands-on learning.
Expect to learn about a topic and then immediately put it into
practice with a small example. Plenty of help will be available if you
get stuck. You’ll receive a printed copy of all slides, as well as
electronic access to the slides, code and data. The material covered
in the course is currently being turned into a book. You can access
the current draft here.

This looks great, and I imagine that what you’d learn there would be useful for other data programming, not just for R.

“Free energy” and economic resources

By “free energy” I don’t mean perpetual motion machines, cars that run on water and get 200 mpg, or the latest cold-fusion hype.

No, I’m referring to the term from physics. The free energy of a system is, roughly, the amount of energy that can be directly extracted from it. For example, a rock at room temperature is just full of energy—not just the energy locked in its nuclei, but basic thermal energy—but at room temperature you can’t extract any of it.

To the physicists in the audience: Yes, I realize that free energy has a technical meaning in statistical mechanics and that my above definition is sloppy. Please bear with me. And, to the non-physicists: feel free to head to Wikipedia or a physics textbook for a more careful treatment.

I was thinking about free energy the other day when hearing someone on the radio say something about China bailing out the E.U. I did a double-take. Huh? The E.U. is rich, China’s not so rich. How can a middle-income country bail out a bunch of rich countries? (According to the Wik, China’s per-capita GDP is $7,500. Portugal, the poorest country in western Europe, has a GDP of $23,000. Some countries in eastern Europe are poorer; the EU as a whole is a GDP of $30,000 per capita.)

Then I thought about free energy. Europeans, like Americans, have lots of stuff. (OK, I guess we have more stuff than they do. But they have more stuff than just about anybody else.) They’re rich, but their wealth is locked up. Their economy doesn’t have free energy.

In theory, Europeans and Americans could create all sorts of free energy just by consuming less for awhile: no more fancy vacations, new cars, i-pods, smart bombs, jet fighters, etc. But, as Galbraith discussed in The Affluent Society, it doesn’t seem to happen that way. (Galbraith was discussing the belief that a high GDP—even if it’s all being spent on civilian goods—is good for national defense because it represents economic capacity that could be transformed to military use if necessary. As Galbraith pointed out, there was no strong evidence that people would be willing to make such sacrifices. It happened in WW2, but then the economy was starting with a lot of underuse. If anything, one could argue that a depression is good for military capacity in that the unused resources can be directly shifted.)

So, China’s got that free energy—or at least some people thing they do. I’m still skeptical about the idea, but then again I don’t know anything about macroeconomics.

P.S. The idea of “free energy” and economic resources seems simple enough but I don’t know what it’s called by economists. I googled “free energy economics” and got things like this which really weren’t what I was looking for.

To put it another way, I’m pretty sure the answer to my question is, “Yes, economists talk about this concept all the time. Their word for it is X.” I just don’t know what X is.

At last, treated with the disrespect that I deserve

I was at a work-related event today [actually, last month; these non-topical blog entries are on approximately one-month delay], but not connected to the statistics or political science departments. There were a few people there I knew well, and they were introducing me to others. Then at some point when I was talking with one of the more important people in the room, a sixtyish guy comes by and stands next to us. I put out my hand and introduce myself. He looks at me in puzzlement, spits out his first name, and without a pause starts talking to the person I’d been speaking with. After about a minute of talk, he walks away, and the important person and I continued our conversation.

No big deal . . . but, I have to admit, I haven’t had that experience very often recently. I’m often at events where I know everyone (or almost everyone) and they know me, and I’m also often at events where I know very few people and have to introduce myself. But it’s rare to be somewhere where I’m such an insignificant bug that someone sees me standing there and acts like I don’t exist!

I wasn’t offended, exactly, but it was an interesting experience. It’s good to occasionally be treated like a real nobody.

P.S. I figured out who the guy was, looked him up, and found out that he hasn’t published anything technical since 1983, so I doubt I would’ve had anything useful to offer to him.

$

Felix Salmon relates the story of an economics Nobel Prize winner getting paid by a hedge fund. It would all seems pretty silly—sort of like Coca-Cola featuring Michael Jordan in their ads—except that hedge funds are disreputable nowadays and so it seems vaguely sleazy for a scholar to trade on his academic reputation to make free money in this way.

It falls roughly in the same category as that notorious b-school prof in Inside Job who got $125K for writing a b.s. report about the financial stability of Iceland—and then, when they came back to him later and asked how he could’ve written it, he basically said: Hey, I don’t know anything about Iceland, I was just taking their money!

That said, if a hedge fund offered me $125K to sit on their board, I’d probably take it! It’s hard to turn down free money.

Or maybe not, I don’t really know. So far, when companies have paid me $, it’s been to do something for them, to consult or give a short course. I’d like to think that if someone were merely paying for my name, or paying me to write something on a topic I knew nothing about, that I’d think twice. But I’m not sure: maybe it would be like when Larry Summers gets all that free money—these dudes might be using Summers as advertising, but they’re probably able to flatter him to believe that he is actually offering them $5.2 million worth of wisdom.

Or, to put it another way, if there’s no reason Michael Jordan should feel guilty taking money from Coke and McDonald’s, then should a professor feel guilty for getting paid to inflate Iceland’s bubble? To me it feels different, but, again, I’m not sure how I would behave in such a setting where free $ is being presented to me.

P.S. I don’t know any of the people mentioned above, nor do I know the stories of any of these consulting gigs. I’m using this as an opportunity for some general speculation, not as any slam on Sargent etc.

Kaiser Fung on how not to critique models

In the context of a debate between economists Brad DeLong and Tyler Cowen on the “IS-LM model” [no, I don’t know what it is, either!], Kaiser writes:

Since a model is an abstraction, a simplification of reality, no model is above critique.

I [Kaiser] consider the following types of critique not deserving:

1) The critique that the modeler makes an assumption
2) The critique that the modeler makes an assumption for mathematical convenience
3) The critique that the model omits some feature
4) The critique that the model doesn’t fit one’s intuition
5) The critique that the model fails to make a specific prediction

Above all, a serious critique must include an alternative model that is provably better than the one it criticises. It is not enough to show that the alternative solves the problems being pointed out; the alternative must do so while preserving the useful aspects of the model being criticized.

I have mixed feelings about Kaiser’s rules. On one hand, I agree with his point that a model is a practical tool and that an imperfection is no reason to abandon a useful model. On the other hand, I think that much can be learned from rejection of a model, even without reference to any alternative.

Let me put it this way: That a model makes assumptions, even that a model makes wrong assumptions, is not news. If “wrong” is enough to kill, then all our models are dead on arrival anyway. But it’s good to understand the ways in which a model disagrees with the data at hand, or with other aspects of reality. As Kuhn and Lakatos knew, highlighting, isolating, and exploring anomalies are crucial steps in moving toward improvement—even if no alternative model is currently in the picture.

Forecasting 2012: How much does ideology matter?

Brendan Nyhan and Jacob Montgomery talk sense here. I am perhaps too influenced by Steven Rosenstone’s 1983 book, Forecasting Presidential Elections, which is the first thing I read on the topic. In any case, I agree with Nyhan and Montgomery that the difference in vote, comparing a centrist candidate to an extreme candidate, is probably on the order of 1-2%, not the 4% that has been posited by some.

Among other things, ideological differences between candidates of the same party might seem big in the primaries, but then when the general election comes along, party ID becomes more important.

I also disagree with the model in which presidential elections are like votes for high school prom king.

“Venetia Orcutt, GWU med school professor, quits after complaints of no-show class”

She was assigned to teach a class in “evidence-based medicine”! (link from my usual news source).

I wonder what was in the syllabus? If anyone has a copy, feel free to send to me and I will post it here.

My favorite part of the story, though, is this:

Almost all physician assistant students refused to comment to a reporter Tuesday, saying they’d been told by the department not to talk to media.

Talk about obedience to authority! They’re studying in a program that offers nonexistent courses, but then they follow the department’s gag order.

I was at a meeting a couple months ago . . .

. . . and I decided to amuse myself by writing down all the management-speak words I heard:

“grappling”
“early prototypes”
“technology platform”
“building block”
“machine learning”
“your team”
“workspace”
“tagging”
“data exhaust”
“monitoring a particular population”
“collective intelligence”
“communities of practice”
“hackathon”
“human resources . . . technologies”

Any one or two or three of these phrases might be fine, but put them all together and what you have is a festival of jargon. A hackathon, indeed.

Bayes/Godel

Sean O’Riordain writes:

Your article, “The holes in my philosophy of Bayesian data analysis” caused me to wonder whether it was possible to have a consistent philosophy of data analysis and whether it could it be possible that Godel’s incompleteness theorem extends as far as to say that it wasn’t possible?

I don’t know but my guess is that this is all related to our lack of a good model for hypothesis generation. Statistics focuses on deductive inference within models and model checking to evaluate models, but we don’t have a good handle on the creation of models. (I’m hoping that some of our network-of-models stuff will be helpful.)

My contribution to the discussion on “Should voting be mandatory?”

My short answer (based on the research of Leighley and Nagler):

Whether or not mandatory voting is a good idea, I think it’s unlikely to happen at a national level. Even setting aside the practical difficulties of taking a now-voluntary action and making it compulsory, bringing in the other half of the potential electorate would change the political conversation so much that it’s hard for me to see current officeholders supporting such a plan.

For the full story, see here.