Archive for the ‘geekery’ Category

“Correlation Does not Imply Causation” is not as simple as it looks.

Thursday, December 1st, 2011

This year I gave lectures to three different classes about introductory statistics. One of my favorite classes was Correlation and Linear Regression, because It allowed me to talk to students about more practical applications of the usually very mystical concepts of statistics.

In all three lectures I talked about the “correlation vs causation” dillema, and in all the exams I included the following question: “A group of scientists find out that the rate of use of product X has a strong correlation with the rate of hairlessness in people. Is this result useful to say whether product X causes loss of hair? What arguments or experiments could you use to determine if X and loss of hair have a casual relationship?”

It is a very open ended question, I wanted to pick at my student’s brain and gauge how much of the class they assimilated more than I wanted an exact answer with an exact score (there were other questions for that). The results were very interesting.

As for the first part of the question, a very large number of students in all classes misunderstood the meaning of the word “useful”. They would answer that either the correlation does not prove the causation, which is correct, but is not what I was asking. Of course correlation does not prove the causation, the question itself states that! But still, it is useful information, because if the correlation was 0, we could exclude a direct causation right out of the bat.

As for the second part of the question, many, many students suggested tests with control groups to test if the causation really exists. This shows a fundamental misunderstanding of either what control groups are really about, or what about what correlation really means. If you have already stablished a strong correlation between X and hair loss, the logical conclusion is that a control group that is not using X will not show hair loss. The control group will simply confirm the correlation we already know about, and teach us nothing about the causality (or lack thereof) of X and hair loss.

This is not exactly an easy question — even though it uses no numbers or asks for no formulas! — but since I said they could use arguments instead of experiments, they could suggest different X with and without causality relationship with hair loss, and compare them. For instance, they could say that X could be either an anti hair loss product (and the causality relation would actually be inverse in this case!) or a shampoo with a bad chemical balance (and in this case there would be a causal relation) - the “experiment” in this case would be to actually investigate X and how it relates to hair loss in chemical/biological terms, and not something as simple as “Do a Z-test/double blind test/whatever”.

Things to keep in mind for the next time around…

Amazing Universe!

Monday, November 14th, 2011

We need more people in space, making more stuff like this. I find it particularly impressive the many blue flashes from thunderstorms seen in the time lapse.

Earth | Time Lapse View from Space, Fly Over | NASA, ISS from Michael König on Vimeo.

When Everything goes wrong, singing is the best answer!

Wednesday, November 2nd, 2011

I’m a scientist, and I’m okay
I code all night and I read all day

I run my tests, commit my changes
I go to the laboratory
I read my news on the Internet
And check the economy

I’m a scientist and I’m okay
I code all night and I read all day

I run my tests, I check stock prices
I talk to undergrads
I put on expensive clothing
And hang around in bars

I’m a scientist and I’m okay
I code all night and I read all day

I run my tests, I wear a suit
A top hat and a tie
I wish I’d been a Biz’man
Just like my classmates!

How to choose a wiki

Tuesday, October 25th, 2011

I’ve been working recently to setup a webserver for my work group at UFRJ. After talking to some friends, I decided that the best idea to set up a common main page for the laboratory was to use some sort of wiki. So that everyone can edit it without too much trouble.

Now, there are SO MANY wiki solutions that it is kinda hard to choose the right one. Fortunately, I managed to find the Wiki Matrix. Wiki Matrix is a website that helps you compare wikis. You can use a “wizard”-like questionnarie, where you specify what are you looking for, and what you wish for a wiki, and they will filter their data base for you. Going through their wizard, I managed to reduce my search from 200-something to 18 wiki softwares. After that, these wiki softwares are displayed side by side with a feature list, and you can hide certain features you don’t care about. I managed to further refine my search to 3 wikis, with DokuWiki the clear winner (and two more in case I can’t use it for some reason).

So even if you already have a favorite wiki, give Wiki Matrix a chance before making a new installation. Some of their comparison criteria, such as date and frequency of software updates, were very useful for me.

Unconceivable!

Sunday, October 16th, 2011

The internet can be a weird scary amazing awesome place.

Someone made a twitter bot called “InigoMontoya”. It scans twitter for the word “Inconceivable!”, and responds with Inigo’s catchphrase “I don’t think it means what you think it means”. If you talk back to the bot, it gives you a random line from the character. Lol :-P

Checking the bot’s history, it is impressive the number of people who ends their twitter posts with “Inconceivable!” :-D

  • Categories

  • Archives

  • Meta


  • "(...) being rather cleverer than most men, my mistakes tend to be correspondingly huger."
    Alvus Dumbledore -- Harry Potter and the Half-Blood Prince