SlideShare a Scribd company logo
HFS3283
PAIRED T-TEST
&
ONE WAY-ANOVA
DR. SHARIFAH WAJIHAH WAFA BTE SST WAFA
School of Nutrition and Dietetics
Faculty of Health Sciences
sharifahwajihah@unisza.edu.my
KNOWLEDGE FOR THE BENEFIT OF HUMANITY
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Topic Learning Outcomes
At the end of this lecture, the student should be
able to:
1
• Understand structure of research study appropriate
for ANOVA test
2
• Understand how to evaluate the assumptions
underlying this test
3 • interpret SPSS outputs and report the results
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Overview
t-tests
1. One-sample t-test
2. Independent samples t-test
3. Paired samples t-test
ANOVAs
1. 1-way ANOVA
2. 1-way repeated measures ANOVA
3. Factorial ANOVA
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Why a t-test or ANOVA?
•A t-test or ANOVA is used to determine
whether a sample of scores are from the same
population as another sample of scores.
•These are inferential tools for examining
differences between group means.
• Is the difference between two sample means
‘real’ or due to chance?
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
t-tests
•One-sample
One group of participants, compared with fixed,
pre-existing value (e.g., population norms)
•Independent
Compares mean scores on the same variable
across different populations (groups)
•Paired
Same participants, with repeated measures
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Major assumptions
•Normally distributed variables
•Homogeneity of variance
In general, t-tests and ANOVAs are robust to
violation of assumptions, particularly with
large cell sizes, but don't be complacent.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Use of t in t-tests
•t reflects the ratio of between group variance
to within group variance
•Is the t large enough that it is unlikely that the
two samples have come from the same
population?
•Decision: Is t larger than the critical value for t?
(see t tables – depends on critical  and N)
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
One-tail vs. two-tail tests
• Two-tailed test rejects null hypothesis if
obtained t-value is extreme is either direction
• One-tailed test rejects null hypothesis if
obtained t-value is extreme is one direction
(you choose – too high or too low)
• One-tailed tests are twice as powerful as two-
tailed, but they are only focused on identifying
differences in one direction.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
One sample t-test
• Compare one group (a sample) with a fixed, pre-
existing value (e.g., population norms)
• Do uni students sleep less than
the recommended amount?
e.g., Given a sample of N = 190 uni
students who sleep M = 7.5 hrs/day (SD
= 1.5), does this differ significantly from 8
hours hrs/day ( = .05)?
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
One sample t-test
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Independent groups t-test
• Compares mean scores on the same variable
across different populations (groups)
• Do males & females differ in the
amount of sleep they get?
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Assumptions
(Indep. samples t-test)
•LOM
– IV is ordinal / categorical
– DV is interval / ratio
•Homogeneity of Variance: If variances unequal (Levene’s
test), adjustment made
•Normality: t-tests robust to modest departures from
normality, otherwise consider use of Mann-Whitney U test
•Independence of observations (one participant’s score is
not dependent on any other participant’s score)
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Do males and females differ in in
amount of sleep per night?
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Independent samples t-test
•Comparison b/w means of 2 independent
sample variables = t-test
(e.g., what is the difference in Educational Satisfaction
between male and female students?)
•Comparison b/w means of 3+
independent sample variables = 1-way
ANOVA
(e.g., what is the difference in Educational Satisfaction
between students enrolled in four different faculties?)
PAIRED T-TEST
KNOWLEDGE FOR THE BENEFIT OF HUMANITY
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Paired samples t-test
 1-way repeated measures ANOVA
