Publications by Michael Hunt

types_of_test

04.02.2021

So you have a hypothesis and now you also have some data. What type of test should you carry out to determine whether to reject the null hypothesis? That depends on what type of data you have and how many you have collected. We can use a simplified scheme for determing which test we need to use The one below is taken from Barnard et al (2007), �...

2345 sym 4 img

QQ-plots

13.02.2021

Michael Hunt Cornwall College Newquay 09-02-2021 Adapted from an exercise by Jon Yearsley (School of Biology and Environmental Science, UCD) Introduction Q-Q plots can play a useful role when trying to decide whether a dataset is normally distributed, and if it is not, then how it differs from normality. We will investigate the types of quantile...

5277 sym 5 img

test

10.02.2021

This is an R Markdown Notebook. When you execute code within the notebook, the results appear beneath the code. Try executing this chunk by clicking the Run button within the chunk or by placing your cursor inside it and pressing Cmd+Shift+Enter. plot(cars) New line Add a new chunk by clicking the Insert Chunk button on the toolbar or by pressin...

756 sym R (10 sym/1 pcs) 1 img

Proposal_assignment

08.02.2021

The Assignment Indicative word count: 1500 words In the real world, to do research, you will often have to seek permission or apply for funding. This is usually done via a research proposal. To be a successful researcher, you need to be very clear about what you are planning to do. This module, gives you the opportunity to learn the skills to do ...

5579 sym 2 img

Normal distribution and replicates

08.02.2021

We will investigate the probability distribution that is most central to statistics: the normal distribution. If we are confident that our data are nearly normal, that opens the door to many powerful statistical methods. Here we’ll use the graphical tools of R to assess the normality of our data. library(tidyverse) library(here) library(ggforti...

3461 sym R (3985 sym/26 pcs) 6 img

neodaas_bs

11.02.2021

Using R to do what Dan did in Excel, plus a couple of figures. A nice little exercise in the use of the dplyr package from the tidyverse collection of packages. If you want to try this for yourself: Set up a Project folder in R. You do that in RStudio using File /New Project then call the Project whatever you want. It’s best to always work in ...

1393 sym R (2025 sym/11 pcs) 2 img

stats_primer

16.04.2021

Based on the very helpful revision chapter in Modern Statistics for the Life Sciences, Alen Grafen and Rosie Hails, OUP. Populations and samples It is rarely possible to get an exact answer to a question. Normally we have to make do with an estimate, and this may vary from a rough estimate to a more precise one. One of the first tasks of statist...

34090 sym R (253 sym/1 pcs) 15 img 1 tbl

non_parametric_difference

15.03.2021

library(tidyverse) library(here) library(cowplot) Despite the importance of the normal distribution, you will often come across data that is not normally distributed. There can be many reasons for this. We need to be able to spot non-normal data when we have it, and then use the appropriate statistical test. Remember that many statistical tests o...

5601 sym R (1318 sym/9 pcs) 5 img

t-test

08.03.2021

Preliminaries In this exercise we find out how to use R to run a t-test, to determine whether there is evidence of a difference between two populations. We will also learn how to write and knit our R file as an R Notebook. The exercise is based on Chapter 5: Beckerman, Childs and Petchey: Getting Started with R. Open your project Open your RStuf...

11462 sym R (3162 sym/13 pcs) 3 img

Random allocation to groups

17.05.2021

R offers you several ways to randomly choose a number or to randomly select a sample from a larger group, or to randomly allocate a subject to one of two or more groups. A simple random number generator R can generate random numbers from many distributions. For a simple random number generator, runif() is probably the most useful. It will genera...

2364 sym R (1805 sym/29 pcs)