Can you spot the statistical errors?

Statistical errors are unfortunately common. It is important that you can recognise these to make your conclusions as accurate and time efficient as possible. In this blog, we provide four examples so you can identify the flaws.

Read on to find out more about statistical error examples and how it might help you strengthen your research outcomes.

Can you spot the statistical errors in these examples?

Mistakes unfortunately happen in experimental design, statistical analysis and interpretation of statistical results. These mistakes lead to invalid and meaningless conclusions, and especially worryingly, poor and even downright dangerous decisions. So, it is important that we recognise and avoid the common traps, fishhooks and pitfalls. Below we describe several different scenarios, and ask: Can you spot the flaw? We’ll explain the flaws at the end of the blog.

Statistical error example #1 – Cow chow conundrum

alt text

The “No bull, just bovines” farmers’ collective from Moo Zealand commissioned an animal trial to compare the effect of a newly developed cow feed to the standard feed on the creaminess of milk. Twenty cows from 10 herds were recruited into the study. The two treatments of interest were randomly assigned to the herds, such that the cows in five herds received the new feed and the cows in the other five herds received the standard feed (as shown in the image below).

alt text

The creaminess of each cow’s milk was measured prior to treatment, and then again one month after treatment. The resulting data were analysed using a one-way ANCOVA in Genstat, with Feed as the treatment factor with 2 levels: New and Standard, and InitialCreaminess as the covariate. Below is a segment of the data along with the ANCOVA output. Can you spot the flaw?

alt textalt text

Statistical error example #2 – Little orphan lambie

alt text

Orphaned lambs are fed on milk replacers formulated to meet their nutritional needs. A milk replacer producer, Lambda and Sons, wanted to compare the growth of orphan lambs fed on their product, GrowthBuilder, to orphan lambs fed on their competitor’s product, GroLamb.

They purchased a bag of GroLamb from the store and grabbed a bag of GrowthBuilder from their warehouse. Lambs were randomly assigned to the two treatment groups, GrowthBuilder or GroLamb, and their weights recorded over time. The resulting data (plotted below) was modelled using a repeated measures linear mixed model. Based on this study, Lambda and Sons ran an advertising campaign claiming that lambs fed on their product, GrowthBuilder, grew faster than lambs fed on their competitor’s product. Can you spot the flaw?

alt text

Statistical error example #3 – Can’t get no satisfaction?

MegaBioTechCorp, a large biotech company, wanted to improve their employees’ job satisfaction levels. They hired a specialised HR consultancy firm to help them. The HR consultants began by surveying a random sample of employees (approximately 20% of the company) to get an estimate of the baseline job satisfaction level at MegaBioTechCorp.

The HR consultants then recommended a swag of initiatives aimed at improving employee job satisfaction, which MegaBioTechCorp faithfully implemented. After two months the HR consultants returned, surveyed another random sample of employees (again, approximately 20% of the company), and re-estimated the employee job satisfaction level.
The baseline and post-intervention surveys both asked the same questions, both surveys were anonymous, and all employees selected in the two random samples were required to complete their survey – thus the response rate for both surveys was 100%.
For every individual surveyed, the HR consultants calculated a “job satisfaction score”. To see if the intervention had improved the average job satisfaction score, the HR company performed a two-sample one-sided t-test. Can you spot the flaw?

alt text

Statistical error example #4 – Colour me amazed

alt text

Some gecko species can rapidly change body colour to better blend in with their surroundings, helping them to avoid predators. Herpetologist, Dr Liz Ard, has discovered a new species of gecko and she wants to know whether it can rapidly change body colour.

To investigate this, Dr Ard captured a gecko and immediately placed it in one of three coloured plastic containers:

  • green like vegetation
  • brown like leaf litter
  • grey like stones.

Using a spectrophotometer, she measured its body colour immediately after placement in the container (time 0), and then every minute for 10 minutes. Dr Ard then released the gecko and went off to capture another gecko. She repeated this process until she had tested 20 different geckos in each of all three colour treatments. Note: Dr Ard randomised the order of the three colour treatments and also used a fresh plastic container for each colour treatment in every gecko test.

In her experiment, Dr Ard observed geckos rapidly changing colour in all colour treatments. Therefore, in her research paper, Dr Ard concluded that her study provided evidence that this new species of gecko can rapidly change body colour when exposed to a differently coloured surrounding. Can you spot the flaw?

What were the flaws in the statistical error examples?

Statistical error example #1 – Flaw

The cow within herd structure hasn’t been accounted for in the statistical analysis, resulting in pseudo-replication. Pseudo-replication occurs when data, in this case the observations on the individual cows, are treated as independent when they are not. We should expect cows in the same herd to be more alike than cows from different herds (e.g., due to environmental or genetic factors).

Moreover, the treatments have been randomly assigned at the herd level, not at the individual cow level. Thus, the herds NOT the cows are the experimental units, and this needs to be properly accounted for in the analysis.

To account for the cow within herd structure in the ANCOVA, herd should be included as a blocking factor. Doing so, results in the following output:

alt text

By correctly accounting for the cow within herd structure, the ANCOVA has recognised that the true replication is at the herd level. As there are five herds per treatment, this gives 7 residual degrees of freedom (as there are three parameters being predicted: the overall mean, the Feed effect, and the InitialCreaminess covariate effect).

