Tuesday, August 24, 2010

Help I'm Being Regressed To The Mean

"Regression to the mean" was the bane of my undergraduate statistics class. We knew that it was out there, and that the final exam would have a question about it, but no-one understood it or had ever seen it. A bit like unicorns or fairies.

The lecture notes were unhelpful. They told us what it did - make things wrongly appear to change over time when actually stuff stayed the same - but not what it was. Some people claimed to get it, but they couldn't explain it to others.

I now see that our mistake was in thinking that there's some thing called "regression to the mean". There isn't. It's just a rather unhelpful term for what happens in a certain kind of situation, and once you understand those situations, there's nothing more to learn.

Suppose there's a number, which varies over time, and at least some of this variation is random. It could be anything from the number of sunspots to rates of cancer. You get interested in this number whenever it gets very high (or very low). Whenever it does, you start tracking the number for a while. Maybe you even try to change it. You notice that the number always seems to be falling (or rising). Why?

Because you only get interested in the number when it's, by chance, unusually high. The chances are, the next time you look at it, it will be lower: not for any interesting reason, or because "what goes up must come down", but just because if you take an unusually high number and then generate a new number at random, it'll probably be lower. That's why the first number was "unusually high".

Suppose that you take some people and give them an IQ test twice, a week apart. Call the first test "X" and the second test "Y". Suppose it's a crap test that gives entirely random results. Here's what might happen if you gave the test to 100 people, with each dot a person:
There's no correlation, because X and Y are both random junk. Nothing to see, move along. But wait a second...
Here's X, first test score, plotted vs Y-X i.e. the change in score between the first test and the second. There's a strong negative correlation: people who did well on the first test tended to get worse, and people who did badly, tended to improve. Wow? No. This is a purely statistical effect. It's meaningless: the "correlation" exists only because we're correlating X with itself (in the form of Y-X).

It's a fundamental mistake, and it's obvious when you look at it like this, yet it's a surprisingly easy one to make without noticing. Imagine that you'd invented a pill that you think can make people smarter. You decide to test it on "stupid people", because they're the ones who need it most. So you give lots of people an IQ test (X), select the worst 10%, and give them the drug. Then you re-test them afterwards (Y). Whoa! They've improved! The drug works!

There's only one stupid person involved in this experiment.

This remains true, even if the IQ tests aren't entirely random. A test that measures real intelligence will also have an element of luck. By selecting the bottom 10% of scores, you're selecting people who are both unintelligent and unlucky when they took the test. They'd have scored 11% if they were lucky. So the same problem applies, albeit to a lesser degree.

That's really all there is to "regression to the mean". The regression of high or low scores towards the mean score is inevitable, given our definition of "high" and "low" scores, to the extent that scores are random. This is why I said it's unhelpful to think of it as a thing. The trick is being able to spot it when it happens, and to avoid being mislead by it. If you're not careful, it can happen anywhere.

Interestingly, the reason why it's thought of in this unhelpful way is probably because the "discoverer" of regression-to-the-mean, Francis Galton, misunderstood it. He observed this "effect" in some data he'd collected about human height, and he wrongly interpreted it as a real biological fact about genetics. Eventually, people noticed the statistical mistake, but the idea of "regression to the mean" stuck, to the dismay of undergraduates everywhere.

Link: This was inspired by a post on Dorothy Bishop's blog, Three ways to improve cognitive test scores without intervention.

Help I'm Being Regressed To The Mean

"Regression to the mean" was the bane of my undergraduate statistics class. We knew that it was out there, and that the final exam would have a question about it, but no-one understood it or had ever seen it. A bit like unicorns or fairies.

The lecture notes were unhelpful. They told us what it did - make things wrongly appear to change over time when actually stuff stayed the same - but not what it was. Some people claimed to get it, but they couldn't explain it to others.

I now see that our mistake was in thinking that there's some thing called "regression to the mean". There isn't. It's just a rather unhelpful term for what happens in a certain kind of situation, and once you understand those situations, there's nothing more to learn.

