Showing posts with label Davide Piffer. Show all posts
Showing posts with label Davide Piffer. Show all posts

Thursday, January 15, 2015

Predicting IQ across the world from genotypes

Early days for this - I wrote about it last November, where I tried to 'predict' my own IQ. Now a much better article has appeared, written by Anatoly Karlin. Interesting stuff, highlighting the ground-breaking research of Davide Piffer.

Friday, November 07, 2014

Estimating IQ from genotype

This post is a simple back of the envelope calculation based on Davide Piffer's paper as discussed in my earlier post.

First a quick reminder about opinion polls and sampling.

Opinion Polls

We assume a large population of interest and we sample n individuals (often 1,000) with a yes-no question. Something like "Are you going to vote for the Labour Party in the forthcoming election?" We want to know how likely it is that the population as a whole votes in the same proportions as found in our survey. Suppose p is the fraction of the sample-population who tell us they will vote yes (example: 0.32).

This is just the same as throwing a biased coin (Heads with probability 0.32) a thousand times and seeing how many Heads we actually get. Clearly on average we'll get 320 Heads [the mean of our sample is np]. Of more interest, however, is the standard deviation of the mean if we took sample after sample (or coin-throwing exercise after coin-throwing exercise). We would like to know the upper and lower bounds of 'yes' respondents we would get in, say, 95% of the samples we took, corresponding to +/- 1.96 standard deviations. We can be pretty confident that those bounds would play out in real life (nineteen times out of 20).

The standard deviation of a binomial distribution, which is what we have here, is √(npq) where n is the size of the sample (example, 1,000), p is the probability of the 'yes' outcome (example: 0.32) and q is the probability of the 'no' outcome (0.68 = 1-p).

The 95% confidence interval around the mean np is +/- 1.96 standard deviations - which we approximate here to 2. We also approximate p and q to 0.5 as this is the largest value of √(pq).

Plugging the numbers in, we get the 95% confidence interval as: 2 times √(0.5 x 0.5 x n) = √n.

In our running example with 1,000 people sampled (√1000 equals around 32), this tells us that the interval 320 +/- 32 will  contain the number of 'yes' answers we'll get 95% of the time. We sometime prefer to have the results as a proportion, usually written as a percentage, in which case we divide everything by n.

The mean number of 'yes' voters here is 320/1,000 = np/n = p (0.32 or 32%).

The 95% confidence interval here is 32/1,000 = √n/n = 1/√n  (usually described as +/- 3%).

Note that if we had sampled just 100 voters, we would have a 95% confidence interval of +/- 1/√100 = +/- 10%. We're already losing quite a bit of predictive power.

Asking just 10 people, the 95% confidence interval is 1/√10 = 0.32 = approx. 30%. So the three people who said they'd vote 'yes' .. in multiple surveys that number could dip as low as zero and as high as six. Pretty much worthless in forecasting the election.

---

To apply this to IQ I'm going to use the data in Davide Piffer's paper, as discussed in my earlier post - to which you may need to refer.

Looking at my own results I had 16 alleles to play with, of which 7 were 'good for intelligence'. So this is an opinion poll where I was able to survey only 16 people. Duh!

My computed allele frequency was 44% against a European average of 35.5% so I'm 8.5 percentage points up from the average.

Looking at the Chinese/Japanese figures we see an allele frequency score of 39.1% (a difference of 3.6% from the European mean) which corresponds to an IQ difference of 5 IQ points from Europeans. I'm going to assume a linear relation - an additive model.

To convert a difference of mean allele frequency to IQ difference we multiple by 5/3.6 = 1.4. So the estimate of my IQ is 8.5 * 1.4 = 12 points above the European average of 100. In my incorrigible vanity I'd like to believe that 112 is rather on the low side! What is the 95% confidence interval for this calculation?

Since n = 16, and following the path described above, the 95% confidence interval is +/- 1/√16 = 25%.

That's the allele frequency limits so my true allele frequency (of those hundreds or thousands of 'good alleles driving IQ') is probably in the range 44% +/- 25% or [19%, 69%]. To change these limits into IQ scores multiply the confidence interval of +/-25%  by 1.4 giving +/- 35 IQ points

We may be 95% confident that my IQ is in the range [77, 147].

So I guess we can be 95% confident that I'm neither extremely educationally subnormal nor Albert Einstein!

The take-home message is that we need hundreds of alleles to give us a big enough sample to get the error bounds down. The concordance of twins brought up together for IQ is around 0.86 so non-genetic factors will still prevent us getting all the way.