Yet, notice that in the first, incorrect, ANCOVA the residual degrees of freedom are a whopping 197! By ignoring the cow within herd structure, the analysis incorrectly treats the individual cows as independent, erroneously resulting in 100 replicates per treatment, and grossly inflating the residual degrees of freedom! Consequently, the p-value for the Feed effect is invalid, and the standard error of the difference (s.e.d.) between the two treatment means is incorrect.

You can learn more about pseudo-replication, and how to identify and deal with it, in the blog Dealing with pseudo-replication in linear mixed models.

Statistical error example #2 – Flaw

There isn’t any independent replication of either of the two milk replacer products. We should expect that different bags of milk replacer (and to an even greater extent, bags from different batches) to vary, but the experiment hasn’t captured this important source of variation. Using the data from this experiment, we can compare the lamb’s growth rates between only the two bags – one of which happens to be a bag of GroLamb, and the other which happens to be a bag of GrowthBuilder. However, crucially, we don’t have any foundation to generalise the results more broadly to the two different brands of milk replacer. Thus, Lambda and Sons have over interpreted the results from their experiment by generalising it to “other bags” of milk replacer. This single batch problem happens a lot in experimental research. Sometimes it can’t be avoided, but other times it has simply not been thought about carefully.

Statistical error example #3 – Flaw

If you’re interested in change, you should measure it! In this scenario, MegaBioTechCorp and the HR company are interested in whether their initiatives have in fact improved employee job satisfaction. That is, they are interested in the change in employee job satisfaction scores between baseline and post intervention. However, they haven’t actually measured change directly when they could have. This is because they took a different random sample of employees each time, with no way of matching two responses from the same employee, if in fact there were any.

The HR consultants’ approach isn’t actually wrong – it will give unbiased estimates of the mean scores at baseline and post-intervention BUT their approach isn’t the most powerful. A more powerful approach would have been to survey the same random sample of employees at both baseline and post-intervention, and match (i.e., pair) their responses. (Note, a procedure for matching the survey data from the same employee without compromising their anonymity would of course need to be implemented). A paired, one-way t-test could then be used to assess whether the mean score post-intervention was higher than that at baseline. This paired t-test is more powerful than the unpaired t-test that was performed because it allows us to control for between-employee variation. That is, variation other than that caused by the effect we are testing for.

Statistical error example #4 – Flaw

This study doesn’t have a proper control. It is possible that the geckos may change body colour simply because of how they are being handled in the experiment, and not related to the treatments. For example, the geckos may have changed body colour as a result of Dr Ard handling them – or in response to being placed on plastic, which is a foreign surface to them. To untangle such nuisance effects from the treatment effect, we need a control treatment.  In animal trials, this is often referred to as a sham treatment (in human trials, this is known as a placebo treatment). A sham treatment mimics as closely as possible the motions of the actual treatment, without actually performing the treatment.

But what is an appropriate sham treatment for Dr Ard’s experiment?  Having pondered on this for some time, it’s not clear that designing a good sham treatment is even possible under the current experimental set-up! Nonetheless it might be if we changed the experimental design and/or set-up. For example, after capturing a gecko, Dr Ard could initially place it in a control-coloured plastic container (say white) and after allowing it habituate to that environment, move it to either one of the three treatment-coloured containers or to another control-coloured container. The movement from a control container to another control container would then constitute a sham treatment. And if body colour changes when geckos are moved from the control container to the treatment containers, but not when moved to another control container, Dr Ard can infer that the colour change is due to the treatment (i.e., exposure to a differently coloured surrounding) and not caused by some other nuisance factor.

Balancing practicality and statistical rigor

However, one of the many challenges of real-world research is that what’s a “good idea” from a statistical perspective may not be a “good idea”, or even feasible, from a practical perspective!  If Dr Ard can’t change her experimental set-up, all is not lost!  She just needs to be a bit more careful when drawing her conclusions. Dr Ard did observe geckos rapidly changing body colour in her experiment. Thus, rather than concluding that the “new species of gecko can rapidly change body colour when exposed to a differently coloured surrounding.” she should simply conclude that “this new species of gecko can rapidly change body colour.”

Final thoughts

Our complete software packages are available to analyse, summarise and present data efficiently. Genstat is suitable for most fields of research. If you need further advice on finding statistical errors, check out our Consultancy service or contact a member of the VSNi team.

Picture of Dr. Vanessa Cave
Dr. Vanessa Cave
Dr. Vanessa Cave is an applied statistician interested in the application of statistics to the biosciences, in particular agriculture and ecology, and is a developer of the Genstat statistical software package. She has over 15 years of experience collaborating with scientists, using statistics to solve real-world problems. Vanessa provides expertise on experiment and survey design, data collection and management, statistical analysis, and the interpretation of statistical findings. Her interests include statistical consultancy, mixed models, multivariate methods, statistical ecology, statistical graphics and data visualisation, and the statistical challenges related to digital agriculture. Vanessa is a past President of both the Australasian Region of the International Biometric Society and the New Zealand Statistical Association, on the Editorial Board of The New Zealand Veterinary Journal and an honorary academic at the University of Auckland. She has a PhD in statistics from the University of St Andrew.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Related articles

How much of the variation in your field trial comes from the treatments, and how much comes from...
What should you do when count data are more variable than your model expects? Vanessa Cave and David...
Precision breeding can deliver scientifically impressive traits, but practical value depends on more than technical success. Owen McIntosh...