Suppose there's a number, which varies over time, and at least some of this variation is random. It could be anything from the number of sunspots to rates of cancer. You get interested in this number whenever it gets very high (or very low). Whenever it does, you start tracking the number for a while. Maybe you even try to change it. You notice that the number always seems to be falling (or rising). Why?

Because you only get interested in the number when it's, by chance, unusually high. The chances are, the next time you look at it, it will be lower: not for any interesting reason, or because "what goes up must come down", but just because if you take an unusually high number and then generate a new number at random, it'll probably be lower. That's why the first number was "unusually high".

Suppose that you take some people and give them an IQ test twice, a week apart. Call the first test "X" and the second test "Y". Suppose it's a crap test that gives entirely random results. Here's what might happen if you gave the test to 100 people, with each dot a person:
There's no correlation, because X and Y are both random junk. Nothing to see, move along. But wait a second...
Here's X, first test score, plotted vs Y-X i.e. the change in score between the first test and the second. There's a strong negative correlation: people who did well on the first test tended to get worse, and people who did badly, tended to improve. Wow? No. This is a purely statistical effect. It's meaningless: the "correlation" exists only because we're correlating X with itself (in the form of Y-X).

It's a fundamental mistake, and it's obvious when you look at it like this, yet it's a surprisingly easy one to make without noticing. Imagine that you'd invented a pill that you think can make people smarter. You decide to test it on "stupid people", because they're the ones who need it most. So you give lots of people an IQ test (X), select the worst 10%, and give them the drug. Then you re-test them afterwards (Y). Whoa! They've improved! The drug works!

There's only one stupid person involved in this experiment.

This remains true, even if the IQ tests aren't entirely random. A test that measures real intelligence will also have an element of luck. By selecting the bottom 10% of scores, you're selecting people who are both unintelligent and unlucky when they took the test. They'd have scored 11% if they were lucky. So the same problem applies, albeit to a lesser degree.

That's really all there is to "regression to the mean". The regression of high or low scores towards the mean score is inevitable, given our definition of "high" and "low" scores, to the extent that scores are random. This is why I said it's unhelpful to think of it as a thing. The trick is being able to spot it when it happens, and to avoid being mislead by it. If you're not careful, it can happen anywhere.

Interestingly, the reason why it's thought of in this unhelpful way is probably because the "discoverer" of regression-to-the-mean, Francis Galton, misunderstood it. He observed this "effect" in some data he'd collected about human height, and he wrongly interpreted it as a real biological fact about genetics. Eventually, people noticed the statistical mistake, but the idea of "regression to the mean" stuck, to the dismay of undergraduates everywhere.

Link: This was inspired by a post on Dorothy Bishop's blog, Three ways to improve cognitive test scores without intervention.

Monday, August 23, 2010

Fish Out Of Water, On Ketamine

Ketamine is a drug of many talents. Used medically as an anesthetic in animals and, sometimes, in humans, it's also become widely used recreationally despite, or perhaps because of, its reputation as a "horse tranquilizer".

Ketamine's also a hot topic in research at the moment for two reasons: it's considered an interesting way of provoking the symptoms of schizophrenia, and it's also shown promise as a fast-acting antidepressant.

Anyway, most ketamine research to date has been done in either humans or in rodents, but New York pharmacologists Zakhary et al decided to see what it does to fish. So they put some ketamine in the fishes water and saw what happened: A Behavioral and Molecular Analysis of Ketamine in Zebrafish.

A high dose, 0.8%, just made the fish unconscious. Well, it is an anesthetic. But a low dose (0.2%) had rather more complex effects. It sent them literally loopy - they started swimming around and around in circles, usually in a clockwise direction. Control zebrafish swam about and explored their tanks without any circling behaviours.

