> If you naively extrapolate from the 2013 Pew Poll The World’s Muslims: Religion, Politics and Society (which in principle represents nations with a total Muslim population of about 1 billion), 40% of these think you should be killed for leaving Islam.
And, if you actually read the study, you find this number is 28%, not 40%.
Global median (by region or country?) vs global mean by total population, computed from the raw data in the annex combined with some population figures from wikipedia.