Hypothesis testing
Significance testing

Rob Davies

We are learning how to think critically for ourselves

Active learning works best even if it sometimes feel challenging

  • Active learning is what you do when you ask or answer questions
  • We will prompt you sometimes with Activate

Activate

Can you a picture a correlation?

Try this app to train your intuition: https://shiney.zoology.ubc.ca/whitlock/Guessing_correlation/

We are going to learn about hypothesis or significance testing

This is a challenging topic

  • We can meet this challenge by enriching our perspectives

    • historical, philosophical, psychological and statistical
  • This approach contrasts with a focus on procedure

    • Here, we aim to understand the ideas better so we can apply them confidently

What are we talking about?

  • What we are talking about is usually called Null Hypothesis Significance Testing (NHST)

Activate

What’s the challenge in understanding or using NHST?

What we do when we do NHST is counter-intuitive

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

Students, researchers, teachers and textbooks make mistakes

NHST is everywhere and it is clearly important

This feels like a scary situation

  • Gigerenzer (1993) suggests that, because we get anxious about it, we (psychologists) adopt ritualistic behaviour:

    • Fixate on special numbers: .05
    • Repeat the same action
    • Fear being punished
  • This idea connects to the sense that the challenge here is psychological: it’s about the psychology of psychologists

OK then, how do we meet the challenge?

Step One: What is NHST and where does it come from?

  • We are going to look at ideas from history, philosophy and psychology here
  • It is a fascinating story and we will see that knowing about it helps to anchor our understanding

Step Two: Seeing is believing

  • Later, we will grow our understanding by looking at practical applications of the key ideas
  • We will focus here on demonstrations of how we apply significance tests or hypothesis tests (properly understood) in the situations psycholgists face every day

Step Three: We will be open about the core challenges

Then we are going to focus attention on the understanding we will apply when we write and when we read reports

  • We are going to identify what we need to do for reports
  • We identify common ways our intuitions can mislead us

Null hypothesis significance testing

Our learning questions are this:

Activate

  1. What does it mean to say that a test statistic is significant?
  2. How can we respond to the statement that a test statistic is significant?

What is NHST and where does it come from?

We are going to learn about hypothesis testing and significance from two different perspectives:

  1. The perspective of an individual researcher, asking what they can learn from the evidence from their study
  2. The perspective of someone looking at errors that we (in general) could make as we make decisions based on the evidence from multiple repeated studies

NHST is everywhere now but this is recent and controversial

  • Through the middle of the 20th century, we completely changed how we did research (Gigerenzer, 1993)

    • We stopped studying individual subjects (almost) and learned to focus on group averages
    • We started doing and reporting null hypothesis tests (using ANOVA or t-test methods)
  • 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)

History, philosophy and psychology

We can get a clearer view if we step back a bit

  • The history of ideas

    • NHST embodies a hybrid logic: what motivated the key ideas and what happened next
  • Philosophy of science

    • We will reflect on ideas about how we grow knowledge or effective decision-making
  • The psychology of us scientists

    • We will look at what people thought researchers wanted or needed to do to make sense of evidence

We begin with Ronald Fisher

  • R.A. Fisher was one of the greatest scientists of the 20th century (Bodmer et al., 2021)
  • He was a supporter of some of the eugenic ideas prevalent in his time and context
  • He has been accused of being a racist but his ideas also help us to attack racism

Bodmer et al. (2021): R.A. Fisher at his calculator in 1958

Fisher significance test

  1. Set up a statistical null hypothesis
  2. Calculate a test statistic, given your sample data
  3. Report the exact probabibility value \(p\) for this statistic
  4. Think about the result: if \(p < .05\) then (Fisher, 1955)
  • Either something rare has occurred or null hypothesis is not true

Significance testing: let’s break this into questions

Key questions

  1. What is a null hypothesis?
  2. What does “null” and “hypothesis” mean?
  3. Where do you get the null hypothesis from?
  4. What is the probability value?
  5. What is the logic of “If \(p < .05\) then” thinking?

