Beruflich Dokumente
Kultur Dokumente
Workshop #1
What is a Hypothesis?
S t e p 2 : S e le c t a le v e l o f s ig n ific a n c e
S t e p 3 : I d e n t ify t h e t e s t s t a t is t ic
S t e p 4 : F o r m u la t e a d e c is io n r u le
S t e p 5 : T a k e a s a m p le , a r r iv e a t a d e c is io n
D o n o t r e je c t n u ll R e je c t n u ll a n d a c c e p t a lt e r n a t e
Hypothesis Testing: Definitions
State of Nature
Step 4: Critical value: The dividing point between the region where
the null hypothesis is rejected and the region where it is not
rejected.
- Obtained from table for corresponding statistic
Hypothesis Testing: Definitions (cont’d)
• A one-tailed test is when the alternate hypothesis, H1, states a
direction, such as:
H1: The mean yearly commissions earned by full-time realtors is
more than $35,000. (µ>$35,000)
H : The mean speed of trucks traveling on I-95 in Georgia is
1
0 . 3
.95 probability
Rejection One tail of .05
0 . 2
region for region of
rejection
x
Critical
f (
0 . 1
Value
z=1.65
. 0
- 5
0 1 2 3 4
r a l i t r b u i o n : = 0 , = 1
.95 probability
0 . 3
Two tails of
.025 for
0 . 2
regions
f ( x
Critical of rejection
0 . 1
Value
z=1.96
. 0
- 5
-4 -3 -2 -1 0 1 2 3 4
Testing for the Population Mean: Large
Sample, Population Standard Deviation Known
X
z
/ n
EXAMPLE 1
X 16.12 16.00
z 1.44
n 0 .5 36
z z / 2 or z z / 2
Test Statistic
x- 0 If unknown and n is large, estimate by s.
z=
/ n
8.5 Small Sample Tests about a Population Mean
If the sampled population is normal, we can reject H0: = 0 at
the level of significance (probability of Type I error equal to )
if and only if the appropriate rejection point condition holds or,
equivalently, if the corresponding p-value is less than .
t t / 2 or t t / 2
Test Statistic
x- 0 t, t/2 and p-values are based on n – 1 degrees of
t=
s/ n freedom.
8.5 Hypothesis Tests about a Population
Proportion
If the sample size n is large, we can reject H0: p = p0 at the
level of significance (probability of Type I error equal to ) if and
only if the appropriate rejection point condition holds or,
equivalently, if the corresponding p-value is less than .
z z / 2 or z z / 2
Test Statistic
p̂ - p 0
z=
p0 (1 p0 )
n
Example 2
p̂ - p 0 0.77 - 0.70
z= = 2.65
p0 (1 p0 ) 0.70(1 0.70)
n 300
Has mean: x 1 - x 2 = 1 2
12 22
Has standard deviation: x1 - x 2 =
n1 n 2
Sampling Distribution of x1 x 2
(Continued)
Large Sample Confidence Interval, Difference in Mean
If two independent samples are from populations that are
normal or each of the sample sizes is large, 100(1 - )%
confidence interval for 1 - 2 is
12 22
(x1 x 2 ) z/2
n1 n2
s12 s22
(x1 x 2 ) z/2
n1 n2
Large Sample Tests about Differences in Means
If sampled populations are normal or both samples are large, we can
reject H0: 1 - 2 = D0 at the level of significance if and only if the
appropriate rejection point condition holds or, equivalently, if the
corresponding p-value is less than .
z z / 2 or z z / 2
Test Statistic
(x1 x 2 ) D 0
z If population variance unknown
2
2
and the sample sizes are large,
1 2
substitute sample variances.
n1 n2
Small Sample Confidence Interval, Difference in
Mean When Variances are Equal
If two independent samples are from populations that are normal with
equal variances, 100(1 - )% confidence interval for 1 - 2 is
1 1
(x1 x 2 ) t /2 s
2
p
n1 n2
Where sp2 is the pooled variance
( n 1 ) s 2
( n 1) s 2
s 2p 1 1 2 2
( n1 n2 2)
And t/2 is based on (n1 – n2 – 2) degrees of freedom.
Small Sample Tests about Differences in
Means When Variances are Equal
If sampled populations are both normal with equal variances, we can
reject H0: 1 - 2 = D0 at the level of significance if and only if the
appropriate rejection point condition holds or, equivalently, if the p-
value is less than .
Alternative Reject H0 if: p-Value
H a : 1 2 D0 Area under t distributi on right of t
t t
H a : 1 2 D0 t t Area under t distributi on left of t
(x1 x 2 ) D 0
2
s s 2 t
(x1 x 2 ) z/2 1
2
s12 s22
n1 n2
n1 n2
For both the interval and test, the degrees of freedom are equal to
(s12 / n1 s 22 / n 2 ) 2
df 2
(s1 / n1 ) 2 (s 22 / n 2 ) 2
n1 1 n 2 1
Paired Difference Interval for Difference in Mean
sd
d t /2
n
t t / 2 or t t / 2
Test Statistic
d-D 0 t, t/2 and p-values are based on n – 1 degrees of
t=
sd / n freedom.
Example: Paired Difference Interval and Test
Car Garage 1 Garage 2 Difference Excel Test Output
Car 1 $ 7.10 $ 7.90 -0.8
Car 2 9.00 10.10 -1.1
Car 3 11.00 12.20 -1.2
Car 4 8.90 8.80 0.1
Car 5 9.90 10.40 -0.5
Car 6 9.10 9.80 -0.7
Car 7 10.30 11.70 -1.4