Research Methodology

Online B.Com · Sem 4

Lesson 4 of 5

t, z, Chi-Square and ANOVA Tests: When to Use Which

Research Methodology

About the video

Part 2: Parametric & Non Parametric Tests| Details of z Test, t Test, F Test, ANOVA, Chi Square Test

Dr. Puspendra Classes

Study notes

Choosing a statistical test depends on the type of data, the sample size, whether the population standard deviation is known, and how many groups are compared. The z and t tests compare means, ANOVA compares three or more means, and chi-square handles categorical data.

z-test

  • Compares means (or proportions) when the population standard deviation is known, or when the sample is large (n > 30).
  • Assumes a normal distribution.
  • Formula: z = (x̄ − μ) / (σ/√n).
  • Also used to test population proportions.

t-test

  • Compares means when the sample is small (n < 30) and the population standard deviation is unknown.
  • Formula: t = (x̄ − μ) / (s/√n), with df = n − 1.
  • One-sample t-test: compares a sample mean with a known value.
  • Independent-samples t-test: compares the means of two independent groups.
  • Paired t-test: compares before-and-after measurements on the same subjects.

Chi-square Test

  • Used for categorical (nominal) data and frequency counts; it is non-parametric.
  • Test of independence: checks whether two categorical variables are associated, using a contingency table.
  • Goodness of fit: checks whether observed frequencies match expected frequencies.
  • Formula: χ² = Σ (O − E)² / E.
  • For a contingency table, df = (r − 1)(c − 1).
  • Expected frequencies should usually be at least 5.

ANOVA

  • Compares the means of three or more groups.
  • Formula: F = between-group variance / within-group variance.
  • One-way ANOVA: one factor. Two-way ANOVA: two factors and their interaction.
  • Running repeated t-tests instead would inflate the Type I error rate.
  • A significant F only shows that at least one mean differs. Use post-hoc tests (e.g., Tukey) to find which one.

Key terms

z-test
A test of means or proportions using a known σ or a large sample.
t-test
A test of one or two means using a small sample with unknown σ.
Chi-square test
A test for association or goodness of fit with categorical frequency data.
ANOVA
Analysis of variance; compares three or more group means using the F ratio.
Degrees of freedom
The number of values that are free to vary when calculating a statistic.

Takeaways

  • Use a z-test for large samples or known σ, and a t-test for small samples with unknown σ.
  • Use a paired t-test for before-and-after data on the same subjects.
  • Use chi-square for categorical variables and counts.
  • Use ANOVA for three or more means; it avoids the inflated Type I error of multiple t-tests.
Contribute

Was this lesson helpful?

We read every rating and fix the weakest lessons first.