What do you want and need?

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

  • To Fisher (1990/1991), the real issues are to do with the logic any thinking person can use when working out what to do with evidence
  • History shows us that what we do is learn from experience
  • His methods help us to do this rigorously

Inductive reasoning

You may remember: previously the difference between induction and deduction

  1. Induction \(\rightarrow\) From observations to fundamental and general insights, regularities or principles
  2. Deduction \(\rightarrow\) To observations or tests, from fundamental and general insights, regularities or principles

Inductive reasoning is a process

Fisher (1990/1991)’s viewpoint, you are an experienced researcher trying to make sense of your evidence:

  • Experimental observations are only experience carefully planned in advance
  • systematically related to the body of knowledge already acquired
  • deliberately observed, with results accurately recorded
  • With numbers of trials and quality of methods allowing more or less sensitivity

Inductive reasoning is a process

Fisher (1990/1991)’s viewpoint, you are an experienced researcher trying to make sense of your evidence:

  • You know your results will vary — fluctuate — by chance
  • so that the things you observe could just be
  • a more or less rare random pattern of events or occurrences

So where do we get the rigour from?

  • It is possible to argue inductively, given our data

    • from consequences to causes
    • from observations to hypotheses
    • from a sample to the population
    • from the particular to the general
  • Any inference from the particular to the general

    • must be associated with some uncertainty
    • but such inference can be absolutely rigorous

The key is the comparison to randomness

The logical key

The key insight is that we need to compare the data we observe in our experiment with what random looks like

  • So how do we do that?

The key is the comparison to randomness

There is one way to do this:

  1. If you are doing an experiment or making observations for a study, you are doing the work because:
  • You think

    • because of previous work or experience or existing knowledge
  • that the manipulation of conditions will have some impact

  • or that your measurements will be correlated somehow

The key is the comparison to randomness

There is one way to do this:

  1. But you have to accept that there are lots of different ways that there might be an impact or an association
  • That openness about what the effect or the association might be

    • is \(r\) big or small, positive or negative?
  • This openness is vague and it lacks precision

The key is the comparison to randomness

  1. What we can be precise about is nothing
  • 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:

    • that the intervention has no impact
    • that the conditions make no difference
    • that there is no correlation between the variables

The key is the comparison to randomness

  1. This hypothesis is the null hypothesis and through this null hypothesis, we get to make the comparison to randomness:
  • Fisher showed that if we assume the null hypothesis is true
  • then we can calculate a probability distribution
  • that precisely describes the way in which test results could vary, purely at random
  • while allowing for however large or small our sample was

The key is the comparison to randomness

Activate

What do these things even mean?

  • What does it mean to say that results can vary at random?
  • What is a probability distribution?
  • What do these things look like, where do they come from, how do we calculate them?

These are things we will demonstrate in a little while

Where we get the rigour from: significance is a measure of disbelief

  1. Assuming the null hypothesis is true, we can:
  • first calculate or map out what results would look like

    • if they were generated purely by chance
    • given an experimental process like our study process
  • then compare the data we observed in our study with this random data pattern

Where we get the rigour from: significance is a measure of disbelief

  1. This comparison will make us feel things (Fisher, 1990/1991’s method is about the psychology of researcher thinking):
  • we will feel confidence or we will feel disbelief

    • about whether the data we observed could be due to random chance
  • and so we will feel confidence or we will feel disbelief

    • about whether the null hypothesis is true

Where we get the rigour from: the significance level

  1. Fisher (1990/1991) comments that it is usual and convenient for experimenters to take 5% as a standard level of significance: what does this mean?
  • Most of the time, we might see results that look very much like the results that we would see

    • If we assume the null hypothesis is true
    • And if we calculate, given that null hypothesis
    • a distribution describing all the different ways our results could turn out at random

