Final Exam
Final Exam
Final Exam
1
Independent-Measures Designs
• The independent-measures hypothesis test
allows researchers to evaluate the mean
difference between two populations using the
data from two separate samples.
• The identifying characteristic of the
independent-measures or between-subjects
design is the existence of two separate or
independent samples.
• Thus, an independent-measures design can be
used to test for mean differences between two
distinct populations (such as men versus
women) or between two different treatment
conditions (such as drug versus no-drug).
2
Independent-Measures Designs (cont.)
4
Hypothesis Testing with the
Independent-Measures t Statistic
• As with all hypothesis tests, the general purpose
of the independent-measures t test is to
determine whether the sample mean difference
obtained in a research study indicates a real
mean difference between the two populations (or
treatments) or whether the obtained difference is
simply the result of sampling error.
• Remember, if two samples are taken from the
same population and are given exactly the same
treatment, there still will be some difference
between the sample means.. 5
Hypothesis Testing with the
Independent-Measures t Statistic (cont.)
• This difference is called sampling error
• The hypothesis test provides a
standardized, formal procedure for
determining whether the mean difference
obtained in a research study is
significantly greater than can be explained
by sampling error
6
Hypothesis Testing with the
Independent-Measures t Statistic (cont.)
• To prepare the data for analysis, the first
step is to compute the sample mean and
SS (or s, or s2) for each of the two
samples.
• The hypothesis test follows the same four-
step procedure outlined in Chapters 8 and
9.
7
Hypothesis Testing with the
Independent-Measures t Statistic (cont.)
1. State the hypotheses and select an α level. For
the independent-measures test, H0 states that
there is no difference between the two
population means.
2. Locate the critical region. The critical values for
the t statistic are obtained using degrees of
freedom that are determined by adding together
the df value for the first sample and the df value
for the second sample.
8
Hypothesis Testing with the
Independent-Measures t Statistic (cont.)
3. Compute the test statistic. The t statistic for the
independent-measures design has the same structure as
the single sample t introduced in Chapter 9. However, in
the independent-measures situation, all components of
the t formula are doubled: there are two sample means,
two population means, and two sources of error
contributing to the standard error in the denominator.
4. Make a decision. If the t statistic ratio indicates that the
obtained difference between sample means (numerator)
is substantially greater than the difference expected by
chance (denominator), we reject H0 and conclude that
there is a real mean difference between the two
populations or treatments.
9
The Homogeneity of Variance
Assumption
• Although most hypothesis tests are built on a set of
underlying assumptions, the tests usually work
reasonably well even if the assumptions are violated.
• The one notable exception is the assumption of
homogeneity of variance for the independent-
measures t test.
• The assumption requires that the two populations from
which the samples are obtained have equal variances.
• This assumption is necessary in order to justify pooling
the two sample variances and using the pooled variance
in the calculation of the t statistic.
11
The Homogeneity of Variance
Assumption (cont.)
• If the assumption is violated, then the t statistic
contains two questionable values: (1) the value
for the population mean difference which comes
from the null hypothesis, and (2) the value for
the pooled variance.
• The problem is that you cannot determine which
of these two values is responsible for a t statistic
that falls in the critical region.
• In particular, you cannot be certain that rejecting
the null hypothesis is correct when you obtain an
extreme value for t.
12
The Homogeneity of Variance
Assumption (cont.)
• If the two sample variances appear to be
substantially different, you should use
Hartley’s F-max test to determine whether
or not the homogeneity assumption is
satisfied.
• If homogeneity of variance is violated, Box
10.3 presents an alternative procedure for
computing the t statistic that does not
involve pooling the two sample variances.
13
Measuring Effect Size for the
Independent-Measures t
• Effect size for the independent-measures t
is measured in the same way that we
measured effect size for the single-sample
t in Chapter 9.
• Specifically, you can compute an estimate
of Cohen=s d or you can compute r2 to
obtain a measure of the percentage of
variance accounted for by the treatment
effect.
15
ANOVA:
Analysis of Variation
The basic ANOVA situation
Two variables: 1 Categorical, 1 Quantitative
Main Question: Do the (means of) the quantitative variables depend on which
group (given by categorical variable) the individual is in?
13
12
11
10
days
8
7
A B P
treatment
What does ANOVA do?
At its simplest (there are extensions) ANOVA tests
the following hypotheses:
H0: The means of all the groups are equal.
With such small data sets, there really isn’t a really good way to check
normality from data, but we make the common assumption that physical
measurements of people tend to be normally distributed.
Standard Deviation Check
xi
How ANOVA works (outline)
ANOVA measures two sources of variation in the data and
compares their relative sizes
xi x 2
x ij xi
2
The ANOVA F-statistic is a ratio of the Between Group Variaton
divided by the Within Group Variation:
Between MSG
F
Within MSE
A large F is evidence against H0, since it indicates that there is more
difference between groups than within groups.
Minitab ANOVA Output
Analysis of Variance for days
Source DF SS MS F P
treatment 2 34.74 17.37 6.45 0.006
Error 22 59.26 2.69
Total 24 94.00
How are these computations
made?
We want to measure the amount of variation due to BETWEEN group
variation and WITHIN group variation
xi x 2
( x ij x i ) 2
An even smaller example
Suppose we have three groups
• Group 1: 5.3, 6.0, 6.7
• Group 2: 5.5, 6.2, 6.4, 5.7
• Group 3: 7.5, 7.2, 7.9
We get the following statistics:
SUMMARY
Groups Count Sum Average Variance
Column 1 3 18 6 0.49
Column 2 4 23.8 5.95 0.176667
Column 3 3 22.6 7.533333 0.123333
Excel ANOVA Output
ANOVA
Source of Variation SS df MS F P-value F crit
Between Groups 5.127333 2 2.563667 10.21575 0.008394 4.737416
Within Groups 1.756667 7 0.250952
Total 6.884 9
(x xi ) 2
(x x) 2
( xij x )
ij 2 i
obs
obs
obs
SS stands for sum of squares
• ANOVA splits this into 3 parts
Minitab ANOVA Output
Analysis of Variance for days
Source DF SS MS F P
treatment 2 34.74 17.37 6.45 0.006
Error 22 59.26 2.69
Total 24 94.00
= MSG / MSE
s 2
x ij x
2
SST
MST
n 1 DFT
So SST = (n -1) s2, and MST = s2. That is, SST and MST measure the
TOTAL variation in the data set.
Connections between SSE, MSE,
and standard deviation
Remember:
si
2
x ij xi
2
SS[ Within Group i ]
ni 1 dfi
So SS[Within Group i] = (si2) (dfi )
This means that we can compute SSE from the standard deviations and sizes
(df) of each group:
( n 1)s 2
( n 1)s 2
( n 1)s 2
s p2 1 1 2 2 I I
n I
(df1 )s (df2 )s (dfI )s
2 2 2
s
2
p
1 2 I
df1 df2 dfI
so MSE is the pooled
SSE estimate of variance
s
2
p MSE
DFE
In Summary
SST ( x ij x ) s (DFT )
2 2
obs
SSE ( x ij x i ) s
2 2
i (dfi )
obs groups
SSG ( x i x )
2
n (x i i x) 2
obs groups
SS MSG
SSE SSG SST ; MS ; F
DF MSE
R2 Statistic
R2 gives the percent of variance due to between
group variation
SS[Between ] SSG
R 2
SS[Total ] SST
This is very much like the R2 statistic that we computed back when we
did regression.
Where’s the Difference?
Once ANOVA indicates that the groups do not all appear to have the same
means, what do we do?
A B
These give 98.01%
B -3.685
0.435
CI’s for each pairwise
difference.
P -4.863 -3.238
-0.859 0.766 Only P vs A is significant
(both values have same sign)
95% CI for A-P is (-0.86,-4.86)
Fisher’s Pairwise Comparisons
Now we set the individual
error rate (alpha) and see
the overall error rate.
Fisher's pairwise comparisons
95% confidence on each
Family error rate = 0.119 corresponds to 88.1%
Individual error rate = 0.0500
confidence overall
Critical value = 2.074
A B
B -3.327
0.077
P -4.515 -2.890
-1.207 0.418