# The Observed Significance of a Test

 Site: Saylor Academy Course: MA121: Introduction to Statistics Book: The Observed Significance of a Test
 Printed by: Guest user Date: Saturday, June 10, 2023, 2:49 PM

## Description

This section explains what the observed significance of a test is, including how to compute and use it in the p-value approach.

## Introduction

#### LEARNING OBJECTIVES

1. To learn what the observed significance of a test is.
2. To learn how to compute the observed significance of a test.
3. To learn how to apply the p-value approach to hypothesis testing. This text was adapted by Saylor Academy under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License without attribution as requested by the work's original creator or licensor.

## The Observed Significance

The conceptual basis of our testing procedure is that we reject $H_{0}$ only if the data that we obtained would constitute a rare event if $H_{\mathrm{O}}$ were actually true. The level of significance $\alpha$ specifies what is meant by "rare". The observed significance of the test is a measure of how rare the value of the test statistic that we have just observed would be if the null hypothesis were true. That is, the observed significance of the test just performed is the probability that, if the test were repeated with a new sample, the result of the new test would be at least as contrary to $H_{\mathrm{O}}$ and in support of $H_{a}$ as what was observed in the original test.

Definition

The observed significance or $\boldsymbol{p}$-value of a specific test of hypotheses is the probability, on the supposition that $H_{\mathrm{O}}$ is true, of obtaining a result at least as contrary to $H_{\mathrm{O}}$ and in favor of $H_{a}$ as the result actually observed in the sample data.

Think back to Note 8.27 "Example 4- in Section 8.2 "Large Sample Tests for a Population Mean" concerning the effectiveness of a new pain reliever. This was a left-tailed test in which the value of the test statistic was $-1.886$. To be as contrary to $H_{\mathrm{O}}$ and in support of $H_{a}$ as the result $Z=-1.886$ actually observed means to obtain a value of the test statistic in the interval $(-\infty,-1.886]$. Rounding $-1.886$ to $-1.89$, we can read directly from Figure 12.2 "Cumulative Normal Probability" that $P(Z \leq-1.89)=0.0294$. Thus the $p$-value or observed significance of the test in Note 8.27 "Example 4". is 0.0294 or about 3%. Under repeated sampling from this population, if $H_{\mathrm{O}}$ were true then only about $3 \%$ of all samples of size 50 would give a result as contrary to $H_{\mathrm{O}}$ and in favor of $H_{a}$ as the sample we observed. Note that the probability 0.0294 is the area of the left tail cut off by the test statistic in this left-tailed test.

Analogous reasoning applies to a right-tailed or a two-tailed test, except that in the case of a twotailed test being as far from $\mathrm{o}$ as the observed value of the test statistic but on the opposite side of $\mathrm{o}$ is just as contrary to $H_{\mathrm{O}}$ as being the same distance away and on the same side of $\mathrm{o}$, hence the corresponding tail area is doubled.

#### Computational Definition of the Observed Significance of a Test of Hypotheses

The observed significance of a test of hypotheses is the area of the tail of the distribution cut off by the test statistic (times two in the case of a two-tailed test).

#### EXAMPLE 6

Compute the observed significance of the test performed in Note 8.28 "Example 5" in Section 8.2 "Large Sample Tests for a Population Mean".

#### Solution:

The value of the test statistic was $z=2.490$, which by Figure 12.2 "Cumulative Normal Probability" cuts off a tail of area $0.0064$, as shown in Figure 8.7 "Area of the Tail for". Since the test was two-tailed, the observed significance is $2 \times 0.0064=0.0128$.

Figure 8.7

Area of the Tail for Note 8.34 "Example 6" ## The p-value Approach to Hypothesis Testing

In Note 8.27 "Example 4 in Section 8.2 "Large Sample Tests for a Population Mean" the test was performed at the 5% level of significance: the definition of "rare" event was probability $\alpha=0.05$ or less. We saw above that the observed significance of the test was $p=0.0294$ or about 3%. Since $p=0.0294$ or 3% is less than 5%, the decision turned out to be to reject: what was observed was sufficiently unlikely to qualify as an event so rare as to be regarded as (practically) incompatible with $H_{\mathrm{O}}$.

