Lecture: Test for Nominal Data
Foundations of Significance Testing and Chance in Nominal Data
Significance testing determines whether patterns observed in empirical data reflect genuine underlying phenomena or mere random variation. The probability of obtaining the observed results—or results more extreme—under the assumption that the null hypothesis () is true is represented by the -value.
To make a statistical decision, the -value is evaluated against a predetermined significance threshold known as alpha (). Within psychological science, the conventional threshold is set at :
If , the data deviate sufficiently from the null expectation; the difference is designated as statistically significant, and the null hypothesis is rejected.
If , the data do not deviate sufficiently from random variation; there is no statistically significant difference, and the null hypothesis fails to be rejected.
Nominal data consist of discrete categories, counts, frequencies, and proportions. In nominal measurement, values reflect qualitative group membership rather than quantitative magnitude or degrees of agreement. Examples include:
Binary choices (e.g., Yes/No responses)
Discrete physical outcomes (e.g., Heads or Tails in a coin toss)
Biological characteristics (e.g., left-handed vs. right-handed individuals)
Political votes (e.g., for vs. against a policy, or choice between discrete parties)
Conducting inferential statistics on nominal counts requires establishing the chance level—the expected frequency of events occurring strictly under random conditions in the absence of an experimental effect. Chance levels vary depending on the nature of the event:
Fair coin flip: A binary outcome with equal probability yields a chance level of or .
Standard six-sided die: The chance of rolling any specific single number (such as a 6 or a 3) is , corresponding to or approximately .
Four-alternative forced-choice assessment: Guessing purely at random among four options (A, B, C, or D) produces a chance baseline of or .
Human population handedness: The empirical baseline frequency of left-handedness in the general population is approximately to .
Establishing an exact expected frequency is the benchmark against which observed distributions are tested.
The Binomial Test
The binomial test is an inferential procedure that evaluates whether the observed proportion of a single sample differs significantly from an expected population proportion or theoretical chance level.
Core Statistical Assumptions
To run a binomial test, the data must satisfy specific criteria:
Nominal data: The dependent variable must represent categorical counts.
Single dichotomy: The variable must possess exactly two mutually exclusive and exhaustive outcomes (e.g., heads/tails, male/female, yes/no).
Random sampling: Observations must be sampled randomly from the target population to prevent systematic selection bias.
Independent observations: Each participant or trial must contribute exactly one data point. The same participant cannot be measured twice, nor can a single trial be recorded multiple times.
Specified expected distribution: The true chance level or population proportion must be known prior to testing.
Worked Example 1: General Population Sex Split
A random sample of pedestrians in York City Centre yielded males ( or an observed proportion of ) and females ( or an observed proportion of ). In a general population, a fair distribution is expected by chance ():

SPSS Execution Procedure:
In SPSS, enter the data in one column representing the dependent variable (e.g.,
Sex), coded with numerical labels (e.g., , ). An optionalParticipantIDcolumn can be retained for organization.Navigate through the menu bar:
Analyze->Nonparametric Tests->Legacy Dialogs->Binomial...

In the Binomial Test dialog window, move the categorical variable (
Sex) into theTest Variable List.

Under
Define Dichotomy, verify thatGet from datais selected.In the
Test Proportionfield, enter the expected proportion expressed as a decimal value:0.50. Entering whole numbers such as50will invalidate the test.

Click
OK.
SPSS Output Interpretation and Reporting:

The resulting output displays the categories, sample counts ( for Group 1: Male; for Group 2: Female; Total ), observed proportions ( and ), the test proportion (), and the exact two-tailed significance value:
Because exceeds the alpha threshold (), the observed proportion of males and females does not differ significantly from what would be expected by chance.
Formal reporting format:
In our sample, 7 participants were male, and 9 were female. A binomial test (.50) revealed that this proportion is not significantly different than would be expected by chance ().
Worked Example 2: Target Population Specificity (Psychology Cohort)
A second sample of students recruited specifically from a university Psychology Department yielded females ( or an observed proportion of ) and males ( or an observed proportion of ).

