Statistics is ...
Population is ...
Sample is ...
Variable is ...
Parameter is ...
Relation between statistics & parameters ...
Difference between statistics and probability
Statistics assumptions :
Population and its parameters are (unknown / known)
Sample is used to ..... parameters
1. Populasi Terbatas
2. Populasi tak terbatas
a. Populasi homogen
b. Populasi heterogen
Hypothesis Testing
Course 1 Objectives
Students able to
hypothesis
Know what
Review of Estimating
Population Value
Lower
Confidence
Limit
Point Estimate
Width of
confidence interval
Upper
Confidence
Limit
Point Estimates
We can estimate a
Population Parameter
with a Sample
Statistic
(a Point Estimate)
Mean
Proportion
Confidence Intervals
How much uncertainty is associated with a
point estimate of a population parameter?
An interval estimate provides more
information about a population
characteristic than does a point estimate
Such interval estimates are called
confidence intervals
Estimation Process
Random Sample
Population
(mean, , is
unknown)
Sample
Mean
x = 50
I am 95%
confident that
is between
40 & 60.
Confidence Level
Confidence Level
Confidence in which the
interval will contain the
unknown population
parameter
A percentage (less than 100%)
x z /2
.025
2
.025
2
z units:
z.025= -1.96
x units:
Lower
Confidence
Limit
0
Point Estimate
z.025= 1.96
Upper
Confidence
Limit
Margin of Error
Margin of Error (e): the amount added
and subtracted to the point estimate to
form the confidence interval
Example: Margin of error for estimating , known:
x z /2
e z /2
Data variation, :
Sample size, n :
Level of confidence, 1 - :
Chap 7-20
as
as n
e
if 1 -
Example
A sample of 11 circuits from a large
normal population has a mean
resistance of 2.20 ohms. We know
from past testing that the population
standard deviation is .35 ohms.
Determine a 95% confidence interval
for the true mean resistance of the
population.
Chap 7-21
Example
(continue
d)
x z /2
Solution:
n
2.20 1.96 (.35/ 11)
2.20 .2068
1.9932 .......... ..... 2.4068
Chap 7-22
Interpretation
We are 95% confident that the true mean
resistance is between 1.9932 and 2.4068
ohms
Although the true mean may or may not
be in this interval, 95% of intervals formed
in this manner will contain the true mean
An incorrect interpretation is that there is 95% probability that this
interval contains the true population mean.
(This interval either does or does not contain the true mean, there is
no probability for a single interval)
Chap 7-23
Students t Distribution
Note: t
z as n increases
Standard
Normal
(t with df = )
t (df = 13)
t-distributions are bellshaped and symmetric, but
have fatter tails than the
normal
t (df = 5)
0
Chap 7-24
x t /2
Chap 7-25
s
n
Approximation
for large n
x z /2
s
n
What is a Hypothesis?
A hypothesis is a claim
(assumption) about a
population parameter:
population mean
population proportion
3
0
statistic
(continued)
Always contains
sign
May
= , or
The Alternative
Hypothesis, HA
Is the opposite of the null hypothesis
e.g.: The average number of TV sets in
U.S. homes is less than 3 ( HA: < 3 )
sign
May or may not be accepted
Is generally the hypothesis that is
believed (or needs to be supported)
by the researcher
Population
Is x 20 likely if = 50?
If not likely,
REJECT
Null Hypothesis
Suppose
the sample
mean age
is 20: x = 20
Now select a
random sample
Sample
20
If it is unlikely that
we would get a
sample mean of
this value ...
= 50
If H0 is true
... then we
reject the null
hypothesis that
= 50.
Level of Significance,
Defines unlikely values of sample
statistic if null hypothesis is true
Defines rejection region of the sampling
distribution
Level of Significance
and the Rejection Region
Level of significance =
H0: 3
HA: < 3
H0: 3
HA: > 3
H0: = 3
HA: 3
Represents
critical value
1-
Rejection
region is
shaded
1-
/2
Two tailed test
1-
0
/2
Type II Error
Fail to reject a false null hypothesis
The probability of Type II Error is
Key:
Outcome
(Probability)
Decision
H0 True
H0 False
Do Not
Reject
H0
No error
(1 - )
Type II Error
()
Reject
H0
Type I Error
()
No Error
(1-)
, then
when
when
when
Critical Value
Approach to Testing
Convert sample statistic (e.g.:
x
statistic ( Z or t statistic )
) to test
H0: 3
HA: < 3
Reject H0
-z
x
x z
Do not reject H0
z or x , is called a
critical value
H0: 3
HA: > 3
Do not reject H0
x z
Reject H0
H0: = 3
HA:
3
z/2
or
x/2
x/2
Lower
Upper
/2
Reject H0
/2
Do not reject H0
-z/2
x/2
Lower
x /2 z /2
Reject H0
z/2
x/2
Upper
Critical Value
Approach to Testing
Convert sample statisticx(
( Z or t statistic )
) to a test statistic
Hypothesis
Tests for
Known
Unknown
Large
Samples
Small
Samples
z
n
Known
Unknown
Large
Samples
Small
Samples
tn1snzxn
(continued)
Hypothesis
Tests for
Known
But is sometimes
approximated
using a z:
Unknown
Large
Samples
Small
Samples
tn1sn
(continued)
Hypothesis
Tests for
Known
Unknown
Large
Samples
Small
Samples
Hypothesis Testing
Example
Test the claim that the true mean # of TV
sets in US homes is at least 3.
(Assume = 0.8)
Reject H0
-z= -1.645
Do not reject H0
.z
x
2
8
4
.
1
6
2
.
0
0
0
8
n1
-1.645
-2.0
Do not reject H0
= .05
x
Reject H0
2.8684
2.84
Do not reject H0
0.8
x z
3 1.645
2.8684
n
100
Since x = 2.84 < 2.8684,
p-Value Approach to
Testing
x (e.g. ) to
Convert Sample Statistic
Test Statistic ( Z or t statistic )
p-value example
Example: How likely is it to see a
sample mean of 2.84 (or something
further below the mean) if the true
mean is = 3.0? = .05
P( x 2.84 | 3.0)
2.84 3.0
P z
0.8
100
p-value =.0228
x
2.8684
2.84
p-value example
(continued)
, do not reject H0
= .05
p-value =.0228
2.8684
2.84
Reject H0
= .10
Do not reject H0
z=1.28
Reject H0
Review:
Finding Critical Value - One
Tail
What is z given =
0.10?
.90
.10
= .10
.50 .40
Standard Normal
Distribution Table (Portion)
0 1.28
Critical Value
= 1.28
.07
.08
.09
5
3
.
1
5
2
z
0
.
8
0
n64
(continued)
Example: Decision
(continued)
= .10
Do not reject H0
1.28
0
z = .88
Reject H0
p -Value Solution
(continued)
1.28
z = .88
Reject H0
P( x 53.1 | 52.0)
53.1 52.0
P z
10
64
H0: = 168
HA:
168
1
7
2
.
5
0
1
6
8
tn1
1
.
4
6
s
4
n
/2=.025
Reject H0
-t/2
-2.0639
/2=.025
Do not reject H0
1.46
Reject H0
t/2
2.0639
Proportions
(continued)
x
number of successes in sample
p
n
sample size
pp
p(1 p)
n
Hypothesis
Tests for p
np 5
and
n(1-p) 5
np < 5
or
n(1-p) < 5
Not discussed
in this chapter
Check:
n p = (500)(.08) = 40
n(1-p) = (500)(.92) = 460
H0: p = .08
HA: p .
08= .05
n = 500, p = .05
Reject
.025
.025
-1.96
-2.47
1.96
.05 .08
2.47
.08(1 .08)
500
Decision:
pp
p(1 p)
n
Reject H0 at = .05
Conclusion:
There is sufficient
evidence to reject the
companys claim of 8%
response rate.
p -Value Solution
(continued)
Reject H0
/2 = .025
Reject H0
/2 = .025
.0068
.0068
-1.96
z = -2.47
p-value = .0136:
1.96
z = 2.47
Type II Error
Type II error is the probability of
failing to reject a false H0
50
52
Reject
H0: 52
Do not reject
H0 : 52
Type II Error
(continued)
50
Reject
H0: 52
52
Do not reject
H0 : 52
Type II Error
(continued)
50
Reject
H0: 52
52
Do not reject
H0 : 52
Calculating
Suppose n = 64 , = 6 , and = .05
6
52 1.645
50.766
n
64
cutoff x z
(for H0 : 52)
So = P( x 50.766 ) if =
50
50
50.766
Reject
H0: 52
52
Do not reject
H0 : 52
Calculating
(continued)
50.766 50
P( x 50.766 | 50) P z
P(z 1.02) .5 .3461 .1539
64
Probability of
type II error:
= .1539
50
Reject
H0: 52
52
Do not reject
H0 : 52
Chapter Summary
Addressed hypothesis testing
methodology
Performed z Test for the mean (
known)
Discussed pvalue approach to
hypothesis testing
Performed one-tail and two-tail tests . . .
Chapter Summary
(continued)