T-Test or Z-Test Decision
T-Test or Z-Test Decision
T-Test or Z-Test Decision
4)
1
H0: µ = number (null hypothesis)
H1: Three variations (alternative hypothesis)
3. µ 6= number (two-tailed)
Note:
1. t is the test statistic from the formula
2. tα and tα/2 are values from t-distribution
table with n-1 degrees of freedom
2
Ex: Eercise 8.4, 8
3
Ex: Exercise 8.4, 12
4
When to use Z test or t test?
5
z-test for proportions (sect 8.5)
Test Statistic:
p̂ − p
Z=q
p(1 − p)/n
where
p̂ = X
n
p = population proportion
n = sample size
6
H0: p = number (null hypothesis)
H1: Three variations (alternative hypothesis)
3. p 6= number (two-tailed)
Note:
1. Z is the test statistic from the formula
2. Zα and Zα/2 are values from Z score table
7
Ex: Exercise 8.5, 18
8
Testing the Difference Between Two Means:
Large Samples (Section 9.2)
Ex: Exercise9.2, 10
We are interest if there is a difference between
Calgary and Edmonton regarding house price.
We randomly sample 35 houses in Calgary, and
find out that mean house price is $358,103
with sample standard deviation $21,471. We
randomly sample 40 houses in Edmonton, and
find out that mean house price is $303,304
with sample standard deviation $14,636.
Note:
1. X̄1 and X̄2 are means from two samples
2. µ1 and µ2 are population means of two
groups
3. n1 and n2 are sizes of two samples
10
Ex: cont
Is there enough evidence to reject the claim
that the vaerage cost of a home in both loca-
tions is the same? Use α = 0.01
11