The statistical conclusion depends on the specified test proportion:
Tested against the general population ():
Exact Sig. (2-tailed) =
Because , the proportion is significantly different from the general population expectation.
Tested against historical departmental baseline ():
Institutional cohort records over a decade indicate that Psychology cohorts average approximately female ().
Exact Sig. (1-tailed) =
Because , the sample does not differ significantly from the specialized population baseline.

Setting an arbitrary expectation when the true underlying population distribution is known to deviate from equality introduces severe inferential errors. Baseline values must be drawn from empirical literature, historical records, or pilot data.
The Chi-Square Test of Independence
While the binomial test evaluates a single sample's dichotomy against a theoretical constant, the Chi-Square () test of independence assesses whether two categorical variables are independent of one another. It evaluates whether the frequency distribution of one nominal variable differs across levels of a second nominal variable.
Core Statistical Assumptions
Nominal data: Both the independent variable (IV) and dependent variable (DV) must be categorical.
Multiple dichotomies: The test design requires at least two dichotomies (a contingency structure), although larger factorial dimensions () can be accommodated.
Random sampling: Data must be derived randomly from the target population.
Independent observations: Each participant contributes to exactly one cell in the contingency table. Repeated-measures or matched-pair designs violate this assumption.
Adequate sample size: The minimum overall sample size must be at least .
Minimum expected cell frequencies: Every individual cell in the contingency table must have an expected frequency () of 5 or greater ().
Worked Example: Clinical Trial of an Antidepressant
A clinical trial investigates the efficacy of a novel antidepressant versus a placebo in depressed patients:
patients receive the active drug.
patients receive a placebo control.
At the conclusion of the trial, participants' clinical mood status is categorized as either
BetterorNo Better.
The observed raw counts are summarized in a contingency table:

In the drug group: reported feeling better; reported feeling no better.
In the placebo group: reported feeling better; reported feeling no better.
In aggregate: patients improved, while showed no improvement.
Manual Calculation of Expected Frequencies ()
Marginal totals represent the sums of each row and column:

Row 1 Marginal Total (
Better):Row 2 Marginal Total (
No Better):Column 1 Marginal Total (
Drug):Column 2 Marginal Total (
Placebo):Grand Total ():
The formula for calculating the expected frequency () for any cell is:
Applying this formula to each cell:
Drug & Better:
Placebo & Better:
Drug & No Better:
Placebo & No Better:

All expected cell counts () exceed the required minimum threshold of 5 (), confirming that the assumption is satisfied.
Manual Calculation of the Chi-Square Statistic ()
The formula for the Chi-Square test statistic is:
Where represents the observed frequency and represents the expected frequency.

Calculations for each cell:
Cell 1 (
Drug/Better):
Cell 2 (
Placebo/Better):
Cell 3 (
Drug/No Better):
Cell 4 (
Placebo/No Better):
Summing these individual components yields the overall test statistic:

A larger statistic indicates a greater divergence between observed and expected frequencies, increasing the likelihood of reaching statistical significance.
Degrees of Freedom and Critical Values Lookup
The degrees of freedom () for a contingency table are calculated as:
Where is the number of rows and is the number of columns. For a table:
Using a standard statistical table of critical values for the Chi-Square distribution at and :

Because the obtained test statistic () is strictly greater than the critical threshold of , the null hypothesis of independence is rejected at .
SPSS Execution Procedure
Structure the dataset with two categorical columns: one for the independent variable (
Drug, coded e.g. , ) and one for the outcome variable (Better, coded e.g. , ).

Navigate:
Analyze->Descriptive Statistics->Crosstabs...Assign the variables: Place the independent variable (
Drug) intoColumn(s)and the dependent variable (Better) intoRow(s).

Click the
Statistics...button on the right side. Check the box labeledChi-square.

Click
Continue, then clickOK.
SPSS Output Interpretation and Write-Up

