
















Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!

















Objectives In this chapter, you learn: (Slide 9) The basic principles of hypothesis testing How to use hypothesis testing to test a mean or proportion The assumptions of each hypothesis-testing procedure, how to evaluate them, and the consequences if they are seriously violated Define Type I and Type II errors.
What is a Hypothesis? A hypothesis is a claim (assertion) about a population parameter (Slide 3)
What is Hypothesis Testing? Hypothesis testing is a procedure, based on sample evidence and probability theory, used to determine whether the hypothesis is a reasonable statement and should not be rejected, or is unreasonable and should be rejected.
Why we conduct the Hypothesis Testing? and How? We conduct the hypothesis test to find out is the difference between sample statistic (which is used to estimate the population parameter) and the value of population parameter (hypothesized value) is difference due to:
Types of Tests: According the alternative hypothesis the hypothesis tests can be one or two tailed. Case1: One- tailed test (Right-tailed or an upper-tail test) For Example:
1 0
0 0 :
:
H
H Or 1 0
0 0 :
:
H
H
Case2: One- tailed test (left-tailed or a lower-tail test) For Example
1 0
0 0 :
:
H
H Or 1 0
0 0 :
:
H
H
Case3: Two-tailed test For Example:
1 0
0 0 :
:
H
H Or 1 0
0 0 :
:
H
H
Level of significance (α) : The probability of rejecting the null hypothesis when it is true. Risks in Decision Making Using Hypothesis Testing (Slide 12) Type I Error o Reject a true null hypothesis o A type I error is a “false alarm” o The probability of a Type I Error is Called level of significance of the test Set by researcher in advance Type II Error o Failure to reject a false null hypothesis o Type II error represents a “missed opportunity” o The probability of a Type II Error is β Possible Errors in Hypothesis Test Decision Making (Slide "13-14" and Textbook: Table 9.1 P"311")
The confidence coefficient (1-α ) is the probability of not rejecting H 0 when it is true. The confidence level of a hypothesis test is (1-α)*100%. The power of a statistical test (1-β) is the probability of rejecting H 0 when it is false. Type I & II Error Relationship (Slide 15) Type I and Type II errors cannot happen at the same time A Type I error can only occur if H 0 is true A Type II error can only occur if H 0 is false Relationship between the alternative hypothesis and the level of significance (α): Case1& 2: If the alternative hypothesis is One- tailed test (Right or left-tailed); (α) appear in the one side of the curve.
Right tailed Left tailed
Case3: If the alternative hypothesis is two- tailed test (α) appear in the left & right sides of the curve. We divide (α) by 2 (α/2)
Case 2: Reject H 0 if T.S < - (C.V)
Case 3 : Reject H 0 if |𝑇. 𝑆|> (C.V) which means T.S > (C.V) or T.S < - (C.V)
Results of a Hypothesis test: Either: Accept the null hypothesis (H 0 ) as reasonable possibility
It is A weak conclusion; not significant result means the difference only cause of sampling error
Or: Reject the null hypothesis and Accept the researcher hypothesis (H 1 (
It is A strong conclusion; a significant result (means there is difference)
Note: Keywords Inequality Symbol Part of: Larger (or more) than > H 1 Smaller (or less) < H 1 No more than (^) H 0 At least ≥ H 0 Has increased > H 1 Is there difference? ≠ H 1 Has not changed = H 0
One sample
tests
Mean
Proportion
Types of Hypothesis Testing According to the number of samples
Two samples tests
Population means (Independent samples)
Population means (Related samples)
Population Proportions
Population Variances
More than two samples tests
ANOVA
Case2: Reject H 0 if |𝑍𝑐| > 𝑍𝛼 , |𝑡𝑐| > 𝑡(𝜈, 𝛼)
This means that, Z^ c^ Z ^ ,^ tc tv ,
Case 3 : Reject H 0 if |𝑍𝑐|^ > 𝑍𝛼 2
2 )^ that^ is:
2 , 2
2 , 2
,
,
c c v
c c v
Z Z t t
or
Z Z t t
Example (1) Jamestown Steel Company manufactures and assembles desks and other office equipment at several plants in western New York State. The weekly production of the Model A325 desk at the Fredonia Plant follows the normal probability distribution with a mean of 200 and a standard deviation of 16. Recently, because of market expansion, new production methods have been introduced and new employees hired. The vice president of manufacturing would like to investigate whether there has been a change in the weekly production of the Model A325 desk. Is the mean number of desks produced at Fredonia Plants different from 200 at the 0.01 significance level? IF the vice president takes sample of 50 weeks and he finds the mean is 203.5, use the statistical hypothesis testing procedure to investigate whether the production rate has changed from 200 per week.
Solution: Step 1: State the null hypothesis and the alternate hypothesis. H 0 : = 200 H 1 : ≠ 200 This is Two-tailed test (Note: keyword in the problem “has changed”, “different”) Step 2: Select the level of significance. α = 0.01 as stated in the problem Step 3: Select the test statistic Use Z-distribution since σ is known. 0 200 , X 203. 5 , 16 , n 50
55
2627
5
50
16
^0 ^203.^5 ^200
n
X Z
Step 4: Formulate the decision rule (Critical Value)
±𝑍𝛼 2
2
Reject H 0 If 2
Zc Z or 2
Zc Z
Step 5: Make a decision and interpret the result.
Don’t reject H 0
Step 4: Formulate the decision rule.
Reject H 0 if tc t , 𝑡(𝑛−1 ,∝) = 𝑡(36−1 , 0.05)= 𝑡(35 ,0.05)=1.
Step 5: Make a decision and interpret the result.
Reject H 0 if
tstat 1. 37 1. 6896
H 0 is not rejected
Because 1.37 does not fall in the rejection region, H 0 is not rejected. We conclude that the population mean is less than or equal 800. The decision that we don’t reject the null hypothesis at significant level 0.05, but we reject the alternative hypothesis the manufacturer’s claim that μ>800. The difference of 16 hours between sample and production can reasonably be attributed to sampling error.
Example (4) The McFarland Insurance Company Claims Department reports the mean cost to process a claim is $60. An industry comparison showed this amount to be larger than most other insurance companies, so the company instituted cost-cutting measures. To evaluate the effect of the cost-cutting measures, the Supervisor of the Claims Department selected a random sample of 26 claims processed last month. The sample information is reported below. n 26 , X 56. 42 , S 10. 04
At the .01 significance level is it reasonable a claim is now less than $60? Solution: Step 1: State the null hypothesis and the alternate hypothesis.
: $ 60
: $ 60 1
0
H
H
This is one-tailed test (Left) (Note: keyword in the problem “now less than”)
Step 2: Select the level of significance. (α = 0.01) Step 3: Select the test statistic. Use t-distribution since σ is unknown 0 60 , X 56. 42 , S 10. 04 , n 26
82
9690
58
26
0 56.^4260
n
S
X tc
Step 4: Formulate the decision rule. Reject H 0 if tc t , n 1 −𝑡𝛼,𝑛−1 = −𝑡0.01,25 = 2.
Step 5: Make a decision and interpret the result. Reject H 0 if 𝑡𝑐 < −𝑡0.01,25 ∵ 𝑡𝑐(−1.82) > −2. H 0 is not rejected
Because - 1.82 does not fall in the rejection region, H 0 is not rejected at the. significance level. We have not demonstrated that the cost-cutting measures reduced the mean cost per claim to less than $60. The difference of $3. ($56.42 - $60) between the sample mean and the population mean could be due to sampling error.
Example (7) (Slide 39-40) The average cost of a hotel room in New York is said to be $168 per night. To determine if this is true, a random sample of 25 hotels is taken and resulted in an 𝑋̅ of $172.50 and an S of $15.40. Test the appropriate hypotheses at = 0.05. (Assume the population distribution is normal) Solution: Step 1: State the null hypothesis and the alternate hypothesis.
Step 2: Select the level of significance. ( = 0.05.)
Step 3: Select the test statistic.
𝑠 √𝑛
Step 4: The Critical Value : ±𝑡(24,0.025) = ±2.
Step 5: Make a decision and interpret the result.
Do not reject H 0 : Insufficient evidence that true mean cost is different from $168. Connection of Two Tail Tests to Confidence Intervals For X = 172.5, S = 15.40 and n = 25, the 95% confidence interval for μ is:
172.5 ± (2.0639)
166.14 ≤ μ ≤ 178.
Since this interval contains the Hypothesized mean (168), we do not reject the null hypothesis at = 0.
P-value: Probability of obtaining a test statistic equal to or more extreme than the observed sample value given H 0 is true The p-value is also called the observed level of significance It is the smallest value of for which H 0 can be rejected (Slide 28) In testing a hypothesis, we can also compare the p -value to with the significance level ().
Compute the P- value (Only we used the Z distribution) Case 1 : If the one – tailed test (Right) 𝑃 − 𝑣𝑎𝑙𝑢𝑒 = 𝑃(𝑍 > 𝑧𝑐) Case 2 : If the one – tailed test (left) 𝑃 − 𝑣𝑎𝑙𝑢𝑒 = 𝑃(𝑍 < −𝑧𝑐) Case3 : If the two – tailed test 𝑃 − 𝑣𝑎𝑙𝑢𝑒 = 𝑃(𝑍 > 𝑧𝑐)^ + 𝑃(𝑍 < −𝑧𝑐) Note: The p-value is considered as a way to express the likelihood that H 0 is false. If the p-value is very large, then it is likely that H 0 is true. If the p-value is small, then it is likely that H 0 is not true. Example (8) Refer to example (1) H 0 : 200 H 1 : 200 0 200 , X 203. 5 , 16 , n 50 , 0. 01
Do not reject H 0
Involves categorical variables Two possible outcomes Possesses characteristic of interest Does not possess characteristic of interest Fraction or proportion of the population in the category of interest is denoted by π (Slide 55)
Sample proportion in the category of interest is denoted by p
When both nπ and n(1-π) are at least 5 (𝑛𝜋 ≥ 5 𝑎𝑛𝑑 𝑛( 1 − 𝜋) ≥ 5 )
p can be approximated by a normal distribution with mean and standard deviation (Slide 56)
The sampling distribution of p is approximately normal, so the test statistic is a Zc value:
𝜋 0 (1−𝜋 0 ) 𝑛
Step (1): State the Null(H 0 ) and alternate(H 1 ) hypothesis
1 0
0 0 :
:
H
H or 1 0
0 0 :
:
H
H or 1 0
0 0 :
:
H
H
Step (2): Select a level of significance:
Step (3): Select the Test Statistic (computed value)
𝜋 0 (1−𝜋 0 ) 𝑛
samplesize
numberincategoryofinterestinsample n p X
μ p n
(1 ) σ p
Step (4): Selected the Critical value The one – tailed test (Right) Z (^) α The one – tailed test (left) - Z (^) α The two – tailed test ± Z (^) α/
Step (5): Formulate the Decision Rule and Make a Decision
Case1: Reject H 0 if Zc Z
Case2: Reject H 0 if |𝑍𝑐| > 𝑍𝛼 or Zc Z
Case 3 : Reject H 0 if,
2 2
Z (^) c Z orZc Z