In detecting a climate change trend we look in the historical record for a statistically significant effect which is consistent with our understanding of what climate change should do. Note there are two parts to this: the first is identifying a significant effect which rejects the null hypothesis that there is no effect; and the second has a prior expectation in what we should see. In this short post I address the first part.
The amount of credibility in the null hypothesis is measured by the p-value, with small values indicating strong evidence to reject the null hypothesis. The table below taken from Elsner and Jagger (2013) gives a neat summary of how to interpret p-values. However whether to reject the null hypothesis is subjective and depends on how much evidence is convincing for you.
p-value | Evidence against Null |
---|---|
0-0.01 | Convincing |
0.01-0.05 | Moderate |
0.05-0.15 | Suggestive but inconclusive |
>0.15 | No |
You want to avoid making errors, of which there are two types: a Type I error is where you say climate change is having an effect but it actually isn't; and a Type II error is where you say climate change is not having an effect but it actually is. It is more difficult to avoid Type I errors so it has a more stringent p-value threshold of 0.05. To avoid Type II errors the p-value threshold is 0.10 (Knutson et al, 2019; Lloyd and Oreskes, 2018).
Lloyd and Oreskes (2018) argue that climate scientists should avoid Type I errors but risk managers, that is those working in catastrophe insurance, should avoid Type II errors because if a risk manager ignores a detrimental climate change effect when there actually is one it could be costly.
As the world waits and hopes for a vaccine against Covid-19, the vaccine contenders must first be trialled. Let's say you have k doses of a vaccine and m volunteers. Each volunteer is assigned a random dose, independently of the others. Each dose is different and can be uniquely identified. A collision occurs whenever a volunteer is assigned a dose that has already been assigned to someone else. This situation is analogous to collisions occurring in a hashing system, and I've shamelessly copied the example in the SSJ tutorial and shoehorned in the vaccine example.
We want to estimate the number of collisions (C) that can occur. Using the Stochastic Simulation in Java (SSJ) library developed by Pierre L'Ecuyer of the University of Montreal, we can estimate the probability distribution of C, its expection E[C] and its 95% Confidence Interval (CI95%).
By mid-May Dr Sarah Gilbert team's vaccine hoped to have vaccinated around 500 volunteers (m = 500). If they prepared k doses, and attempted to randomly assign them, how many collisions would they expect to find? You would expect fewer collisions with a larger number of doses to draw from. Let's take k equal to 5,000, 10,000, 50,000 and 100,000 and estimate E[C]. Indeed our expectations are met as shown in the table below. These results were generated by running 10,000 simulations for each value of k.
Number of Doses (k) | Expected Number of Collisions | CI95% |
---|---|---|
5000 | 24.16 | (24.07, 24.25) |
10000 | 12.29 | (12.22, 12.35) |
50000 | 2.48 | (2.45, 2.51) |
100000 | 1.25 | (1.23, 1.27) |
Creating 100,000 doses of a vaccine just to avoid collisions during assignment would not be sensible. I expect that in practise volunteers are not randomly assigned to a dose but rather a dose is assigned to a volunteer using a first-come-first-serve method and collisions are avoided. You will have spare doses just in case some are tampered with or lost but not 100,000. My example here is contrived because I wanted to study SSJ.
In a 4-Aug interview on the BBC's HARDtalk programme, Sir Jeremy Farrar said the UK responded late, it should have imposed the nationwide "lockdown" sooner and we should have done more testing earlier. The nationwide lockdown was announced on 23 March, but Farrar says a week earlier would have saved many lives.
To gauge when Covid-19 became prominent in national thought I looked through old episodes of the BBC's Question Time. Covid-19 first became the opening question on 27 February when the panel was asked, "Is the Government prepared for a Coronavirus pandemic?" The subsequent episodes are dominated by the pandemic and this very question. Two weeks later, on 12 March, Professor John Ashton appears on the panel heavily criticising the response of Public Health England. His comments seem very prescient now, particularly his point about letting Spanish football fans enter England and attend the football match against Liverpool, as it was later found by Professor Tim Spector that the Northwest became a viral hotspot. I remember when the Chief Scientific Advisor, Sir Patrick Vallance, was asked about why large public gatherings were still allowed to go ahead in the middle of March. Vallance argued that since one infected person would on average infect 2 or 3 people and the virus is most likely to spread in indoor environments among family, friends and colleagues, then the risk from large crowds is relatively less and should still go ahead (see 33 minutes in on 12 March). This was not a strong argument. The R number is affected by human behaviour and the more mixing of people the larger its value can be.
On 1 February Covid-19 first became an editorial item for The Lancet. The following week it published a comment article from Beijing academics on the virus. The Lancet published an article on 22 February which made it clear that non-pharmaceutical intervention is needed and listed eight guidelines from the World Health Organisation. These guidelines emphasised the need for testing, tracking, tracing and isolation. This containment strategy was later shown to explain the subexponential growth of confirmed cases in China (Maier and Brockmann, 2020).
If the UK is to prevent a second wave as bad as the first, it needs an effective containment strategy. This requires the ability to test at a high and efficient rate. It requires good communication between authorities and the public. And it requires the willingness of the public to get tested and isolate if they are showing symptoms or have been asked to isolate.
PS. On 11 August, BBC Radio 4 aired Led by the Science, a programme about how scientific advice has been used during the pandemic. Highly recommended.
I am changing the format of my blog posts. Previous posts have a separate page but now all the posts for the year will be on one page, with each post having its own segment. This style is more like a journal.
I have also changed how I write and process a post. I was previously writing all the html code but now I will write the post in markdown and use pandoc to convert that to html. This html is then injected into the published html file which contains all the posts for the year. I have written a bash script to automate the process and shared it below. To display the bash code in the browser I have wrapped it in the pre tag and changed < to &lt and > to &gt.
#!/bin/bash # update.sh # PURPOSE: File takes two inputs: name of *.html file being updated and # the *.md file being added. The md content becomes a new section with a # href added to the top. FILE=$1 # file.html ADD=$2 # newcontent.md # First bit awk '/DOCTYPE/{a=1};a;/<hr>/{exit}' $FILE > top.html # look for first hr awk '/<hr>/,/<\/html>/' $FILE > bottom.html # look for most recent post DATE=`date +"%Y%m%d"` ID="id"$DATE"-post" LINE1="<article id="\"$ID\"">" LINE2="</article>" echo $LINE1 >> top.html # MD bit pandoc $ADD -o middle.html cat middle.html >> top.html echo $LINE2 >> top.html # Last bit cat bottom.html >> top.html cat top.html > $FILE rm top.html bottom.html middle.html # Add href date of post HREF=`awk '/#id2020/' $FILE` NICEDATE=`date +"%dth %B"` NEW=$HREF" | <a href="\""#"$ID\"">"$NICEDATE"</a>" sed -i "s:$HREF:$NEW:g" $FILE
Before running this script remember to make it executable using:
$ chmod +x update.sh
The script require two inputs: (1) file.html being updated, and; (2) new.md being added. It should run with the following. I hope this will make it easier and quicker to write and publish posts.
$ ./update.sh "file.html" "new.md"