The Chi-Square Tests output table provides several metrics:
Pearson Chi-Square: , , .Continuity Correction: , , .Likelihood Ratio: , , .Fisher's Exact Test: , .Linear-by-Linear Association: , , .Diagnostic footnote:
0 cells (0.0%) have expected count less than 5. The minimum expected count is 8.50.
Because the minimum expected count assumption is preserved (), the Pearson Chi-Square value is reported.
Formal reporting format:
In the drug condition, 15 out of 20 participants reported feeling better, while in the placebo group only 8 out of 20 students felt better. A Chi square test of independence revealed that these proportions were significantly different to those expected by chance (, ).
Violation of Assumptions and Fisher's Exact Test
The Chi-Square test of independence operates as a parametric test on frequencies and is sensitive to violations of sample size and expected counts. The two assumptions most frequently breached are:
Total sample size is smaller than 40 ().
One or more cells produce an expected count of less than 5 ().
When either assumption is violated, the Pearson Chi-Square statistic can yield an inflated Type I error rate (false positive). In such cases, researchers must report the non-parametric equivalent: Fisher's Exact Test.
Diagnostic Detection in SPSS
SPSS checks the expected frequencies automatically and provides a footnote beneath the Chi-Square Tests output table:

In the table above ():
Footnote
astates:1 cells (25.0%) have expected count less than 5. The minimum expected count is 1.83.The standard
Pearson Chi-Squarerow indicates , , and .If evaluated solely by the Pearson statistic, one would conclude that the result is statistically significant ().
However, because the assumption is violated, the Pearson statistic is invalid.
Inspecting the
Fisher's Exact Testrow reveals an exact two-sided significance of:
Because , the difference between groups is not statistically significant. Misreporting the Pearson Chi-Square value would lead to a Type I error.
Reporting Fisher's Exact Test
Unlike Chi-Square, Fisher's Exact Test does not report a test statistic value (such as an or value) or degrees of freedom. The report contains group descriptive proportions (or percentages) alongside the exact two-tailed -value:
A 2-tailed Fisher's exact test showed that there was no difference between the number of men (4/9) and women (6/10) that pass their driving test first time ().
Percentages are preferable when cell counts are large, as they are easier to interpret than complex fractional ratios.
One-Tailed vs. Two-Tailed Hypotheses and Tests
The tails of a probability distribution represent the extreme regions of potential outcomes:

In a standard normal distribution, of the total area falls within the interval bounded by and from the mean, leaving divided equally across the two outer tails ( on each side).
One-Tailed (Directional) Hypotheses and Tests
A one-tailed hypothesis (directional hypothesis) predicts the specific direction of an experimental effect:
Example: "Consuming caffeine will make reaction times faster."
Example: "Female vocal pitch will be higher than male vocal pitch."
In a one-tailed statistical test, the entire critical alpha rejection region is allocated into a single tail of the distribution:

The Critical Hazard of One-Tailed Tests:
Allocating all statistical power to one extreme increases sensitivity in that specified direction, but leaves the opposite tail unmonitored. If the true effect operates in the direction opposite to the hypothesis (e.g., if caffeine paradoxically slows reaction times in participants with ADHD), the test cannot detect it. The outcome will be labeled non-significant, leading researchers to conclude that the independent variable had no effect when an effect was present in the reverse direction.
Two-Tailed (Non-Directional) Hypotheses and Tests
A two-tailed hypothesis (non-directional hypothesis) predicts an effect without specifying its direction:
Example: "Caffeine consumption will affect reaction time."
Example: "Vocal pitch is different between males and females."
Example: "Drug A will affect mood status."
A two-tailed test divides the alpha threshold equally across both extremes ( in the lower tail and in the upper tail):

