Friday, May 31, 2019

Moving to Medium

I will now only be posting on Medium from now on, rather than here, so click here if you want to read any of my future posts. My previous posts will still be available here though.

Tuesday, May 28, 2019

Relationship between poll quality and President Trump's (dis)approval rating

Background: President Trump often touts Rasmussen approval rating polls that give him relatively favorable ratings (e.g. [1], [2]). Critics have responded by arguing, among other things, that "Rasmussen's polling has consistently been higher than other polls in evaluating approval for Trump" [3]. This hypothesis was systematically evaluated in the current analysis, as was the hypothesis that higher-quality polls (as measured by FiveThirtyEight's rating system) tended to give the president higher/lower (dis)approval ratings, on average. 

Methods: Trump presidential approval rating polling data was downloaded from this link (by clicking on the link labeled "presidential approval polls" at the bottom). Data were then analyzed to calculate average approval and disapproval ratings for polls with a) a specific letter grade from FiveThirtyEight, b) Rasmussen, and c) just all polls overall, to test for relationships of poll characteristics with the result.

Results: The average approval rating and disapproval rating across all polls was 42% and 54%, respectively. Letter grades for polls by agencies that had such grades assigned to them ranged from a minimum of D- to a maximum of A+. When grades were converted into a numerical score (D- = 1, then increasing by 1 more point for each letter-grade tier (D = 2, D+ = 3, C- = 4, etc.)), there was a strong negative correlation between letter grade and approval rating (r = -0.74), while the correlation between letter grade and disapproval rating proved to be very weakly positive (r = 0.06). There was also a fairly strong negative correlation between letter grade and net approval rating (the latter being % approval - % disapproval; r = -0.60). In addition, Rasmussen did indeed tend to produce higher average approval ratings for Trump than the average of all polls combined (47% vs. 42%), and it also produced lower average disapproval ratings (52% vs. 54%). Trump's average approval rating based only on the highest quality polls (A+ grade) is 41% and his disapproval rating based on such polls is 53%. Notably, this is also based on polls conducted during his entire presidency (so far); as such, it is unsurprising, but reassuring, that the average approval rating of 41% matches closely with the average of 40% estimated by Gallup.

Conclusions: I found strong evidence that higher quality polls tend to produce lower approval rating and net approval rating estimates, but no such effect was found for disapproval ratings, which tended not to systematically vary with FiveThirtyEight quality rating. On average, a 1-point increase in poll quality rating is associated with a 0.48% point decrease in Trump approval rating. Furthermore, I corroborated previous reports indicating that, on average, Rasmussen polls tend to lead to higher approval ratings for Trump (as well as lower disapproval ratings).

Thursday, May 23, 2019

Jerry Coyne's strategies on evolutionary biology

How does Jerry Coyne on his blog respond to (he would probably say "refutes") claims that we need to change the gene-centered neo-Darwinist view of evolution because of epigenetics and other phenomena? Of course there's more than one answer you can find from posts on his blog. But here are a few recurring ones:


  1. Ad hominem fallacy: Researchers arguing for the EES and/or a significant role of epigenetic inheritance are biased because they are funded by the Templeton Foundation, whose underlying ideological bias against old-school neo-Darwinism presumably invalidates all research ever funded by them. E.g. "[Proponent of epigenetics Michael] Skinner is eating well from the Templeton trough. It’s pretty clear that Templeton is deeply invested in showing that the “conventional” view of evolution and genetics is wrong, for they’ve also put millions into other researchers to that end."
  2. More ad hominems include: researchers being biased to exaggerate their conclusions because they want media attention for their claims of a paradigm shift, papers pushing transgenerational epigenetic inheritance are only published because of stupid biased scientists who have an unshakeable belief in this (presumably nonexistent) process, the media and the public's affinity for epigenetics stories, etc.
  3. Epigenetics is still fundamentally under genetic (DNA) control, so DNA-centrism is still valid. E.g. "the position of and influences on a cell can cause it to acquire methylation marks that turn it into difference courses of development: a liver cell, a kidney cell, a bone cell, and so on. But these changes, all inherited among cells in a single body, have resulted from natural selection: they’re adaptive because having different kinds of cells and tissues is adaptive.  What has happened is that the DNA program itself, within the egg, contains information that says “methylate cell X at genes Y and Z if it experiences condition C”, and so on."
  4. Epigenetic inheritance doesn't last long enough to cause long-term evolution: "...we have no examples of such acquired methylation lasting more than two or three generations, so there’s no evidence that it could serve as a stable basis of inheritance, much less of adaptation."
  5. Studies supposedly showing that such inheritance exists are "...more often than not flawed, relying on p-hacking, small sample sizes, and choosing covariates, like sex, until you get one that shows a significant effect". 
