See also, ANOVA, Factorial ANOVA, paired sample ttest repeated_measure_anova
Introduction
Test Circumstances
preexcerise “sugar level”  midterm “sugar level”  postexercise “sugar level” 


a  250  220  150 
b  300  170  120 
c  150  120  120 
d  230  170  160 
e  260  250  250 
level 1  level 2  level 3 
Levels = related groups of the independent variable “time”
treatment condition “naver”  treatment condition “daum”  treatment condition “google” 


a  70  60  80 
b  50  70  50 
c  40  50  60 
d  30  40  60 
e  60  50  40 
level 1  level 2  level 3 
in general, the data should look
time/condition  

T1  T2  T3  
s1  s1  s1  s1 
s2  s2  s2  s2 
s3  s3  s3  s3 
s4  s4  s4  s4 
s5  s5  s5  s5 
..  ..  ..  .. 
sn  sn  sn  sn 
You should discern the above from normal ANOVA situation.
group  treatment  

a  1  70 
b  1  50 
c  1  40 
d  1  30 
e  1  60 
f  2  60 
g  2  70 
h  2  50 
i  2  40 
j  2  50 
k  3  80 
l  3  50 
m  3  60 
n  3  60 
o  3  40 
LOGICS
주>
– Picture about here –
subjects  Pre  1 Month  3 Month  Subject Means 

1  45  50  55  50 
2  42  42  45  43 
3  36  41  43  40 
4  39  35  40  38 
5  51  55  59  55 
6  44  49  56  49.7 
Monthly mean  42.8  45.3  49.97  
Grand mean: 45.9 
We do this (and the below example) with an excel spreadsheet.
We also require fdistribution table to determine the null hypothesis test.
Headache Analysis  

base treatment  average per case (subject, participant) 

ser  w1  w2  w3  w4  w5  = average per case (subject, participant) 
1  21  22  8  6  6  12.6 
2  20  19  10  4  9  12.4 
3  7  5  5  4  5  5.2 
4  25  30  13  12  4  16.8 
5  30  33  10  8  6  17.4 
6  19  27  8  7  4  13 
7  26  16  5  2  5  10.8 
8  13  4  8  1  5  6.2 
9  26  24  14  8  17  17.8 
average per week  20.78  20.00  9.00  5.78  6.78  = 12.47 
Stats  

Mean Total  12.47 
561  
10483  
# of week  5 
# of case (n)  9 
SS_{total} = = 3489.2
SS_{participants} = = 833.6
SS_{weeks} = = 1934.5
SS_{residual}
= SS_{error}
= SS_{total}  SS_{participants}  SS_{weeks}
= 721.1
df_{total} = N  1 = 45  1 = 44
df_{week} = 5  1 = 4 = df_{between}
df_{participants} = 9  1 = 8 = df_{subjects}
df_{error}= (n  1)(k  1) = 8 * 4 = 32 = 40  8 = 32
df_{within} = N  k = 45  5 = 40
시각적 인지점수  

참가자  No visual distraction  Visual distraction  Sound Distraction 
A  47  22  41 
B  57  31  52 
C  38  18  40 
D  45  32  43 