Hypothesis Testing With Two Samples
Hypothesis Testing With Two Samples
t=
(x1 − x 2) − (μ1 − μ2) .
σ x −x
1 2
σˆ =
(n1 − 1) s12 + (n2 − 1) s22
n1 + n2 − 2 Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 7
Two Sample t-Test
Two-Sample t-Test (Continued)
The standard error for the sampling distribution of x1 − x 2 is
σ x − x = σˆ 1 + 1 Variances equal
1 2
n1 n2
and d.f.= n1 + n2 – 2.
We now compute
(27.75 − 22.41) − 0
t= = 10.772
(22 − 1)(2.64) 2 + (40 − 1)(1.27) 2 1 1
+
22 + 40 − 2 22 40
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 12
Two Sample t-Test for the Means
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 13
Two Sample t-Test for the Means
Example:
The purpose of a study by Tam et al. (A-6) was to investigate
wheelchair maneuvering in individuals with lower-level spinal cord
injury (SCI) and healthy controls (C). Subjects used a modified
wheelchair to incorporate a rigid seat surface to facilitate the
specified experimental measurements. Interface pressure
measurement was recorded by using a high-resolution pressure-
sensitive mat with a spatial resolution of four sensors per square
centimeter taped on the rigid seat support. During static sitting
conditions, average pressures were recorded under the ischial
tuberosities (the bottom part of the pelvic bones). The data for
measurements of the left ischial tuberosity (in mm Hg) for the SCI
and control groups are shown in Table 7.3.1.We wish to know if we
may conclude, on the basis of these data, that, in general, healthy
subjects exhibit lower pressure than SCI subjects.
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 14
Two Sample t-Test for the Means
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 15
Two Sample t-Test for the Means
Step 3: Compute the test value.
x C = 126.1, sC = 21.8, x SCI = 133.1, sSCI = 32.2,
Next, we pool the sample variances to obtain
9(21.8) 2
+ 9(32.2) 2
s 2p = = 756.04
9+9
We now compute
(126.1 − 133.1) − 0
t= = −0.569
756.04 756.04
+
10 10
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 16
Two Sample t-Test for the Means
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 17
Try This Yourself
d
–t0 μd t0
Symbol Description
n The number of pairs of data
d The difference between entries for a data pair, d = x1 – x2
μd The hypothesized mean of the differences of paired data
in the population
d The mean of the differences between the paired data
entries in the dependent samples
d = d
n
sd The standard deviation of the differences between the
paired data entries in the dependent samples
n(d 2 ) − (d )
2
sd =
n(n − 1)
Larson & Farber, Elementary Statistics: Picturing the World, 3e 23
t-Test for the Difference Between Means
t-Test for the Difference Between Means
A t-test can be used to test the difference of two population
means when a sample is randomly selected from each
population. The requirements for performing the test are that
each population must be normal and each member of the first
sample must be paired with a member of the second sample.
The test statistic is
d = d
n
and the standardized test statistic is
d − μd
t= .
sd n
The degrees of freedom are
d.f. = n – 1.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 24
t-Test for the Difference Between Means
Using the t-Test for the Difference Between Means
(Dependent Samples)
In Words In Symbols
1. State the claim mathematically. State H0 and Ha.
Identify the null and alternative
hypotheses.
2. Specify the level of significance. Identify .
3. Identify the degrees of freedom d.f. = n – 1
and sketch the sampling
distribution.
4. Determine the critical value(s). Use Table 5 in
Appendix B.
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 25
t-Test for the Difference Between Means
Using a Two-Sample t-Test for the Difference Between
Means (Small Independent Samples)
In Words In Symbols
5. Determine the rejection region(s).
6. Calculate d and sd . Use a table. d = d
n
n( d 2 ) − ( d )2
sd =
n(n − 1)
d − μd
7. Find the standardized test statistic. t=
sd n
d = 18.075, sd = 32.68
We now compute
18.075 − 0
t= = 1.916
32.68
12
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 30
t-Test for the Difference Between Means
Continued.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 31
A medical researcher wants to determine whether a drug
changes the body’s temperature. Seven test subjects are
randomly selected, and the body temperature (in degrees
Fahrenheit) of each is measured. The subjects are then given
the drug and, after 20 minutes, the body temperature of each is
measured again. The results are listed below. At ɑ = 0.05, is
there enough evidence to conclude that the drug changes the
body’s temperature? Assume the body temperatures are
normally distributed.
Pre–GDS: 12 10 16 2 12 18 11 16 16 10 14 21 9 19 20
Post–GDS: 11 10 11 3 9 13 8 14 16 10 12 22 9 16 18
Source: Data provided courtesy of Ellen Davis Jones, N.D., R.N., FNP-C.
Larson & Farber, Elementary Statistics: Picturing the World, 3e 34
Grammatical Errors
A teacher claims that a grammar seminar will help students
reduce the number of grammatical errors they make when
writing a 1000-word essay. The table shows the number of
grammatical errors made by seven students before
participating in the seminar and after participating in the
seminar. At ɑ = 0.01 is there enough evidence to conclude that
the seminar reduced the number of errors?