Download Chapter 9

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

History of statistics wikipedia , lookup

Bootstrapping (statistics) wikipedia , lookup

Taylor's law wikipedia , lookup

Psychometrics wikipedia , lookup

Foundations of statistics wikipedia , lookup

Omnibus test wikipedia , lookup

Statistical hypothesis testing wikipedia , lookup

Misuse of statistics wikipedia , lookup

Resampling (statistics) wikipedia , lookup

Student's t-test wikipedia , lookup

Transcript
Chapter 9 Hypothesis Testing
-- Hypothesis testing can be used to determine whether a statement about the value of a population parameter should or should not
be rejected.
Null Hypothesis (H0 )
 The null hypothesis, denoted by H0 , is a tentative assumption about a population parameter.
Alternative Hypothesis (Ha )
 The alternative hypothesis, denoted by Ha, is the opposite of what is stated in the null hypothesis.
 The alternative hypothesis is what the test is attempting to establish.
Hypothesis testing procedures uses data from a sample to test the null hypothesis and alternative hypothesis
Section 9.1 Developing Null and Alternative Hypothesis
Structure of Null and Alternative Hypothesis for 3 types of scenarios involving hypothesis testing
I] Testing Research Hypothesis
-- research hypothesis should be expressed as alternative hypothesis
-- The conclusion that the research hypothesis is true comes from sample data that contradict the null hypothesis.
Example: p 353 #2
H0: μ < 14
Ha: μ > 14
Conclusion is either H0 is rejected or not rejected
II] Testing the Validity of a Claim
-- Manufacturers’ claims are usually given the benefit of the doubt and stated as the null hypothesis.
-- The conclusion that the claim is false comes from sample data that contradict the null hypothesis.
Example: p 353 #1
H0: μ < $600
Ha: μ > $600
Conclusion is either H0 is rejected or not rejected
III] Testing in Decision-Making Situation
-- A decision maker might have to choose between two courses of action, one associated with the null
hypothesis and another associated with the alternative hypothesis.
Example: p 353 #3
H0: μ = 32
Ha: μ = 32
Conclusion is either H0 is rejected or not rejected
Summary of Forms for Null and Alternative Hypotheses about a Population Mean
-- The equality part of the hypotheses always appears in the null hypothesis.
-- In general, a hypothesis test about the value of a population mean  must take one of the following
three forms (where 0 is the hypothesized value of the population mean).
H 00:   00
H 00:   00
H 00:   00
H a :   0
H a :   0
H aa:   00
One Tailed
(lower-tailed)
One Tailed
(upper-tailed)
Two-Tailed
1
Example: Metro EMS
A major west coast city provides one of the most comprehensive emergency medical services in the world.
Operating in a multiple hospital system with approximately 20 mobile medical units, the service goal is to respond to
medical emergencies with a mean time of 12 minutes or less.
The director of medical services wants to formulate a hypothesis test that could use a sample of emergency response
times to determine whether or not the service goal of 12 minutes or less is being achieved.
Null and Alternative Hypotheses
H0:  12
The emergency service is meeting the response goal; no
follow-up action is necessary.
Ha: > 12
The emergency service is not meeting the response goal; appropriate
follow-up action is necessary.
where:  = mean response time for the population of medical emergency requests
Section 9.2 Type I and Type II Errors
-- When you reject or not reject the null hypothesis during the hypothesis testing procedures, the correct conclusions are not
always possible
-- Because hypothesis tests are based on sample info, we must allow for the possibility of errors
Type 1 Error
-- A Type I error is rejecting H0 when it is true.
-- The probability of making a Type I error when the null hypothesis is true as an equality (i.e. μ = 12) is called the level of
significance.
o Level of Significance ()  probability of rejecting H0: μ < 12 when the null hypothesis is true
o In hypothesis testing, a person will specify the level of a type I error with common values  = .05 and  = .01
o If the cost of a Type I error is high  small values of  are preferred. If the cost of making a type I error are
low  higher values of  are preferred
-- Applications of hypothesis testing that only control the Type I error are often called significance tests.
Type II Error
-- A Type II error is accepting H0 when it is false.
-- It is difficult to control for the probability of making a Type II error.
-- Statisticians avoid the risk of making a Type II error by using the phrase “do not reject H0” and not the phrase “accept H0”.
2
Section 9.3 Population Mean: σ known
-- σ known involves having historical data or other info available that allows us to obtain a good estimate of the population
standard deviation prior to sampling
-- using x to perform hypothesis tests about population mean
We will be using the characteristics of the normal distribution to perform hypothesis testing of the population mean. With this
assumption, keep in mind the following for the sampling distribution of x and assumptions for a normal distribution: If
population is:
1) normally distributed  any sample size is ok (Central Limit Theorem)
2) symmetric  sample size as small as 15 is ok
3) believed to be approximately normal  sample size of less than 15 is ok
4) not known or not normal  sample size of at least 30 unless highly skewed then 50
I] One Tailed Tests
Lower-Tailed Test
Upper Tailed Test
H 00:   00
H 00:   00
H a :   0
H a :   0
Test Statistic (Use of Standard Normal Random Variable)
-- use of the standard normal random variable z to determine whether x deviates from the hypothesized value enough to
justify rejecting the null hypothesis
z 
x 
 xx
 xx 