Where we get the rigour from: the significance level

  • But some times, the results we observe are so different from what we would see

    • If we assume the null hypothesis is true
    • And if we calculate, given that null hypothesis, a distribution describing all the different ways that our results could turn out at random
  • That it would be hard to believe, actually, that the null hypothesis is true

The significance test

  1. What we see here is Fisher constructing a method for inductive reasoning and so a way for you the scientist to think clearly about your evidence
  • We define a precise hypothesis, the null hypothesis

  • We observe our data and calculate our results

  • We compare these observed results to randomness:

    • the distribution of results we would get
    • by chance, supposing the null hypothesis is true

The significance test

  • If the probability that our observed results look like the null-is-true random-distributed-results is small

    • 5% probability or less
  • Then we have evidence for disbelieving that the null hypothesis is true

The significance test

Activate

What do these things even mean?

  • How exactly do we compare the results we observe to

    • the distribution of results we would get by chance
    • supposing the null hypothesis is true?
  • How do we calculate the probability that the observed results look like the null-is-true random-distributed-results?

Demonstration: significance testing

We have outlined the logic of the significance test in words

Tip

  • You will find it easier to understand this logic if you can see how the ideas work in practice
  • Come back to the words after you have looked at what the demonstration shows

Significance test for correlation

We see how significance tests work by simulating a study

  1. Your history of reading (print exposure or reading experience) could be linked to your development of knowledge about words (vocabulary knowledge) (Stanovich et al., 1995; Vermeiren et al., 2023)
  • maybe because reading more means you are more exposed to different words and ideas about things in the world
  • and neural networks adapt in response to experience

Significance test for correlation

  1. For this demonstration, we are going to work with the potential correlation (the association) between two measures of individual differences
  • variation in scores on a test of vocabulary
  • variation in scores on a test of reading experience

You test a person and record their score on a variable

Let’s imagine we test a person (you) on a psychological attribute like your vocabulary knowledge

Figure 1: You do the vocabulary test
Figure 2: We record your vocabulary score

You test two people and record their scores

Now imagine we test two people (you and your neighbour) using the same vocabulary test

Figure 3: Two people complete the test
Figure 4: We record two scores

You test a sample of people

Now imagine we test a sample of 30 people

Figure 5: A sample of 30 people
Figure 6: We see a distribution of 30 scores: each point represents a person’s vocabulary test score

Test a sample of people and record their scores on two variables

For the same people, we record scores on (1.) vocabulary and (2.) reading experience

Figure 7: Their 30 scores: each point represents a person’s score on vocabulary
Figure 8: Their 30 scores: each point represents a person’s score on reading experience

What is the association between vocabulary and reading experience?

  • Each point represents a person’s reading experience compared to vocabulary

    • High experience scores are near the right
    • High vocabulary scores are near the top
  • Is high experience associated with high vocabulary?

Figure 9: Experience compared to vocabulary

What is the correlation between vocabulary and reading experience?

The correlation \(r\) between these variables is:

```{r}
library(correlation)
cor_test(data, "experience", "vocabulary")
```

Parameter1 | Parameter2 |    r
------------------------------
experience | vocabulary | 0.54

Significance test for correlation

  1. Specify the null hypothesis that:
  • The correlation between these two variables is zero
  • \(r=0\) for the correlation between vocabulary and reading experience
  1. Calculate a statistical test of the null hypothesis: t-test

    \[ t = \frac{r\sqrt{N-2}}{\sqrt{1-r^2}} \]

Significance test for correlation

  1. Calculate the probability value for this t-test statistic
  • When earlier we talked about comparing our observed results to randomness:

    • the distribution of results we would get
    • by chance, supposing the null hypothesis is true
  • This is what we meant

Significance test for correlation

\[ t = \frac{r\sqrt{N-2}}{\sqrt{1-r^2}} \]

  • Compare this t-test statistic

    • calculated given the \(r\) and \(N\) for our data
  • With a probability distribution describing all the different ways:

    • that results could turn out at random

      • given the same situation
      • assuming that the null hypothesis is true