In Note 8.28 "Example 5" in Section 8.2 "Large Sample Tests for a Population Mean" the test was performed at the 1% level of significance: the definition of "rare" event was probability $\alpha=0.01$ or less. The observed significance of the test was computed in Note 8.34 "Example 6" as $p=0.0128$  or about 1.3%. Since $p=0.0128 > 0.01 = \alpha$ (or 1.3% is greater than 1%), the decision turned out to be not to reject. The event observed was unlikely, but not sufficiently unlikely to lead to rejection of the null hypothesis.

The reasoning just presented is the basis for a slightly different but equivalent formulation of the hypothesis testing process. The first three steps are the same as before, but instead of using $\alpha$ to compute critical values and construct a rejection region, one computes the $p$-value $p$ of the test and compares it to $\alpha$, rejecting $H_{\mathrm{O}}$ if $p \leq \alpha$ and not rejecting if $p > \alpha$.

#### Systematic Hypothesis Testing Procedure: $p-Value$ Approach

1. Identify the null and alternative hypotheses.
2. Identify the relevant test statistic and its distribution.
3. Compute from the data the value of the test statistic.
4. Compute the $p$-value of the test.
5. Compare the value computed in Step 4 to significance level $\alpha$ and make a decision: reject $H_{\mathrm{o}}$ if $p \leq \alpha$ and do not reject $H_{\mathrm{O}}$ if $p > \alpha.$ Formulate the decision in the context of the problem, if applicable.

#### EXAMPLE 7

The total score in a professional basketball game is the sum of the scores of the two teams. An expert commentator claims that the average total score for NBA games is 202.5. A fan suspects that this is an overstatement and that the actual average is less than 202.5. He selects a random sample of 85 games and obtains a mean total score of 199.2 with standard deviation 19.63. Determine, at the 5% level of significance, whether there is sufficient evidence in the sample to reject the expert commentator's claim.

#### Solution:

• Step 1. Let $\mu$ be the true average total game score of all NBA games. The relevant test is

\begin{aligned} H_{0}: \mu &=202.5 \\ \text { vs. } H_{a}: \mu & < 202.5 @ \alpha=0.05\end{aligned}

• Step 2. The sample is large and the population standard deviation is unknown. Thus the test statistic is

$Z=\frac{\bar{x}-\mu_{0}}{s / \sqrt{n}}$

and has the standard normal distribution.

• Step 3. Inserting the data into the formula for the test statistic gives

$Z=\frac{\bar{x}-\mu_{0}}{s / \sqrt{n}}=\frac{199.2-202.5}{19.63 / \sqrt{85}}=-1.55$

• Step 4. The area of the left tail cut off by $z=-1.55$ is, by Figure 12.2 "Cumulative Normal Probability", 0.0606, as illustrated in Figure 8.8 "Test Statistic for". Since the test is left-tailed, the $p$-value is just this number, $p=0.0606$.

• Step 5. Since $p=0.0606 > 0.05=\alpha$, the decision is not to reject $H_{0}$. In the context of the problem our conclusion is:

The data do not provide sufficient evidence, at the 5% level of significance, to conclude that the average total score of NBA games is less than 202.5.

Figure 8.8

Test Statistic for Note 8.36 "Example 7" #### Example 8

Mr. Prospero has been teaching Algebra II from a particular textbook at Remote Isle High School for many years. Over the years students in his Algebra II classes have consistently scored an average of 67 on the end of course exam (EOC). This year Mr. Prospero used a new textbook in the hope that the average score on the EOC test would be higher. The average EOC test score of the 64 students who took Algebra II from Mr. Prospero this year had mean 69.4 and sample standard deviation 6.1. Determine whether these data provide sufficient evidence, at the 1% level of significance, to conclude that the average EOC test score is higher with the new textbook.

