SlideShare a Scribd company logo
11
Independent Samples t-TestIndependent Samples t-Test
(or 2-Sample t-Test)(or 2-Sample t-Test)
Advanced Research Methods in PsychologyAdvanced Research Methods in Psychology
- lecture -- lecture -
Matthew RockloffMatthew Rockloff
2
When to use the independentWhen to use the independent
samples t-testsamples t-test
 The independent samples t-test is probably theThe independent samples t-test is probably the
single most widely used test in statistics.single most widely used test in statistics.
 It is used toIt is used to compare differencescompare differences betweenbetween
separate groups.separate groups.
 In Psychology, these groups are often composedIn Psychology, these groups are often composed
by randomly assigning research participants toby randomly assigning research participants to
conditions.conditions.
 However, this test can also be used to exploreHowever, this test can also be used to explore
differences in naturally occurring groups.differences in naturally occurring groups.
 For example, we may be interested in differencesFor example, we may be interested in differences
of emotional intelligence between males andof emotional intelligence between males and
females.females.
3
When to use the independent samplesWhen to use the independent samples
t-testt-test (cont.)(cont.)
 Any differences between groups can beAny differences between groups can be
explored with the independent t-test, asexplored with the independent t-test, as
long as the tested members of each grouplong as the tested members of each group
are reasonably representative of theare reasonably representative of the
populationpopulation. [1]. [1]
[1][1] There are some technicalThere are some technical
requirements as well. Principally,requirements as well. Principally,
each variable must come from aeach variable must come from a
normal (or nearly normal) distribution.normal (or nearly normal) distribution.
4
Example 3.1Example 3.1
 Suppose we put people on 2 diets:Suppose we put people on 2 diets:
the pizza diet and the beer diet.the pizza diet and the beer diet.
 Participants are randomly assigned toParticipants are randomly assigned to
either 1-week of eating exclusively pizzaeither 1-week of eating exclusively pizza
or 1-week of exclusively drinking beer.or 1-week of exclusively drinking beer.
 Of course, this would be unethical,Of course, this would be unethical,
because pizza and beer should always bebecause pizza and beer should always be
consumed together, but this is just anconsumed together, but this is just an
example.example.
5
Example 3.1Example 3.1 (cont.)(cont.)
 At the end of the week, we measureAt the end of the week, we measure
weight gain by each participant.weight gain by each participant.
 Which diet causes more weight gain?Which diet causes more weight gain?
 In other words, the null hypothesis is:In other words, the null hypothesis is:
Ho: wt. gain pizza diet =wt. gain beer diet.Ho: wt. gain pizza diet =wt. gain beer diet.
6
Example 3.1Example 3.1 (cont.)(cont.)
 Why?Why?
 The null hypothesis is the opposite ofThe null hypothesis is the opposite of
what we hope to find.what we hope to find.
 In this case, our research hypothesis isIn this case, our research hypothesis is
that there ARE differences between the 2that there ARE differences between the 2
diets.diets.
 Therefore, our null hypothesis is thatTherefore, our null hypothesis is that