Significance test for correlation

\[ t = \frac{r\sqrt{N-2}}{\sqrt{1-r^2}} \]

  • Compare this t-test statistic

    • calculated given the \(r\) and \(N\) for our data
  • With a probability distribution describing all the different ways:

    • that t-statistics could vary

      • given the same situation
      • assuming that the null hypothesis is true

Significance test for correlation

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

    • This is an approximation to what really happens (that is based on a theoretical description of a random distribution) but the approximation would resemble the real process given enough data

Suppose the null hypothesis is true

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

Suppose the null hypothesis is true

Figure 11: Six simulated studies: for each, the null hypothesis is true: \(r = 0)\)

Suppose the null hypothesis is true

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

Suppose the null hypothesis is true

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

Counting to get probability

  • We can compare the results for our observed sample data with a distribution showing how results vary at random

    • for the same situation
    • given the null hypothesis is true
  • by simulating many studies in which we collect data from participants on vocabulary and reading experience

Counting to get probability

  • If every time we did this, we calculate:

    • the correlation between these variables
    • the \(t\) statistic for this correlation
  • and we record all the t-statistic values

  • eventually, we would get a distribution of \(t\) statistics

Counting to get probability

  • 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

    • Sometimes, a \(t\) will occur very often
    • Very large values of \(t\) will occur less often

Suppose the null hypothesis is true

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

Now compare the \(t\) statistic for our observed data to the null hypothesis distribution of \(t\) statistics

Suppose 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)

Significance testing

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

    • are as large as the \(t\) statistic for our observed data (or larger)
  • then that precisely is how we calculate how small the probability for the \(t\) statistic for our data is

Significance testing

In the inductive reasoning that this test allows

  • If the probability is small (\(p < .05\)) we can say\(\rightarrow\)
  • Then either an improbable event has occurred or the null hypothesis is not verified

Tip

The level of significance is a measure of the rational grounds for disbelief

The significance test

Making sense of significance

What do these things even mean? We have seen

  • How exactly we compare the results we observe to

    • the distribution of results we would get by chance
    • supposing the null hypothesis is true
  • How we calculate the probability that the observed results look like the null-is-true random-distributed-results

Hypothesis testing

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

  • We go from thinking about the researcher confronted with their evidence
  • To the researcher thinking about their study as potentially one among multiple similar studies

Jerzy Neyman and Egon Pearson

Kendall et al. (1982): Jerzy Neyman in 1974

Bartlett (1981): Egon Pearson in an undated image

Inductive behaviours

  • Jerzy Neyman and Egon Pearson did not think we can draw conclusions about the truth or falsity of our hypotheses
  • We can make decisions, given our data, and behave accordingly

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

Inductive behaviours

  • 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)

Null versus alternate hypotheses

  • Neyman and Pearson did not think that the “rational mind” can reject a null hypothesis without a plausible alternative
  1. So the researcher proposes:
  • The null hypothesis: \(H_0\)
  • The alternative hypothesis: \(H_A\)
  1. Hypothesis testing is testing the null against the alternative

Null versus alternate hypotheses

In our example about the correlation between vocabulary and reading experience

  • The null hypothesis \(H_0\) can correspond to no correlation
  • The alternative hypothesis \(H_A\) can correspond to some correlation

A balance of errors

In hypothesis testing, we balance the risks of making different kinds of errors:

  1. False rejection of the null hypothesis, if null hypothesis is correct

    • Type 1 errors, also known as false positives
  2. False acceptance of the null hypothesis, if alternative hypothesis is correct

    • Type 2 errors, also known as false negatives

A balance of error rates

In hypothesis testing, we balance the risks of making different kinds of errors:

  1. We can assume: some chance that we will make a Type 1 error
  • The probability of making a Type 1 error is \(\alpha\) (“alpha”)
  1. We can assume: some chance that we will make a Type 2 error
  • The probability of making a Type 2 error is \(\beta\) (“beta”)

Change your perspective