• Same participants, with repeated measures
• Data is sampled within subjects. Measures are
repeated e.g.,:
–Time e.g., pre- vs. post-intervention
–Measures e.g., approval ratings of
brand X and brand Y
• The paired t-test will show whether the differences
observed in the 2 measures will be found reliably in
repeated samples.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Assumptions
(Paired samples t-test)
• LOM:
– IV: Two measures from same participants (w/in
subjects)
• a variable measured on two occasions or
• two different variables measured on the same occasion
– DV: Continuous (Interval or ratio)
• Normal distribution of difference scores (robust to
violation with larger samples)
• Independence of observations (one participant’s score is
not dependent on another’s score)
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example
• In this example, we want to compare the weight
changes amongst obese children after 6 weeks went
for weight management program.
• Five obese children are selected at random from the
school A.
• We are interested in the following research question:
Does an intervention have an effect on body weight of
the obese children?
• The average weight, in both pre and post treatment
is recorded in columns 1 and 2 (see next slide) for
each of 5 people (P1-P5):
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES 19
X1 :
0 month
X2 :
6 month
P1: 52 51 4 1
P2: 54.5 52 0.25 0
P3: 53 52 1 0
P4: 54.5 52 0.25 0
P5: 56 53 4 1
54 52
1.9 0.4
1
2
11
)( 
2
2
22
)( 




n
sx
2
2
)(
Example 4.1 (cont.)
Column 1 Column 2 Column 3 Column 4
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example 4.1 (cont.)
• Unlike the independent samples t-test, on each row
the numbers in columns 2 and 3 come from the
same people.
• Person 2, for example, weigh of 64.5 kg in the pre-
treatment, but lost to an average of 62 kg in the
post-treatment (after all treatment was completed).
• It appears that this treatment may have improved
body weight.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example 4.1 (cont.)
• The paired t-test will allow us to see if the
improvement that we see in this sample is reliable.
• If we selected another 5 obese children
at random from the weight management program,
would we still see an improvement?
• Without having to go through the trouble and
expense of repeated sampling (called replication), we
can estimate whether the difference in the 2 means
is so large in magnitude that we would likely find the
same result if we chose another 5 persons.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example 4.1 (cont.)
1
2 212121
22
21




n
SSrSS
t
xxxxxx
, df = n-1
Example 4.1 (cont.)
• This paired “t” needs a couple more values
that we have not yet computed.
• First, we need to find the Standard Deviation
of X1 and X2, called Sx1 and Sx2.
• These are simply the square-root of the
variances
( and ).6325.04.02
1
xS 3784.19.12
2
xS
Example 4.1 (cont.)
• Second, we need to find the correlation
between the pre and post-treatment ( ),
or likewise columns 2 and 3.
• Another section will illustrate how to compute
a correlation.
• This computation is somewhat long, so we’ll
avoid it for now.
• I’ll just tell you the correlation is:
rx1x2=0.9177.
• Any scientific or statistical calculator can get
you this answer.
21xxr
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example 4.1 (cont.)





15
)3784.1)(6325)(.9177(.29.14.
5254
t 4.78, df = 4
Example 4.1 (cont.)
• Finally, this computed “t” statistic must be compared
with the critical value of the t-distribution.
• The critical value of the “t” is the highest magnitude
we should expect to find if there is really no
difference between the population means of X1 and
X2, or in other words, no difference between weight
in the pre and post treatment in the weight
management program.
• Since we expect there should be a weight loss, this is
a 1-tailed test.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example 4.1 (cont.)
• The C.V. t(4), α=.05 = 2.132, therefore we reject the null
hypothesis because the absolute value of our “t” at
4.78 is greater than the critical value.
• This is a 1-tailed t-test, so we must verify this
conclusion by noting that the mean of the post
treatment at 52kg, is lower than than the mean of
the pre-treatment average of 54 kg.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example 4.1 (cont.)
Our research conclusion states the facts in simple
terms:
mean weight was decreased significantly from the
pre-treatment
(M = 54) to the post-treatment (M = 52),
t(4) = 4.78, p < .05 (one-tailed).
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example 4.1 Using SPSS
• First, we must setup the variables in SPSS.
• Although not strictly necessary, it is good practice to
give a unique code to each participant (“personid”).
• Unlike the independent samples t-test, the paired t-
test has separate entries for 2 dependent variables,
rather than an independent and dependent:
– DependentVariable1 = pretreat
(for Pre-treatment)
– DependentVariable2 = posttreat
(for Post-treatment)
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example 4.1 Using SPSS
• In our example, the variables are setup as
follows in the SPSS variable view:
Example 4.1 Using SPSS
• To run a Paired Samples t Test in SPSS, click
Analyze > Compare Means > Paired-Samples
T Test.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example 4.1 Using SPSS
• You will be presented with the Paired-Samples T Test dialogue
box, as shown below.
• transfer the variables pretreat and posttreat into the Paired
Variables: box.
Example 4.1 Using SPSS
• Paired Sample Statistics Table
– The first table, titled Paired Samples Statistics, is where SPSS Statistics
has generated descriptive statistics for the variables. You could use the
results here to describe the characteristics of the pre- and post
treatment.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example 4.1 Using SPSS
• Paired Samples Test Table
– The Paired Samples Test table is where the results of the dependent t-
test are presented.
• You are essentially conducting a one-sample t-test on the differences between
the groups.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example 4.1 Using SPSS
• You should focus your attention first of the mean
values for the pre and the post treatment.
• As before, the means (Pre-treatment=54 and Post-
treatment=52) give us our conclusion.
• Namely, we conclude that weight decreased from
the pre to the post season.
• The statistics tell us that our conclusion is true not
only for this sample of 5 persons, but also for other
samples of 5 persons in the weight management
program.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example 4.1 Conclusion
• Our test is 1-tailed, so we must divide the
2-tailed probability provided by SPSS in half
(p=.009/2 = .0045).
• When expressed to 2 significant digits, this value will
round to “.00” and as a result the lowest value that
can be represented in APA style is “p<.01.”
• In short, we can now write our conclusion as follows:
Weight of obese children decreased
significantly from the pre-treatment
(M = 54) to the post-treatment (M = 52),
t(4) = 4.78, p < .01 (one-tailed).
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
t-tests
• Difference between a set value and a variable →
one-sample t-test
• Difference between two independent groups →
independent samples t-test
= BETWEEN-SUBJECTS
• Difference between two related measures (e.g.,
repeated over time or two related measures at one
time) → paired samples t-test
= WITHIN-SUBJECTS
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
ANOVA
KNOWLEDGE FOR THE BENEFIT OF HUMANITY
Introduction to ANOVA
(Analysis of Variance)
• Extension of a t-test to assess differences in the
central tendency (M) of several groups or variables.
• DV variance is partitioned into between-group and
within-group variance
• Levels of measurement:
• Single DV: metric,
• 1 or more IVs: categorical
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Introduction
• ANOVA is an acronym for ANalysis Of VAriance.
• The adjective oneway means that there is a single
variable that defines group membership (called a
factor).
• Comparisons of means using more than one variable
is possible with other kinds of ANOVA analysis.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
When to use a One-way ANOVA
• One-way ANOVA is a generalization of the
independent samples t-test.
• Recall that the independent samples t-test is
used to compare the mean values of 2
different groups.
• A One-way ANOVA does the same thing, but it
has the advantage of allowing comparisons
between more than 2 groups.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
When to use a Oneway ANOVA
(continued)
• In health, for example, we often want to contrast
several conditions in an experiment; such as a
control, a standard treatment, and a newer
“experimental” treatment.
• Because Oneway ANOVA is simply a
generalization of the independent samples t-test,
we use this procedure (to follow) to recalculate
our previous 2 groups example.
• Later, we will do an example with more than 2
groups.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example
• Let’s return to our example
of the nasi lemak (NL) vs. roti canai (RC) diet BUT
now we add up another one which in nasi dagang
diet (ND)
• Our research question is:
“Is there any weight
gain difference between
a 1-week exclusive diet
of either NL, RC or ND?”
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example -con’t
Column 3 Column 4 Column 5
X1 : NL X2 : RC X3 : ND
1 3 3 1 1 0
2 4 2 0 0 1
2 4 3 0 0 0
2 4 3 0 0 0
3 5 4 1 1 1
2 4 3 2 2 2
0.4 0.4 0.4
2
11 )( 
2
22 )( 
1




n
sx
2
2
)(
2 3
2
33 )( 
H0: μ1= μ2= μ3
Ha: At least one pair is different.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Comparing the groups
• Averages within groups:
– NL: 2
– RC: 4
– ND: 3
• Total average:
• Variance around the mean matters for comparison.
• We must compare the variance within the groups to
the variance between the group means.
3
555
)3(5)4(5)2(5




SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Variance within and between
groups
• Sum of squares within groups:
– SSW = 
= (1-2)2+(2-2) 2+(2-2) 2+(2-2) 2+……+(5-4) 2+……
= 6
• Compare it with sum of squares between groups:
– SSB = 
– = (2-3) 2 +(2-3) 2+(2-3) 2+……+(4-3) 2+……
= 5 (2-3) 2 + 5 (4-3) 2 + (3-3) 2 = 10
– Comparing these, we also need to take into account the
number of observations and sizes of groups
2)( jj 
])(X[ 2
Tj 
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Adjusting for group sizes
• Divide by the number of degrees of freedom
• F:
• , reject H0 if this is large
MSG
MSW
Both are estimates of population
variance of error under H0
n: number of observations
K: number of groups
1
SSG
MSG
K


MSB
SSB
SSW
MSW
n K


MSW
SSW
MSW
MSB
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example– Test statistic thresholds
• If populations are normal, with the same
variance, then we can show that under the
null hypothesis,
• Reject at confidence level if
1,~ K n K
MSG
F
MSW
 
 1, ,K n K
MSG
F
MSW
 
The F distribution, with
K-1 and n-K degrees of
freedom
Find this value in a table
MSB
MSW
MSB
MSW
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example– con’t
94.8
9.48
13 3
SSW
MSW
n K
  
 
MSW
6
15-3
0.5
52.43
26.2
1 3 1
SSG
MSG
K
  
 
MSB
SSB 10
3-1
5.0
26.2
2.76
9.48
MSG
MSW
 
MSB
MSW
5.0
0.5
10.0 F3-1,15-3,0.05 = 3.89
Thus we reject the null hypothesis in our case.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example – ANOVA table
Next, we need to fill-in the so-called ANOVA table:
Source of
variation
Sum of
squares
Deg. of
freedom
Mean
squares
F ratio
Between
groups
SSB K-1 MSB MSB/MSW
Within
groups
SSW n-K MSW
Total SST n-1
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example – ANOVA table (cont.)
Next, we need to fill-in the so-called ANOVA table:
Source
of
Variance
(SV)
Sum of
Squares
(SS)
Degrees
of
Freedom
(df)
Mean
Squares
(MS)
F-ratio
(F)
Critical
Value
(CV)
Reject
Decision
(Reject?)
Between 10 3-1= 2 10/2= 5.0 5.0/0.5=
10.0
3.89 Is F-ratio
> CV ?
YES
Within 6 15-3= 12 6/12= 0.5
Total 16 15-1= 14
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example– F-tests
• In our case, when diet has no effect,
differences between diet are entirely due to
chance. Numerator and denominator will be
similar. F-ratio should have value around 1.00
• When the diet does have an effect then the
between-diet differences (numerator) should
be larger than chance (denominator). F-ratio
should be noticeably larger than 1.00
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example Using SPSS
• 1. Quick Data Check
– We first want to get an idea of what our data basically look like. A nice
option for the data at hand is a running a histogram of weight for each
of the three groups separately. The screenshot below walks you
through doing so.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example Using SPSS
The shapes of the frequency distributions are
normally distributed
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Normality assumption
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example 1 Using SPSS (cont.)
2. Running SPSS One-Way ANOVA
1
2
3
4
5
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example 1 Using SPSS (cont.)
2. Running SPSS One-Way ANOVA (con’t.)
Under button. Tick the checkbox as shown
below:
4
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example 1 Using SPSS (cont.)
2. Running SPSS One-Way ANOVA (con’t.)
Click the button. Tick the Descriptive checkbox in
the –Statistics– area, as shown below:
5
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example Using SPSS (cont.)
3. SPSS One-Way ANOVA Output
– Two sections (boxes) appear in the output: Descriptives
– “N” in the first column refers to the number of cases used for calculating the
descriptive statistics. These numbers being equal to our sample sizes tells us
that there are no missing values on the dependent variable.
– The mean weights are the core of our output. After all, our main research
question is whether these differ for different diets.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example 1 Using SPSS (cont.)
• 3. SPSS One-Way ANOVA Output-con’t
– The second section, ANOVA table
• The significance level is 0.003 (p <0.01), and, therefore, there is a
statistically significant difference in the mean weight gain between the
different diets.
• which of the specific groups differed?
• Find this out in the Multiple Comparisons table which contains the results
of post-hoc tests.
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Example 1 Using SPSS (cont.)
3. SPSS One-Way ANOVA Output-con’t
• The table below, Multiple Comparisons, shows which groups differed from
each other.
• there is a significant difference in weight gain between NL diet and RC diet
(p = 0.002). However, there were no differences between NL diet and ND
diet (p=0.105), as well as between RC diet and ND diet (p=0.105)
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
In the Literature
• First and foremost, report descriptive
statistics.
• Regarding the significance test,report
– the F value;
– df1, the numerator degrees of freedom;
– df2, the denominator degrees of freedom;
– the p value
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
In the Literature
• There was a statistically significant difference between groups
as determined by one-way ANOVA (F(2,12) = 10.0, p<0.01). A
Tukey post-hoc test revealed that weight gain was statistically
significantly lower in NL diet (M= 2.00, SD= 0.71) compared to
RC diet (M= 4.00, SD = 0.71, p <0.01). However, ND diet (M=
3.00, SD= 0.71) did not significantly differ from NL and RC diet.
Diet Mean (SD) t statistics (df) p-value
Nasi Lemak 2.00 (0.71) 10.0(2,12) 0.003
Roti Canai 4.00 (0.71)
Nasi Dagang 3.00 (0.71)
Table 1: Type of diet associated with weight gain
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Steps in solving One-Way ANOVA
post hoc Test Problems - 1
The following is a guide to the decision process for answering
homework problems about one-way ANOVA post hoc test
problems:
Is the dependent variable
ordinal or interval level and
does independent variable
define groups?
Incorrect
application of
a statistic
No
Compute the skewness, and kurtosis for the
variable to test assumption of normality.
Yes
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Steps in solving One-Way ANOVA
post hoc Test Problems - 1
The following is a guide to the decision process for answering
homework problems about one-way ANOVA post hoc test
problems:
Is the dependent variable
ordinal or interval level and
does independent variable
define groups?
Incorrect
application of
a statistic
No
Compute the skewness, and kurtosis for the
variable to test assumption of normality.
Yes
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Steps in solving One-Way ANOVA
post hoc Test Problems - 2
Yes
No
Assumption of normality
satisfied? (skew, kurtosis
between -1.0 and + 1.0)
No
Sample size 10+ in
each group to apply
Central Limit Theorem?
Incorrect
application of
a statistic
Yes
Compute the one-way ANOVA with Tukey
HSD post hoc option selected
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Steps in solving One-Way ANOVA
post hoc Test Problems - 3
Is the p-value for the Tukey
HSD post hoc test <= alpha?
Examine Tukey HSD post hoc test result
False
Is the p-value for the F
ratio test <= alpha?
No
Yes
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
recap
• FIVE assumptions
– dependent variable should be measured at the interval or
ratio level (i.e., they are continuous).
– independent variable should consist of two or more
categorical, independent groups.
– should have independence of observations, which means
that there is no relationship between the observations in
each group or between the groups themselves.
– homoscedasticity: the dependent variable has the same
variance within each population;
– normality: the dependent variable is Gaussianly
distributed within each population;
SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
Any
Questio
ns?
Conce
pts?
Equations?

More Related Content

What's hot

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
 
MANN WHITNEY U TEST.pptx
MANN WHITNEY U TEST.pptxMANN WHITNEY U TEST.pptx
MANN WHITNEY U TEST.pptx
RichelleDordas1
 
Introduction to Analysis of Variance
Introduction to Analysis of VarianceIntroduction to Analysis of Variance
Introduction to Analysis of Variance
jasondroesch
 
Anova, ancova, manova thiyagu
Anova, ancova, manova   thiyaguAnova, ancova, manova   thiyagu
Anova, ancova, manova thiyagu
Thiyagu K
 
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
 
One Way ANOVA and Two Way ANOVA using R
One Way ANOVA and Two Way ANOVA using ROne Way ANOVA and Two Way ANOVA using R
One Way ANOVA and Two Way ANOVA using R
Sean Stovall
 
Student's T-test, Paired T-Test, ANOVA & Proportionate Test
Student's T-test, Paired T-Test, ANOVA & Proportionate TestStudent's T-test, Paired T-Test, ANOVA & Proportionate Test
Student's T-test, Paired T-Test, ANOVA & Proportionate Test
Azmi Mohd Tamil
 
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
 
Repeated anova measures ppt
Repeated anova measures pptRepeated anova measures ppt
Repeated anova measures ppt
Aamna Haneef
 
Workshop on Data Analysis and Result Interpretation in Social Science Researc...
Workshop on Data Analysis and Result Interpretation in Social Science Researc...Workshop on Data Analysis and Result Interpretation in Social Science Researc...
Workshop on Data Analysis and Result Interpretation in Social Science Researc...
Academy for Higher Education and Social Science Research
 
t-TEst. :D
t-TEst. :Dt-TEst. :D
t-TEst. :D
patatas
 
Parametric tests
Parametric  testsParametric  tests
Parametric tests
shefali jain
 
Data Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVAData Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVADr Ali Yusob Md Zain
 
Chi square
Chi squareChi square
Unpaired t Test Family
Unpaired t Test FamilyUnpaired t Test Family
Unpaired t Test Family
Gaetan Lion
 
T test and types of t-test
T test and types of t-testT test and types of t-test
T test and types of t-test
Rachamalla Sai Rahul
 
Independent samples t-test
Independent samples t-testIndependent samples t-test
Independent samples t-test
Kaori Kubo Germano, PhD
 
Shovan anova main
Shovan anova mainShovan anova main
Shovan anova main
Dr Shovan Padhy, MD
 

What's hot (20)

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
 
MANN WHITNEY U TEST.pptx
MANN WHITNEY U TEST.pptxMANN WHITNEY U TEST.pptx
MANN WHITNEY U TEST.pptx
 
Introduction to Analysis of Variance
Introduction to Analysis of VarianceIntroduction to Analysis of Variance
Introduction to Analysis of Variance
 
Anova, ancova, manova thiyagu
Anova, ancova, manova   thiyaguAnova, ancova, manova   thiyagu
Anova, ancova, manova thiyagu
 
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
 
One Way ANOVA and Two Way ANOVA using R
One Way ANOVA and Two Way ANOVA using ROne Way ANOVA and Two Way ANOVA using R
One Way ANOVA and Two Way ANOVA using R
 
Student's T-test, Paired T-Test, ANOVA & Proportionate Test
Student's T-test, Paired T-Test, ANOVA & Proportionate TestStudent's T-test, Paired T-Test, ANOVA & Proportionate Test
Student's T-test, Paired T-Test, ANOVA & Proportionate Test
 
Confidence interval
Confidence intervalConfidence interval
Confidence interval
 
Anova (f test) and mean differentiation
Anova (f test) and mean differentiationAnova (f test) and mean differentiation
Anova (f test) and mean differentiation
 
Repeated anova measures ppt
Repeated anova measures pptRepeated anova measures ppt
Repeated anova measures ppt
 
Workshop on Data Analysis and Result Interpretation in Social Science Researc...
Workshop on Data Analysis and Result Interpretation in Social Science Researc...Workshop on Data Analysis and Result Interpretation in Social Science Researc...
Workshop on Data Analysis and Result Interpretation in Social Science Researc...
 
t-TEst. :D
t-TEst. :Dt-TEst. :D
t-TEst. :D
 
Parametric tests
Parametric  testsParametric  tests
Parametric tests
 
Data Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVAData Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVA
 
Chi square
Chi squareChi square
Chi square
 
Chi square mahmoud
Chi square mahmoudChi square mahmoud
Chi square mahmoud
 
Unpaired t Test Family
Unpaired t Test FamilyUnpaired t Test Family
Unpaired t Test Family
 
T test and types of t-test
T test and types of t-testT test and types of t-test
T test and types of t-test
 
Independent samples t-test
Independent samples t-testIndependent samples t-test
Independent samples t-test
 
Shovan anova main
Shovan anova mainShovan anova main
Shovan anova main
 

Viewers also liked

8. Correlation
8. Correlation8. Correlation
8. Correlation
Razif Shahril
 
9. Regression
9. Regression9. Regression
9. Regression
Razif Shahril
 
6. Categorical data analysis - Chi-Square & Fisher Exact Test
6. Categorical data analysis - Chi-Square & Fisher Exact Test6. Categorical data analysis - Chi-Square & Fisher Exact Test
6. Categorical data analysis - Chi-Square & Fisher Exact Test
Razif Shahril
 
1. Introduction to biostatistics
1. Introduction to biostatistics1. Introduction to biostatistics
1. Introduction to biostatistics
Razif Shahril
 
HFS 3283 independent t test
HFS 3283 independent t testHFS 3283 independent t test
HFS 3283 independent t test
wajihahwafa
 
Reporting a paired sample t test
Reporting a paired sample t testReporting a paired sample t test
Reporting a paired sample t test
Ken Plummer
 
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
 
2. Inferential statistics
2. Inferential statistics2. Inferential statistics
2. Inferential statistics
Razif Shahril
 
Quantitative method compare means test (independent and paired)
Quantitative method compare means test (independent and paired)Quantitative method compare means test (independent and paired)
Quantitative method compare means test (independent and paired)
Keiko Ono
 
Null hypothesis for paired sample t-test
Null hypothesis for paired sample t-testNull hypothesis for paired sample t-test
Null hypothesis for paired sample t-test
Ken Plummer
 
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
 
Student's T-Test
Student's T-TestStudent's T-Test
CORE: May the “Power” (Statistical) - Be with You!
CORE: May the “Power” (Statistical) - Be with You!CORE: May the “Power” (Statistical) - Be with You!
CORE: May the “Power” (Statistical) - Be with You!
Trident University
 
Estimating sample size through simulations
Estimating sample size through simulationsEstimating sample size through simulations
Estimating sample size through simulations
Arthur8898
 
Two Sample Tests
Two Sample TestsTwo Sample Tests
Two Sample Testssanketd1983
 
NDD10603
NDD10603 NDD10603
NDD10603
wajihahwafa
 
Anova ONE WAY
Anova ONE WAYAnova ONE WAY
Anova ONE WAY
elulu123
 
Correlational research 1 1
Correlational research 1 1Correlational research 1 1
Correlational research 1 1sdwilson88
 
Multivariate statistics
Multivariate statisticsMultivariate statistics
Multivariate statisticsVeneficus
 

Viewers also liked (20)

8. Correlation
8. Correlation8. Correlation
8. Correlation
 
9. Regression
9. Regression9. Regression
9. Regression
 
6. Categorical data analysis - Chi-Square & Fisher Exact Test
6. Categorical data analysis - Chi-Square & Fisher Exact Test6. Categorical data analysis - Chi-Square & Fisher Exact Test
6. Categorical data analysis - Chi-Square & Fisher Exact Test
 
1. Introduction to biostatistics
1. Introduction to biostatistics1. Introduction to biostatistics
1. Introduction to biostatistics
 
HFS 3283 independent t test
HFS 3283 independent t testHFS 3283 independent t test
HFS 3283 independent t test
 
Reporting a paired sample t test
Reporting a paired sample t testReporting a paired sample t test
Reporting a paired sample t test
 
T test
T testT test
T test
 
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
 
2. Inferential statistics
2. Inferential statistics2. Inferential statistics
2. Inferential statistics
 
Quantitative method compare means test (independent and paired)
Quantitative method compare means test (independent and paired)Quantitative method compare means test (independent and paired)
Quantitative method compare means test (independent and paired)
 
Null hypothesis for paired sample t-test
Null hypothesis for paired sample t-testNull hypothesis for paired sample t-test
Null hypothesis for paired sample t-test
 
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
 
Student's T-Test
Student's T-TestStudent's T-Test
Student's T-Test
 
CORE: May the “Power” (Statistical) - Be with You!
CORE: May the “Power” (Statistical) - Be with You!CORE: May the “Power” (Statistical) - Be with You!
CORE: May the “Power” (Statistical) - Be with You!
 
Estimating sample size through simulations
Estimating sample size through simulationsEstimating sample size through simulations
Estimating sample size through simulations
 
Two Sample Tests
Two Sample TestsTwo Sample Tests
Two Sample Tests
 
NDD10603
NDD10603 NDD10603
NDD10603
 
Anova ONE WAY
Anova ONE WAYAnova ONE WAY
Anova ONE WAY
 
Correlational research 1 1
Correlational research 1 1Correlational research 1 1
Correlational research 1 1
 
Multivariate statistics
Multivariate statisticsMultivariate statistics
Multivariate statistics
 

Similar to HFS3283 paired t tes-t and anova

Research method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anovaResearch method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anovanaranbatn
 
1 ANOVA.ppt
1 ANOVA.ppt1 ANOVA.ppt
1 ANOVA.ppt
Alemayehu70
 
T Test and ANOVA Presentation_By Limon.pptx
T Test and ANOVA Presentation_By Limon.pptxT Test and ANOVA Presentation_By Limon.pptx
T Test and ANOVA Presentation_By Limon.pptx
Akhtaruzzamanlimon1
 
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
 
Epidemiological study design and it's significance
Epidemiological study design and it's significanceEpidemiological study design and it's significance
Epidemiological study design and it's significance
GurunathVhanmane1
 
Research Design
Research DesignResearch Design
Research Design
Sathish Rajamani
 
Very good statistics-overview rbc (1)
Very good statistics-overview rbc (1)Very good statistics-overview rbc (1)
Very good statistics-overview rbc (1)Abdul Wasay Baloch
 
Lec1_Methods-for-Dummies-T-tests-anovas-and-regression.pptx
Lec1_Methods-for-Dummies-T-tests-anovas-and-regression.pptxLec1_Methods-for-Dummies-T-tests-anovas-and-regression.pptx
Lec1_Methods-for-Dummies-T-tests-anovas-and-regression.pptx
Akhtaruzzamanlimon1
 
Parametric tests
Parametric testsParametric tests
Parametric tests
heena45
 
Data.savQuestion.docxOver the same period, determine wheth.docx
Data.savQuestion.docxOver the same period, determine wheth.docxData.savQuestion.docxOver the same period, determine wheth.docx
Data.savQuestion.docxOver the same period, determine wheth.docx
theodorelove43763
 
tests of significance
tests of significancetests of significance
tests of significance
benita regi
 
One-way ANOVA for Completely Randomized Design (CRD)
One-way ANOVA for Completely Randomized Design (CRD)One-way ANOVA for Completely Randomized Design (CRD)
One-way ANOVA for Completely Randomized Design (CRD)
Siti Nur Adila Hamzah
 
Testing of hypothesis.pptx
Testing of hypothesis.pptxTesting of hypothesis.pptx
Testing of hypothesis.pptx
SyedaKumail
 
Nursing Research Designs
Nursing Research DesignsNursing Research Designs
Nursing Research Designs
Bgomathi Mahalingam
 
Experimental research
Experimental researchExperimental research
Experimental research
ImroatulMufidah7
 
When to use, What Statistical Test for data Analysis modified.pptx
When to use, What Statistical Test for data Analysis modified.pptxWhen to use, What Statistical Test for data Analysis modified.pptx
When to use, What Statistical Test for data Analysis modified.pptx
Asokan R
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss
Subodh Khanal
 
T test^jsample size^j ethics
T test^jsample size^j ethicsT test^jsample size^j ethics
T test^jsample size^j ethics
Abhishek Thakur
 
The t test
The t testThe t test
The t test
freelancer
 
Statistics.pptx
Statistics.pptxStatistics.pptx
Statistics.pptx
Subha322492
 

Similar to HFS3283 paired t tes-t and anova (20)

Research method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anovaResearch method ch08 statistical methods 2 anova
Research method ch08 statistical methods 2 anova
 
1 ANOVA.ppt
1 ANOVA.ppt1 ANOVA.ppt
1 ANOVA.ppt
 
T Test and ANOVA Presentation_By Limon.pptx
T Test and ANOVA Presentation_By Limon.pptxT Test and ANOVA Presentation_By Limon.pptx
T Test and ANOVA Presentation_By Limon.pptx
 
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
 
Epidemiological study design and it's significance
Epidemiological study design and it's significanceEpidemiological study design and it's significance
Epidemiological study design and it's significance
 
Research Design
Research DesignResearch Design
Research Design
 
Very good statistics-overview rbc (1)
Very good statistics-overview rbc (1)Very good statistics-overview rbc (1)
Very good statistics-overview rbc (1)
 
Lec1_Methods-for-Dummies-T-tests-anovas-and-regression.pptx
Lec1_Methods-for-Dummies-T-tests-anovas-and-regression.pptxLec1_Methods-for-Dummies-T-tests-anovas-and-regression.pptx
Lec1_Methods-for-Dummies-T-tests-anovas-and-regression.pptx
 
Parametric tests
Parametric testsParametric tests
Parametric tests
 
Data.savQuestion.docxOver the same period, determine wheth.docx
Data.savQuestion.docxOver the same period, determine wheth.docxData.savQuestion.docxOver the same period, determine wheth.docx
Data.savQuestion.docxOver the same period, determine wheth.docx
 
tests of significance
tests of significancetests of significance
tests of significance
 
One-way ANOVA for Completely Randomized Design (CRD)
One-way ANOVA for Completely Randomized Design (CRD)One-way ANOVA for Completely Randomized Design (CRD)
One-way ANOVA for Completely Randomized Design (CRD)
 
Testing of hypothesis.pptx
Testing of hypothesis.pptxTesting of hypothesis.pptx
Testing of hypothesis.pptx
 
Nursing Research Designs
Nursing Research DesignsNursing Research Designs
Nursing Research Designs
 
Experimental research
Experimental researchExperimental research
Experimental research
 
When to use, What Statistical Test for data Analysis modified.pptx
When to use, What Statistical Test for data Analysis modified.pptxWhen to use, What Statistical Test for data Analysis modified.pptx
When to use, What Statistical Test for data Analysis modified.pptx
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss
 
T test^jsample size^j ethics
T test^jsample size^j ethicsT test^jsample size^j ethics
T test^jsample size^j ethics
 
The t test
The t testThe t test
The t test
 
Statistics.pptx
Statistics.pptxStatistics.pptx
Statistics.pptx
 

More from wajihahwafa

Overview and food in historical perspective
Overview and food in historical perspectiveOverview and food in historical perspective
Overview and food in historical perspective
wajihahwafa
 
Overview and food in historical perspective
Overview and food in historical perspectiveOverview and food in historical perspective
Overview and food in historical perspective
wajihahwafa
 
Fats in Sports
Fats in SportsFats in Sports
Fats in Sports
wajihahwafa
 
Carbohydrates in Sports
Carbohydrates in SportsCarbohydrates in Sports
Carbohydrates in Sports
wajihahwafa
 
NUTRITION POLICY AND FOOD SECURITY
NUTRITION POLICY  AND FOOD SECURITYNUTRITION POLICY  AND FOOD SECURITY
NUTRITION POLICY AND FOOD SECURITY
wajihahwafa
 
SUSTAINABLE DEVELOPMENT GOALS
SUSTAINABLE DEVELOPMENT GOALSSUSTAINABLE DEVELOPMENT GOALS
SUSTAINABLE DEVELOPMENT GOALS
wajihahwafa
 
NDD30503 NUTRITION FOR SPORTS AND EXERCISE
NDD30503 NUTRITION FOR SPORTS AND EXERCISENDD30503 NUTRITION FOR SPORTS AND EXERCISE
NDD30503 NUTRITION FOR SPORTS AND EXERCISE
wajihahwafa
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
wajihahwafa
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
wajihahwafa
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
wajihahwafa
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
wajihahwafa
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
wajihahwafa
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
wajihahwafa
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
wajihahwafa
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
wajihahwafa
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
wajihahwafa
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
wajihahwafa
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
wajihahwafa
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
wajihahwafa
 
NDD 10603
NDD 10603NDD 10603
NDD 10603
wajihahwafa
 

More from wajihahwafa (20)

Overview and food in historical perspective
Overview and food in historical perspectiveOverview and food in historical perspective
Overview and food in historical perspective
 
Overview and food in historical perspective
Overview and food in historical perspectiveOverview and food in historical perspective
Overview and food in historical perspective
 
Fats in Sports
Fats in SportsFats in Sports
Fats in Sports
 
Carbohydrates in Sports
Carbohydrates in SportsCarbohydrates in Sports
Carbohydrates in Sports
 
NUTRITION POLICY AND FOOD SECURITY
NUTRITION POLICY  AND FOOD SECURITYNUTRITION POLICY  AND FOOD SECURITY
NUTRITION POLICY AND FOOD SECURITY
 
SUSTAINABLE DEVELOPMENT GOALS
SUSTAINABLE DEVELOPMENT GOALSSUSTAINABLE DEVELOPMENT GOALS
SUSTAINABLE DEVELOPMENT GOALS
 
NDD30503 NUTRITION FOR SPORTS AND EXERCISE
NDD30503 NUTRITION FOR SPORTS AND EXERCISENDD30503 NUTRITION FOR SPORTS AND EXERCISE
NDD30503 NUTRITION FOR SPORTS AND EXERCISE
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
 
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISENDD30503: NUTRITION FOR SPORTS AND EXERCISE
NDD30503: NUTRITION FOR SPORTS AND EXERCISE
 
NDD 10603
NDD 10603NDD 10603
NDD 10603
 

Recently uploaded

一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
Oppotus
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
oz8q3jxlp
 
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
nscud
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Subhajit Sahu
 
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Boston Institute of Analytics
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
vcaxypu
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
vcaxypu
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
enxupq
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
benishzehra469
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
ArpitMalhotra16
 
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
Tiktokethiodaily
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
u86oixdj
 
一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单
ewymefz
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
slg6lamcq
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
slg6lamcq
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
nscud
 

Recently uploaded (20)

一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
 
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
一比一原版(CBU毕业证)不列颠海角大学毕业证成绩单
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
 
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
 
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
 
一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单一比一原版(NYU毕业证)纽约大学毕业证成绩单
一比一原版(NYU毕业证)纽约大学毕业证成绩单
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
 

HFS3283 paired t tes-t and anova

  • 1. HFS3283 PAIRED T-TEST & ONE WAY-ANOVA DR. SHARIFAH WAJIHAH WAFA BTE SST WAFA School of Nutrition and Dietetics Faculty of Health Sciences sharifahwajihah@unisza.edu.my KNOWLEDGE FOR THE BENEFIT OF HUMANITY
  • 2. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Topic Learning Outcomes At the end of this lecture, the student should be able to: 1 • Understand structure of research study appropriate for ANOVA test 2 • Understand how to evaluate the assumptions underlying this test 3 • interpret SPSS outputs and report the results
  • 3. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Overview t-tests 1. One-sample t-test 2. Independent samples t-test 3. Paired samples t-test ANOVAs 1. 1-way ANOVA 2. 1-way repeated measures ANOVA 3. Factorial ANOVA
  • 4. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Why a t-test or ANOVA? •A t-test or ANOVA is used to determine whether a sample of scores are from the same population as another sample of scores. •These are inferential tools for examining differences between group means. • Is the difference between two sample means ‘real’ or due to chance?
  • 5. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES t-tests •One-sample One group of participants, compared with fixed, pre-existing value (e.g., population norms) •Independent Compares mean scores on the same variable across different populations (groups) •Paired Same participants, with repeated measures
  • 6. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Major assumptions •Normally distributed variables •Homogeneity of variance In general, t-tests and ANOVAs are robust to violation of assumptions, particularly with large cell sizes, but don't be complacent.
  • 7. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Use of t in t-tests •t reflects the ratio of between group variance to within group variance •Is the t large enough that it is unlikely that the two samples have come from the same population? •Decision: Is t larger than the critical value for t? (see t tables – depends on critical  and N)
  • 8. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES One-tail vs. two-tail tests • Two-tailed test rejects null hypothesis if obtained t-value is extreme is either direction • One-tailed test rejects null hypothesis if obtained t-value is extreme is one direction (you choose – too high or too low) • One-tailed tests are twice as powerful as two- tailed, but they are only focused on identifying differences in one direction.
  • 9. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES One sample t-test • Compare one group (a sample) with a fixed, pre- existing value (e.g., population norms) • Do uni students sleep less than the recommended amount? e.g., Given a sample of N = 190 uni students who sleep M = 7.5 hrs/day (SD = 1.5), does this differ significantly from 8 hours hrs/day ( = .05)?
  • 10. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES One sample t-test
  • 11. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Independent groups t-test • Compares mean scores on the same variable across different populations (groups) • Do males & females differ in the amount of sleep they get?
  • 12. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Assumptions (Indep. samples t-test) •LOM – IV is ordinal / categorical – DV is interval / ratio •Homogeneity of Variance: If variances unequal (Levene’s test), adjustment made •Normality: t-tests robust to modest departures from normality, otherwise consider use of Mann-Whitney U test •Independence of observations (one participant’s score is not dependent on any other participant’s score)
  • 13. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Do males and females differ in in amount of sleep per night?
  • 14. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Independent samples t-test •Comparison b/w means of 2 independent sample variables = t-test (e.g., what is the difference in Educational Satisfaction between male and female students?) •Comparison b/w means of 3+ independent sample variables = 1-way ANOVA (e.g., what is the difference in Educational Satisfaction between students enrolled in four different faculties?)
  • 15. PAIRED T-TEST KNOWLEDGE FOR THE BENEFIT OF HUMANITY
  • 16. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Paired samples t-test  1-way repeated measures ANOVA • Same participants, with repeated measures • Data is sampled within subjects. Measures are repeated e.g.,: –Time e.g., pre- vs. post-intervention –Measures e.g., approval ratings of brand X and brand Y • The paired t-test will show whether the differences observed in the 2 measures will be found reliably in repeated samples.
  • 17. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Assumptions (Paired samples t-test) • LOM: – IV: Two measures from same participants (w/in subjects) • a variable measured on two occasions or • two different variables measured on the same occasion – DV: Continuous (Interval or ratio) • Normal distribution of difference scores (robust to violation with larger samples) • Independence of observations (one participant’s score is not dependent on another’s score)
  • 18. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example • In this example, we want to compare the weight changes amongst obese children after 6 weeks went for weight management program. • Five obese children are selected at random from the school A. • We are interested in the following research question: Does an intervention have an effect on body weight of the obese children? • The average weight, in both pre and post treatment is recorded in columns 1 and 2 (see next slide) for each of 5 people (P1-P5):
  • 19. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES 19 X1 : 0 month X2 : 6 month P1: 52 51 4 1 P2: 54.5 52 0.25 0 P3: 53 52 1 0 P4: 54.5 52 0.25 0 P5: 56 53 4 1 54 52 1.9 0.4 1 2 11 )(  2 2 22 )(      n sx 2 2 )( Example 4.1 (cont.) Column 1 Column 2 Column 3 Column 4
  • 20. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example 4.1 (cont.) • Unlike the independent samples t-test, on each row the numbers in columns 2 and 3 come from the same people. • Person 2, for example, weigh of 64.5 kg in the pre- treatment, but lost to an average of 62 kg in the post-treatment (after all treatment was completed). • It appears that this treatment may have improved body weight.
  • 21. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example 4.1 (cont.) • The paired t-test will allow us to see if the improvement that we see in this sample is reliable. • If we selected another 5 obese children at random from the weight management program, would we still see an improvement? • Without having to go through the trouble and expense of repeated sampling (called replication), we can estimate whether the difference in the 2 means is so large in magnitude that we would likely find the same result if we chose another 5 persons.
  • 22. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example 4.1 (cont.) 1 2 212121 22 21     n SSrSS t xxxxxx , df = n-1
  • 23. Example 4.1 (cont.) • This paired “t” needs a couple more values that we have not yet computed. • First, we need to find the Standard Deviation of X1 and X2, called Sx1 and Sx2. • These are simply the square-root of the variances ( and ).6325.04.02 1 xS 3784.19.12 2 xS
  • 24. Example 4.1 (cont.) • Second, we need to find the correlation between the pre and post-treatment ( ), or likewise columns 2 and 3. • Another section will illustrate how to compute a correlation. • This computation is somewhat long, so we’ll avoid it for now. • I’ll just tell you the correlation is: rx1x2=0.9177. • Any scientific or statistical calculator can get you this answer. 21xxr
  • 25. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example 4.1 (cont.)      15 )3784.1)(6325)(.9177(.29.14. 5254 t 4.78, df = 4
  • 26. Example 4.1 (cont.) • Finally, this computed “t” statistic must be compared with the critical value of the t-distribution. • The critical value of the “t” is the highest magnitude we should expect to find if there is really no difference between the population means of X1 and X2, or in other words, no difference between weight in the pre and post treatment in the weight management program. • Since we expect there should be a weight loss, this is a 1-tailed test. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
  • 27. Example 4.1 (cont.) • The C.V. t(4), α=.05 = 2.132, therefore we reject the null hypothesis because the absolute value of our “t” at 4.78 is greater than the critical value. • This is a 1-tailed t-test, so we must verify this conclusion by noting that the mean of the post treatment at 52kg, is lower than than the mean of the pre-treatment average of 54 kg. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
  • 28. Example 4.1 (cont.) Our research conclusion states the facts in simple terms: mean weight was decreased significantly from the pre-treatment (M = 54) to the post-treatment (M = 52), t(4) = 4.78, p < .05 (one-tailed). SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
  • 29. Example 4.1 Using SPSS • First, we must setup the variables in SPSS. • Although not strictly necessary, it is good practice to give a unique code to each participant (“personid”). • Unlike the independent samples t-test, the paired t- test has separate entries for 2 dependent variables, rather than an independent and dependent: – DependentVariable1 = pretreat (for Pre-treatment) – DependentVariable2 = posttreat (for Post-treatment) SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
  • 30. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example 4.1 Using SPSS • In our example, the variables are setup as follows in the SPSS variable view:
  • 31. Example 4.1 Using SPSS • To run a Paired Samples t Test in SPSS, click Analyze > Compare Means > Paired-Samples T Test. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
  • 32. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example 4.1 Using SPSS • You will be presented with the Paired-Samples T Test dialogue box, as shown below. • transfer the variables pretreat and posttreat into the Paired Variables: box.
  • 33. Example 4.1 Using SPSS • Paired Sample Statistics Table – The first table, titled Paired Samples Statistics, is where SPSS Statistics has generated descriptive statistics for the variables. You could use the results here to describe the characteristics of the pre- and post treatment. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
  • 34. Example 4.1 Using SPSS • Paired Samples Test Table – The Paired Samples Test table is where the results of the dependent t- test are presented. • You are essentially conducting a one-sample t-test on the differences between the groups. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
  • 35. Example 4.1 Using SPSS • You should focus your attention first of the mean values for the pre and the post treatment. • As before, the means (Pre-treatment=54 and Post- treatment=52) give us our conclusion. • Namely, we conclude that weight decreased from the pre to the post season. • The statistics tell us that our conclusion is true not only for this sample of 5 persons, but also for other samples of 5 persons in the weight management program. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
  • 36. Example 4.1 Conclusion • Our test is 1-tailed, so we must divide the 2-tailed probability provided by SPSS in half (p=.009/2 = .0045). • When expressed to 2 significant digits, this value will round to “.00” and as a result the lowest value that can be represented in APA style is “p<.01.” • In short, we can now write our conclusion as follows: Weight of obese children decreased significantly from the pre-treatment (M = 54) to the post-treatment (M = 52), t(4) = 4.78, p < .01 (one-tailed). SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
  • 37. t-tests • Difference between a set value and a variable → one-sample t-test • Difference between two independent groups → independent samples t-test = BETWEEN-SUBJECTS • Difference between two related measures (e.g., repeated over time or two related measures at one time) → paired samples t-test = WITHIN-SUBJECTS SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
  • 38. ANOVA KNOWLEDGE FOR THE BENEFIT OF HUMANITY
  • 39. Introduction to ANOVA (Analysis of Variance) • Extension of a t-test to assess differences in the central tendency (M) of several groups or variables. • DV variance is partitioned into between-group and within-group variance • Levels of measurement: • Single DV: metric, • 1 or more IVs: categorical SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
  • 40. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Introduction • ANOVA is an acronym for ANalysis Of VAriance. • The adjective oneway means that there is a single variable that defines group membership (called a factor). • Comparisons of means using more than one variable is possible with other kinds of ANOVA analysis.
  • 41. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES When to use a One-way ANOVA • One-way ANOVA is a generalization of the independent samples t-test. • Recall that the independent samples t-test is used to compare the mean values of 2 different groups. • A One-way ANOVA does the same thing, but it has the advantage of allowing comparisons between more than 2 groups.
  • 42. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES When to use a Oneway ANOVA (continued) • In health, for example, we often want to contrast several conditions in an experiment; such as a control, a standard treatment, and a newer “experimental” treatment. • Because Oneway ANOVA is simply a generalization of the independent samples t-test, we use this procedure (to follow) to recalculate our previous 2 groups example. • Later, we will do an example with more than 2 groups.
  • 43. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example • Let’s return to our example of the nasi lemak (NL) vs. roti canai (RC) diet BUT now we add up another one which in nasi dagang diet (ND) • Our research question is: “Is there any weight gain difference between a 1-week exclusive diet of either NL, RC or ND?”
  • 44. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example -con’t Column 3 Column 4 Column 5 X1 : NL X2 : RC X3 : ND 1 3 3 1 1 0 2 4 2 0 0 1 2 4 3 0 0 0 2 4 3 0 0 0 3 5 4 1 1 1 2 4 3 2 2 2 0.4 0.4 0.4 2 11 )(  2 22 )(  1     n sx 2 2 )( 2 3 2 33 )(  H0: μ1= μ2= μ3 Ha: At least one pair is different.
  • 45. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Comparing the groups • Averages within groups: – NL: 2 – RC: 4 – ND: 3 • Total average: • Variance around the mean matters for comparison. • We must compare the variance within the groups to the variance between the group means. 3 555 )3(5)4(5)2(5    
  • 46. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Variance within and between groups • Sum of squares within groups: – SSW =  = (1-2)2+(2-2) 2+(2-2) 2+(2-2) 2+……+(5-4) 2+…… = 6 • Compare it with sum of squares between groups: – SSB =  – = (2-3) 2 +(2-3) 2+(2-3) 2+……+(4-3) 2+…… = 5 (2-3) 2 + 5 (4-3) 2 + (3-3) 2 = 10 – Comparing these, we also need to take into account the number of observations and sizes of groups 2)( jj  ])(X[ 2 Tj 
  • 47. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Adjusting for group sizes • Divide by the number of degrees of freedom • F: • , reject H0 if this is large MSG MSW Both are estimates of population variance of error under H0 n: number of observations K: number of groups 1 SSG MSG K   MSB SSB SSW MSW n K   MSW SSW MSW MSB
  • 48. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example– Test statistic thresholds • If populations are normal, with the same variance, then we can show that under the null hypothesis, • Reject at confidence level if 1,~ K n K MSG F MSW    1, ,K n K MSG F MSW   The F distribution, with K-1 and n-K degrees of freedom Find this value in a table MSB MSW MSB MSW
  • 49. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example– con’t 94.8 9.48 13 3 SSW MSW n K      MSW 6 15-3 0.5 52.43 26.2 1 3 1 SSG MSG K      MSB SSB 10 3-1 5.0 26.2 2.76 9.48 MSG MSW   MSB MSW 5.0 0.5 10.0 F3-1,15-3,0.05 = 3.89 Thus we reject the null hypothesis in our case.
  • 50. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example – ANOVA table Next, we need to fill-in the so-called ANOVA table: Source of variation Sum of squares Deg. of freedom Mean squares F ratio Between groups SSB K-1 MSB MSB/MSW Within groups SSW n-K MSW Total SST n-1
  • 51. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example – ANOVA table (cont.) Next, we need to fill-in the so-called ANOVA table: Source of Variance (SV) Sum of Squares (SS) Degrees of Freedom (df) Mean Squares (MS) F-ratio (F) Critical Value (CV) Reject Decision (Reject?) Between 10 3-1= 2 10/2= 5.0 5.0/0.5= 10.0 3.89 Is F-ratio > CV ? YES Within 6 15-3= 12 6/12= 0.5 Total 16 15-1= 14
  • 52. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES
  • 53. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example– F-tests • In our case, when diet has no effect, differences between diet are entirely due to chance. Numerator and denominator will be similar. F-ratio should have value around 1.00 • When the diet does have an effect then the between-diet differences (numerator) should be larger than chance (denominator). F-ratio should be noticeably larger than 1.00
  • 54. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example Using SPSS • 1. Quick Data Check – We first want to get an idea of what our data basically look like. A nice option for the data at hand is a running a histogram of weight for each of the three groups separately. The screenshot below walks you through doing so.
  • 55. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example Using SPSS The shapes of the frequency distributions are normally distributed
  • 56. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Normality assumption
  • 57. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example 1 Using SPSS (cont.) 2. Running SPSS One-Way ANOVA 1 2 3 4 5
  • 58. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example 1 Using SPSS (cont.) 2. Running SPSS One-Way ANOVA (con’t.) Under button. Tick the checkbox as shown below: 4
  • 59. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example 1 Using SPSS (cont.) 2. Running SPSS One-Way ANOVA (con’t.) Click the button. Tick the Descriptive checkbox in the –Statistics– area, as shown below: 5
  • 60. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example Using SPSS (cont.) 3. SPSS One-Way ANOVA Output – Two sections (boxes) appear in the output: Descriptives – “N” in the first column refers to the number of cases used for calculating the descriptive statistics. These numbers being equal to our sample sizes tells us that there are no missing values on the dependent variable. – The mean weights are the core of our output. After all, our main research question is whether these differ for different diets.
  • 61. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example 1 Using SPSS (cont.) • 3. SPSS One-Way ANOVA Output-con’t – The second section, ANOVA table • The significance level is 0.003 (p <0.01), and, therefore, there is a statistically significant difference in the mean weight gain between the different diets. • which of the specific groups differed? • Find this out in the Multiple Comparisons table which contains the results of post-hoc tests.
  • 62. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Example 1 Using SPSS (cont.) 3. SPSS One-Way ANOVA Output-con’t • The table below, Multiple Comparisons, shows which groups differed from each other. • there is a significant difference in weight gain between NL diet and RC diet (p = 0.002). However, there were no differences between NL diet and ND diet (p=0.105), as well as between RC diet and ND diet (p=0.105)
  • 63. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES In the Literature • First and foremost, report descriptive statistics. • Regarding the significance test,report – the F value; – df1, the numerator degrees of freedom; – df2, the denominator degrees of freedom; – the p value
  • 64. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES In the Literature • There was a statistically significant difference between groups as determined by one-way ANOVA (F(2,12) = 10.0, p<0.01). A Tukey post-hoc test revealed that weight gain was statistically significantly lower in NL diet (M= 2.00, SD= 0.71) compared to RC diet (M= 4.00, SD = 0.71, p <0.01). However, ND diet (M= 3.00, SD= 0.71) did not significantly differ from NL and RC diet. Diet Mean (SD) t statistics (df) p-value Nasi Lemak 2.00 (0.71) 10.0(2,12) 0.003 Roti Canai 4.00 (0.71) Nasi Dagang 3.00 (0.71) Table 1: Type of diet associated with weight gain
  • 65. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Steps in solving One-Way ANOVA post hoc Test Problems - 1 The following is a guide to the decision process for answering homework problems about one-way ANOVA post hoc test problems: Is the dependent variable ordinal or interval level and does independent variable define groups? Incorrect application of a statistic No Compute the skewness, and kurtosis for the variable to test assumption of normality. Yes
  • 66. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Steps in solving One-Way ANOVA post hoc Test Problems - 1 The following is a guide to the decision process for answering homework problems about one-way ANOVA post hoc test problems: Is the dependent variable ordinal or interval level and does independent variable define groups? Incorrect application of a statistic No Compute the skewness, and kurtosis for the variable to test assumption of normality. Yes
  • 67. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Steps in solving One-Way ANOVA post hoc Test Problems - 2 Yes No Assumption of normality satisfied? (skew, kurtosis between -1.0 and + 1.0) No Sample size 10+ in each group to apply Central Limit Theorem? Incorrect application of a statistic Yes Compute the one-way ANOVA with Tukey HSD post hoc option selected
  • 68. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Steps in solving One-Way ANOVA post hoc Test Problems - 3 Is the p-value for the Tukey HSD post hoc test <= alpha? Examine Tukey HSD post hoc test result False Is the p-value for the F ratio test <= alpha? No Yes
  • 69. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES recap • FIVE assumptions – dependent variable should be measured at the interval or ratio level (i.e., they are continuous). – independent variable should consist of two or more categorical, independent groups. – should have independence of observations, which means that there is no relationship between the observations in each group or between the groups themselves. – homoscedasticity: the dependent variable has the same variance within each population; – normality: the dependent variable is Gaussianly distributed within each population;
  • 70. SCHOOL OF NUTRITION AND DIETETICS . FACULTY OF HEALTH SCIENCES Any Questio ns? Conce pts? Equations?