there are NO differences between these 2there are NO differences between these 2
diets.diets.
7
XX11 : Pizza: Pizza XX22 : Beer: Beer
11 33 11 11
22 44 00 00
22 44 00 00
22 44 00 00
33 55 11 11
22 44
0.40.4 0.40.4
=Χ1
2
11 )( Χ−Χ
=Χ2
2
22 )( Χ−Χ
=
Χ−Χ
=
∑
n
sx
2
2
)(
Example 3.1Example 3.1 (cont.)(cont.)
Column 3
Column 4
8
Example 3.1Example 3.1 (cont.)(cont.)
 The first step in calculating theThe first step in calculating the
independent samples t-test is to calculateindependent samples t-test is to calculate
thethe variancevariance andand meanmean in each condition.in each condition.
 In the previous example, there are a totalIn the previous example, there are a total
of 10 people, with 5 in each condition.of 10 people, with 5 in each condition.
 Since there are different people in eachSince there are different people in each
condition, these “samples” arecondition, these “samples” are
““independentindependent” of one another;” of one another;
giving rise to the name of the test.giving rise to the name of the test.
9
Example 3.1Example 3.1 (cont.)(cont.)
 The variances and means are calculatedThe variances and means are calculated
separately for each conditionseparately for each condition
(Pizza and Beer).(Pizza and Beer).
 A streamlined calculation of theA streamlined calculation of the variancevariance forfor
each condition was illustrated previously.each condition was illustrated previously.
(See Slide 7.)(See Slide 7.)
 In short, we take each observed weight gainIn short, we take each observed weight gain
for the pizza condition, subtract it from thefor the pizza condition, subtract it from the
mean gain of the pizza dieters (mean gain of the pizza dieters ( 22) and) and
square the result (seesquare the result (see column 3column 3).).
=Χ1
10
Example 3.1Example 3.1 (cont.)(cont.)
 Next, add up column 3 and divide by theNext, add up column 3 and divide by the
number of participants in that conditionnumber of participants in that condition
(n(n11 = 5) to get the= 5) to get the sample variancesample variance,,
 The same calculations are repeated forThe same calculations are repeated for
the “beer” condition.the “beer” condition.
4.02
=xs
11
FormulaFormula
The formula forThe formula for
thethe independent samples t-testindependent samples t-test is:is:
11 2
2
1
2
21
21
−
+
−
Χ−Χ
=
n
S
n
S
t
xx
, df = (n1
-1) + (n2
-1)
12
Example 3.1Example 3.1 (cont.)(cont.)
 From the calculations previously, we haveFrom the calculations previously, we have
everything that is needed to find the “t.”everything that is needed to find the “t.”
47.4
4
4.
4
4.
42
−≈
+
−
=t , df = (5-1) + (5-1) = 8
After calculating the “t” value, we need to know
if it is large enough to reject the null hypothesis.
13
Some theorySome theory
 The “t” is calculated under theThe “t” is calculated under the
assumption, called theassumption, called the null hypothesisnull hypothesis,,
that there are no differences between thethat there are no differences between the
pizza and beer diet.pizza and beer diet.
 If this were true, when we repeatedlyIf this were true, when we repeatedly
sample 10 people from the populationsample 10 people from the population
and put them in our 2 diets, most oftenand put them in our 2 diets, most often
we would calculate a “t” of “0.”we would calculate a “t” of “0.”
14
Some theory - Why?Some theory - Why?
 Look again at the formula for the “t”.Look again at the formula for the “t”.
 Most often the numerator (XMost often the numerator (X11-X-X22) will be) will be
“0,” because the“0,” because the meanmean of the twoof the two
conditions should be theconditions should be the samesame under theunder the
null hypothesis.null hypothesis.
 That is, weight gain is the same underThat is, weight gain is the same under
both the pizza and beer diet.both the pizza and beer diet.
15
Some theory - WhySome theory - Why (cont.)(cont.)
 Sometimes the weight gain might be a bitSometimes the weight gain might be a bit
higher under the pizza diet, leading to ahigher under the pizza diet, leading to a
positive “t” value.positive “t” value.
 In other samples of 10 people, weightIn other samples of 10 people, weight
gain might be a little higher under thegain might be a little higher under the
beer diet, leading to a negative “t” value.beer diet, leading to a negative “t” value.
 TheThe important pointimportant point, however, is that, however, is that
under the null hypothesis we shouldunder the null hypothesis we should
expect that most “t” values that weexpect that most “t” values that we
compute are close to “0.”compute are close to “0.”
16
Some theorySome theory (cont.)(cont.)
 Our computed t-value is not “0,” but it is in factOur computed t-value is not “0,” but it is in fact
negative (t(8) = -4.47).negative (t(8) = -4.47).
 Although the t-value is negative, this should notAlthough the t-value is negative, this should not
bother us.bother us.
 Remember that the t-value is only - 4.47Remember that the t-value is only - 4.47
because we named the pizza diet Xbecause we named the pizza diet X11 and theand the
beer diet Xbeer diet X22..
– This is, of course,This is, of course, completely arbitrarycompletely arbitrary..
 If we had reversed our order of calculation, withIf we had reversed our order of calculation, with
the pizza diet as Xthe pizza diet as X22 and the beer diet as Xand the beer diet as X11, then, then
our calculated t-value would be positive 4.47.our calculated t-value would be positive 4.47.
17
Example 3.1Example 3.1 (again)(again) CalculationsCalculations
 The calculated t-value is 4.47 (notice, I’veThe calculated t-value is 4.47 (notice, I’ve
eliminated the unnecessary “-“ signeliminated the unnecessary “-“ sign), and), and
the degrees of freedom are 8.the degrees of freedom are 8.
 In the research question we did notIn the research question we did not
specify which diet should cause morespecify which diet should cause more
weight gain, therefore this t-test is a so-weight gain, therefore this t-test is a so-
calledcalled “2-tailed t.”“2-tailed t.”
18
Example 3.1Example 3.1 (again)(again) CalculationsCalculations
 In theIn the last steplast step, we need to find the, we need to find the
critical value for a 2-tailed “t” with 8critical value for a 2-tailed “t” with 8
degrees of freedom.degrees of freedom.
 This is available from tables that are inThis is available from tables that are in
the back of any Statistics textbook.the back of any Statistics textbook.
 Look in the back for “Critical Values ofLook in the back for “Critical Values of
the t-distribution,” or something similar.the t-distribution,” or something similar.
 The value you should find is:The value you should find is:
C.V.C.V. t(8), 2-tailedt(8), 2-tailed = 2.31= 2.31..
19
Example 3.1Example 3.1 (cont.)(cont.)
 The calculated t-value of 4.47 is larger inThe calculated t-value of 4.47 is larger in
magnitude than the C.V. of 2.31, therefore wemagnitude than the C.V. of 2.31, therefore we
can reject the null hypothesis.can reject the null hypothesis.
 Even for a results section of journal article, thisEven for a results section of journal article, this
language is a bit too formal and general. It islanguage is a bit too formal and general. It is
more important to state the research result,more important to state the research result,
namely:namely:
Participants on the Beer diet (Participants on the Beer diet (MM = 4.00)= 4.00)
gained significantly more weight thangained significantly more weight than
those on the Pizza diet (those on the Pizza diet (MM = 2.00), t(8) == 2.00), t(8) =
4.47, p < .05 (two-tailed).4.47, p < .05 (two-tailed).
20
Example 3.1Example 3.1 (concluding comment)(concluding comment)
Repeat from previous slide:Repeat from previous slide:
Participants on the Beer diet (Participants on the Beer diet (MM = 4.00)= 4.00)
gained significantly more weight thangained significantly more weight than
those on the Pizza diet (those on the Pizza diet (MM = 2.00), t(8) == 2.00), t(8) =
4.47, p < .05 (two-tailed).4.47, p < .05 (two-tailed).
 Making this conclusion requiresMaking this conclusion requires
inspection of the mean scores forinspection of the mean scores for
each condition (Pizza and Beer).each condition (Pizza and Beer).
21
Example 3.1 Using SPSSExample 3.1 Using SPSS
 First,First, the variables must be setup in the SPSSthe variables must be setup in the SPSS
data editor.data editor.
 We need to include both the independent andWe need to include both the independent and
dependent variables.dependent variables.
 Although it is not strictly necessary, it is goodAlthough it is not strictly necessary, it is good
practice to give each person a unique codepractice to give each person a unique code
(e.g., personid):(e.g., personid):
22
Example 3.1 Using SPSSExample 3.1 Using SPSS (cont.)(cont.)
 In the previous example:In the previous example:
– Dependent VariableDependent Variable
== wtgainwtgain (or weight gain)(or weight gain)
– Independent VariableIndependent Variable == dietdiet
 Why?Why?
 The independent variable (diet)The independent variable (diet) causescauses
changeschanges in the dependent variablein the dependent variable
(weight gain).(weight gain).
23
Example 3.1 Using SPSSExample 3.1 Using SPSS (cont.)(cont.)
 Next,Next, we need to provide “codes” thatwe need to provide “codes” that
distinguish between the 2 types of diets.distinguish between the 2 types of diets.
 By clicking in the grey box of the “Label”By clicking in the grey box of the “Label”
field in the row containing the “diet”field in the row containing the “diet”
variable, we get a pop-up dialog thatvariable, we get a pop-up dialog that
allows us toallows us to codecode the diet variable.the diet variable.
 Arbitrarily, the pizza diet is coded as dietArbitrarily, the pizza diet is coded as diet
“1” and the beer diet is diet “2.”“1” and the beer diet is diet “2.”
 Any other 2 codes would work, but theseAny other 2 codes would work, but these
sufficesuffice
See next slide.See next slide.
24
Example 3.1 Using SPSSExample 3.1 Using SPSS (coding)(coding)
25
Example 3.1 Using SPSSExample 3.1 Using SPSS (data view)(data view)
 Moving to the dataMoving to the data
view tab of the SPSSview tab of the SPSS
editor, the data iseditor, the data is
entered.entered.
 Each participant isEach participant is
entered on a separateentered on a separate
line; a code is enteredline; a code is entered
for the diet they werefor the diet they were
on (1 = Pizza, 2 =on (1 = Pizza, 2 =
Beer); and the weightBeer); and the weight
gain of each isgain of each is
entered, as followsentered, as follows 
26
Example 3.1 Using SPSSExample 3.1 Using SPSS (data view)(data view)
 Moving to the dataMoving to the data
view tab of the SPSSview tab of the SPSS
editor, the data iseditor, the data is
entered.entered.
 Each participant isEach participant is
entered on a separateentered on a separate
line; a code is enteredline; a code is entered
for the diet they werefor the diet they were
on (1 = Pizza, 2 =on (1 = Pizza, 2 =
Beer); and the weightBeer); and the weight
gain of each isgain of each is
entered, as followsentered, as follows 
27
Example 3.1 Using SPSSExample 3.1 Using SPSS (data view)(data view)
 Moving to the dataMoving to the data
view tab of the SPSSview tab of the SPSS
editor, the data iseditor, the data is
entered.entered.
 Each participant isEach participant is
entered on a separateentered on a separate
line; a code is enteredline; a code is entered
for the diet they werefor the diet they were
on (1 = Pizza, 2 =on (1 = Pizza, 2 =
Beer); and the weightBeer); and the weight
gain of each isgain of each is
entered, as followsentered, as follows 
28
Example 3.1 Using SPSSExample 3.1 Using SPSS
(command syntax)(command syntax)
 Next,Next, thethe command syntaxcommand syntax for an independentfor an independent
t-test must be entered into the command editor.t-test must be entered into the command editor.
 The format for the command is as follows:The format for the command is as follows:
t-test groupst-test groups IndependentVariableIndependentVariable((Level1Level1,,Level2Level2))
variables=variables=DependentVariableDependentVariable..
 You must substitute the names of theYou must substitute the names of the
independent and dependent variables, as wellindependent and dependent variables, as well
as the codes for the 2 levels of the independentas the codes for the 2 levels of the independent
variable. In our example, thevariable. In our example, the syntaxsyntax should beshould be
as per the next slideas per the next slide 
29
Example 3.1 Using SPSSExample 3.1 Using SPSS
(command syntax) (cont.)(command syntax) (cont.)
After running this syntax, the following
output appears in the SPSS output viewer
See next slide.
30
Example 3.1: SPSS Output viewerExample 3.1: SPSS Output viewer
Independent Samples Test
31
Example 3.1 Using SPSSExample 3.1 Using SPSS (cont.)(cont.)
 SPSS gives theSPSS gives the meansmeans for each of thefor each of the
conditions (Pizza Mean = 2 and Beerconditions (Pizza Mean = 2 and Beer
Mean = 4).Mean = 4).
 In addition, SPSS provides aIn addition, SPSS provides a t-valuet-value ofof
-4.47 with 8 degrees of freedom.-4.47 with 8 degrees of freedom.
 These are the same figures that wereThese are the same figures that were
computed “by hand” previously.computed “by hand” previously.
 However, SPSSHowever, SPSS does notdoes not provide aprovide a
critical value.critical value.
 Instead, anInstead, an exact probabilityexact probability is providedis provided
(p = .002).(p = .002).
32
Example 3.1 Using SPSSExample 3.1 Using SPSS (cont.)(cont.)
 As long as this p-value falls below theAs long as this p-value falls below the
standard of “.05,” we can declare astandard of “.05,” we can declare a
significant difference between our meansignificant difference between our mean
values.values.
 Since “.002” is below “.05” we can conclude:Since “.002” is below “.05” we can conclude:
Participants on the Beer diet (Participants on the Beer diet (MM = 4.00)= 4.00)
gained significantly more weight thangained significantly more weight than
those on the Pizza diet (those on the Pizza diet (MM = 2.00),= 2.00),
t(8) = 4.47,t(8) = 4.47, p < .01p < .01 (two-tailed).(two-tailed).
33
Example 3.1 Using SPSSExample 3.1 Using SPSS (cont.)(cont.)
Repeat from previous slide:Repeat from previous slide:
Participants on the Beer diet (Participants on the Beer diet (MM = 4.00) gained= 4.00) gained
significantly more weight than those on the Pizzasignificantly more weight than those on the Pizza
diet (diet (MM = 2.00), t(8) = 4.47,= 2.00), t(8) = 4.47,
p < .01p < .01 (two-tailed).(two-tailed).
 In APA style we normally onlyIn APA style we normally only
display significance to 2 significant digits.display significance to 2 significant digits.
 Therefore, the probability is displayed asTherefore, the probability is displayed as
“p<.01,” which is the smallest probability“p<.01,” which is the smallest probability
within this range of accuracy.within this range of accuracy.
34
Example 3.1 Using SPSSExample 3.1 Using SPSS (cont.)(cont.)
 The SPSS output also displaysThe SPSS output also displays Levene’s TestLevene’s Test
forfor Equality of VariancesEquality of Variances (see the first 2(see the first 2
columns in second table on slide 30).columns in second table on slide 30).
 Why?Why?
 Strictly speaking, the t-test is only valid if weStrictly speaking, the t-test is only valid if we
havehave approximately equal variancesapproximately equal variances within eachwithin each
of our two groups.of our two groups.
 In our example, this was not a problem becauseIn our example, this was not a problem because
the 2 variances were exactly equal (Variancethe 2 variances were exactly equal (Variance
Pizza = 0.04 and Variance Beer = 0.04).Pizza = 0.04 and Variance Beer = 0.04).
35
Example 3.1 Using SPSSExample 3.1 Using SPSS (cont.)(cont.)
 However, if this test is significant,However, if this test is significant,
meaning that the p-value given is lessmeaning that the p-value given is less
than “.05,” then we should choose thethan “.05,” then we should choose the
bottom line when interpreting ourbottom line when interpreting our
results.results.
 This bottom line makes slightThis bottom line makes slight
adjustments to the t-test to accountadjustments to the t-test to account
for problems when there are notfor problems when there are not
equal variances in both conditions.equal variances in both conditions.
36
Example 3.1 Using SPSSExample 3.1 Using SPSS (cont.)(cont.)
 The practical importance of thisThe practical importance of this
distinction is small.distinction is small.
 Even if variances are not equal betweenEven if variances are not equal between
conditions, the hand calculations weconditions, the hand calculations we
have shown will most often lead to thehave shown will most often lead to the
correct conclusion anyway, and use ofcorrect conclusion anyway, and use of
the “top line” is almost alwaysthe “top line” is almost always
appropriate.appropriate.
3737
Independent Samples t-TestIndependent Samples t-Test
(or 2-Sample t-Test)(or 2-Sample t-Test)
Advanced Research Methods in PsychologyAdvanced Research Methods in Psychology
- Week 2 lecture -- Week 2 lecture -
Matthew RockloffMatthew Rockloff

More Related Content

What's hot

Sampling distribution
Sampling distributionSampling distribution
Sampling distribution
swarna dey
 
Anova (f test) and mean differentiation
Anova (f test) and mean differentiationAnova (f test) and mean differentiation
Anova (f test) and mean differentiation
Subramani Parasuraman
 
Parametric and non parametric test
Parametric and non parametric testParametric and non parametric test
Parametric and non parametric test
Ajay Malpani
 
T test
T testT test
The sampling distribution
The sampling distributionThe sampling distribution
The sampling distributionHarve Abella
 
Basic Concepts of Inferential statistics
Basic Concepts of Inferential statisticsBasic Concepts of Inferential statistics
Basic Concepts of Inferential statistics
Statistics Consultation
 
Normal curve
Normal curveNormal curve
Normal curve
Lori Rapp
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
Kaori Kubo Germano, PhD
 
Introduction to t-tests (statistics)
Introduction to t-tests (statistics)Introduction to t-tests (statistics)
Introduction to t-tests (statistics)
Dr Bryan Mills
 
T distribution
T distributionT distribution
T distribution
Stephan Jade Navarro
 
Multiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA IMultiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA I
James Neill
 
Two way ANOVA
Two way ANOVATwo way ANOVA
Two way ANOVA
D-kay Verma
 
Z-Test with Examples
Z-Test with ExamplesZ-Test with Examples
Z-Test with Examples
Cotton Research Institute Multan
 
t distribution, paired and unpaired t-test
t distribution, paired and unpaired t-testt distribution, paired and unpaired t-test
t distribution, paired and unpaired t-test
BPKIHS
 
Inferential Statistics
Inferential StatisticsInferential Statistics
Inferential Statistics
ewhite00
 
Parametric test - t Test, ANOVA, ANCOVA, MANOVA
Parametric test  - t Test, ANOVA, ANCOVA, MANOVAParametric test  - t Test, ANOVA, ANCOVA, MANOVA
Parametric test - t Test, ANOVA, ANCOVA, MANOVA
Princy Francis M
 
Two sample t-test
Two sample t-testTwo sample t-test
Two sample t-test
Stephen Lange
 

What's hot (20)

Sampling distribution
Sampling distributionSampling distribution
Sampling distribution
 
T test
T testT test
T test
 
Inferential Statistics
Inferential StatisticsInferential Statistics
Inferential Statistics
 
Anova (f test) and mean differentiation
Anova (f test) and mean differentiationAnova (f test) and mean differentiation
Anova (f test) and mean differentiation
 
Parametric and non parametric test
Parametric and non parametric testParametric and non parametric test
Parametric and non parametric test
 
T test
T testT test
T test
 
The sampling distribution
The sampling distributionThe sampling distribution
The sampling distribution
 
Basic Concepts of Inferential statistics
Basic Concepts of Inferential statisticsBasic Concepts of Inferential statistics
Basic Concepts of Inferential statistics
 
Normal curve
Normal curveNormal curve
Normal curve
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
Introduction to t-tests (statistics)
Introduction to t-tests (statistics)Introduction to t-tests (statistics)
Introduction to t-tests (statistics)
 
Confidence Intervals
Confidence IntervalsConfidence Intervals
Confidence Intervals
 
T distribution
T distributionT distribution
T distribution
 
Multiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA IMultiple Linear Regression II and ANOVA I
Multiple Linear Regression II and ANOVA I
 
Two way ANOVA
Two way ANOVATwo way ANOVA
Two way ANOVA
 
Z-Test with Examples
Z-Test with ExamplesZ-Test with Examples
Z-Test with Examples
 
t distribution, paired and unpaired t-test
t distribution, paired and unpaired t-testt distribution, paired and unpaired t-test
t distribution, paired and unpaired t-test
 
Inferential Statistics
Inferential StatisticsInferential Statistics
Inferential Statistics
 
Parametric test - t Test, ANOVA, ANCOVA, MANOVA
Parametric test  - t Test, ANOVA, ANCOVA, MANOVAParametric test  - t Test, ANOVA, ANCOVA, MANOVA
Parametric test - t Test, ANOVA, ANCOVA, MANOVA
 
Two sample t-test
Two sample t-testTwo sample t-test
Two sample t-test
 

Viewers also liked

T Test For Two Independent Samples
T Test For Two Independent SamplesT Test For Two Independent Samples
T Test For Two Independent Samplesshoffma5
 
Reporting an independent sample t test
Reporting an independent sample t testReporting an independent sample t test
Reporting an independent sample t test
Ken Plummer
 
HFS 3283 independent t test
HFS 3283 independent t testHFS 3283 independent t test
HFS 3283 independent t test
wajihahwafa
 
Null hypothesis for an independent-sample t-test
Null hypothesis for an independent-sample t-testNull hypothesis for an independent-sample t-test
Null hypothesis for an independent-sample t-test
Ken Plummer
 
The t Test for Two Independent Samples
The t Test for Two Independent SamplesThe t Test for Two Independent Samples
The t Test for Two Independent Samples
jasondroesch
 
T test, independant sample, paired sample and anova
T test, independant sample, paired sample and anovaT test, independant sample, paired sample and anova
T test, independant sample, paired sample and anovaQasim Raza
 
Hypothesis testing; z test, t-test. f-test
Hypothesis testing; z test, t-test. f-testHypothesis testing; z test, t-test. f-test
Hypothesis testing; z test, t-test. f-test
Shakehand with Life
 
Reporting a single linear regression in apa
Reporting a single linear regression in apaReporting a single linear regression in apa
Reporting a single linear regression in apa
Ken Plummer
 
Test of hypothesis (t)
Test of hypothesis (t)Test of hypothesis (t)
Test of hypothesis (t)Marlon Gomez
 
Day 12 t test for dependent samples and single samples pdf
Day 12 t test for dependent samples and single samples pdfDay 12 t test for dependent samples and single samples pdf
Day 12 t test for dependent samples and single samples pdf
Elih Sutisna Yanto
 
Measurement and scaling
Measurement and scalingMeasurement and scaling
Measurement and scaling
Balaji P
 
Repeated measures anova with spss
Repeated measures anova with spssRepeated measures anova with spss
Repeated measures anova with spss
J P Verma
 
T-Test for Correlated Groups by STR Grp. 2
T-Test for Correlated Groups by STR Grp. 2T-Test for Correlated Groups by STR Grp. 2
T-Test for Correlated Groups by STR Grp. 2Oj Acopiado
 
Z test
Z testZ test
Z test
kagil
 
Testing Assumptions in repeated Measures Design using SPSS
Testing Assumptions in repeated Measures Design using SPSSTesting Assumptions in repeated Measures Design using SPSS
Testing Assumptions in repeated Measures Design using SPSS
J P Verma
 
Z test, f-test,etc
Z test, f-test,etcZ test, f-test,etc
Z test, f-test,etc
Juan Apolinario Reyes
 
Reporting Spearman Rho in APA (independence)
Reporting Spearman Rho in APA (independence)Reporting Spearman Rho in APA (independence)
Reporting Spearman Rho in APA (independence)
Ken Plummer
 
Day 11 t test for independent samples
Day 11 t test for independent samplesDay 11 t test for independent samples
Day 11 t test for independent samples
Elih Sutisna Yanto
 

Viewers also liked (20)

T Test For Two Independent Samples
T Test For Two Independent SamplesT Test For Two Independent Samples
T Test For Two Independent Samples
 
Reporting an independent sample t test
Reporting an independent sample t testReporting an independent sample t test
Reporting an independent sample t test
 
HFS 3283 independent t test
HFS 3283 independent t testHFS 3283 independent t test
HFS 3283 independent t test
 
Null hypothesis for an independent-sample t-test
Null hypothesis for an independent-sample t-testNull hypothesis for an independent-sample t-test
Null hypothesis for an independent-sample t-test
 
The t Test for Two Independent Samples
The t Test for Two Independent SamplesThe t Test for Two Independent Samples
The t Test for Two Independent Samples
 
T test, independant sample, paired sample and anova
T test, independant sample, paired sample and anovaT test, independant sample, paired sample and anova
T test, independant sample, paired sample and anova
 
Hypothesis testing; z test, t-test. f-test
Hypothesis testing; z test, t-test. f-testHypothesis testing; z test, t-test. f-test
Hypothesis testing; z test, t-test. f-test
 
Reporting a single linear regression in apa
Reporting a single linear regression in apaReporting a single linear regression in apa
Reporting a single linear regression in apa
 
Test of hypothesis (t)
Test of hypothesis (t)Test of hypothesis (t)
Test of hypothesis (t)
 
Day 12 t test for dependent samples and single samples pdf
Day 12 t test for dependent samples and single samples pdfDay 12 t test for dependent samples and single samples pdf
Day 12 t test for dependent samples and single samples pdf
 
Measurement and scaling
Measurement and scalingMeasurement and scaling
Measurement and scaling
 
02a one sample_t-test
02a one sample_t-test02a one sample_t-test
02a one sample_t-test
 
Repeated measures anova with spss
Repeated measures anova with spssRepeated measures anova with spss
Repeated measures anova with spss
 
Measurement and Scaling
Measurement and ScalingMeasurement and Scaling
Measurement and Scaling
 
T-Test for Correlated Groups by STR Grp. 2
T-Test for Correlated Groups by STR Grp. 2T-Test for Correlated Groups by STR Grp. 2
T-Test for Correlated Groups by STR Grp. 2
 
Z test
Z testZ test
Z test
 
Testing Assumptions in repeated Measures Design using SPSS
Testing Assumptions in repeated Measures Design using SPSSTesting Assumptions in repeated Measures Design using SPSS
Testing Assumptions in repeated Measures Design using SPSS
 
Z test, f-test,etc
Z test, f-test,etcZ test, f-test,etc
Z test, f-test,etc
 
Reporting Spearman Rho in APA (independence)
Reporting Spearman Rho in APA (independence)Reporting Spearman Rho in APA (independence)
Reporting Spearman Rho in APA (independence)
 
Day 11 t test for independent samples
Day 11 t test for independent samplesDay 11 t test for independent samples
Day 11 t test for independent samples
 

Similar to Independent sample t test

lesson in A_Independent_Sample_t_Test.ppt
lesson in A_Independent_Sample_t_Test.pptlesson in A_Independent_Sample_t_Test.ppt
lesson in A_Independent_Sample_t_Test.ppt
ArielTupaz
 
P G STAT 531 Lecture 7 t test and Paired t test
P G STAT 531 Lecture 7 t test and Paired t testP G STAT 531 Lecture 7 t test and Paired t test
P G STAT 531 Lecture 7 t test and Paired t test
Aashish Patel
 
slides Testing of hypothesis.pptx
slides Testing  of  hypothesis.pptxslides Testing  of  hypothesis.pptx
slides Testing of hypothesis.pptx
ssuser504dda
 
Test of significance
Test of significanceTest of significance
Test of significance
Dr. Imran Zaheer
 
Hmisiri nonparametrics book
Hmisiri nonparametrics bookHmisiri nonparametrics book
Hmisiri nonparametrics book
College of Medicine(University of Malawi)
 
Computational Pool-Testing with Retesting Strategy
Computational Pool-Testing with Retesting StrategyComputational Pool-Testing with Retesting Strategy
Computational Pool-Testing with Retesting Strategy
Waqas Tariq
 
Workshop 4 -solutions
Workshop 4 -solutionsWorkshop 4 -solutions
Workshop 4 -solutionseeetq
 
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
rhetttrevannion
 
Stat5 the t test
Stat5 the t testStat5 the t test
Stat5 the t test
Forensic Pathology
 
Goodness of Fit Notation
Goodness of Fit NotationGoodness of Fit Notation
Goodness of Fit Notation
Long Beach City College
 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic LogicSumit Prajapati
 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic LogicSumit Prajapati
 
Intro to tests of significance qualitative
Intro to tests of significance qualitativeIntro to tests of significance qualitative
Intro to tests of significance qualitativePandurangi Raghavendra
 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic Logicghalan
 
Statistical analysis by iswar
Statistical analysis by iswarStatistical analysis by iswar
Ch5 Hypothesis Testing
Ch5 Hypothesis TestingCh5 Hypothesis Testing
Ch5 Hypothesis Testing
Farhan Alfin
 
Chi square
Chi square Chi square
Chi square
HemamaliniSakthivel
 
Chapter 9
Chapter 9Chapter 9
Chapter 9
MaryWall14
 

Similar to Independent sample t test (20)

lesson in A_Independent_Sample_t_Test.ppt
lesson in A_Independent_Sample_t_Test.pptlesson in A_Independent_Sample_t_Test.ppt
lesson in A_Independent_Sample_t_Test.ppt
 
P G STAT 531 Lecture 7 t test and Paired t test
P G STAT 531 Lecture 7 t test and Paired t testP G STAT 531 Lecture 7 t test and Paired t test
P G STAT 531 Lecture 7 t test and Paired t test
 
slides Testing of hypothesis.pptx
slides Testing  of  hypothesis.pptxslides Testing  of  hypothesis.pptx
slides Testing of hypothesis.pptx
 
Test of significance
Test of significanceTest of significance
Test of significance
 
Hmisiri nonparametrics book
Hmisiri nonparametrics bookHmisiri nonparametrics book
Hmisiri nonparametrics book
 
Computational Pool-Testing with Retesting Strategy
Computational Pool-Testing with Retesting StrategyComputational Pool-Testing with Retesting Strategy
Computational Pool-Testing with Retesting Strategy
 
Workshop 4 -solutions
Workshop 4 -solutionsWorkshop 4 -solutions
Workshop 4 -solutions
 
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
 
Stat5 the t test
Stat5 the t testStat5 the t test
Stat5 the t test
 
Goodness of Fit Notation
Goodness of Fit NotationGoodness of Fit Notation
Goodness of Fit Notation
 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic Logic
 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic Logic
 
Intro to tests of significance qualitative
Intro to tests of significance qualitativeIntro to tests of significance qualitative
Intro to tests of significance qualitative
 
Chapter11
Chapter11Chapter11
Chapter11
 
Chapter 4(1) Basic Logic
Chapter 4(1) Basic LogicChapter 4(1) Basic Logic
Chapter 4(1) Basic Logic
 
Statistical analysis by iswar
Statistical analysis by iswarStatistical analysis by iswar
Statistical analysis by iswar
 
Ch5 Hypothesis Testing
Ch5 Hypothesis TestingCh5 Hypothesis Testing
Ch5 Hypothesis Testing
 
Chapter08
Chapter08Chapter08
Chapter08
 
Chi square
Chi square Chi square
Chi square
 
Chapter 9
Chapter 9Chapter 9
Chapter 9
 

Recently uploaded

5 Big Bets for 2024 - Jamie A. Lee, Stripes Co
5 Big Bets for 2024 - Jamie A. Lee, Stripes Co5 Big Bets for 2024 - Jamie A. Lee, Stripes Co
Winning local SEO in the Age of AI - Dennis Yu
Winning local SEO in the Age of AI - Dennis YuWinning local SEO in the Age of AI - Dennis Yu
Coca Cola Branding Strategy and strategic marketing plan
Coca Cola Branding Strategy and strategic marketing planCoca Cola Branding Strategy and strategic marketing plan
Coca Cola Branding Strategy and strategic marketing plan
Maswer Ali
 
Monthly Social Media News Update May 2024
Monthly Social Media News Update May 2024Monthly Social Media News Update May 2024
Monthly Social Media News Update May 2024
Andy Lambert
 
The New Era Of SEO - How AI Has Changed SEO Forever - Danny Leibrandt
The New Era Of SEO - How AI Has Changed SEO Forever - Danny LeibrandtThe New Era Of SEO - How AI Has Changed SEO Forever - Danny Leibrandt
The New Era Of SEO - How AI Has Changed SEO Forever - Danny Leibrandt
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
How to use Short Form Video To Grow Your Brand and Business - Keenya Kelly
How to use Short Form Video To Grow Your Brand and Business - Keenya KellyHow to use Short Form Video To Grow Your Brand and Business - Keenya Kelly
How to use Short Form Video To Grow Your Brand and Business - Keenya Kelly
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
How to Run Landing Page Tests On and Off Paid Social Platforms
How to Run Landing Page Tests On and Off Paid Social PlatformsHow to Run Landing Page Tests On and Off Paid Social Platforms
How to Run Landing Page Tests On and Off Paid Social Platforms
VWO
 
My Personal Brand Exploration by Mariano
My Personal Brand Exploration by MarianoMy Personal Brand Exploration by Mariano
My Personal Brand Exploration by Mariano
marianooscos
 
The What, Why & How of 3D and AR in Digital Commerce
The What, Why & How of 3D and AR in Digital CommerceThe What, Why & How of 3D and AR in Digital Commerce
The What, Why & How of 3D and AR in Digital Commerce
PushON Ltd
 
Generative AI - Unleash Creative Opportunity - Peter Weltman
Generative AI - Unleash Creative Opportunity - Peter WeltmanGenerative AI - Unleash Creative Opportunity - Peter Weltman
Generative AI - Unleash Creative Opportunity - Peter Weltman
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Offissa Dizayn - Otel, Kafe, Restoran Kataloqu_240603_011042.pdf
Offissa Dizayn - Otel, Kafe, Restoran Kataloqu_240603_011042.pdfOffissa Dizayn - Otel, Kafe, Restoran Kataloqu_240603_011042.pdf
Offissa Dizayn - Otel, Kafe, Restoran Kataloqu_240603_011042.pdf
offisadizayn
 
SEO Master Class - Steve Wiideman, Wiideman Consulting Group
SEO Master Class - Steve Wiideman,  Wiideman Consulting GroupSEO Master Class - Steve Wiideman,  Wiideman Consulting Group
SEO Master Class - Steve Wiideman, Wiideman Consulting Group
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
The New Era Of SEO - How AI Has Changed SEO Forever - Danny Leibrandt
The New Era Of SEO - How AI Has Changed SEO Forever - Danny LeibrandtThe New Era Of SEO - How AI Has Changed SEO Forever - Danny Leibrandt
The New Era Of SEO - How AI Has Changed SEO Forever - Danny Leibrandt
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
SMM Cheap - No. 1 SMM panel in the world
SMM Cheap - No. 1 SMM panel in the worldSMM Cheap - No. 1 SMM panel in the world
SMM Cheap - No. 1 SMM panel in the world
smmpanel567
 
Digital Commerce Lecture for Advanced Digital & Social Media Strategy at UCLA...
Digital Commerce Lecture for Advanced Digital & Social Media Strategy at UCLA...Digital Commerce Lecture for Advanced Digital & Social Media Strategy at UCLA...
Digital Commerce Lecture for Advanced Digital & Social Media Strategy at UCLA...
Valters Lauzums
 
Your Path to Profits - The Game-Changing Power of a Marketing - Daniel Bussius
Your Path to Profits - The Game-Changing Power of a Marketing - Daniel BussiusYour Path to Profits - The Game-Changing Power of a Marketing - Daniel Bussius
Your Path to Profits - The Game-Changing Power of a Marketing - Daniel Bussius
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Digital Marketing Trends - Experts Insights on How
Digital Marketing Trends - Experts Insights on HowDigital Marketing Trends - Experts Insights on How
10 Videos Any Business Can Make Right Now! - Shelly Nathan
10 Videos Any Business Can Make Right Now! - Shelly Nathan10 Videos Any Business Can Make Right Now! - Shelly Nathan
10 Videos Any Business Can Make Right Now! - Shelly Nathan
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 
Digital Marketing Trends - Experts Insights on How to Gain a Competitive Edge
Digital Marketing Trends - Experts Insights on How to Gain a Competitive EdgeDigital Marketing Trends - Experts Insights on How to Gain a Competitive Edge
Digital Marketing Trends - Experts Insights on How to Gain a Competitive Edge
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions
 

Recently uploaded (20)

5 Big Bets for 2024 - Jamie A. Lee, Stripes Co
5 Big Bets for 2024 - Jamie A. Lee, Stripes Co5 Big Bets for 2024 - Jamie A. Lee, Stripes Co
5 Big Bets for 2024 - Jamie A. Lee, Stripes Co
 
Winning local SEO in the Age of AI - Dennis Yu
Winning local SEO in the Age of AI - Dennis YuWinning local SEO in the Age of AI - Dennis Yu
Winning local SEO in the Age of AI - Dennis Yu
 
Coca Cola Branding Strategy and strategic marketing plan
Coca Cola Branding Strategy and strategic marketing planCoca Cola Branding Strategy and strategic marketing plan
Coca Cola Branding Strategy and strategic marketing plan
 
Monthly Social Media News Update May 2024
Monthly Social Media News Update May 2024Monthly Social Media News Update May 2024
Monthly Social Media News Update May 2024
 
The New Era Of SEO - How AI Has Changed SEO Forever - Danny Leibrandt
The New Era Of SEO - How AI Has Changed SEO Forever - Danny LeibrandtThe New Era Of SEO - How AI Has Changed SEO Forever - Danny Leibrandt
The New Era Of SEO - How AI Has Changed SEO Forever - Danny Leibrandt
 
How to use Short Form Video To Grow Your Brand and Business - Keenya Kelly
How to use Short Form Video To Grow Your Brand and Business - Keenya KellyHow to use Short Form Video To Grow Your Brand and Business - Keenya Kelly
How to use Short Form Video To Grow Your Brand and Business - Keenya Kelly
 
How to Run Landing Page Tests On and Off Paid Social Platforms
How to Run Landing Page Tests On and Off Paid Social PlatformsHow to Run Landing Page Tests On and Off Paid Social Platforms
How to Run Landing Page Tests On and Off Paid Social Platforms
 
My Personal Brand Exploration by Mariano
My Personal Brand Exploration by MarianoMy Personal Brand Exploration by Mariano
My Personal Brand Exploration by Mariano
 
The What, Why & How of 3D and AR in Digital Commerce
The What, Why & How of 3D and AR in Digital CommerceThe What, Why & How of 3D and AR in Digital Commerce
The What, Why & How of 3D and AR in Digital Commerce
 
Generative AI - Unleash Creative Opportunity - Peter Weltman
Generative AI - Unleash Creative Opportunity - Peter WeltmanGenerative AI - Unleash Creative Opportunity - Peter Weltman
Generative AI - Unleash Creative Opportunity - Peter Weltman
 
Metaverse Marketing in the Generation of the Internet - Eugene Capon
Metaverse Marketing in the Generation of the Internet - Eugene CaponMetaverse Marketing in the Generation of the Internet - Eugene Capon
Metaverse Marketing in the Generation of the Internet - Eugene Capon
 
Offissa Dizayn - Otel, Kafe, Restoran Kataloqu_240603_011042.pdf
Offissa Dizayn - Otel, Kafe, Restoran Kataloqu_240603_011042.pdfOffissa Dizayn - Otel, Kafe, Restoran Kataloqu_240603_011042.pdf
Offissa Dizayn - Otel, Kafe, Restoran Kataloqu_240603_011042.pdf
 
SEO Master Class - Steve Wiideman, Wiideman Consulting Group
SEO Master Class - Steve Wiideman,  Wiideman Consulting GroupSEO Master Class - Steve Wiideman,  Wiideman Consulting Group
SEO Master Class - Steve Wiideman, Wiideman Consulting Group
 
The New Era Of SEO - How AI Has Changed SEO Forever - Danny Leibrandt
The New Era Of SEO - How AI Has Changed SEO Forever - Danny LeibrandtThe New Era Of SEO - How AI Has Changed SEO Forever - Danny Leibrandt
The New Era Of SEO - How AI Has Changed SEO Forever - Danny Leibrandt
 
SMM Cheap - No. 1 SMM panel in the world
SMM Cheap - No. 1 SMM panel in the worldSMM Cheap - No. 1 SMM panel in the world
SMM Cheap - No. 1 SMM panel in the world
 
Digital Commerce Lecture for Advanced Digital & Social Media Strategy at UCLA...
Digital Commerce Lecture for Advanced Digital & Social Media Strategy at UCLA...Digital Commerce Lecture for Advanced Digital & Social Media Strategy at UCLA...
Digital Commerce Lecture for Advanced Digital & Social Media Strategy at UCLA...
 
Your Path to Profits - The Game-Changing Power of a Marketing - Daniel Bussius
Your Path to Profits - The Game-Changing Power of a Marketing - Daniel BussiusYour Path to Profits - The Game-Changing Power of a Marketing - Daniel Bussius
Your Path to Profits - The Game-Changing Power of a Marketing - Daniel Bussius
 
Digital Marketing Trends - Experts Insights on How
Digital Marketing Trends - Experts Insights on HowDigital Marketing Trends - Experts Insights on How
Digital Marketing Trends - Experts Insights on How
 
10 Videos Any Business Can Make Right Now! - Shelly Nathan
10 Videos Any Business Can Make Right Now! - Shelly Nathan10 Videos Any Business Can Make Right Now! - Shelly Nathan
10 Videos Any Business Can Make Right Now! - Shelly Nathan
 
Digital Marketing Trends - Experts Insights on How to Gain a Competitive Edge
Digital Marketing Trends - Experts Insights on How to Gain a Competitive EdgeDigital Marketing Trends - Experts Insights on How to Gain a Competitive Edge
Digital Marketing Trends - Experts Insights on How to Gain a Competitive Edge
 

Independent sample t test

  • 1. 11 Independent Samples t-TestIndependent Samples t-Test (or 2-Sample t-Test)(or 2-Sample t-Test) Advanced Research Methods in PsychologyAdvanced Research Methods in Psychology - lecture -- lecture - Matthew RockloffMatthew Rockloff
  • 2. 2 When to use the independentWhen to use the independent samples t-testsamples t-test  The independent samples t-test is probably theThe independent samples t-test is probably the single most widely used test in statistics.single most widely used test in statistics.  It is used toIt is used to compare differencescompare differences betweenbetween separate groups.separate groups.  In Psychology, these groups are often composedIn Psychology, these groups are often composed by randomly assigning research participants toby randomly assigning research participants to conditions.conditions.  However, this test can also be used to exploreHowever, this test can also be used to explore differences in naturally occurring groups.differences in naturally occurring groups.  For example, we may be interested in differencesFor example, we may be interested in differences of emotional intelligence between males andof emotional intelligence between males and females.females.
  • 3. 3 When to use the independent samplesWhen to use the independent samples t-testt-test (cont.)(cont.)  Any differences between groups can beAny differences between groups can be explored with the independent t-test, asexplored with the independent t-test, as long as the tested members of each grouplong as the tested members of each group are reasonably representative of theare reasonably representative of the populationpopulation. [1]. [1] [1][1] There are some technicalThere are some technical requirements as well. Principally,requirements as well. Principally, each variable must come from aeach variable must come from a normal (or nearly normal) distribution.normal (or nearly normal) distribution.
  • 4. 4 Example 3.1Example 3.1  Suppose we put people on 2 diets:Suppose we put people on 2 diets: the pizza diet and the beer diet.the pizza diet and the beer diet.  Participants are randomly assigned toParticipants are randomly assigned to either 1-week of eating exclusively pizzaeither 1-week of eating exclusively pizza or 1-week of exclusively drinking beer.or 1-week of exclusively drinking beer.  Of course, this would be unethical,Of course, this would be unethical, because pizza and beer should always bebecause pizza and beer should always be consumed together, but this is just anconsumed together, but this is just an example.example.
  • 5. 5 Example 3.1Example 3.1 (cont.)(cont.)  At the end of the week, we measureAt the end of the week, we measure weight gain by each participant.weight gain by each participant.  Which diet causes more weight gain?Which diet causes more weight gain?  In other words, the null hypothesis is:In other words, the null hypothesis is: Ho: wt. gain pizza diet =wt. gain beer diet.Ho: wt. gain pizza diet =wt. gain beer diet.
  • 6. 6 Example 3.1Example 3.1 (cont.)(cont.)  Why?Why?  The null hypothesis is the opposite ofThe null hypothesis is the opposite of what we hope to find.what we hope to find.  In this case, our research hypothesis isIn this case, our research hypothesis is that there ARE differences between the 2that there ARE differences between the 2 diets.diets.  Therefore, our null hypothesis is thatTherefore, our null hypothesis is that there are NO differences between these 2there are NO differences between these 2 diets.diets.
  • 7. 7 XX11 : Pizza: Pizza XX22 : Beer: Beer 11 33 11 11 22 44 00 00 22 44 00 00 22 44 00 00 33 55 11 11 22 44 0.40.4 0.40.4 =Χ1 2 11 )( Χ−Χ =Χ2 2 22 )( Χ−Χ = Χ−Χ = ∑ n sx 2 2 )( Example 3.1Example 3.1 (cont.)(cont.) Column 3 Column 4
  • 8. 8 Example 3.1Example 3.1 (cont.)(cont.)  The first step in calculating theThe first step in calculating the independent samples t-test is to calculateindependent samples t-test is to calculate thethe variancevariance andand meanmean in each condition.in each condition.  In the previous example, there are a totalIn the previous example, there are a total of 10 people, with 5 in each condition.of 10 people, with 5 in each condition.  Since there are different people in eachSince there are different people in each condition, these “samples” arecondition, these “samples” are ““independentindependent” of one another;” of one another; giving rise to the name of the test.giving rise to the name of the test.
  • 9. 9 Example 3.1Example 3.1 (cont.)(cont.)  The variances and means are calculatedThe variances and means are calculated separately for each conditionseparately for each condition (Pizza and Beer).(Pizza and Beer).  A streamlined calculation of theA streamlined calculation of the variancevariance forfor each condition was illustrated previously.each condition was illustrated previously. (See Slide 7.)(See Slide 7.)  In short, we take each observed weight gainIn short, we take each observed weight gain for the pizza condition, subtract it from thefor the pizza condition, subtract it from the mean gain of the pizza dieters (mean gain of the pizza dieters ( 22) and) and square the result (seesquare the result (see column 3column 3).). =Χ1
  • 10. 10 Example 3.1Example 3.1 (cont.)(cont.)  Next, add up column 3 and divide by theNext, add up column 3 and divide by the number of participants in that conditionnumber of participants in that condition (n(n11 = 5) to get the= 5) to get the sample variancesample variance,,  The same calculations are repeated forThe same calculations are repeated for the “beer” condition.the “beer” condition. 4.02 =xs
  • 11. 11 FormulaFormula The formula forThe formula for thethe independent samples t-testindependent samples t-test is:is: 11 2 2 1 2 21 21 − + − Χ−Χ = n S n S t xx , df = (n1 -1) + (n2 -1)
  • 12. 12 Example 3.1Example 3.1 (cont.)(cont.)  From the calculations previously, we haveFrom the calculations previously, we have everything that is needed to find the “t.”everything that is needed to find the “t.” 47.4 4 4. 4 4. 42 −≈ + − =t , df = (5-1) + (5-1) = 8 After calculating the “t” value, we need to know if it is large enough to reject the null hypothesis.
  • 13. 13 Some theorySome theory  The “t” is calculated under theThe “t” is calculated under the assumption, called theassumption, called the null hypothesisnull hypothesis,, that there are no differences between thethat there are no differences between the pizza and beer diet.pizza and beer diet.  If this were true, when we repeatedlyIf this were true, when we repeatedly sample 10 people from the populationsample 10 people from the population and put them in our 2 diets, most oftenand put them in our 2 diets, most often we would calculate a “t” of “0.”we would calculate a “t” of “0.”
  • 14. 14 Some theory - Why?Some theory - Why?  Look again at the formula for the “t”.Look again at the formula for the “t”.  Most often the numerator (XMost often the numerator (X11-X-X22) will be) will be “0,” because the“0,” because the meanmean of the twoof the two conditions should be theconditions should be the samesame under theunder the null hypothesis.null hypothesis.  That is, weight gain is the same underThat is, weight gain is the same under both the pizza and beer diet.both the pizza and beer diet.
  • 15. 15 Some theory - WhySome theory - Why (cont.)(cont.)  Sometimes the weight gain might be a bitSometimes the weight gain might be a bit higher under the pizza diet, leading to ahigher under the pizza diet, leading to a positive “t” value.positive “t” value.  In other samples of 10 people, weightIn other samples of 10 people, weight gain might be a little higher under thegain might be a little higher under the beer diet, leading to a negative “t” value.beer diet, leading to a negative “t” value.  TheThe important pointimportant point, however, is that, however, is that under the null hypothesis we shouldunder the null hypothesis we should expect that most “t” values that weexpect that most “t” values that we compute are close to “0.”compute are close to “0.”
  • 16. 16 Some theorySome theory (cont.)(cont.)  Our computed t-value is not “0,” but it is in factOur computed t-value is not “0,” but it is in fact negative (t(8) = -4.47).negative (t(8) = -4.47).  Although the t-value is negative, this should notAlthough the t-value is negative, this should not bother us.bother us.  Remember that the t-value is only - 4.47Remember that the t-value is only - 4.47 because we named the pizza diet Xbecause we named the pizza diet X11 and theand the beer diet Xbeer diet X22.. – This is, of course,This is, of course, completely arbitrarycompletely arbitrary..  If we had reversed our order of calculation, withIf we had reversed our order of calculation, with the pizza diet as Xthe pizza diet as X22 and the beer diet as Xand the beer diet as X11, then, then our calculated t-value would be positive 4.47.our calculated t-value would be positive 4.47.
  • 17. 17 Example 3.1Example 3.1 (again)(again) CalculationsCalculations  The calculated t-value is 4.47 (notice, I’veThe calculated t-value is 4.47 (notice, I’ve eliminated the unnecessary “-“ signeliminated the unnecessary “-“ sign), and), and the degrees of freedom are 8.the degrees of freedom are 8.  In the research question we did notIn the research question we did not specify which diet should cause morespecify which diet should cause more weight gain, therefore this t-test is a so-weight gain, therefore this t-test is a so- calledcalled “2-tailed t.”“2-tailed t.”
  • 18. 18 Example 3.1Example 3.1 (again)(again) CalculationsCalculations  In theIn the last steplast step, we need to find the, we need to find the critical value for a 2-tailed “t” with 8critical value for a 2-tailed “t” with 8 degrees of freedom.degrees of freedom.  This is available from tables that are inThis is available from tables that are in the back of any Statistics textbook.the back of any Statistics textbook.  Look in the back for “Critical Values ofLook in the back for “Critical Values of the t-distribution,” or something similar.the t-distribution,” or something similar.  The value you should find is:The value you should find is: C.V.C.V. t(8), 2-tailedt(8), 2-tailed = 2.31= 2.31..
  • 19. 19 Example 3.1Example 3.1 (cont.)(cont.)  The calculated t-value of 4.47 is larger inThe calculated t-value of 4.47 is larger in magnitude than the C.V. of 2.31, therefore wemagnitude than the C.V. of 2.31, therefore we can reject the null hypothesis.can reject the null hypothesis.  Even for a results section of journal article, thisEven for a results section of journal article, this language is a bit too formal and general. It islanguage is a bit too formal and general. It is more important to state the research result,more important to state the research result, namely:namely: Participants on the Beer diet (Participants on the Beer diet (MM = 4.00)= 4.00) gained significantly more weight thangained significantly more weight than those on the Pizza diet (those on the Pizza diet (MM = 2.00), t(8) == 2.00), t(8) = 4.47, p < .05 (two-tailed).4.47, p < .05 (two-tailed).
  • 20. 20 Example 3.1Example 3.1 (concluding comment)(concluding comment) Repeat from previous slide:Repeat from previous slide: Participants on the Beer diet (Participants on the Beer diet (MM = 4.00)= 4.00) gained significantly more weight thangained significantly more weight than those on the Pizza diet (those on the Pizza diet (MM = 2.00), t(8) == 2.00), t(8) = 4.47, p < .05 (two-tailed).4.47, p < .05 (two-tailed).  Making this conclusion requiresMaking this conclusion requires inspection of the mean scores forinspection of the mean scores for each condition (Pizza and Beer).each condition (Pizza and Beer).
  • 21. 21 Example 3.1 Using SPSSExample 3.1 Using SPSS  First,First, the variables must be setup in the SPSSthe variables must be setup in the SPSS data editor.data editor.  We need to include both the independent andWe need to include both the independent and dependent variables.dependent variables.  Although it is not strictly necessary, it is goodAlthough it is not strictly necessary, it is good practice to give each person a unique codepractice to give each person a unique code (e.g., personid):(e.g., personid):
  • 22. 22 Example 3.1 Using SPSSExample 3.1 Using SPSS (cont.)(cont.)  In the previous example:In the previous example: – Dependent VariableDependent Variable == wtgainwtgain (or weight gain)(or weight gain) – Independent VariableIndependent Variable == dietdiet  Why?Why?  The independent variable (diet)The independent variable (diet) causescauses changeschanges in the dependent variablein the dependent variable (weight gain).(weight gain).
  • 23. 23 Example 3.1 Using SPSSExample 3.1 Using SPSS (cont.)(cont.)  Next,Next, we need to provide “codes” thatwe need to provide “codes” that distinguish between the 2 types of diets.distinguish between the 2 types of diets.  By clicking in the grey box of the “Label”By clicking in the grey box of the “Label” field in the row containing the “diet”field in the row containing the “diet” variable, we get a pop-up dialog thatvariable, we get a pop-up dialog that allows us toallows us to codecode the diet variable.the diet variable.  Arbitrarily, the pizza diet is coded as dietArbitrarily, the pizza diet is coded as diet “1” and the beer diet is diet “2.”“1” and the beer diet is diet “2.”  Any other 2 codes would work, but theseAny other 2 codes would work, but these sufficesuffice See next slide.See next slide.
  • 24. 24 Example 3.1 Using SPSSExample 3.1 Using SPSS (coding)(coding)
  • 25. 25 Example 3.1 Using SPSSExample 3.1 Using SPSS (data view)(data view)  Moving to the dataMoving to the data view tab of the SPSSview tab of the SPSS editor, the data iseditor, the data is entered.entered.  Each participant isEach participant is entered on a separateentered on a separate line; a code is enteredline; a code is entered for the diet they werefor the diet they were on (1 = Pizza, 2 =on (1 = Pizza, 2 = Beer); and the weightBeer); and the weight gain of each isgain of each is entered, as followsentered, as follows 
  • 26. 26 Example 3.1 Using SPSSExample 3.1 Using SPSS (data view)(data view)  Moving to the dataMoving to the data view tab of the SPSSview tab of the SPSS editor, the data iseditor, the data is entered.entered.  Each participant isEach participant is entered on a separateentered on a separate line; a code is enteredline; a code is entered for the diet they werefor the diet they were on (1 = Pizza, 2 =on (1 = Pizza, 2 = Beer); and the weightBeer); and the weight gain of each isgain of each is entered, as followsentered, as follows 
  • 27. 27 Example 3.1 Using SPSSExample 3.1 Using SPSS (data view)(data view)  Moving to the dataMoving to the data view tab of the SPSSview tab of the SPSS editor, the data iseditor, the data is entered.entered.  Each participant isEach participant is entered on a separateentered on a separate line; a code is enteredline; a code is entered for the diet they werefor the diet they were on (1 = Pizza, 2 =on (1 = Pizza, 2 = Beer); and the weightBeer); and the weight gain of each isgain of each is entered, as followsentered, as follows 
  • 28. 28 Example 3.1 Using SPSSExample 3.1 Using SPSS (command syntax)(command syntax)  Next,Next, thethe command syntaxcommand syntax for an independentfor an independent t-test must be entered into the command editor.t-test must be entered into the command editor.  The format for the command is as follows:The format for the command is as follows: t-test groupst-test groups IndependentVariableIndependentVariable((Level1Level1,,Level2Level2)) variables=variables=DependentVariableDependentVariable..  You must substitute the names of theYou must substitute the names of the independent and dependent variables, as wellindependent and dependent variables, as well as the codes for the 2 levels of the independentas the codes for the 2 levels of the independent variable. In our example, thevariable. In our example, the syntaxsyntax should beshould be as per the next slideas per the next slide 
  • 29. 29 Example 3.1 Using SPSSExample 3.1 Using SPSS (command syntax) (cont.)(command syntax) (cont.) After running this syntax, the following output appears in the SPSS output viewer See next slide.
  • 30. 30 Example 3.1: SPSS Output viewerExample 3.1: SPSS Output viewer Independent Samples Test
  • 31. 31 Example 3.1 Using SPSSExample 3.1 Using SPSS (cont.)(cont.)  SPSS gives theSPSS gives the meansmeans for each of thefor each of the conditions (Pizza Mean = 2 and Beerconditions (Pizza Mean = 2 and Beer Mean = 4).Mean = 4).  In addition, SPSS provides aIn addition, SPSS provides a t-valuet-value ofof -4.47 with 8 degrees of freedom.-4.47 with 8 degrees of freedom.  These are the same figures that wereThese are the same figures that were computed “by hand” previously.computed “by hand” previously.  However, SPSSHowever, SPSS does notdoes not provide aprovide a critical value.critical value.  Instead, anInstead, an exact probabilityexact probability is providedis provided (p = .002).(p = .002).
  • 32. 32 Example 3.1 Using SPSSExample 3.1 Using SPSS (cont.)(cont.)  As long as this p-value falls below theAs long as this p-value falls below the standard of “.05,” we can declare astandard of “.05,” we can declare a significant difference between our meansignificant difference between our mean values.values.  Since “.002” is below “.05” we can conclude:Since “.002” is below “.05” we can conclude: Participants on the Beer diet (Participants on the Beer diet (MM = 4.00)= 4.00) gained significantly more weight thangained significantly more weight than those on the Pizza diet (those on the Pizza diet (MM = 2.00),= 2.00), t(8) = 4.47,t(8) = 4.47, p < .01p < .01 (two-tailed).(two-tailed).
  • 33. 33 Example 3.1 Using SPSSExample 3.1 Using SPSS (cont.)(cont.) Repeat from previous slide:Repeat from previous slide: Participants on the Beer diet (Participants on the Beer diet (MM = 4.00) gained= 4.00) gained significantly more weight than those on the Pizzasignificantly more weight than those on the Pizza diet (diet (MM = 2.00), t(8) = 4.47,= 2.00), t(8) = 4.47, p < .01p < .01 (two-tailed).(two-tailed).  In APA style we normally onlyIn APA style we normally only display significance to 2 significant digits.display significance to 2 significant digits.  Therefore, the probability is displayed asTherefore, the probability is displayed as “p<.01,” which is the smallest probability“p<.01,” which is the smallest probability within this range of accuracy.within this range of accuracy.
  • 34. 34 Example 3.1 Using SPSSExample 3.1 Using SPSS (cont.)(cont.)  The SPSS output also displaysThe SPSS output also displays Levene’s TestLevene’s Test forfor Equality of VariancesEquality of Variances (see the first 2(see the first 2 columns in second table on slide 30).columns in second table on slide 30).  Why?Why?  Strictly speaking, the t-test is only valid if weStrictly speaking, the t-test is only valid if we havehave approximately equal variancesapproximately equal variances within eachwithin each of our two groups.of our two groups.  In our example, this was not a problem becauseIn our example, this was not a problem because the 2 variances were exactly equal (Variancethe 2 variances were exactly equal (Variance Pizza = 0.04 and Variance Beer = 0.04).Pizza = 0.04 and Variance Beer = 0.04).
  • 35. 35 Example 3.1 Using SPSSExample 3.1 Using SPSS (cont.)(cont.)  However, if this test is significant,However, if this test is significant, meaning that the p-value given is lessmeaning that the p-value given is less than “.05,” then we should choose thethan “.05,” then we should choose the bottom line when interpreting ourbottom line when interpreting our results.results.  This bottom line makes slightThis bottom line makes slight adjustments to the t-test to accountadjustments to the t-test to account for problems when there are notfor problems when there are not equal variances in both conditions.equal variances in both conditions.
  • 36. 36 Example 3.1 Using SPSSExample 3.1 Using SPSS (cont.)(cont.)  The practical importance of thisThe practical importance of this distinction is small.distinction is small.  Even if variances are not equal betweenEven if variances are not equal between conditions, the hand calculations weconditions, the hand calculations we have shown will most often lead to thehave shown will most often lead to the correct conclusion anyway, and use ofcorrect conclusion anyway, and use of the “top line” is almost alwaysthe “top line” is almost always appropriate.appropriate.
  • 37. 3737 Independent Samples t-TestIndependent Samples t-Test (or 2-Sample t-Test)(or 2-Sample t-Test) Advanced Research Methods in PsychologyAdvanced Research Methods in Psychology - Week 2 lecture -- Week 2 lecture - Matthew RockloffMatthew Rockloff