n
A) p-Value Approach to One-Tailed Hypothesis Testing
-- The p-value is the probability, computed using the test statistic, that measures the support (or lack of support) provided by the
sample for the null hypothesis. Also called the observed level of significance.
 Smaller p-values are more evidence against H0
-- If the p-value is less than or equal to the level of significance ( ), the value of the test statistic is in the rejection region.
-- Reject H0 if the p-value <  .
Lower-Tailed Test About a Population Mean: σ known
3
Upper-Tailed Test About a Population Mean: σ known
4
B) Critical Value Approach to One-Tailed Hypothesis Testing
--The test statistic z has a standard normal probability distribution.
-- We can use the standard normal probability distribution table to find the z-value with an area of  in the lower (or upper) tail of
the distribution.
-- The value of the test statistic that established the boundary of the rejection region is called the critical value for the test.
-- The rejection rule is:
•
Lower tail: Reject H0 if z < -z
•
Upper tail: Reject H0 if z > z
Lower-Tailed Test About a Population Mean: σ known
Upper-Tailed Test About a Population Mean: σ known
Steps of Hypothesis Testing:
Step 1. Develop the null and alternative hypotheses.
Step 2. Specify the level of significance .
Step 3. Collect the sample data and compute the test statistic.
With p-Value Approach…
Step 4. Use the value of the test statistic to compute the p-value.
Step 5. Reject H0 if p-value < a.
With Critical Value Approach…
Step 4. Use the level of significanceto determine the critical value and the rejection rule.
Step 5. Use the value of the test statistic and the rejection rule to determine whether to reject H0.
Example of One Tailed Test: Metro EMS
The response times for a random sample of 40 medical emergencies were tabulated. The sample mean is 13.25 minutes. The
population standard deviation is believed to be 3.2 minutes.
The EMS director wants to perform a hypothesis test, with a .05 level of significance, to determine whether the service goal of 12
minutes or less is being achieved.
5
6
II] Two Tailed Tests
General Form
H 0 :   0
H a :   0
-- used in situations when you are interested in whether the population mean deviates in either direction of a certain value
A) p-Value Approach to Two-Tailed Hypothesis Testing
Compute the p-value using the following three steps:
1. Compute the value of the test statistic z.
2. If z is in the upper tail (z > 0), find the area under the standard normal curve to the right of z.
If z is in the lower tail (z < 0), find the area under the standard normal curve to the left of z.
3. Double the tail area obtained in step 2 to obtain the p –value.
The rejection rule: Reject H0 if the p-value <  .
B) Critical Value Approach to Two-Tailed Hypothesis Testing
-- The critical values will occur in both the lower and upper tails of the standard normal curve.
-- Use the standard normal probability distribution table to find z/2 (the z-value with an area of a/2 in
the upper tail of the distribution).
The rejection rule is: Reject H0 if z
< -z/2 or z > z/2.
Example of a Two-Tailed Test: Glow Toothpaste
The production line for Glow toothpaste is designed to fill tubes with a mean weight of 6 oz. Periodically, a sample of 30 tubes
will be selected in order to check the filling process.
Quality assurance procedures call for the continuation of the filling process if the sample results are consistent with the
assumption that the mean filling weight for the population of toothpaste tubes is 6 oz.; otherwise the process will be adjusted.
Assume that a sample of 30 toothpaste tubes provides a sample mean of 6.1 oz. The population standard deviation is
believed to be 0.2 oz.
Perform a hypothesis test, at the .03 level of significance, to help determine whether the filling process should continue
operating or be stopped and corrected.
7
8
Section 9.4 Population Mean: σ unknown
-- x is used as an estimate of μ and the sample standard deviation (s) is used as an estimate of σ
-- use the t distribution
Test Statistic
t  x 
s/ n
0
with n -1 degrees of freedom
Rejection Rule: p-value approach
Reject H0 if p-value < 
Rejection Rule: critical value approach
H0: 
Ha: <
Reject H0 if t < -t
H0: <
Ha:  >
Reject H0 if t > t
H0:   Reject H0 if t > t/2 or H0 if t < -t/2
Ha:   
P-Value and the t distribution
-- The format of the t distribution table provided in most statistics textbooks does not have sufficient detail to determine the exact
p-value for a hypothesis test.
-- However, we can still use the t distribution table to identify a range for the p-value.
-- An advantage of computer software packages is that the computer output will provide the p-value for the t distribution.
Example: One Tail Test σ unknown
A State Highway Patrol periodically samples vehicle speeds at various locations on a particular roadway. The sample of vehicle
speeds is used to test the hypothesis: H0: μ < 65
The locations where H0 is rejected are deemed the best locations for radar traps. At Location F, a sample of 64 vehicles shows a
mean speed of 66.2 mph with a standard deviation of4.2 mph. Use a = .05 to test the hypothesis.
9
10
Example 2 Tail Test σ unknown
A sample of 48 provided a sample mean of x = 17 and s = 4.5. Use the following hypothesis and  = .05 to perform a 2 tail
hypothesis test.
H0:  18
Ha:   18
11