Active learning works best even if it sometimes feel challenging
Activate
Can you a picture a correlation?
Try this app to train your intuition: https://shiney.zoology.ubc.ca/whitlock/Guessing_correlation/
This is a challenging topic
We can meet this challenge by enriching our perspectives
This approach contrasts with a focus on procedure
Activate
What’s the challenge in understanding or using NHST?
When we work with null hypothesis significance tests
We are often working in ways that we find difficult
This is because these ways appear to run counter to our intuitions(Gigerenzer, 1993, 2004; Tversky & Kahneman, 1971)
the habitual or instinctive ways of thinking we rely on in everyday life
Researchers often make mistakes in reporting NHST results (Bakker & Wicherts, 2011; Nuijten et al., 2016; Nuijten & Wicherts, 2024):
- Inconsistent or incomplete reportsStudents, teachers and textbooks often make mistakes in explaining significance testing methods (Cassidy et al., 2019; Gigerenzer, 2018; Haller & Kraus, 2002; Murphy et al., 2025):
- Mixing up ideas, applying incorrect interpretationsWhy do we think we can do better?
Gigerenzer (1993) suggests that, because we get anxious about it, we (psychologists) adopt ritualistic behaviour:
This idea connects to the sense that the challenge here is psychological: it’s about the psychology of psychologists
Then we are going to focus attention on the understanding we will apply when we write and when we read reports
Our learning questions are this:
Activate
We are going to learn about hypothesis testing and significance from two different perspectives:
Through the middle of the 20th century, we completely changed how we did research (Gigerenzer, 1993)
NHST is now everywhere (Cumming et al., 2007) but its adoption is controversial (Cassidy et al., 2019) and its utility is disputed (Gigerenzer, 1993; Meehl, 1990)
We can get a clearer view if we step back a bit
The history of ideas
Philosophy of science
The psychology of us scientists
Key questions
Fisher (1990/1991) looked at what researchers want or need
This class might look like it is a statistics class but actually it is about thinking clearly about evidence
You may remember: previously the difference between induction and deduction
Fisher (1990/1991)’s viewpoint, you are an experienced researcher trying to make sense of your evidence:
Fisher (1990/1991)’s viewpoint, you are an experienced researcher trying to make sense of your evidence:
It is possible to argue inductively, given our data
Any inference from the particular to the general
The logical key
The key insight is that we need to compare the data we observe in our experiment with what random looks like
There is one way to do this:
You think
that the manipulation of conditions will have some impact
or that your measurements will be correlated somehow
There is one way to do this:
That openness about what the effect or the association might be
This openness is vague and it lacks precision
If we propose the theory that the impact of the intervention is nothing or that there is no correlation between variables
For this kind of proposal we are being absolutely precise about our hypothesis:
Activate
What do these things even mean?
These are things we will demonstrate in a little while
first calculate or map out what results would look like
then compare the data we observed in our study with this random data pattern
we will feel confidence or we will feel disbelief
and so we will feel confidence or we will feel disbelief
Most of the time, we might see results that look very much like the results that we would see
But some times, the results we observe are so different from what we would see
That it would be hard to believe, actually, that the null hypothesis is true
We define a precise hypothesis, the null hypothesis
We observe our data and calculate our results
We compare these observed results to randomness:
If the probability that our observed results look like the null-is-true random-distributed-results is small
Then we have evidence for disbelieving that the null hypothesis is true
Activate
What do these things even mean?
How exactly do we compare the results we observe to
How do we calculate the probability that the observed results look like the null-is-true random-distributed-results?
We have outlined the logic of the significance test in words
Tip
We see how significance tests work by simulating a study
Let’s imagine we test a person (you) on a psychological attribute like your vocabulary knowledge
Now imagine we test two people (you and your neighbour) using the same vocabulary test
Now imagine we test a sample of 30 people
For the same people, we record scores on (1.) vocabulary and (2.) reading experience
Each point represents a person’s reading experience compared to vocabulary
Is high experience associated with high vocabulary?
The correlation \(r\) between these variables is:
Parameter1 | Parameter2 | r
------------------------------
experience | vocabulary | 0.54
Calculate a statistical test of the null hypothesis: t-test
\[ t = \frac{r\sqrt{N-2}}{\sqrt{1-r^2}} \]
When earlier we talked about comparing our observed results to randomness:
This is what we meant
\[ t = \frac{r\sqrt{N-2}}{\sqrt{1-r^2}} \]
Compare this t-test statistic
With a probability distribution describing all the different ways:
that results could turn out at random
\[ t = \frac{r\sqrt{N-2}}{\sqrt{1-r^2}} \]
Compare this t-test statistic
With a probability distribution describing all the different ways:
that t-statistics could vary
Key questions
So: where or how do we get the probability distribution showing how t-statistics vary at random?
In the demonstration we are going to show you, next
we are going to apply a method for showing how probability works
based on counting the different ways things can turn out
Imagine we run the study over and over again, drawing a different sample of people each time
Figure 10: Six studies, each with its own sample of 30 people
Figure 11: Six simulated studies: for each, the null hypothesis is true: \(r = 0)\)
For each study, we calculate the correlation \(r\)
Figure 12: The six studies’ r values: the null hypothesis is true; the numbers inside the dots are the study number
For each study, we calculate the t-test on the correlation, and record \(t\)
Figure 13: The six studies’ t values; the numbers inside the dots are the study number
We can compare the results for our observed sample data with a distribution showing how results vary at random
by simulating many studies in which we collect data from participants on vocabulary and reading experience
If every time we did this, we calculate:
and we record all the t-statistic values
eventually, we would get a distribution of \(t\) statistics
This distribution of \(t\) statistics would describe for us how results would vary at random supposing the null hypothesis is true
We can then count the number of times different values of \(t\) occur
This count shows the probability of different values of \(t\) occurring as a relative frequency
We simulate a 1000 studies
Figure 14: A distribution of different \(t\) values from 1000 simulated studies. In all simulated studies, the null hypothesis is true
We simulate a 1000 studies
Figure 15: The same 1000 \(t\) values, with lines marking the critical \(t\) (where \(p = .05\), in grey) and our observed study’s \(t\) (marked in red)
We compare the \(t\) statistic for our observed data to the null hypothesis distribution of \(t\) statistics
If few values of \(t\) in the null hypothesis distribution
then that precisely is how we calculate how small the probability for the \(t\) statistic for our data is
In the inductive reasoning that this test allows
Tip
The level of significance is a measure of the rational grounds for disbelief
Making sense of significance
What do these things even mean? We have seen
How exactly we compare the results we observe to
How we calculate the probability that the observed results look like the null-is-true random-distributed-results
We switch to a different philosophy and a different view of the psychology of researchers (Hubbard, 2004): we look at the ideas of Jerzy Neyman and Egon Pearson
Tip
Tip
This position contrasts with Fisher’s view that we can learn from experience by using significance tests that allow us to reject the null hypothesis
This is a method for adjusting behaviours, given the data
Neyman and Pearson’s recommendations on decision-making rules
are based on thinking about the psychology of humans (and dogs)
In our example about the correlation between vocabulary and reading experience
In hypothesis testing, we balance the risks of making different kinds of errors:
False rejection of the null hypothesis, if null hypothesis is correct
False acceptance of the null hypothesis, if alternative hypothesis is correct
In hypothesis testing, we balance the risks of making different kinds of errors:
We change perspectives here:
We change perspectives here:
You are the owner of a psychology factory or the queen of psychologists or a scientist analyzing the quality of evidence of a field of research
And you are looking at a stream or a production line or a field of like studies
What you are worried about is quality control over this long run of studies (Gigerenzer, 1993; Hubbard, 2004)
What you want to do is balance the risk of Type 1 and Type 2 errors
The balance can vary in different situations because the costs of different errors can vary in different situations
Most of the time, on balance, you are more worried about false positives (Type 1 errors) than false negatives (Type 2 errors)
And because you are more worried about false positives, you fix the Type 1 error rate you are prepared to tolerate to a low level:
What we say we are doing here is setting the significance levels
If we set the significance level to \(\alpha = 5\%\) this means (Gigerenzer, 1993):
What are we talking about when we talk about significance level?
For Fisher, the exact level of significance is a property of the data:
For Neyman and Pearson, the \(\alpha\) (“alpha”) significance level is a property of the test:
If \(H_0\) is accepted and \(H_A\) is rejected
We can balance the risk of Type 2 errors (the \(\beta\) error rate) by planning for the power of our test
Tip
The power of a test is the long-run frequency of accepting \(H_A\) the alternative hypothesis, if the alternative hypothesis is true
Activate
What do these things even mean?
To help us to build understanding, we work through demonstrations based on simulations of Psychology studies of correlation
We ask what does it look like if:
Scenario One: The null hypothesis is true: \(r = 0\)
Scenario Two: The alternative hypothesis is true: e.g. \(r = .5\)
What are our chances of making a Type 1 (false positive) error in scenario 1?
What are our chances of making a Type 2 (false negative) error in scenario 2?
We simulate a series of studies. In each study, we
Test a sample of 30 people
Record their scores on two variables
We simulate a series of studies
In all these studies, the null hypothesis is true
We set the \(\alpha\) (Type 1 error rate) to \(\alpha = .05\)
What will we see?
We calculate the t-test for each study correlation
Figure 16: Scatterplots of the data from six simulated studies: are high experience scores associated with high vocabulary scores? In all studies, the null hypothesis is true (r = 0). (Note: we saw these data in the earlier discussion of Fisher’s approach.)
Figure 17: The six studies’ r values, coloured by whether the correlation is significant at \(\alpha = .05\). We saw these data in the earlier discussion of Fisher’s approach.
Figure 18: The same six studies’ \(t\) statistics. Critical values for significance in relation to \(t\) values, at \(\alpha = .05\).
Figure 19: Distribution of \(r\) values from 1000 simulated studies. In each study, data are simulated given the assumption that the null hypothesis is true (r = 0). Points are coloured by whether the \(t\) test statistic for the \(r\) is significant (or not) at \(\alpha = .05\)
Figure 20: The \(t\) statistics for the same 1000 studies. Critical values are defined in relation to \(t\) values: \(t\) values beyond the dashed lines are significant at \(\alpha = .05\).
In all 1000 studies, data are simulated allowing experience and vocabulary scores to vary at random
We see that if we do a t-test on each correlation for each study
We again simulate a series of studies. In each study, we
Test a sample of 30 people
Record their scores on two variables
We simulate a series of studies
In all these studies, the alternative hypothesis is true
We set the \(\beta\) (Type 2 error rate) to \(\beta = .20\)
What will we see?
For each study, what is the correlation \(r\) between vocabulary and experience? We calculate \(r\)
For each study, is \(t\) significant at the \(.05\) level?
Figure 22: Six studies, each simulated assuming that the alternative hypothesis is true (r = .5). (We have not seen these data before.)
Figure 23: The \(r\) values for the same six studies. The point are coloured by whether the correlation is significant at the \(\alpha = .05\) significance level
Figure 24: The same six studies’ \(t\) statistics. Critical values for significance are defined on the \(t\) scale, at \(\alpha = .05\); the dotted line marks the \(t\) corresponding to the true (population) correlation, \(r = .5\).
Figure 25: Distribution of \(r\) values from 1000 simulated studies. In each study, data are simulated given the assumption that the alternative hypothesis is true (\(r = .5\)). Points are coloured by whether the \(t\) test statistic for the \(r\) is significant (or not) at \(\alpha=.05\) and \(\beta = .20\)
Figure 26: The \(t\) statistics for the same 1000 studies. Critical values are defined in relation to \(t\) values: \(t\) values beyond the dashed lines are significant at \(\alpha = .05\).
In all 1000 studies, data are simulated allowing experience and vocabulary scores to vary at random
We see that if we do a t-test on each correlation for each study
With larger samples, we get fewer false positives
We can prove the point by, again, simulating correlation studies
\(r\) estimates of correlation more variable when samples are smaller
and associated \(t\) statistics for some of these \(r\) estimates will be significant at the \(\alpha = .05\) significance level
With larger samples, we get fewer false negatives
We can prove the point by, again, simulating correlation studies
\(r\) estimates of correlation more variable when samples are smaller
and associated \(t\) statistics for some of these \(r\) estimates will not be significant at the \(\alpha = .05\) significance level
Activate
We have seen how
The contrast between the null hypothesis \(H_0\) and the alternative hypothesis \(H_A\) often references something like:
We can we calculate the probability of making a Type 1 (false positive) error or a Type 1 (false negative) error by counting
The impact of increasing power, focusing here on increase in sample size, is to
Two ways of thinking clearly about evidence: Fisher — The individual researcher, learn from the evidence of their study
Two ways of thinking clearly about evidence: Neyman-Pearson: The researcher also looking at the data from their study and worried about the errors we could make as we make decisions based on evidence from multiple studies
Set up a null hypothesis and an alternative hypothesis:
Set the false positive and the false negative error rates we are prepared to tolerate:
Calculate a test statistic (\(t\)), given your sample data
Report whether \(t\) is large enough that it is significant at the chosen significance level
Think about the result:
In textbooks, we often see presentations of Null Hypothesis Significance Testing that do not explain where the ideas come from or what the motivations are
We have seen that the ideas align with different perspectives on how we should respond to evidence
Gerd Gigerenzer identifies Null Hypothesis Significance Testing (NHST) as a hybrid logic (Gigerenzer, 1993) that we apply in ritualistic behaviours (Gigerenzer, 2018):
Tip
We have seen that there are reasons for using significance testing methods
You will want identify:
You calculate the correlation \(r\) and the test statistic for the correlation \(t\)
You indicate the sample size (in statistics, we use \(df\), degrees of freedom)
You report these statistics with the \(p\) value
Activate