# 4.1 Tests about one mean and one variance

 Page 1 / 1
This course is a short series of lectures on Introductory Statistics. Topics covered are listed in the Table of Contents. The notes were prepared by EwaPaszek and Marek Kimmel. The development of this course has been supported by NSF 0203396 grant.

## Tests about one mean and one variance

In the previous paragraphs it was assumed that we were sampling from a normal distribution and the variance was known. The null hypothesis was generally of the form .

There are essentially tree possibilities for the alternative hypothesis, namely that $\mu$ has increased,

• ; $\mu$ has decreased,
• ; $\mu$ has changed, but it is not known if it has increased or decreased, which leads to a two-sided alternative hypothesis
• ${H}_{1};\mu \ne {\mu }_{0}$ .

To test ${H}_{0};\mu ={\mu }_{0}$ against one of these tree alternative hypotheses, a random sample is taken from the distribution, and an observed sample mean, $\overline{x}$ , that is close to ${\mu }_{0}$ supports ${\text{H}}_{\text{0}}$ . The closeness of $\overline{x}$ to ${\mu }_{0}$ is measured in term of standard deviations of $\overline{X}$ , $\sigma /\sqrt{n}$ which is sometimes called the standard error of the mean . Thus the statistic could be defined by

$Z=\frac{\overline{X}-{\mu }_{0}}{\sqrt{\sigma 2}/n}=\frac{\overline{X}-{\mu }_{0}}{\sigma /\sqrt{n}},$ and the critical regions, at a significance level $\alpha$ , for the tree respective alternative hypotheses would be:

• $z\ge {z}_{\alpha }$
• $z\le {z}_{\alpha }$
• $|z|={z}_{\alpha /2}$

In terms of $\overline{x}$ these tree critical regions become

• $\overline{x}\ge {\mu }_{0}+{z}_{\alpha }\sigma /\sqrt{n},$
• $\overline{x}\le {\mu }_{0}-{z}_{\alpha }\sigma /\sqrt{n},$
• $|\overline{x}-{\mu }_{0}|\ge {z}_{\alpha }\sigma /\sqrt{n}$

These tests and critical regions are summarized in TABLE 1 . The underlying assumption is that the distribution is $N\left(\mu ,{\sigma }^{2}\right)$ and ${\sigma }^{2}$ is known. Thus far we have assumed that the variance ${\sigma }^{2}$ was known. We now take a more realistic position and assume that the variance is unknown. Suppose our null hypothesis is ${H}_{0};\mu ={\mu }_{0}$ and the two-sided alternative hypothesis is ${H}_{1};\mu \ne {\mu }_{0}$ . If a random sample ${X}_{1},{X}_{2},...,{X}_{n}$ is taken from a normal distribution $N\left(\mu ,{\sigma }^{2}\right)$ ,let recall that a confidence interval for $\mu$ was based on $T=\frac{\overline{X}-\mu }{\sqrt{{S}^{2}/n}}=\frac{\overline{X}-\mu }{S/\sqrt{n}}.$

Table 1
${H}_{0}$ ${H}_{1}$ Critical Region
$\mu ={\mu }_{0}$ $\mu >{\mu }_{0}$ $z\ge {z}_{\alpha }$ or $\overline{x}\ge {\mu }_{0}+{z}_{\alpha }\sigma /\sqrt{n}$
$\mu ={\mu }_{0}$ $\mu <{\mu }_{0}$ $z\le -{z}_{\alpha }$ or $\overline{x}\le {\mu }_{0}-{z}_{\alpha }\sigma /\sqrt{n}$
$\mu ={\mu }_{0}$ $\mu \ne {\mu }_{0}$ $|z|\ge {z}_{\alpha /2}$ or $|\overline{x}-{\mu }_{0}|\ge {z}_{\alpha /2}\sigma /\sqrt{n}$

This suggests that T might be a good statistic to use for the test ${H}_{0};\mu ={\mu }_{0}$ with $\mu$ replaced by ${\mu }_{0}$ . In addition, it is the natural statistic to use if we replace ${\sigma }^{2}/n$ by its unbiased estimator ${S}^{2}/n$ in $\left(\overline{X}-{\mu }_{0}\right)/\sqrt{{\sigma }^{2}/n}$ in a proper equation. If $\mu ={\mu }_{0}$ we know that T has a t distribution with n -1 degrees of freedom. Thus, with $\mu ={\mu }_{0}$ ,

$P\left[|T|\ge {t}_{\alpha /2}\left(n-1\right)\right]=P\left[\frac{|\overline{X}-{\mu }_{0}|}{S/\sqrt{n}}\ge {t}_{\alpha /2}\left(n-1\right)\right]=\alpha .$

Accordingly, if $\overline{x}$ and s are the sample mean and the sample standard deviation, the rule that rejects ${H}_{0};\mu ={\mu }_{0}$ if and only if $|t|=\frac{|\overline{x}-{\mu }_{0}|}{s/\sqrt{n}}\ge {t}_{\alpha /2}\left(n-1\right).$

Provides the test of the hypothesis with significance level $\alpha$ . It should be noted that this rule is equivalent to rejecting ${H}_{0};\mu ={\mu }_{0}$ if ${\mu }_{0}$ is not in the open $100\left(1-\alpha \right)%$ confidence interval $\left(\overline{x}-{t}_{\alpha /2}\left(n-1\right)s/\sqrt{n},\overline{x}+{t}_{\alpha /2}\left(n-1\right)s/\sqrt{n}\right).$

