Every time a psychologist claims that a new therapy reduces anxiety, or that sleep deprivation impairs memory, there is a structured statistical process behind that conclusion. That process is hypothesis testing – a formal, step-by-step procedure that lets researchers use data collected from a sample to draw defensible conclusions about an entire population. Far from being guesswork, it is one of the most rigorous frameworks in scientific research. Understanding how it works – from forming the initial hypothesis all the way to the final decision – is essential for anyone serious about reading, conducting, or evaluating psychological research.
Table of Contents
- What is hypothesis testing?
- Step 1: Formulating the null and alternative hypotheses
- Step 2: Calculating the test statistic
- Step 3: Degrees of freedom
- Step 4: Setting the significance level (ฮฑ) and determining critical values
- Step 5: Calculating the p-value
- Step 6: Making the decision – reject or retain the null hypothesis
- The t-test for population means: putting it all together
- Why this procedure matters for scientific credibility
What is hypothesis testing?
Hypothesis testing is an inferential procedure that uses data from a sample to draw a general conclusion about a population. At its core, it is designed to answer one fundamental question: could the pattern we are observing in our data have occurred by chance, or does it reflect something real happening in the broader population? The goal is not to detect any difference between measurements – there will almost always be some difference – but to determine whether that difference is too large to be explained by random variation alone. When researchers conclude it is, they call the result statistically significant.
The same core logic applies across an enormous range of statistical tests: t-tests, chi-square tests, ANOVA, Mann-Whitney tests, and more. All of these, despite their differences, are used in essentially the same way. A useful acronym for the components of any hypothesis test is GOST: identify the Groups being compared, define the Outcome to be measured, collect and Summarise the data, and then evaluate the null hypothesis using a Test statistic.
Step 1: Formulating the null and alternative hypotheses
Every hypothesis test begins by translating a research question into two competing, mutually exclusive statements. The null hypothesis (Hโ) claims there is no effect in the population, while the alternative hypothesis (Hโ or Hโ) claims there is. Together, they must cover all possible outcomes for the parameter being tested.
The null hypothesis (Hโ) is the default position – the assumption of no change, no difference, and no relationship. It always contains some form of equality (=, โค, or โฅ). In an experiment testing whether a mindfulness programme reduces stress scores, for example, Hโ would state that the programme has no effect on stress levels in the population. The null hypothesis represents the status quo against which evidence is weighed.
The alternative hypothesis (Hโ) contradicts the null and represents what the researcher actually expects to find. It states what you expect the data to show, based on your prior research on the topic. It always uses inequality symbols (โ , >, or <) and can be either directional – predicting the direction of the effect (e.g. the programme reduces stress) – or non-directional – predicting only that a difference exists without specifying which way. A non-directional hypothesis calls for a two-tailed test, while a directional hypothesis calls for a one-tailed test.
A critical rule: you can only reject or fail to reject the null hypothesis – you never prove or disprove it. Statistical conclusions are always expressed in terms of probability, not certainty.
Step 2: Calculating the test statistic
Once the hypotheses are in place, the next step is to collect sample data and compute a test statistic. The test statistic is then transformed into a p-value using tables or software, and it is this value that drives the final decision.
The test statistic is a single value that is sensitive to the difference between the null and alternative hypothesis. In practical terms, it tells you how far your sample result sits from what you would expect if the null hypothesis were true – expressed in standardised units. The larger the test statistic, the more the sample departs from the null hypothesis prediction.
Different research situations call for different test statistics. The t-test is one of the most widely used hypothesis tests, used for comparing means. It is particularly suited to situations involving small sample sizes (typically below 30), because it accounts for the additional uncertainty that comes with having fewer data points. In contrast, when the population standard deviation is known and the sample is large, a z-test may be used instead. For categorical outcomes, a chi-square (ฯยฒ) test is appropriate. The key principle is that the choice of test statistic is determined by the type of data collected and the research design.
Step 3: Degrees of freedom
Alongside the test statistic, researchers must also determine the degrees of freedom (df). Degrees of freedom refer to the number of independent pieces of information used to calculate a statistic – computed as the sample size minus the number of restrictions imposed.
This concept matters because it directly shapes the probability distribution used to evaluate the test statistic. Degrees of freedom define the shape of distributions like the t-distribution and chi-square distribution, which are used to determine statistical significance and calculate p-values. For a one-sample t-test, degrees of freedom are calculated as n โ 1, where n is the sample size. For a two-sample t-test comparing two groups, the formula is (nโ โ 1) + (nโ โ 1).
In practical terms, the t-distribution table is organised by degrees of freedom, and the appropriate critical value is found at the intersection of the chosen significance level and the relevant df row. When using a t-table and the exact degrees of freedom are not listed, researchers always round down to the next listed value to avoid inflating the risk of a false positive.
Step 4: Setting the significance level (ฮฑ) and determining critical values
Before collecting any data, researchers must decide on a significance level, denoted as ฮฑ (alpha). This is the threshold probability that determines whether a result is considered statistically significant. Common cutoffs for statistical significance are 0.05 and 0.01, with 0.05 being the conventional standard across most psychological research.
Setting ฮฑ = 0.05 means the researcher is willing to accept a 5% probability of rejecting a true null hypothesis – what is called a Type I error (a false positive). A stricter threshold of ฮฑ = 0.01 reduces this risk further but requires stronger evidence to reject Hโ. The significance level is chosen before data collection to prevent researchers from adjusting their threshold after seeing results.
The significance level maps directly onto critical values – the boundary points on the probability distribution that separate the rejection region from the non-rejection region. If the calculated test statistic falls beyond the critical value (into the rejection region), there is sufficient evidence to reject the null hypothesis. This boundary is determined jointly by ฮฑ and the degrees of freedom.
Step 5: Calculating the p-value
The p-value is the probability of obtaining a test statistic at least as extreme as the one observed, assuming the null hypothesis is true. A smaller p-value means the results are less consistent with the null and may support the alternative hypothesis.
The idea of using p < 0.05 as a standard benchmark originated with statistician R.A. Fisher, who proposed it as a conventional line for concluding there is evidence against the null hypothesis – though not as an absolute rule. Today, statistical software calculates exact p-values, making the process far more precise than relying on printed tables.
It is important to understand what the p-value is not. It does not tell you the probability that the null hypothesis is true, nor does it measure the size or importance of an effect. Statistical significance does not imply practical significance – a finding can be statistically significant while being of negligible real-world importance, particularly when sample sizes are very large.
Step 6: Making the decision – reject or retain the null hypothesis
The final step is to compare the p-value against ฮฑ, or equivalently, the calculated test statistic against the critical value. The logic is straightforward:
If the p-value โค ฮฑ (or the calculated statistic exceeds the critical value), the null hypothesis is rejected. The result is deemed statistically significant, and the data support the alternative hypothesis. If the p-value > ฮฑ, the researcher fails to reject the null hypothesis. This does not mean Hโ is proven true – it simply means there is insufficient evidence in the current sample to conclude otherwise.
To illustrate: in a study where the t-statistic is 3.76 at 17 degrees of freedom, this exceeds the critical value of 2.11 at p = 0.05, placing it in the rejection zone – so the null hypothesis is rejected and the result is deemed significant. The conclusion is then written back in the context of the original research question, not in purely statistical language.
The t-test for population means: putting it all together
When researchers want to test a hypothesis about a population mean – for instance, whether a sample of students shows higher anxiety than the general population – and the sample size is small (typically n < 30), the one-sample t-test is the standard tool. A z-test uses the known population standard deviation, whereas a t-test uses the sample standard deviation as an estimate, and gets critical values from the t-distribution based on degrees of freedom.
The t-test formula computes how many standard errors the sample mean sits away from the population mean specified under Hโ. Once the t-statistic and degrees of freedom are in hand, the researcher consults a t-table or software to find the corresponding p-value. If the resulting p-value falls below the chosen significance threshold, the null hypothesis is rejected in favour of the alternative. The same fundamental logic – state hypotheses, compute a statistic, assess against a critical value, make a decision – runs through every other hypothesis test, from chi-square tests for categorical data to F-tests in analysis of variance.
Why this procedure matters for scientific credibility
The structured nature of hypothesis testing is what gives statistical conclusions their credibility. By fixing the significance level before data collection, using an appropriate test statistic, and grounding the decision in a defined probability framework, researchers protect against conclusions that are merely the result of chance variation. Hypothesis testing provides a procedure for retaining hypotheses that are probably true and rejecting those that are probably false – a powerful tool when used correctly.
That said, the procedure has well-documented limitations. A statistically significant result does not confirm a hypothesis as true, and failing to reject Hโ does not confirm it false. Researchers are increasingly encouraged to supplement p-values with effect sizes – measures of how large or meaningful an observed difference actually is – and confidence intervals, which convey the range of plausible values for a population parameter. The American Psychological Association has strengthened its statistical reporting requirements to reflect these best practices, pushing the field toward richer and more transparent reporting of results.
Used within these broader standards, the general procedure for testing hypotheses remains the backbone of quantitative research in psychology. Every step – from formulating the hypotheses to writing the final conclusion – is designed to ensure that what researchers claim about human behaviour is not a lucky coincidence, but a finding with a principled statistical basis.
What do you think? If two studies on the same topic reach opposite conclusions despite both achieving p < 0.05, what does that tell us about relying solely on p-values as a measure of truth? And how might the choice between a one-tailed and a two-tailed test influence the outcome of a psychological study – and possibly its conclusions?
References
- https://open.maricopa.edu/psy230mm/chapter/9-hypothesis-testing/
- https://www.ai-therapy.com/psychology-statistics/hypothesis-testing/
- https://pmc.ncbi.nlm.nih.gov/articles/PMC7807926/
- https://www.scribbr.com/statistics/null-and-alternative-hypotheses/
- https://www.ebsco.com/research-starters/health-and-medicine/hypothesis-development-and-testing-psychology
- https://resources.nu.edu/statsresources/hypothesis
- https://stats.libretexts.org/Courses/Las_Positas_College/Math_40:_Statistics_and_Probability/08:_Hypothesis_Testing_with_One_Sample/8.01:_Steps_in_Hypothesis_Testing/8.1.01:_Null_and_Alternative_Hypotheses
- https://www.scribbr.com/statistics/degrees-of-freedom/
- https://statisticsbyjim.com/hypothesis-testing/degrees-freedom-statistics/
- https://open.maricopa.edu/psy230mm/chapter/chapter-11-introduction-to-t-tests/
- https://www.simplypsychology.org/p-value.html
- https://pmc.ncbi.nlm.nih.gov/articles/PMC4111019/
- https://en.wikipedia.org/wiki/Statistical_hypothesis_test
- https://en.wikipedia.org/wiki/Student's_t-test
Leave a Reply