BTW we're just a few years from getting to that 'hundreds of IQ-affecting alleles' point, so although this is a fun exercise, reality will be along soon enough.

Thursday, November 06, 2014

The genetics of intelligence - early results

Refer to text below to understand this
A somewhat overlooked paper: "Factor Analysis of Population Allele Frequencies as a Simple, Novel Method of Detecting Signals of Recent Polygenic Selection: The Example of Educational Attainment and IQ" available here.

This is how Peter Frost summarises the paper.
"We know that human intellectual capacity has risen through small incremental changes at very many genes, probably hundreds if not thousands. Have these changes been the same in all populations?

"Davide Piffer (2013) has tried to answer this question by using a small subset of these genes. He began with seven SNPs whose different alleles are associated with differences in performance on PISA or IQ tests. Then, for fifty human populations, he looked up the prevalence of each allele that seems to increase performance. Finally, for each population, he calculated the average prevalence of these alleles at all seven genes.

"The average prevalence was 39% among East Asians, 36% among Europeans, 32% among Amerindians, 24% among Melanesians and Papuan-New Guineans, and 16% among sub-Saharan Africans. The lowest scores were among San Bushmen (6%) and Mbuti Pygmies (5%). A related finding is that all but one of the alleles are specific to humans and not shared with ancestral primates.

"Yes, he was using a small subset of genes that influence intellectual capacity. But you don't need a big number to get the big picture. If you dip your hand into a barrel of differently colored jelly beans, the colors you see in your hand will match well enough what's in the barrel. In any case, if the same trend holds up with a subset of 50 or so genes, it will be hard to say it's all due to chance."
The alleles which Piffer frequency-analysed differentially code for things like:
"... the regulation of neuronal morphology in neurons, including hippocampal neurons and developing brains"

"... neuronal excitability, synaptic plasticity and feedback regulation of acetylcholine release."
Ten or so SNPs don't determine very much of a person's intelligence, which depends upon the actions of hundreds or thousands of genes as well as environmental effects. But even a small sample - if representative and correlated - can be quite predictive, as Piffer explains.
"As the effect size of each SNP is typically very low (around 0.1%), even 10 SNPs would not account for more than 1% of the variance in IQ or educational attainment scores across populations. The likely explanation for why the effect size for the 10 SNPs at a cross population level detected in this study is so high (around 80%), is that the alleles are not randomly distributed across human races, so that the combined frequency of a few alleles predicts the frequencies of many other alleles affecting the same phenotype. This inflates the correlation with the phenotype well beyond anything that would be explainable by the modest effect sizes of the examined SNPs.

"This is nothing more than the principle applied to psychometric instruments, such as IQ tests or personality scales, where a handful of items produce a reliable score, precisely because these items represent an underlying, latent factor and are thus correlated among each other. Even reliable psychometric scales are usually composed of around 10 items, equal to the number of SNPs examined in the present study, which in turn showed good internal reliability (Cronbach’s α= 0.84).

"A model based on random evolution or genetic drift alone cannot account for such a pattern."
The particular SNPs used in the study are listed in the tables at the back of the paper. I was naturally interested in checking which of these SNPs are analysed by 23andMe. It turns out that about half are. So in the graphic above you see the 'good for intelligence' SNPs in the first column, the gene name (where available) in the second and the chromosome it's on (from 23andMe) in the third. The fourth column is the specific nucleotide which marks this as a 'good-for-intelligence' allele, and the fifth is the database where the source-data came from (refer to the paper for details). The final column is my own genotype at these alleles, as downloaded from 23andMe.

Here is an Excel workbook for you to try yourself. Hint: download your 23andMe results and load into an Excel spreadsheet; then search on the rs SNP identifiers.

There are sixteen alleles (2 x 8) which are both 'good' and available from 23andMe. Of these 16, you will see that I have 7 'good' ones, so my personal 'frequency' is 7/16 = 0.44. This sounds terrible, but in fact the European average frequency for these 'good alleles' is 35.5% and the East Asian (Chinese, Japanese) average frequency is 39.1. This number of alleles is too small to be a good estimator of anyone's overall IQ though.

The message of Piffer's paper is that, as humans radiated out of Africa, a rising tide of natural selection drove novel alleles coding for increased intelligence to higher and higher population frequencies. This emerges clearly from the  SNPs analysed in the paper, and is by hypothesis true for the rest too. It appears that selection for higher intelligence has been more, rather than less, intense over the last 10,000 years - possibly reflecting the cognitive demands of agrarian, pastoral and yet more complex modern civilisations.

More to come, undoubtedly as the larger scale GWAS studies begin to deliver.