Chap 9
Chap 9
Chap 9
(QM)
Vijay Aggarwal
SESSION # 9
Statistical Inference:
INTERVAL ESTIMATION &
TESTING OF HYPOTHESES
QM – Inferential Topics
Topic Readings
Multiple Regression Ch 13
• H – Hypotheses
– Establish the hypotheses
• T – Test
– Conduct the test
• A – Action
– Take statistical action
• B – Business Implications
– Determine the business implications
CPA Salary Example
• Example: A survey of CPAs in the U.S., done 15
years ago, found that their average salary was
$74,914. An accounting researcher would like
to test whether this average has changed over
the years. A random sample of 112 CPAs
produced a mean salary of $78,695. Assume
that the population standard deviation of
salaries is s = $14,530 (note: this value is
typically not known, but we will assume it for
mathematical simplicity. Later, we will remove
this assumption).
Step 1: Hypotheses
H 0 : $74,914
H a : $74,914
> or < or ≠
Null and Alternative Hypotheses
• The null and alternative hypotheses are mutually
exclusive.
– Only one of them can be selected.
• The null hypothesis is assumed to be true. It is
compared to the observed data via either a
critical value (critical value method) or by
calculating a p-value (p-value method)
• The burden of proof falls on the alternative
hypothesis. Thus, you either reject the null in
favor of the alternative or you fail to reject the
null in favor of the alternative. The latter
statement does not imply that the null is true.
Examples of One- and Two-tailed Tests
• One-tailed Tests
– Means
H 0 : 40
H a : 40
H0 : p 0.18
– Proportions
Ha : p 0.18
H 0 : 12
• Two-tailed Test
H a : 12
Step 2: Determine Appropriate Test
• The z-statistic can be used to test when the
following three conditions are met:
– The data are a random sample from the population
– The sample standard deviation (s) is known
– At least one of the following conditions are met:
• The sample size (n) is at least 30 OR
• the underlying distribution is normal
• Thus,
z X
s/ n
Step 3: Set significance level (a)
• Significance level (a) or Type I error rate
– Committed by rejecting a true null hypothesis
– If the null hypothesis is true, any value that falls in a
rejection region will be a type I error.
– The probability of committing a Type I error is
referred to as a, the level of significance.
• The significance level is usually set at 0.05.
Other common values are 0.1, 0.01, or 0.001.
Type II Errors
• Type II Error
– Committed when a researcher fails to reject a false null
hypothesis
– The probability of committing a Type II error is referred
to as . Some refer to power, or 1- (the chance of
rejecting the null when it’s false), instead.
• In practice, we don’t know whether the null is true.
• Type I and type II error rates are inversely related,
if you reduce one, you increase the other.
• One way of reducing both type I and type II error
rates is to increase the sample size, but that
requires more time and money.
Decision Table
for Hypothesis Testing
State of Null (Truth)
Null True Null False
Decision:
Rejection Region
Rejection Region
Hypothesized
Critical Value Mean under H0 Critical Value
Decision rule – CPA Example
Rejection Region
Rejection Region
x
zc sc so 1.96 xc 74,914
n 14,530 112
H 0 : 40 H0 : 40
H a : 40 Ha : 40
z X 78695 74914 2 . 75
s / n 14530 / 112
Step 7: Statistical Action (Decision)
The rejection region was
If z zc 1.96, reject H 0 .
If z zc 1.96, do not reject H 0 .
=1- normsdist(2.75)
or tc = ±2.093
• 5 – Gather sample data
– From the sample data, x-bar = 25.51 and s = 2.1933
• 6 – Analyze the data
t X 25 . 51 25 1 . 04
n 1 s / n 2 . 1933 / 20
Hypothesis Test of with unknown s
(from p.316)
Suppose a company held 26% of market share for
several years. Due to a massive marketing
effort and improved product quality, company
officials believe that the market share has
increased, and they want to prove it
statistically. In a random sample of 140 users,
48 used their product. Does this present
evidence that their market share has
increased? Test it at the 5% level of
significance.
Hypothesis Test of p
• 1 – Establish the null and alternative hypotheses
– H0: p = 0.26 vs. Ha: p > 0.26
• 2 – Determine the appropriate statistical test
– Z-test for proportions:
z pq pˆ p
n
– Appropriate if the following two conditions are met:
• The sample was randomly selected from the population
• np>= 5 and nq >=5. For our data, 140(0.26) = 36.4 > 5
and 140 (0.74) = 103.6 > 5, so this condition is met.
• 3 – Set a, the type I error rate / significance level
– Choose the common value of a = 0.05
Hypothesis Test of p
• 4 – Establish the decision rule
– Critical value method: Reject H0 if z > zc = 1.645
– P-value method: Reject H0 if p-value < a = 0.05
• 5 – Gather sample data
– p-hat = 48/140 = 0.343
• 6 – Analyze the data
ˆ
p
z pq p 0 . 343 0 . 26 0 . 083 2 . 24
n ( 0 . 26 )(1 0 . 26 ) 0 . 037
140
Hypothesis Test of p
• Step 1: Hypotheses
H0: s2 = 25
Ha: s2 25
n1 s
Hypothesis Test of s
• Step 3: Choose a = 0.10 [so a/2 = 0.05].
• Step 4: The degrees of freedom are 16 – 1 = 15.
The lower and upper critical chi-square values
are c2(1 – 0.05), 15 = c2 0.95, 15 = 7.3 and c2 0.05, 15 =
25.0.
• Step 5: The data are listed in the text.
• Step 6: The sample variance is s2 = 28.1.
The observed chi-square value is calculated as
c2 = (n-1)s2 / s2 = (15) 28.1 / 25 = 16.9.
Hypothesis Test of s
• Step 7: The observed chi-square value is in the
nonrejection region because c2 0.95, 15 = 7.3
< c2observed = 16.9 < c2 0.05, 15 = 25.0.
• Step 8: This result indicates to the company
managers that the variance of weekly overtime
hours is about what they expected.