Study resource

Read at your pace, then save it for later.

Unit 4: The Chi-Square Distribution: Theory and Applications

Introduction to Exact Sampling Distributions

In inferential statistics, an exact sampling distribution refers to the probability distribution of a statistic when the sample size is finite and the population distribution is precisely known. Unlike asymptotic distributions, which are approximations for large sample sizes, exact sampling distributions provide precise probabilities regardless of sample size (provided the underlying assumptions are met). The Chi-Square (χ2) distribution is one such fundamental exact sampling distribution.

The Chi-Square (χ2) Distribution

Definition

The Chi-Square (χ2) distribution with n degrees of freedom (d.f.) is defined as the distribution of the sum of the squares of n independent standard normal random variables.

If Z1, Z2, ..., Zn are independent and identically distributed standard normal random variables (i.e., Zi ~ N(0, 1)), then the random variable X defined as:

X = Z12 + Z22 + ... + Zn2 = ∑i=1n Zi2

follows a Chi-Square distribution with n degrees of freedom, denoted as X ~ χ2(n).

Probability Density Function (p.d.f.)

Derivation of p.d.f. using Moment Generating Function (m.g.f.)

The p.d.f. of the χ2 distribution can be derived using the moment generating function (m.g.f.).

  1. M.g.f. of the Square of a Standard Normal Variable:
    Let Z ~ N(0, 1). The random variable Y = Z2 has a p.d.f. given by:
    fY(y) = (1 / (Γ(1/2) 21/2)) y(1/2)-1 e-y/2 for y > 0.
    This is a Gamma distribution with shape parameter α = 1/2 and scale parameter β = 2. Its m.g.f. is:
    MY(t) = (1 - 2t)-1/2 for t < 1/2.
  2. M.g.f. of the Sum of Independent Variables:
    If X = ∑i=1n Zi2, and each Zi2 is independently χ2(1) (or Gamma(1/2, 2)), then the m.g.f. of X is the product of the individual m.g.f.s:
    MX(t) = E[etX] = E[et ∑i=1n Zi2] = ∏i=1n E[et Zi2]
    MX(t) = ∏i=1n (1 - 2t)-1/2 = (1 - 2t)-n/2 for t < 1/2.
  3. Identifying the Distribution from the M.g.f.:
    The m.g.f. MX(t) = (1 - 2t)-n/2 is the m.g.f. of a Gamma distribution with shape parameter α = n/2 and scale parameter β = 2.
  4. Probability Density Function of χ2(n):
    Therefore, the p.d.f. of a Chi-Square distribution with n degrees of freedom is the p.d.f. of a Gamma(α = n/2, β = 2) distribution:
    f(x; n) = (1 / (Γ(n/2) 2n/2)) x(n/2)-1 e-x/2 for x > 0, and 0 otherwise.

    Here, Γ(n/2) is the Gamma function evaluated at n/2. The parameter n is the degrees of freedom (d.f.).

Properties of the Chi-Square (χ2) Distribution

Let X ~ χ2(n).

  • Mean:
    E[X] = n

    The mean of a χ2 distribution is equal to its degrees of freedom.

  • Variance:
    Var[X] = 2n

    The variance of a χ2 distribution is twice its degrees of freedom.

  • Moment Generating Function (m.g.f.):
    MX(t) = (1 - 2t)-n/2 for t < 1/2.

    As derived earlier, the m.g.f. is a crucial tool for understanding and deriving properties of the distribution.

  • Cumulant Generating Function (c.g.f.):
    The c.g.f. KX(t) is the natural logarithm of the m.g.f.
    KX(t) = ln(MX(t)) = ln((1 - 2t)-n/2) = -(n/2) ln(1 - 2t) for t < 1/2.

    Cumulants, derived from the c.g.f., are useful for describing the shape of a distribution. The first cumulant is the mean, the second is the variance, the third is related to skewness, and the fourth to kurtosis.

  • Mode:

    The mode of the χ2 distribution depends on the degrees of freedom (n):

    • If n > 2, the mode is at n - 2.
    • If n = 2, the p.d.f. is maximized at x = 0 (the mode is 0).
    • If n = 1, the p.d.f. approaches infinity as x approaches 0, so there is no unique mode in the conventional sense, or some consider 0 as the mode. However, often only n > 2 is considered for a 'peak'.
  • Additive Property:
    If X1 ~ χ2(n1) and X2 ~ χ2(n2) are independent Chi-Square random variables, then their sum X1 + X2 follows a Chi-Square distribution with (n1 + n2) degrees of freedom.
    X1 + X2 ~ χ2(n1 + n2)

    This property is very important in applications where sums of independent squared normal variates are encountered.

Sum and Quotient Theorems

Understanding sums and quotients of random variables is fundamental in probability theory, as these operations often lead to new, important distributions. The syllabus mentions examples like X, X+Y, Y/X, and X/(X+Y).

Sum of Random Variables (e.g., X + Y)