Because the rejection area in each tail is smaller ( rather than ), observed sample scores must be more extreme to achieve significance. However, this structure ensures that true effects occurring in either direction will be detected.
Standard Testing Protocol
When designing research, directional (one-tailed) hypotheses should be generated whenever prior literature provides empirical justification. However, researchers must perform two-tailed analyses and report two-tailed -values (Exact Sig. (2-sided)) unless an exclusively one-tailed evaluation is explicitly instructed. This prevents the omission of meaningful effects that run counter to initial expectations.
The Chi-Square Goodness-of-Fit Test
The Chi-Square goodness-of-fit test evaluates whether an observed categorical frequency distribution differs significantly from an expected or theoretical distribution when a single nominal variable contains more than two levels (). It serves the same conceptual function as a binomial test, but accommodates multi-categorical data.
Core Statistical Assumptions
Nominal data: The variable must represent discrete qualitative classifications.
Multiple levels of a single dependent variable: The variable must possess three or more discrete levels (e.g., continental location: Africa, Asia, Australasia, Europe, North America, South America).
Random sampling: Observations must be sampled randomly from the population.
Independent observations: Each participant contributes exactly one count to a single category.
Minimum expected frequencies: Every category must have an expected count of 5 or more ().
Worked Example: Dating Preference Experiment
A sample of participants completed a four-alternative forced-choice task indicating which of four individuals they would prefer to date: Boris Johnson, Justin Bieber, Brad Pitt, or Bill Gates.
Under a null hypothesis of equal preference, choices are evenly distributed across the options ():
The observed choices () collected from the sample were:
Boris Johnson:
Justin Bieber:
Brad Pitt:
Bill Gates:
Total:
Manual Calculation of the Goodness-of-Fit Statistic
Using the formula for each individual category:
Boris Johnson:
Justin Bieber:
Brad Pitt:
Bill Gates:
Summing all cell contributions yields:
Degrees of Freedom and Critical Values Lookup
For a goodness-of-fit test, degrees of freedom are determined by the number of categories ():
Consulting the Chi-Square critical value distribution table at and :

Because the obtained test statistic () substantially exceeds the critical threshold (), the null hypothesis is rejected ().
SPSS Execution Procedure
Enter the data in one column representing the dependent variable (
Preference), coding each participant's choice with a distinct category label.

Navigate:
Analyze->Nonparametric Tests->Legacy Dialogs->Chi-square...(Note: This is located within Nonparametric Tests, unlike the Chi-Square test of independence which is located under Crosstabs).

Move the categorical variable (
Preference) into theTest Variable List.

Under
Expected Values, retain the default selectionAll categories equal(if theoretical models or pilot data specify unequal proportions, selectValuesand add expected weights manually in order of category codes).Click
OK.
SPSS Output Interpretation and Write-Up

The output contains two tables:
Frequencies: Lists observed counts (), expected counts ( each), and residuals (the difference between observed and expected: ).Test Statistics:Chi-Square:
:
Asymp. Sig.:
Because , the distribution of observed dating preferences departs significantly from random expectation.
Standards for Reporting Statistical Values in Psychology
Adherence to standardized formatting guidelines is essential when reporting statistical values in practical reports and research manuscripts:
Decimal Precision: Report all -values to exactly three decimal places (e.g., , ). Most descriptive statistics, such as means and standard deviations, are presented to two decimal places.
No Leading Zeros: Because probabilities cannot exceed 1.0, omit the leading zero before the decimal point (write , never ).
Typography: The letter must always be written in lower-case and italicized ().
Exact Reporting: Always report exact calculated probabilities rather than reporting inequality bands against alpha (write , rather than or ).
The Zero Display Rule: When statistical software displays a probability of
.000, never report , as a true probability of zero is mathematically impossible. Report the value as:
Comparative Summary Matrix of Nominal Tests
Test Name | Primary Purpose | Variable Structure | Critical Assumptions | Alternative Test |
|---|---|---|---|---|
Binomial Test | Tests an observed sample proportion against an expected chance level | 1 sample; 1 DV with a single dichotomy (2 levels) | Nominal data; independent scores; random sample; known chance proportion | None (Fundamental test for single dichotomies) |
Chi-Square Test of Independence | Tests whether two categorical variables are related or independent | 2 or more groups/variables; at least 2 dichotomies () | Nominal data; independent scores; ; all expected cell counts | Fisher's Exact Test (reported when or any ) |
Fisher's Exact Test | Non-parametric test of independence for categorical distributions | 2 categorical variables ( design) | Nominal data; independent scores; used when Chi-Square sample size assumptions fail | Chi-Square Test of Independence (when sample size and hold) |
Chi-Square Goodness-of-Fit Test | Tests whether observed frequencies match an expected theoretical distribution | 1 sample; 1 DV with multiple levels () | Nominal data; independent scores; random sample; all expected counts | Combine categories or expand sample size if |