Hypothesis tests about the variance

This lecture presents some examples of Hypothesis testing, focusing on tests of hypothesis about the variance, i.e. on using a sample to perform tests of hypothesis about the variance of an unknown distribution.

Normal IID samples - Known mean

In this example we make the same assumptions we made in the example of set estimation of the variance entitled Normal IID samples - Known mean. The reader is strongly advised to read that example before reading this one.

The sample

The sample $xi _{n}$ is made of n independent draws from a normal distribution having known mean mu and unknown variance sigma^2. Specifically, we observe n realizations $x_{1}$, ..., $x_{n}$ of n independent random variables X_1, ..., X_n, all having a normal distribution with known mean mu and unknown variance sigma^2. The sample is the n-dimensional vector [eq1], which is a realization of the random vector [eq2].

The null hypothesis

We test the null hypothesis that the variance sigma^2 is equal to a specific value $sigma _{0}^{2}>0$:[eq3]

The alternative hypothesis

We assume that the parameter space is the set of strictly positive real numbers, i.e. [eq4]. Therefore, the alternative hypothesis is:[eq5]

The test statistic

To construct a test statistic, we use the following point estimator of the variance:[eq6]

The test statistic is:[eq7]This test statistic is often called Chi-square statistic (also written as [eq8]-statistic) and a test of hypothesis based on this statistic is called Chi-square test (also written as [eq9]-test).

The critical region

Let [eq10] and $z_{1}<z_{2}$. We reject the null hypothesis $H_{0}$ if [eq11] or if [eq12]. In other words, the critical region is:[eq13]Thus, the critical values of the test are $z_{1}$ and $z_{2}$.

The power function

The power function of the test is:[eq14]where $kappa _{n}$ is a Chi-square random variable with n degrees of freedom and the notation [eq15] is used to indicate the fact that the probability of rejecting the null hypothesis is computed under the hypothesis that the true variance is equal to sigma^2.

nav_button Proof

The power function can be written as:[eq16]where we have defined[eq17]As demonstrated in the lecture entitled Point estimation of the variance, the estimator [eq18] has a Gamma distribution with parameters n and sigma^2, given the assumptions on the sample $xi _{n}$ we made above. Multiplying a Gamma random variable with parameters n and sigma^2 by $n/sigma ^{2}$ one obtains a Chi-square random variable with n degrees of freedom. Therefore, the variable $kappa _{n}$ has a Chi-square distribution with n degrees of freedom.

The size of the test

When evaluated at the point [eq19], the power function is equal to the probability of committing a Type I error, i.e. the probability of rejecting the null hypothesis when the null hypothesis is true. This probability is called the size of the test and it is equal to: [eq20]where $kappa _{n}$ is a Chi-square random variable with n degrees of freedom (this is trivially obtained by substituting sigma^2 with $sigma _{0}^{2}$ in the formula for the power function found above).

Normal IID samples - Unknown mean

This example is similar to the previous one. The only difference is that we now relax the assumption that the mean of the distribution is known.

The sample

In this example, the sample $xi _{n}$ is made of n independent draws from a normal distribution having unknown mean mu and unknown variance sigma^2. Specifically, we observe n realizations $x_{1}$, ..., $x_{n}$ of n independent random variables X_1, ..., X_n, all having a normal distribution with unknown mean mu and unknown variance sigma^2. The sample is the n-dimensional vector [eq21], which is a realization of the random vector [eq2].

The null hypothesis

We test the null hypothesis that the variance sigma^2 is equal to a specific value $sigma _{0}^{2}>0$:[eq3]

The alternative hypothesis

We assume that the parameter space is the set of strictly positive real numbers, i.e. [eq4]. Therefore, the alternative hypothesis is:[eq5]

The test statistic

We construct a test statistic, using the sample mean Xbar_n:[eq26]and either the unadjusted sample variance:[eq27]or the adjusted sample variance:[eq28]

The test statistic is:[eq29]This test statistic is often called Chi-square statistic (also written as [eq8]-statistic) and a test of hypothesis based on this statistic is called Chi-square test (also written as [eq9]-test).

The critical region

Let [eq10] and $z_{1}<z_{2}$. We reject the null hypothesis $H_{0}$ if [eq11] or if [eq12]. In other words, the critical region is:[eq13]Thus, the critical values of the test are $z_{1}$ and $z_{2}$.

The power function

The power function of the test is:[eq14]where the notation [eq37] is used to indicate the fact that the probability of rejecting the null hypothesis is computed under the hypothesis that the true variance is equal to sigma^2 and $kappa _{n}$ has a Chi-square distribution with $n-1$ degrees of freedom.

nav_button Proof

The power function can be written as:[eq38]where we have defined[eq39]Given the assumptions on the sample $xi _{n}$ we made above, the unadjusted sample variance $S_{n}^{2}$ has a Gamma distribution with parameters $n-1$ and [eq40] (see Point estimation of the variance), so that the random variable[eq41]has a Chi-square distribution with $n-1$ degrees of freedom.

The size of the test

The size of the test is equal to: [eq20]where $kappa _{n}$ has a Chi-square distribution with $n-1$ degrees of freedom (this is trivially obtained by substituting sigma^2 with $sigma _{0}^{2}$ in the formula for the power function found above).

by
About | Contacts | Privacy and terms of use | Sitemap