#### Solution:

• Step 1. Let $\mu$ be the true average score on the EOC exam of all Mr. Prospero's students who take the Algebra II course with the new textbook. The natural statement that would be assumed true unless there were strong evidence to the contrary is that the new book is about the same as the old one. The alternative, which it takes evidence to establish, is that the new book is better, which corresponds to a higher value of $\mu$. Thus the relevant test is

\begin{aligned} H_{0}: \mu &=67 \\ \text { vs. } H_{a}: \mu & > 67 @ \alpha=0.01 \end{aligned}

• Step 2. The sample is large and the population standard deviation is unknown. Thus the test statistic is

$Z=\frac{\bar{x}-\mu_{0}}{s / \sqrt{n}}$

and has the standard normal distribution.

• Step 3. Inserting the data into the formula for the test statistic gives

$Z=\frac{\bar{x}-\mu_{0}}{s / \sqrt{n}}=\frac{69.4-67}{6.1 / \sqrt{64}}=3.15$

• Step 4. The area of the right tail cut off by $z=3.15$ is, by Figure 12.2 "Cumulative Normal Probability", $1-0.9992=0.0008$, as shown in Figure 8.9 "Test Statistic for ". Since the test is right-tailed, the $p$-value is just this number, $p=0.0008$.
• Step 5. Since $p=0.0008 < 0.01=\alpha$, the decision is to reject $H_{0}$. In the context of the problem our conclusion is:
The data provide sufficient evidence, at the 1% level of significance, to conclude that the average EOC exam score of students taking the Algebra II course from Mr. Prospero using the new book is higher than the average score of those taking the course from him but using the old book.

Figure 8.9

Test Statistic for Note 8.37 "Example 8" #### EXAMPLE 9

For the surface water in a particular lake, local environmental scientists would like to maintain an average pH level at 7.4. Water samples are routinely collected to monitor the average pH level. If there is evidence of a shift in pH value, in either direction, then remedial action will be taken. On a particular day 30 water samples are taken and yield average pH reading of 7.7 with sample standard deviation 0.5. Determine, at the 1% level of significance, whether there is sufficient evidence in the sample to indicate that remedial action should be taken.

#### Solution:

• Step 1. Let $\mu$ be the true average $\mathrm{pH}$ level at the time the samples were taken. The relevant test is

\begin{aligned} H_{0}: \mu &=7.4 \\ \text { vs. } H_{a}: \mu & \neq 7.4 @ \alpha=0.01 \end{aligned}

• Step 2. The sample is large and the population standard deviation is unknown. Thus the test statistic is

$Z=\frac{\bar{x}-\mu_{0}}{s / \sqrt{n}}$

and has the standard normal distribution.

• Step 3. Inserting the data into the formula for the test statistic gives

$Z=\frac{\bar{x}-\mu_{0}}{s / \sqrt{n}}=\frac{7.7-7.4}{0.5 / \sqrt{30}}=3.29$

• Step 4. The area of the right tail cut off by $z=3.29$ is, by Figure 12.2 "Cumulative Normal Probability", $1-0.9995=0.0005$, as illustrated in Figure 8.10 "Test Statistic for". Since the test is two-tailed, the $p$-value is the double of this number, $p=2 \times 0.0005=0.0010$.
• Step 5. Since $p=0.0010 < 0.01=\alpha$, the decision is to reject $H_{0}$. In the context of the problem our conclusion is:

The data provide sufficient evidence, at the 1% level of significance, to conclude that the average pH of surface water in the lake is different from 7.4. That is, remedial action is indicated.

Figure 8.10

Test Statistic for Note 8.38 "Example 9" ## KEY TAKEAWAYS

• The observed significance or $p$-value of a test is a measure of how inconsistent the sample result is with $H_{0}$ and in favor of $H_{a}$.
• The $p$-value approach to hypothesis testing means that one merely compares the $p$-value to $\alpha$ instead of constructing a rejection region.
• There is a systematic five-step procedure for the $p$-value approach to hypothesis testing.