One especially absurd DNA-centric claim Coyne has made which I couldn't believe when I first read it is: "All heritable differences between species, in fact, must reside in the DNA; we know of no cases in which they don’t. Where else could they be?

I'm sorry, what? We already know more genes doesn't mean more complexity in organisms, so clearly the differences in gene regulatory networks rather than the genes themselves are what really matter in distinguishing species. Rejecting the idea that genes determine phenotypes is crucial to explaining how humans are different from flies/worms/other organisms w/about the same number of genes. "...the amount of direct genetic information present in, say, the human genome (now estimated to be around 30 000 protein-coding genes) is orders of magnitude below what would be necessary to actually specify the spatial location, functionality and connectivity among the trillions of cells that make up a human brain. The answer must be in the local deployment of information that is possible through developmental processes, where the ‘instructions’ can be used in a way that is sensitive (and therefore capable of adjusting) to both the internal and external environments." Moreover, DNA is not the only biological way (not even counting cultural transmission) for information to be inherited.

OK, so what if 3 is true but 4 is false? "...a methylation-sensing gene regulatory circuit centered on a 5-methylcytosine DNA glycosylase gene is required for long-term epigenetic fidelity in Arabidopsis." So you need DNA to make epigenetics stable across generations. But we see Coyne has created a way to potentially disprove him: you would need to show that epigenetics is stable over "more than two or three generations". Of course he claims no one has done this yet, or if they have it's Templeton-funded p-hacking media-attention-seeking garbage, but is this true? To quote the paper I linked to at the top of this paragraph, "In plants, DNA methylation patterns are faithfully inherited over many generations", and we also know this can happen in yeast too. So clearly Coyne is at least slightly wrong. Sometimes critics of this concept will claim it is valid, but only in non-mammal organisms, a view Coyne seems to share, yet again superficially dismissing studies contradicting this view by collectively accusing them of a smorgasbord of different methodological flaws. But of course he couldn't be bothered to go into detail about what these fatal flaws are in each study.

Tuesday, May 21, 2019

A meta-analysis of Joe Biden's support in primary polls.

Update: This meta-analysis is no longer being updated, so "regularly updated" has been removed from the title of this post.

This post outlines the methods and results of a simple meta-analysis of the % support received by Joe Biden in national 2020 Democratic primary polls. Currently, the meta-analysis includes 125 polls, all national polls obtained from FiveThirtyEight's poll aggregator. The effect size is the % of the vote Biden gets in a given poll, and the sample size is just the number of people polled. These polls included a total of 324,920 people. The meta-analysis was carried out in keeping with the instructions outlined here.

Note that I have only ever added polls to this meta-analysis, with one exception: an open-ended ABC/WaPo poll that I removed because it had an unusually high percent of respondents (35%) who said they were undecided, which also resulted in all the candidates' percentages being significantly deflated.

Due to high heterogeneity (I2 = 94.8), a random-effects meta-analysis was performed, yielding an effect summary of 30.5% (95% CI 29.6% - 31.4%). No evidence was found that smaller-sample polls were biased in Biden's favor: on the contrary, there was a moderate positive correlation between sample size and % support for Biden (r = 0.36).

Monday, May 20, 2019

Candidate-specific swing maps from 2016

The map below shows where Trump got a lower % of the vote than Romney (by >1%) in blue and higher % in red. If the diff. is <1% either way, the state is gray. Darkest shade = >10%, then 5-10%, then 3-5%, then 1-3% in decreasing order of darkness/solidness.


What about where Clinton got a higher % of the vote than 2012 Obama (same rules of course, but w/colors reversed regarding higher/lower)?
 This underscores how the 2016 election was indeed a Clinton loss more than a Trump win. Clinton lost a lot more ground in more places than Obama compared to Trump improving on Romney.