Hypothesis Testing:�One-Sample Inference
Hypothesis Testing
Statistical Hypotheses
Definition
Statistical hypothesis testing and confidence interval estimation of parameters are the fundamental methods used at the data analysis stage of a comparative experiment, in which the engineer is interested, for example, in comparing the mean of a population to a specified value.
Hypothesis Testing
Null hypothesis (H0)�
How to make conclusions based on data?
Example of a hypothesis
Never “Accept” Anything
Hypothesis Testing
Statistical Hypotheses
null hypothesis
alternative hypothesis
One-sided Alternative Hypotheses
Two-sided Alternative Hypothesis
Hypothesis Testing
Statistical Hypotheses
Test of a Hypothesis
Hypothesis Testing
Tests of Statistical Hypotheses
Decision criteria for testing H0:μ = 50 centimeters per second versus H1:μ ≠ 50 centimeters per second.
Hypothesis Testing
Tests of Statistical Hypotheses
Definitions
Hypothesis Testing
Tests of Statistical Hypotheses
Sometimes the type I error probability is called the significance level, or the α-error, or the size of the test.
Hypothesis Testing
Tests of Statistical Hypotheses
Hypothesis Testing
Hypothesis Testing
Hypothesis Testing
Hypothesis Testing
Definition
we are testing H 0 : μ = 50 centimeters per second against H 1 : μ not equal 50 centimeters per second . Suppose that the true value of the mean is μ = 52. When n = 10, we found that β = 0.2643, so the power of this test is 1 - β = 1 - 0.2643 = 0.7357 when μ = 52.
Hypothesis Testing
One-Sided and Two-Sided Hypotheses
Two-Sided Test:
One-Sided Tests:
Hypothesis Testing
P-Values in Hypothesis Tests
Definition
Hypothesis Testing
P-Values in Hypothesis Tests
Tests on the Mean of a Normal Distribution, Variance Known
Hypothesis Tests on the Mean
We wish to test:
The test statistic is:
Tests on the Mean of a Normal Distribution, Variance Known
Hypothesis Tests on the Mean
Reject H0 if the observed value of the test statistic z0 is either:
z0 > zα/2 or z0 < -zα/2
Fail to reject H0 if
-zα/2 < z0 < zα/2
Tests on the Mean of a Normal Distribution, Variance Known
Tests on the Mean of a Normal Distribution, Variance Known
Hypothesis Tests on the Mean
Tests on the Mean of a Normal Distribution, Variance Known
Hypothesis Tests on the Mean (Continued)
Tests on the Mean of a Normal Distribution, Variance Known
Hypothesis Tests on the Mean (Continued)
Tests on the Mean of a Normal Distribution, Variance Known
P-Values in Hypothesis Tests
Tests on the Mean of a Normal Distribution, Variance Known
Type II Error and Choice of Sample Size
Finding the Probability of Type II Error β (Eq. 9-19)
Tests on the Mean of a Normal Distribution, Variance Known
Type II Error and Choice of Sample Size
Finding the Probability of Type II Error β
Tests on the Mean of a Normal Distribution, Variance Unknown
Hypothesis Tests on the Mean
One-Sample t-Test
Tests on the Mean of a Normal Distribution, Variance Unknown
Hypothesis Tests on the Mean
The reference distribution for H0: μ = μ0 with critical region for (a) H1: μ ≠ μ0 , (b) H1: μ > μ0, and (c) H1: μ < μ0.
Tests on the Mean of a Normal Distribution, Variance Unknown
P-value for a t-Test
The P-value for a t-test is just the smallest level of significance at which the null hypothesis would be rejected.
Notice that t0 = 2.72 in Example 9-6, and that this is between two tabulated values, 2.624 and 2.977. Therefore, the P-value must be between 0.01 and 0.005. These are effectively the upper and lower bounds on the P-value.
Tests on the Mean of a Normal Distribution, Variance Unknown
Type II Error and Choice of Sample Size
The type II error of the two-sided alternative (for example) would be
Hypothesis Tests on the Variance and Standard Deviation of a Normal Distribution
Hypothesis Test on the Variance
Hypothesis Tests on the Variance and Standard Deviation of a Normal Distribution
Hypothesis Test on the Variance
Hypothesis Tests on the Variance and Standard Deviation of a Normal Distribution
Hypothesis Test on the Variance
Hypothesis Tests on the Variance and Standard Deviation of a Normal Distribution
Hypothesis Test on the Variance
Hypothesis Tests on the Variance and Standard Deviation of a Normal Distribution
Hypothesis Tests on the Variance and Standard Deviation of a Normal Distribution
Hypothesis Tests on the Variance and Standard Deviation of a Normal Distribution
Type II Error and Choice of Sample Size
For the two-sided alternative hypothesis:
Operating characteristic curves are provided in Charts VIi and VIj:
Hypothesis Tests on the Variance and Standard Deviation of a Normal Distribution
Tests on a Population Proportion
Large-Sample Tests on a Proportion
Many engineering decision problems include hypothesis testing about p.
An appropriate test statistic is
Tests on a Population Proportion
Tests on a Population Proportion
Tests on a Population Proportion
Another form of the test statistic Z0 is
or
Tests on a Population Proportion
Type II Error and Choice of Sample Size
For a two-sided alternative (Eq. 9-42)
If the alternative is p < p0 (Eq. 9-43)
If the alternative is p > p0 (Eq. 9-44)
Tests on a Population Proportion
Type II Error and Choice of Sample Size
For a two-sided alternative (Eq. 9-45)
For a one-sided alternative (Eq. 9-46)
Tests on a Population Proportion
Tests on a Population Proportion
(a) Test the hypothesis that mean strength is 3500 psi. Use α = 0.01.
(b) What is the smallest level of significance at which you would be willing to reject the null hypothesis?
(c) What is the β-error for the test in part (a) if the true mean is 3470?
(d) Suppose that you wanted to reject the null hypothesis with probability at least 0.8 if mean strength μ = 3470. What sample size should be used?
(e) Explain how you could answer the question in part (a) with a two-sided confidence interval on mean tensile strength.