Table 2 summarizes tests of hypotheses for a single mean, along with the three possible alternative hypotheses, when the underlying distribution is $N\left(\mu ,{\sigma }^{2}\right)$ , ${\sigma }^{2}$ is unknown, $t=\left(\overline{x}-{\mu }_{0}\right)/\left(s/\sqrt{n}\right)$ and $n\le 31$ . If n >31, use table 1 for approximate tests with $\sigma$ replaced by s .

Table 2
${H}_{0}$ ${H}_{1}$ Critical Region
$\mu ={\mu }_{0}$ $\mu >{\mu }_{0}$ $t\ge {t}_{\alpha }\left(n-1\right)$ or $\overline{x}\ge {\mu }_{0}+{t}_{\alpha }\left(n-1\right)s/\sqrt{n}$
$\mu ={\mu }_{0}$ $\mu <{\mu }_{0}$ $t\le -{t}_{\alpha }\left(n-1\right)$ or $\overline{x}\le {\mu }_{0}-{t}_{\alpha }\left(n-1\right)s/\sqrt{n}$
$\mu ={\mu }_{0}$ $\mu \ne {\mu }_{0}$ $|t|\ge {t}_{\alpha /2}\left(n-1\right)$ or $|\overline{x}-{\mu }_{0}|\ge {t}_{\alpha /2}\left(n-1\right)s/\sqrt{n}$

Let X (in millimeters) equal the growth in 15 days of a tumor induced in a mouse. Assume that the distribution of X is $N\left(\mu ,{\sigma }^{2}\right)$ . We shall test the null hypothesis ${H}_{0}:\mu ={\mu }_{0}=4.0$ millimeters against the two-sided alternative hypothesis is ${H}_{1}:\mu \ne 4.0$ . If we use n =9 observations and a significance level of $\alpha$ =0.10, the critical region is $|t|=\frac{|\overline{x}-4.0|}{s/\sqrt{9}}\ge {t}_{\alpha /2}\left(8\right)={t}_{0.05}\left(8\right)=1.860.$

If we are given that n =9, $\overline{x}$ =4.3, and s =1.2, we see that $t=\frac{4.3-4.0}{1.2/\sqrt{9}}=\frac{0.3}{0.4}=0.75.$

Thus $|t|=|0.75|<1.860$ and we accept (do not reject) ${H}_{0}:\mu =4.0$ at the $\alpha$ =10% significance level. See Figure 1 .

In discussing the test of a statistical hypothesis, the word accept might better be replaced by do not reject . That is, in Example 1 , $\overline{x}$ is close enough to 4.0 so that we accept $\mu$ =4.0, we do not want that acceptance to imply that $\mu$ is actually equal to 4.0. We want to say that the data do not deviate enough from $\mu$ =4.0 for us to reject that hypothesis; that is, we do not reject $\mu$ =4.0 with these observed data, With this understanding, one sometimes uses accept and sometimes fail to reject or do not reject , the null hypothesis.

In this example the use of the t -statistic with a one-sided alternative hypothesis will be illustrated.

In attempting to control the strength of the wastes discharged into a nearby river, a paper firm has taken a number of measures. Members of the firm believe that they have reduced the oxygen-consuming power of their wastes from a previous mean $\mu$ of 500. They plan to test ${H}_{0}:\mu =500$ against ${H}_{1}:\mu <500$ , using readings taken on n =25 consecutive days. If these 25 values can be treated as a random sample, then the critical region, for a significance level of $\alpha$ =0.01, is $t=\frac{\overline{x}-500}{s/\sqrt{25}}\le -{t}_{0.01}\left(24\right)=-2.492.$

The observed values of the sample mean and sample standard deviation were $\overline{x}$ =308.8 and s =115.15. Since $t=\frac{308.8-500}{115.15/\sqrt{25}}=-8.30<-2.492,$ we clearly reject the null hypothesis and accept ${H}_{1}:\mu <500$ . It should be noted, however, that although an improvement has been made, there still might exist the question of whether the improvement is adequate. The 95% confidence interval $308.8±2.064\left(115.15/5\right)$ or for $\mu$ might the company answer that question.

what is a market demand schedule
What is demand curve
Types of demand curve
mohamed
demand curve is a showing the aggregate of demand whether falling from right to the left in the table above
BULAMA
demand curve is the graphical representation of various quantities of a commodity bought at various prices
Blessed
What is the formula for calculating elasticity
what is demand
demand is the quantity of commodity that consumers wil be able and wiling to buy at a given price at a given time
Delly
it is the exchange of goods and services across international borders.
Tweneboah
what is taxation
the definition of economic by Adam Smith
Adam Smith define economic as the science of wealth
Hafsat
What is enconomics
mohamed
what is meant by pisp in economics?
payment initiation service provider
Khuselo
what is demand
demand
Demand refers to the consumers' desire to purchase goods at given prices. Demand can mean either demand for a specific good or aggregate demand for the total of all goods in an economy.
What is economc
What is economc
nahurira
What is Economic
What's the price index of consumption?
what population
I think it's the sum total of people in a goegraphical area at a given time
Ruth
it refers to the number of people living in a particular area over a given period of time
Vanessa
decribe law of demand
the higher the price , the higher the quantity demanded
Ruth
what is economic growth
what is an economic system
Metuge
Economic system is the mechanism which deals with the production, distribution and consumption of good and services in a particular society
Happy
of course
Maesela
what is a weight
Maesela
What is a weight
mohamed
in a comparison of the stages of meiosis to the stage of mitosis, which stages are unique to meiosis and which stages have the same event in botg meiosis and mitosis
Got questions? Join the online conversation and get instant answers!

#### Get Jobilize Job Search Mobile App in your pocket Now! By OpenStax By Sandy Yamane By David Martin By Kevin Amaratunga By Tod McGrath By Christine Zeelie By OpenStax By Saylor Foundation By Keyaira Braxton By JavaChamp Team