Chapter10 Stats
Chapter10 Stats
1
Lecture Notes for Introductory Statistics
In section 10.4 we return to testing claims about population means, but this
time with “paired data”. For example, we might again test the efficacy of the SAT
prep course, but this time by collecting “before” and “after” SAT scores from a
single group of students. This “paired” sample data is handled differently than
the two independent samples in sections 10.1 and 10.2. We will subtract each pair
(the two test scores from a single student, for example) to create a new data set
of “differences” (after score − before score, for example). We will treat this new
(single) data set using the methods of chapter 9 (T-Test or Z-Test).
1
These lecture notes are intended to be used with the open source textbook “Introductory
Statistics” by Barbara Illowsky and Susan Dean (OpenStax College, 2013).
1
Chapter 10 Notes Hypothesis Testing with Two Samples D. Skipper, p 2
P-value: The probability of getting a difference between sample means this large or
larger (direction of the the alternative hypothesis) assuming the difference between
the population means is 0: p-value = tail area under the tdf curve beyond the test
statistic t in the direction of the alternative hypothesis.
Calculator test: 2-SampTTest
(7) State the conclusion about the braking distances of 4 cylinder versus 6
cylinder cars.
P-value: The probability of getting a difference between sample means this large or
larger (direction of the the alternative hypothesis) assuming the difference between
the population means is 0: p-value = tail area under the Z (standard normal) curve
beyond the test statistic z in the direction of the alternative hypothesis = tail area
under the density curve for X̄1 − X̄2 beyond the sample statistic x̄1 − x̄2 .
Chapter 10 Notes Hypothesis Testing with Two Samples D. Skipper, p 5
As in the cases above when comparing sample means, we assume the populations
have the same proportion of successes in the null hypothesis, so the center of the
associated normal distribuiton is p1 − p2 = 0.
Chapter 10 Notes Hypothesis Testing with Two Samples D. Skipper, p 6
normal. Often paired tests have small sample size with unknown population stan-
dard deviation. If so, we must apply the Student T distribution.
Sample statistic: d¯ = the sample mean of the differences of the paired data
¯ subtract each data pair, then find the mean of the differences:
values. To get d,
(1) For each subject, calculate d = y − x.
¯
(2) Find the mean of the d values, d.
(Note that for independent samples, the sample statitstic is the difference of the
sample means: find the mean of the two samples, then subtract those two values:
x¯1 − x¯2 .)
Value assumed in the null hypothesis (center of the normal distribution):
µd = 0 (On average, there is no difference between the two data values collected
from each subject).
Hypotheses: Hypotheses have the following form:
H0 : µd (=, ≤, ≥) 0
Ha : µd (6=, >, <) 0.
Distribution: D̄ = the sample mean of the differences of paired data values from
samples of size n: D̄ ∼ N (0, √sdn ), but because the population standard deviations
are unknown, we use tdf = tn−1 .
Outcome that supports the alternative hypothesis: When d¯ is very different
from 0, in the direction of the alternative hypothesis.
Test statistics: This is a t-score that tells us how many standard deviations our
¯
sample statistic d¯ is away from the assumed value of 0: t = d−0s
√d
n
P-value: The probability of getting a sample mean of differences this large or
larger (direction of the the alternative hypothesis) assuming there is no difference
on average between the two data values for each subject (µd = 0).
Calculator test: TTest