We change perspectives here:

  • You are not now the researcher, thinking about the data from your study, and wondering whether it inspires you to disbelieve your null hypothesis

Change your perspective

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

      • one study completed after the other
      • one set of results following the other

Change your perspective

  • What you are worried about is quality control over this long run of studies (Gigerenzer, 1993; Hubbard, 2004)

    • You know that mistakes will happen, due to chance
    • But you want to get information you can use for your decision-making as efficiently as possible
  • What you want to do is balance the risk of Type 1 and Type 2 errors

Change your perspective

  • 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:

      • \(\alpha = .05\) or equivalently \(\alpha = 5\%\)

The meaning of \(\alpha\) (“alpha”)

  • 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):

    • If the null hypothesis is correct
    • and the experiment is repeated many times
    • then the experimenter risks wrongly rejecting the null in \(5\%\) of cases

Key differences between Fisher-style and Neyman-Pearson-style

What are we talking about when we talk about significance level?

  • For Fisher, the exact level of significance is a property of the data:

    • How different are the observed data compared to a random pattern?
  • For Neyman and Pearson, the \(\alpha\) (“alpha”) significance level is a property of the test:

    • What error rate are you willing to tolerate?

Key differences between Fisher-style and Neyman-Pearson-style

  • If \(H_0\) is accepted and \(H_A\) is rejected

    • though the alternative hypothesis is true
    • this is a Type 2 error
  • 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

Hypothesis testing

Activate

What do these things even mean?

  • What does the contrast between the null hypothesis \(H_0\) and the alternative hypothesis \(H_A\) look like, in practice?
  • Why are we more worried about false positives?
  • How can we calculate the probability of making a Type 1 (false positive) error or a Type 1 (false negative) error?
  • How do we decide how to behave given our data?
  • What is the impact of variation in power?

Seeing the Neyman-Pearson approach at work

To help us to build understanding, we work through demonstrations based on simulations of Psychology studies of correlation

Seeing Neyman-Pearson at work

  • We ask what does it look like if:

    1. Scenario One: The null hypothesis is true: \(r = 0\)

      • Correlation between vocabulary and experience is zero
    2. Scenario Two: The alternative hypothesis is true: e.g. \(r = .5\)

      • Correlation between vocabulary and experience is .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?

Scenario One: \(H_0\) is true

We simulate a series of studies. In each study, we

  • Test a sample of 30 people

  • Record their scores on two variables

    • Measure of reading experience
    • Measure of vocabulary

Scenario One: \(H_0\) is true

We simulate a series of studies

  • In all these studies, the null hypothesis is true

    • The correlation between vocabulary and experience for all these studies is zero
  • We set the \(\alpha\) (Type 1 error rate) to \(\alpha = .05\)

Scenario One: \(H_0\) is true

  • What will we see?

    • For each study, what is the correlation \(r\) between vocabulary and experience? We calculate \(r\)
  • We calculate the t-test for each study correlation

    • For each study, is \(t\) significant at the \(\alpha = .05\) significance level?

\(H_0\) is true but do we see correlations appearing by chance?

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.)

\(H_0\) is true but do we see correlations appearing by chance?

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.

\(H_0\) is true: from \(r\) to the test statistic \(t\)

Figure 18: The same six studies’ \(t\) statistics. Critical values for significance in relation to \(t\) values, at \(\alpha = .05\).

\(H_0\) is true: Do we see significant correlations appearing by chance?

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\)

\(H_0\) is true: Do we see significant correlations appearing by chance?

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\).

\(H_0\) is true but do we see correlations appearing by chance?

  • In all 1000 studies, data are simulated allowing experience and vocabulary scores to vary at random

    • But assuming the null hypothesis is true so \(r = 0\)
  • We see that if we do a t-test on each correlation for each study

    • some \(t\) statistics will be significant at the \(\alpha = .05\) significance level
    • purely as a result of random variation
Figure 21: \(t\) values from 1000 simulated studies, null hypothesis is true