## EXERCISES

#### BASIC

1. Compute the observed significance of each test.

1. Testing $H_{0}: \mu=54.7$ vs. $H_{a}: \mu < 54.7$, test statistic $z=-1.72$.
2. Testing $H_{0}: \mu=195$ vs. $H_{a}: \mu \neq 195$, test statistic $z=-2.07$.
3. Testing $H_{0}: \mu=-45$ vs. $H_{a}: \mu > -45$, test statistic $z=2.54$.

3. Compute the observed significance of each test. (Some of the information given might not be needed).

1. Testing $H_{0}: \mu=27.5$ vs. $H_{a}: \mu > 27.5 ; n=49, \bar{x}=28.9, s=3.14$, test statistic $z=3.12$.
2. Testing $H_{0}: \mu=581$ vs. $H_{a}: \mu < 581 ; n=32, \bar{x}=560, s=47.8$, test statistic $z=-2.49$.
3. Testing $H_{0}: \mu=138.5$ vs. $H_{a}: \mu \neq 138.5 ; n=44, \bar{x}=137.6, s=2.45$, test statistic $z=-2.44$.

5. Make the decision in each test, based on the information provided.

1. Testing $H_{0}: \mu=82.9$ vs. $H_{a}: \mu < 82.9 @ \alpha=0.05$, observed significance $p=0.038$.
2. Testing $H_{0}: \mu=213.5$ vs. $H_{a}: \mu \neq 213.5 @ \alpha=0.01$, observed significance $p=0.038$.

#### APPLICATIONS

7. A lawyer believes that a certain judge imposes prison sentences for property crimes that are longer than the state average 11.7 months. He randomly selects 36 of the judge's sentences and obtains mean 13.8 and standard deviation 3.9 months.

1. Perform the test at the 1% level of significance using the critical value approach.
2. Compute the observed significance of the test.
3. Perform the test at the 1% level of significance using the p-value approach. You need not repeat the first three steps, already done in part (a).

9. The mean score on a 25-point placement exam in mathematics used for the past two years at a large state university is 14.3. The placement coordinator wishes to test whether the mean score on a revised version of the exam differs from 14.3. She gives the revised exam to 30 entering freshmen early in the summer; the mean score is 14.6 with standard deviation 2.4.

1. Perform the test at the 10% level of significance using the critical value approach.
2. Compute the observed significance of the test.
3. Perform the test at the 10% level of significance using the p-value approach. You need not repeat the first three steps, already done in part (a).

11. The mean yield for hard red winter wheat in a certain state is 44.8 bu/acre. In a pilot program a modified growing scheme was introduced on 35 independent plots. The result was a sample mean yield of 45.4 bu/acre with sample standard deviation 1.6 bu/acre, an apparent increase in yield.

1. Test at the 5% level of significance whether the mean yield under the new scheme is greater than 44.8 bu/acre, using the critical value approach.
2. Compute the observed significance of the test.
3. Perform the test at the 5% level of significance using the p-value approach. You need not repeat the first three steps, already done in part (a).

1. a. $p$-value $=0.0427$
b. $p$-value $=0.0384$
c. $p$-value $=0.0055$

3. a. $p$-value $=0.0009$
b. $p$-value $=0.0064$
c. $p$-value $=0.0146$

5. a. reject $H_{0}$
b. do not reject $\mathrm{H}_{0}$

7. a. $Z=3.23, z_{0.01}=2.33$, reject $H_{0}$
b. $p$-value $=0.0006$
c. reject $\mathrm{H}_{0}$

9. a. $Z=0.68, z_{0.05}=1.645$, do not reject $H_{0}$
b. $p$-value $=0.4966$
c. do not reject $H_{0}$

11. a. $Z=2.22, z_{0.05}=1.645$, reject $H_{0}$
b. $p$-value $=0.0132$
c. reject $\mathrm{H}_{0}$