They also examined the effect of ketamine on the "hypoxic stress" response, i.e. what happens when you take the fish out of water (only for 20 seconds, so it doesn't cause any real harm.) Normal fish struggle and gasp for water in this situation, unsurprisingly. Ketamine strongly inhibited this.

So what? Well, it's hard to say what this might mean. It would be great if the zebrafish turned out to be a useful experimental model for investigating the effects of ketamine and similar drugs, because they're much easier to work with than rodents (for one thing, it's a lot easier to just put a drug in a fish tank than to inject it into a mouse.)

However, it remains to be seen whether swimming in circles is a useful analog of the human effects of ketamine. Ketamine can make people act in some pretty stupid ways, but walking around in little circles is extreme even by K-head standards...

Link: I've blogged about ketamine before: I'm On K, You're On K.

ResearchBlogging.orgZakhary SM, Ayubcha D, Ansari F, Kamran K, Karim M, Leheste JR, Horowitz JM, & Torres G (2010). A behavioral and molecular analysis of ketamine in zebrafish. Synapse (New York, N.Y.) PMID: 20623473

Fish Out Of Water, On Ketamine

Ketamine is a drug of many talents. Used medically as an anesthetic in animals and, sometimes, in humans, it's also become widely used recreationally despite, or perhaps because of, its reputation as a "horse tranquilizer".

Ketamine's also a hot topic in research at the moment for two reasons: it's considered an interesting way of provoking the symptoms of schizophrenia, and it's also shown promise as a fast-acting antidepressant.

Anyway, most ketamine research to date has been done in either humans or in rodents, but New York pharmacologists Zakhary et al decided to see what it does to fish. So they put some ketamine in the fishes water and saw what happened: A Behavioral and Molecular Analysis of Ketamine in Zebrafish.

A high dose, 0.8%, just made the fish unconscious. Well, it is an anesthetic. But a low dose (0.2%) had rather more complex effects. It sent them literally loopy - they started swimming around and around in circles, usually in a clockwise direction. Control zebrafish swam about and explored their tanks without any circling behaviours.

They also examined the effect of ketamine on the "hypoxic stress" response, i.e. what happens when you take the fish out of water (only for 20 seconds, so it doesn't cause any real harm.) Normal fish struggle and gasp for water in this situation, unsurprisingly. Ketamine strongly inhibited this.

So what? Well, it's hard to say what this might mean. It would be great if the zebrafish turned out to be a useful experimental model for investigating the effects of ketamine and similar drugs, because they're much easier to work with than rodents (for one thing, it's a lot easier to just put a drug in a fish tank than to inject it into a mouse.)

However, it remains to be seen whether swimming in circles is a useful analog of the human effects of ketamine. Ketamine can make people act in some pretty stupid ways, but walking around in little circles is extreme even by K-head standards...

Link: I've blogged about ketamine before: I'm On K, You're On K.

ResearchBlogging.orgZakhary SM, Ayubcha D, Ansari F, Kamran K, Karim M, Leheste JR, Horowitz JM, & Torres G (2010). A behavioral and molecular analysis of ketamine in zebrafish. Synapse (New York, N.Y.) PMID: 20623473

Sunday, August 22, 2010

UM POUQUINHO DA VIAGEM A SP-BIENAL.

CONFORME PROMETIDO EIS AS FOTOS.

UM POUQUINHO DA VIAGEM A SÃO PAULO.
VISITANDO A BIENAL E DEMAIS LUGARES.
NÃO POSTAREI TUDO. FICARIA MUITO EXTENSA A POSTAGEM.






TORRE DO BANESPA-

São 161,22 metros de concreto armado, que contam com alguns requintes como o saguão principal, paredes em mármore e piso todo em granito.

http://www.fortalsampa.hpg.com.br/images/Sp-edbanespa1.gif
A Torre Banespa, com acesso por um lance de escadas a partir do 34º andar, é uma das grandes atrações do Prédio, pois possui um mirante com 360º que oferece uma deslumbrante vista panorâmica do centro da cidade.





COFRE ANTIGO-DENTRO DO BANESPA
LUSTRE TODO EM VIDRO
Em 1988, o hall de entrada do edifício foi adornado com um lustre de 13 metros de altura, pesando 1,5 tonelada. A peça conta com 150 lâmpadas e 10 mil acessórios de cristal.Esta foto eu peguei na net. para se ter a noção da altura da torre
http://i638.photobucket.com/albums/uu110/uliloppes/28ago2009006.jpg

http://sampa.art.br/historia/edificiobanespa/torrebanespa/images/antonio-prado.gif


VISITANDO A PINACOTECA. SUPER LEGAL. MUSEU DA LINGUÁ PORTUGUESA.
DENTRO DA ESTAÇÃO LUZ.
HOTEL ONDE PASSAMOS A NOITE. TUDO MUITO GOSTOSO.


PRAÇA DA SÉ. FRENTE A IGREJA.


ESTAÇÃO PARQUE DA LUZ

A Estação da Luz ocupa 7.500 metros quadrados do Jardim da Luz e foi construída entre 1895 e 1901 para substituir a primitiva estação de 1867, idealizada pelo barão de Mauá. A estação, com projeto de estilo vitoriano e material importado, já nasceu como a principal da Companhia São Paulo Railway e tinha como responsável o engenheiro James Ford. Marco histórico para a cidade, foi responsável pelo escoamento da produção de café. O seu relógio era referência para acertos na cidade.


MUSEU IPIRANGA.
O Museu do Ipiranga, oficialmente Museu Paulista da Universidade de São Paulo, é um dos mais importantes museus de história do país e um dos mais visitados.

Em frente, ficam os jardins, uma réplica em tamanho reduzido dos jardins do Palácio de Versailles, obra do paisagista Arsênio Puttemans. Encontra-se também a Casa do Grito, o Monumento da Independência e a capela Imperial Leopoldina. A iluminação especial noturna, que revela detalhes arquitetônicos do prédio, só ocorre em datas especiais, como 7 de setembro.

Parte do conjunto arquitetônico do Parque da Independência, o belo edifício de estilo eclético, com 123 metros de comprimento e 16 metros de profundidade, teve sua inspiração em um palácio renascentista, o que explica a riqueza de seus elementos decorativos.
Foi inaugurado em 15 de novembro de 1890, o primeiro aniversário da República Brasileira, e os lindos jardins que o adornam acrescidos em 1909.
Seu impressionante acervo de mais de 125 mil peças, entre esculturas, quadros, jóias, moedas, medalhas, móveis, documentos e utensílios de bandeirantes e índios, iconografia e documentação, desde o século XVI até meados do século XX, todos com alguma relação com a Independência do Brasil, visa mostrar principalmente o importante papel dos paulistas na história do país.

O prédio do Museu do Ipiranga foi construído às margens do riacho do Ipiranga, onde D. Pedro I declarou a independência do país em 1822. A majestosa construção, em estilo neoclássico renascentista, está situada ao fundo do Parque da Independência, conferindo ao local um ar de palácio europeu.


FOTO NA NET, NÃO É PERMITIDO TIRAR FOTO NO ESPAÇO

IDEM... ESCADARIA QUE DÁ ACESSO AOS ANDARES. TUDO MUITO LINDO!!!!
FOI UM FINAL DE SEMANA MUITO ESPECIAL. 11 Á 14 DE AGOSTO.
VALEU A PENA...

GRADEÇO A SUA COMPANHIA!!!Clique Aqui e veja mais imagens

Poetas-Um Voo Livre-

Sinal de Liberdade-uma expressão de sentimento-

Blog Coletivo-Uma Interação de Amigos-
COLETIVAS-COMPARTILHE. TEM -TURISMO RURAL-CONHEÇA UM POUQUINHO DESSE LUGAR ..VOU TE ESPERAR POR LÁ.

MEUS MIMOS . AQUI. OFERECIDOS/RECEBIDOS-