Scenario Two: \(H_1\) is true

We again simulate a series of studies. In each study, we

  • Test a sample of 30 people

  • Record their scores on two variables

    • Measure of reading experience
    • Measure of vocabulary

Scenario Two: \(H_1\) is true

We simulate a series of studies

  • In all these studies, the alternative hypothesis is true

    • The correlation between vocabulary and experience for all these studies is \(.5\)
  • We set the \(\beta\) (Type 2 error rate) to \(\beta = .20\)

Scenario Two: \(H_1\) is true

What will we see?

  • For each study, what is the correlation \(r\) between vocabulary and experience? We calculate \(r\)

    • We calculate the t-test for each study correlation
  • For each study, is \(t\) significant at the \(.05\) level?

Scenario Two: \(H_1\) is true, do we see the correlations?

Figure 22: Six studies, each simulated assuming that the alternative hypothesis is true (r = .5). (We have not seen these data before.)

Scenario Two: \(H_1\) is true, do we see the correlations?

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

Scenario Two: \(H_1\) is true, from \(r\) to the test statistic \(t\)

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\).

Scenario Two: \(H_1\) is true, do we see significant correlations?

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\)

Scenario Two: \(H_1\) is true, do we see significant correlations?

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\).

Scenario Two: \(H_1\) is true, do we see significant correlations?

  • In all 1000 studies, data are simulated allowing experience and vocabulary scores to vary at random

    • But assuming the alternative hypothesis is true so \(r = 0.5\)
  • We see that if we do a t-test on each correlation for each study

    • most \(t\) statistics will be significant at the \(\alpha = .05\) significance level
    • but some \(t\) statistics will not be significant purely as a result of random variation
Figure 27: \(t\) values from 1000 simulated studies, alternative hypothesis is true

Thinking about power

  • With larger samples, we get fewer false positives

  • We can prove the point by, again, simulating correlation studies

    • If we assume the null hypothesis is true so \(r = 0\)
  1. \(r\) estimates of correlation more variable when samples are smaller

  2. and associated \(t\) statistics for some of these \(r\) estimates will be significant at the \(\alpha = .05\) significance level

    • purely as a result of random variation
Figure 28: Observed \(r\) across simulated studies with varying participant sample sizes (N = 50, 100, 1000): 300 simulated studies per N size. Dashed lines mark critical \(r\) values at \(\alpha = .05\). The dotted line marks the true correlation: \(r = 0\) because \(H_0\) is true.

Thinking about power

  • With larger samples, we get fewer false negatives

  • We can prove the point by, again, simulating correlation studies

    • If we assume the alternative hypothesis is true so \(r = 0.5\)
  1. \(r\) estimates of correlation more variable when samples are smaller

  2. and associated \(t\) statistics for some of these \(r\) estimates will not be significant at the \(\alpha = .05\) significance level

    • purely as a result of random variation
Figure 29: Alternative hypothesis true (r = .5): observed r across sample sizes N = 50, 100, 1000 (300 simulated studies per n). Dashed lines mark each panel’s own critical r at alpha = .05; the dotted line marks the true (population) correlation.

Hypothesis testing

Activate

We have seen how

  • The contrast between the null hypothesis \(H_0\) and the alternative hypothesis \(H_A\) often references something like:

    1. If null hypothesis \(H_0\) is true then \(r = 0\)
    2. If alternative hypothesis \(H_A\) is true then \(r = .5\) (not zero)
  • We can we calculate the probability of making a Type 1 (false positive) error or a Type 1 (false negative) error by counting

    • The number of simulated studies associated with false positive or false negative statistics
  • The impact of increasing power, focusing here on increase in sample size, is to

    • reduce the variability of sample \(r\) estimates
    • reduce the rates of both Type 1 (false positive) errors and Type 1 (false negative) errors

TL;DR summary