When two independent random variables, X and Y, are added, the distribution of their sum Z = X + Y can often be found using convolution or by combining their moment generating functions (if they exist).

  • For Chi-Square variables, if X ~ χ2(n1) and Y ~ χ2(n2) are independent, then Z = X + Y ~ χ2(n1 + n2). This is precisely the additive property discussed above, highlighting its significance.

Quotient of Random Variables (e.g., Y / X and X / (X + Y))

When two independent random variables, X and Y, are divided or combined in a ratio, this also leads to new distributions. These are often more complex than sums but are crucial in many statistical tests.

  • If X ~ χ2(n1) and Y ~ χ2(n2) are independent, then the ratio (X/n1) / (Y/n2) follows an F-distribution with (n1, n2) degrees of freedom. This is a fundamental distribution for comparing variances.
  • If X ~ χ2(n1) and Y ~ χ2(n2) are independent, then the ratio X / (X + Y) follows a Beta distribution of the first kind with parameters α = n1/2 and β = n2/2.

These examples illustrate how specific combinations of χ2 variables give rise to other common sampling distributions used in hypothesis testing.

Limiting Form of χ2 Distribution

As the degrees of freedom (n) increase, the shape of the χ2 distribution changes. For large values of n, the χ2 distribution approaches a normal distribution.

Specifically, if X ~ χ2(n), then for large n, X is approximately normally distributed with mean n and variance 2n.

X ≈ N(n, 2n)

A better approximation involves standardizing the variable. For large n, the expression √(2X) - √(2n - 1) approaches a standard normal distribution, N(0, 1).

This limiting property is important because it allows us to use normal distribution approximations for χ2 tests when the degrees of freedom are sufficiently large, simplifying calculations in some cases.

Applications of the Chi-Square (χ2) Distribution

Tests of Significance Based on χ2 Distribution

The χ2 distribution is widely used in hypothesis testing, particularly for analyzing categorical data.

  • Chi-Square Test for Goodness of Fit:

    This test assesses whether an observed frequency distribution significantly differs from an expected frequency distribution. It is used to test if a sample comes from a population with a specific hypothesized distribution (e.g., uniform, normal, Poisson).

    Hypothesis:
    H0: The observed frequencies fit the expected distribution.
    H1: The observed frequencies do not fit the expected distribution.

    Test Statistic:
    χ2 = ∑ [(Oi - Ei)2 / Ei]

    Where Oi is the observed frequency in category i, and Ei is the expected frequency in category i. The degrees of freedom are k - 1 - m, where k is the number of categories and m is the number of parameters estimated from the sample to calculate Ei.

    Example: Testing if a die is fair by comparing observed roll frequencies to expected uniform frequencies.

  • Chi-Square Test for Independence (Association):

    This test determines if there is a statistically significant association between two categorical variables in a contingency table. It tests whether the two variables are independent of each other.

    Hypothesis:
    H0: The two categorical variables are independent.
    H1: The two categorical variables are dependent (associated).

    Test Statistic:
    χ2 = ∑ ∑ [(Oij - Eij)2 / Eij]

    Where Oij is the observed frequency in cell (i, j) of the contingency table, and Eij is the expected frequency in cell (i, j) assuming independence. The degrees of freedom are (r - 1)(c - 1), where r is the number of rows and c is the number of columns.

    Example: Testing if there is an association between gender and preferred type of beverage.

  • Chi-Square Test for Homogeneity:

    This test is similar to the test for independence but is used when comparing the distribution of a single categorical variable across two or more independent populations. It tests if the proportions of categories are the same across different populations.

    Hypothesis:
    H0: The distributions of the categorical variable are homogeneous across the populations.
    H1: The distributions are not homogeneous.

    Test Statistic:
    The test statistic and degrees of freedom are calculated in the same way as the test for independence: χ2 = ∑ ∑ [(Oij - Eij)2 / Eij] with d.f. = (r - 1)(c - 1).

    Example: Comparing the proportion of voters favoring a candidate across different regions.

Confidence Intervals Based on χ2 Distribution

The χ2 distribution is also used to construct confidence intervals for the population variance (σ2) of a normally distributed population.

If we have a random sample of size n from a normal population with variance σ2, then the sample variance S2 is related to the χ2 distribution through the statistic:

((n - 1) S2) / σ2 ~ χ2(n - 1)

A (1 - α)100% confidence interval for σ2 is given by:

[ ((n - 1) S2) / χ2α/2, n-1 , ((n - 1) S2) / χ21-α/2, n-1 ]

Where χ2α/2, n-1 and χ21-α/2, n-1 are the critical values from the χ2 distribution with (n - 1) degrees of freedom, corresponding to the lower and upper tails of the distribution, respectively.

This confidence interval provides a range of plausible values for the true population variance based on the observed sample variance. It is particularly useful in quality control and process capability studies where the variability of a process is a key concern.


xxx

Did this help you understand better?

Your feedback improves the quality of this resource for everyone.