Skip to content
GATEiit

GATE ME, EE, IN, BM, MN + 2 more · Probability and Statistics

Sampling Distributions and Hypothesis Testing (t, Chi-Square and F Tests)

Sampling distributions of mean and variance, standard error, t, Chi-square and F distributions, Type I/II errors, p-values, confidence intervals, and hypothesis testing.

Before you start

Concept notes

1. Sample Mean, Unbiased Variance and Standard Error

Let X1,X2,…,Xn be an independent random sample from a population with mean μ and finite variance σ2.

  • Sample mean Xˉ=1n∑i=1nXi is unbiased: E[Xˉ]=μ, with variance Var⁡(Xˉ)=σ2n. Thus the standard error (SE) of the mean is σn (estimated as sn when σ is unknown).
  • Sampling without replacement from a finite population of size N: Var⁡(Xˉ)=σ2n⋅N−nN−1.
  • Sample variance (Bessel's correction): Because 1 degree of freedom is lost estimating Xˉ, an unbiased estimator of σ2 divides by n−1, not n: s2=1n−1∑i=1n(Xi−Xˉ)2  ⟹  E[s2]=σ2
H₀ centre (0) -z(α/2) +z(α/2) α/2 α/2 Acceptance Region (1 − α confidence) Reject H₀ if |test statistic| > critical value (or equivalently if p-value < α)
Two-tailed hypothesis test showing total significance level α split equally across lower and upper rejection tails.

2. Exact Sampling Distributions: Z, Student's t, Chi-Square and F

When X1,…,Xn∼iidN(μ,σ2):

  1. Standard Normal Z: Xˉ−μσ/n∼N(0,1) (known σ, or large n≥30 via CLT).
  2. Student's t with ν=n−1 degrees of freedom: Replacing unknown σ by sample standard deviation s yields heavier tails: T=Xˉ−μs/n∼tn−1 As n→∞, tn−1→N(0,1).
  3. Chi-square (χ2) with ν=n−1 degrees of freedom: χ2=(n−1)s2σ2=∑i=1n(Xi−Xˉσ)2∼χn−12 Properties: E[χν2]=ν and Var⁡(χν2)=2ν. Also, the sum of k independent Zi2 is χk2.
  4. Snedecor's F distribution with (ν1,ν2)=(n1−1, n2−1): Ratio of two independent variance ratios: F=s12/σ12s22/σ22∼Fn1−1, n2−1

3. Hypothesis Testing Framework: Errors, Significance Level and p-Value

We pit the default null hypothesis H0 (e.g. μ=μ0) against an alternative hypothesis H1 (two-tailed μ≠μ0, or one-tailed μ>μ0 / μ<μ0):

Decision vs Truth H0 is True H0 is False
Fail to reject H0 Correct decision (1−α) Type II error (β) (false negative)
Reject H0 Type I error (α) (false positive) Correct rejection (Power =1−β)
  • Significance level α: Maximum tolerable probability of a Type I error (P(reject H0∣H0 true)), equal to 1−Confidence Level.
  • p-value: Probability, assuming H0 is true, of observing a test statistic at least as extreme as the sample value. Reject H0 if p<α.
  • Sample size trade-off: For a fixed n, lowering α increases β (reduces power). Increasing n narrows standard error and shrinks both α and β simultaneously.

4. Selecting the Right Statistical Test and Confidence Intervals

Match the test distribution strictly to what parameter is tested and whether σ is known:

  • Single mean, known σ (or large n): Z=Xˉ−μ0σ/n, confidence interval Xˉ±zα/2σn.
  • Single mean, unknown σ, normal population: t=Xˉ−μ0s/n with df=n−1, interval Xˉ±tα/2, n−1sn.
  • Single population variance σ2=σ02: χ2=(n−1)s2σ02 with df=n−1.
  • Comparison of two population variances (σ12=σ22): F=s12s22 with (n1−1,n2−1) degrees of freedom.
  • Goodness-of-fit / Contingency table independence: χ2=∑(Oi−Ei)2Ei with df=k−1−m (m estimated parameters) for goodness-of-fit, or df=(r−1)(c−1) for an r×c contingency table.

Formulas to remember

Standard error of sample mean
SE(Xˉ)=σn(infinite pop.)
Finite population correction
Var⁡(Xˉ)=σ2n⋅N−nN−1
Unbiased sample variance
s2=1n−1∑i=1n(Xi−Xˉ)2
Student t-statistic
t=Xˉ−μ0s/n∼tn−1
Chi-square variance statistic
χ2=(n−1)s2σ02∼χn−12
Chi-square goodness-of-fit
χ2=∑i(Oi−Ei)2Ei,df=(r−1)(c−1) (table)
F-test for variance ratio
F=s12s22∼Fn1−1, n2−1(under σ12=σ22)
Statistical power
Power=1−β=P(reject H0∣H1 true)

Common mistakes

  • Dividing sample variance by n instead of n−1 inside t and χ2 test formulas; Bessel's factor n−1 is built into tn−1 and χn−12.
  • Confusing standard deviation σ of the raw population with the standard error σ/n of the sample mean Xˉ.
  • Misreading the p-value as P(H0 is true) instead of P(test statistic as extreme or more∣H0 is true).
  • Using Z-critical values when n is small (n<30) and population σ is unknown instead of tn−1.
  • Forgetting that for an r×c contingency table the degrees of freedom are (r−1)(c−1), whereas goodness-of-fit with k categories and m estimated parameters has k−1−m.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Computing the Z-statistic and standard error for a sample mean

numerical

A manufacturing line produces shafts with population standard deviation σ=12 mm under null mean μ0=50 mm. A random sample of n=36 shafts has sample mean xˉ=54 mm. Compute the standard error and test statistic Z.

  1. Step 1: Compute standard error of the mean

    Try it on paper first.

Example 2: One-sample t-test when population variance is unknown

numerical

A sample of size n=16 from a normal population yields xˉ=22.5 and unbiased sample standard deviation s=4. Test H0:μ=20 vs H1:μ>20 at α=0.05 (given t0.05, 15=1.753).

  1. Step 1: Determine degrees of freedom and standard error estimate

    Try it on paper first.

Example 3: Comparing two sample variances using the F-test

numerical

Sample 1 (n1=10) has unbiased variance s12=18 and independent Sample 2 (n2=13) has s22=6. Find the F-statistic and its numerator/denominator degrees of freedom for testing H0:σ12=σ22.

  1. Step 1: Compute ratio of sample variances

    Try it on paper first.

Example 4: Trade-off between Type I error, Type II error and sample size

conceptual

In quality acceptance testing, an engineer reduces the significance level from α=0.05 to α=0.01 while holding the sample size n and true alternative μ1 fixed. How do Type II error β and statistical power 1−β change?

  1. Step 1: Check effect on rejection region

    Try it on paper first.

Previous year questions

No official PYQ in our currently live papers is tagged with this exact topic yet. The topic test below uses original GATE-style questions.

Topic test

8 questions: original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE Engineering Mathematics (ME, EE, IN, BM, MN + 2 more) syllabus; being checked by a reviewer. Updated 2026-12-01. Spotted a mistake? Use Report an issue on any question, or contact us.