Two ways of thinking clearly about evidence: Fisher — The individual researcher, learn from the evidence of their study

  1. Set up a statistical null hypothesis: \(r = 0\)
  2. Calculate a test statistic (\(t\)), given your sample data
  3. Report the exact probabibility value \(p\) for this statistic
  4. Think about the result: if \(p < .05\) then (Fisher, 1955)
  • Either something rare has occurred or null hypothesis is not true

TL;DR summary

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

  1. Set up a null hypothesis and an alternative hypothesis:

    • \(H_0\) that \(r = 0\); \(H_A\) that \(r = .5\)
  2. Set the false positive and the false negative error rates we are prepared to tolerate:

    • \(\alpha = .05, \beta = .20\)
  3. Calculate a test statistic (\(t\)), given your sample data

  4. Report whether \(t\) is large enough that it is significant at the chosen significance level

  5. Think about the result:

    • If \(t\) is significant, we can reject \(H_0\) and accept \(H_A\)
    • If \(t\) is not significant, we can accept \(H_0\) and reject \(H_A\)

The NHST hybrid in textbooks and research reports

  • 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

    • NHST presentations often mash together Fisher’s ideas and the ideas of Neyman and Pearson
  • We have seen that the ideas align with different perspectives on how we should respond to evidence

    • How we think about what our evidence shows
    • How we make decisions based on our evidence

The NHST ritual

Gerd Gigerenzer identifies Null Hypothesis Significance Testing (NHST) as a hybrid logic (Gigerenzer, 1993) that we apply in ritualistic behaviours (Gigerenzer, 2018):

  1. Set up a null hypothesis of “no mean difference” or “zero correlation”
  2. Use 5% as a convention for rejecting the null hypothesis
  3. Report the test result as \(p <.05\), \(p < .01\), or \(p < .001\)

Tip

We have seen that there are reasons for using significance testing methods

The impact on our work: reporting

  • You will want identify:

    • What is your null hypothesis?
    • Do you have an alternative hypothesis: what is it?
    • What risk levels you are prepared to tolerate: \(\alpha = .05, \beta = .20\)
  • 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

The impact on our work: thinking

Activate

  1. We have seen how
  • Thinking about probability is essential to our work as psychologists
  • because of the impact of random chance
  • on the patterns we may (or may not) see in our data
  1. The hypothesis test methods we have learnt about are ways to compare the results we observe against the results we would see given random variation, under different scenarios
  2. We need these methods to think clearly about evidence as psychologists because people are semi-random

References

