Professional Documents
Culture Documents
Z-TEST LIMITATIONS
➤ We rarely have complete information about
the population of interest, especially σ. And we
need to have a sufficiently large sample.
➤ We estimate using the t-statistic!
T-TEST
➤ We need a good estimate of the missing
population parameter (𝜎)
➤ If our sample is randomly selected, sample s will
approximate the population 𝜎, but it is biased.
➤ The larger our sample size, the closer s will be
to the true population 𝜎.
2 2
∑ ( X − µ ) ∑ ( X − X )
σX = sX =
N N −1
T-DISTRIBUTIONS
➤ There are many t-distributions, one for each
possible df.
z
When df > 120, df = 120
the t-distribution
becomes just like a df = 60
standard normal
distribution df = 20
T-DISTRIBUTION
Sampling
Sampling
distribution
distribution
of means sX̄
of means σX̄
-3σX̄ -2σX̄ -1σX̄ μ 1σX̄ 2σX̄ 3σX̄ -3sX̄ -2sX̄ -1sX̄ μ 1sX̄ 2sX̄ 3sX̄
X −µ ( X − µ)
z= tobt =
σX sX
s X2 sX
sX = =
N N
TYPES OF T-TESTS
➤ Random sampling
➤ Interval or ratio measure
➤ Relatively normally-distributed population
➤ Population µ is known
➤ Population σ is estimated by sample s
One Sample t-test
Assume a recent survey by AUB Tobacco-Free Task Force reported
the average number of cigarette breaks smokers take while on campus
was 9.8 and the standard deviation was 8.5. These data were based on
feedback from 55 UG tobacco smokers at AUB. Assume that prior to
the policy change, the population of tobacco smokers at AUB were
known to take 12.5 cigarette breaks while on campus. Has smoking
behavior changed since the university implemented the new policy?
Use hypothesis-testing to determine whether the average number of
cigarettes breaks taken by students on campus has changed since
AUB implemented the new policy.
What is μ? Is 𝜎 known?
One Sample t-test
μ≠ 12.5 μ= 12.5
One Sample t-test - Step 2
μ=12.5
Rejection Region(s)
Critical Value(s)
⍺ = .05
tcrit = -2.02 and 2.02
One or two tailed? TWO
df = N-1 = 55 - 1 = 54
One Sample t-test - Step 2
μ=12.5
Rejection Region(s)
Critical Value(s)
⍺ = .05
tcrit = -2.02 and 2.02
One or two tailed? TWO
df = N-1 = 55 - 1 = 54
One Sample t-test - Step 3
Assume a recent survey by AUB Tobacco-Free Task Force reported the
average number of cigarette breaks smokers take while on campus was
9.8 and the standard deviation was 8.5. These data were based on
feedback from 55 UG tobacco smokers at AUB. Assume that prior to the
policy change, the population of tobacco smokers at AUB were known to
take 12.5 cigarette breaks while on campus. Has smoking behavior
changed since the university implemented the new policy? Use
hypothesis-testing to determine whether the average number of cigarettes
breaks taken by students on campus has changed since AUB implemented
the new policy.
s X2 s ( X − µ ) = 9.8 - 12.5
sX = = X = 8.5/ sqrt( 55) = 1.15
N N tobt =
sX 1.15
= -2.36
One Sample t-test - Step 4
Fail to Reject
H0 Ha Reject H0
H0
tobt < tcrit The evidence
Left
μ≥ μ< The sample average is less than the supports the null
Tailed
population average. hypothesis.
tobt > tcrit The evidence
Right
μ≤ μ> The sample average is greater than the supports the null
Tailed
population average. hypothesis.
tobt more extreme than tcrit The evidence
Two
μ= μ≠ The sample average is different from supports the null
Tailed
the population average. hypothesis.
One Sample t-test - Step 5
Assume a recent survey by AUB Tobacco-Free Task Force reported the
average number of cigarette breaks smokers take while on campus was
9.8 and the standard deviation was 8.5. These data were based on
feedback from 55 UG tobacco smokers at AUB. Assume that prior to the
policy change, the population of tobacco smokers at AUB were known to
take 12.5 cigarette breaks while on campus. Has smoking behavior
changed since the university implemented the new policy? Use
hypothesis-testing to determine whether the average number of cigarettes
breaks taken by students on campus has changed since AUB implemented
the new policy.
CI = X̄ ± tcrit (sX̄ )
The CI is centered on Standard error - variability
our sample mean associated with the sample
mean
Cohen’s d Standardized
Correlation Coefficient
X̄ - μ
d
d=
Sx r= √
r
t2
t2 + n -1
μ=0
Total df
Two sample independent t-test
Now we have pooled variance, but we need the
standard error of the difference in means
2 ⎛1 1⎞
s X 1 − X 2 = (s pool )⎜⎜ + ⎟⎟
⎝ n1 n2 ⎠
➤ Random sampling
➤ Interval or ratio measure
➤ Relatively normally-distributed population
➤ Samples are independent
➤ Variances of the two samples are equal
Two sample independent t-test
A researcher is interested in evaluating whether there are SES differences
in young children’s preferential learning from an informant who uses a
passive voice vs an active voice. Thirty six children between 4 and 5 years
from low SES backgrounds and 29 children from high SES backgrounds
participated in a study in which two informants told a story. One
informant used passive voice and another used active voice. After the
story phase, the two informants provided conflicting testimony about the
names of novel objects over 6 trials. Children were asked to decide what
the novel object was called. The average number of trials in which
children trusted the informant who used a passive voice was calculated
for the two groups. Use a hypothesis test to evaluate whether there are
differences between groups. High SES Low SES
Mean 5.5 4.3
SD 1.2 1.4
Two sample independent t-test
μ=0
Rejection Region(s)
Critical Value(s)
⍺ = .05
tcrit = ±2.00
One or two tailed? TWO
df =(n1-1) + (n2 - 1) = (36-1) + (29-1) =63
Two sample independent t-test - Step 2
μ=0
tcrit = -2.00
tcrit = 2.00
Rejection Region(s)
Critical Value(s)
⍺ = .05
tcrit = ±2.00
One or two tailed? TWO
df =(n1-1) + (n2 - 1) = (36-1) + (29-1) =63
Two sample independent t-test - Step 3
1. Compute pooled variance 2 2
2 (n1 − 1) s + (n2 − 1) s
1 2
s pool =
(n1 − 1) + (n2 − 1)
4. Compute standard error
2 ⎛1 1⎞
s X 1 − X 2 = (s pool )⎜⎜ + ⎟⎟
⎝ n1 n2 ⎠
8. Compute the t-statistic (tobt).
̄1- X
X ̄2
tobt =
s X̄ 1 - X̄ 2
Two sample independent t-test - Step 4
Cohen’s d
̄1- X
d= (X ̄ 2)
spooled
Two sample dependent t-test
When researchers want to compare two related
samples.
- Commonly, repeated measures where the
same individuals are in both “groups”.
Why would a researcher want to test the
same individuals on multiple occasions?
1. Minimizes the differences “between” groups
2. Increases power
Two sample dependent t-test
Like independent sample t-tests, related sample
t-tests are used to assess whether there is a
statistically significant difference between two
group means.
➤ Random sampling
➤ Interval or ratio measure
➤ Relatively normally-distributed population
➤ Samples are dependent, related
➤ Variances of the two samples are equal
Two sample dependent t-test
TYPES OF T-TESTS
Ten randomly selected psychology
X1 X2 X2 - X1
10 9 -1
students were asked how
7 9 2
important they thought statistics is
3 6 3
for their future careers before and
7 8 1 after taking their first course in
1 5 4 statistics. Conduct a dependent
3 7 4 samples t-test to assess whether
5 9 4 students’ attitudes towards
6 10 4 statistics changed after taking their
4 7 3 first course.
2 5 3
D 2.70
SD 1.64
Two sample dependent t-test
μD=0
Rejection Region(s)
Critical Value(s)
⍺ = .05
tcrit = ±2.26
One or two tailed? TWO
df =N-1 = 9
Two sample dependent t-test - Step 2
μD=0
tcrit = -2.26
tcrit = 2.26
Rejection Region(s)
Critical Value(s)
⍺ = .05
tcrit = ±2.26
One or two tailed? TWO
df =N-1 = 9
Two sample dependent t-test - Step 3
√
2
s 453 .
1.64
D 40
2
sD = == 50.38 = 7.10
= 0.52
N 9
10
D − µ D + 37.98 − 0
tobt = == 2.70 - 0 = 5.19= 5.35
sD 7
0.52
.10
Two sample dependent t-test - Step 4
D
D D ± tcrit(sD)
d= =
sD sD
2
2.70 - 2.26(0.52) = 1.52