Bakker, M., & Wicherts, J. M. (2011). The (mis)reporting of statistical results in psychology journals. Behavior Research Methods, 43(3), 666–678. https://doi.org/10.3758/s13428-011-0089-5
Bartlett, M. S. (1981). Egon Sharpe Pearson, 11 August 1895 - 12 June 1980. Biographical Memoirs of Fellows of the Royal Society, (27), 425–443. https://doi.org/10.1098/rsbm.1981.0017
Bodmer, W., Bailey, R. A., Charlesworth, B., Eyre-Walker, A., Farewell, V., Mead, A., & Senn, S. (2021). The outstanding scientist, R.A. Fisher: His views on eugenics and race. Heredity, 126(4), 565–576. https://doi.org/10.1038/s41437-020-00394-6
Cassidy, S. A., Dimova, R., Giguère, B., Spence, J. R., & Stanley, D. J. (2019). Failing Grade: 89% of Introduction-to-Psychology Textbooks That Define or Explain Statistical Significance Do So Incorrectly. Advances in Methods and Practices in Psychological Science, 2(3), 233–239. https://doi.org/10.1177/2515245919858072
Cumming, G., Fidler, F., Leonard, M., Kalinowski, P., Christiansen, A., Kleinig, A., Lo, J., McMenamin, N., & Wilson, S. (2007). Statistical Reform in Psychology: Is Anything Changing? Psychological Science, 18(3), 230–232. https://doi.org/10.1111/j.1467-9280.2007.01881.x
Fisher, R. A. (1955). Statistical Methods and Scientific Induction. Journal of the Royal Statistical Society: Series B (Methodological), 17(1), 69–78. https://doi.org/10.1111/j.2517-6161.1955.tb00180.x
Fisher, R. A. (1991). The design of experiments. Oxford University Press. (Original work published 1990, Hafner Publishing Company)
Gigerenzer, G. (1993). The superego, the ego, and the id in statistical reasoning. In A handbook for data analysis in the behavioral sciences: Methodological issues (pp. 311–339). Lawrence Erlbaum Associates, Inc.
Gigerenzer, G. (2004). Mindless statistics. The Journal of Socio-Economics, Statistical Significance, 33(5), 587–606. https://doi.org/10.1016/j.socec.2004.09.033
Gigerenzer, G. (2018). Statistical Rituals: The Replication Delusion and How We Got There. Advances in Methods and Practices in Psychological Science, 1(2), 198–218. https://doi.org/10.1177/2515245918771329
Haller, H., & Kraus, S. (2002). Misinterpretations of significance: A problem students share with their teachers? Methods of Psychological Research, 7(1), 1–20.
Hubbard, R. (2004). Alphabet Soup: Blurring the Distinctions Betweenp’s anda’s in Psychological Research. Theory & Psychology, 14(3), 295–327. https://doi.org/10.1177/0959354304043638
Kendall, D. G., Bartlett, M. S., & Page, T. L. (1982). Jerzy Neyman, 16 April 1894 - 5 August 1981. Biographical Memoirs of Fellows of the Royal Society, (28), 379–412. https://doi.org/10.1098/rsbm.1982.0015
Meehl, P. E. (1990). Why summaries of research on psychological theories are often uninterpretable. Psychological Reports, 66(1), 195–244. https://doi.org/10.2466/pr0.1990.66.1.195
Murphy, S. L., Merz, R., Reimann, L.-E., & Fernández, A. (2025). Nonsignificance misinterpreted as an effect’s absence in psychology: Prevalence and temporal analyses. Royal Society Open Science, 12(3), 242167. https://doi.org/10.1098/rsos.242167
Neyman, J. (1962). Two Breakthroughs in the Theory of Statistical Decision Making. Revue de l’Institut International de Statistique / Review of the International Statistical Institute, 30(1), 11–27. https://doi.org/10.2307/1402069
Nuijten, M. B., Hartgerink, C. H. J., van Assen, M. A. L. M., Epskamp, S., & Wicherts, J. M. (2016). The prevalence of statistical reporting errors in psychology (1985–2013). Behavior Research Methods, 48(4), 1205–1226. https://doi.org/10.3758/s13428-015-0664-2
Nuijten, M. B., & Wicherts, J. M. (2024). Implementing Statcheck During Peer Review Is Related to a Steep Decline in Statistical-Reporting Inconsistencies. Advances in Methods and Practices in Psychological Science, 7(2), 25152459241258945. https://doi.org/10.1177/25152459241258945
Scheel, A. M., Tiokhin, L., Isager, P. M., & Lakens, D. (2021). Why hypothesis testers should spend less time testing hypotheses. Perspectives on Psychological Science, 16(4), 744–755. https://doi.org/10.1177/1745691620966795
Stanovich, K. E., West, R. F., & Harrison, M. R. (1995). Knowledge growth and maintenance across the life span: The role of print exposure. Developmental Psychology, 31(5), 811–826. https://doi.org/10.1037/0012-1649.31.5.811
Tversky, A., & Kahneman, D. (1971). Belief in the law of small numbers. Psychological Bulletin, 76(2), 105–110. https://doi.org/10.1037/h0031322
Vermeiren, H., Vandendaele, A., & Brysbaert, M. (2023). Validated tests for language research with university students whose native language is English: Tests of vocabulary, general knowledge, author recognition, and reading comprehension. Behavior Research Methods, 55(3), 1036–1068. https://doi.org/10.3758/s13428-022-01856-x