SlideShare a Scribd company logo
VARIABILITY IN RESPONSE
TIME SEQUENCES
Raoul Grasman
University of Amsterdam
INTRODUCTION
Motivation
High variability ADHD
observed oscillatory component specific to ADHD
(Castellanos et al., 2005)
understanding underlying process
RT variability » Introduction
Leth-Steensen et al. (2000) Acta Psych., 104,167-190 Castellanos et al. (2005) Biol. Psychiatry, 57, 1416–1423
VARIABILITY RESULTS
Some results in neuropsychology literature
Number of studies report increased intra individual
variability (IIV) in RT on cognitive tasks in ADHD
More extreem slow responses in ADHD (Leth-
Steensen et al., 2000;Williams et al., 2007)
IIV potential ‘endopheno type’ (Castellanos &
Tannock, 2002)
RT variability » Introduction
Castellanos & Tannock (2002) Nat. Rev. Neurosc., 3, 617–628
VARIABILITY RESULTS
Some results in neuropsychology literature
Autism associated with increased IIV (Geurts et al.,
2004)
Details in findings differ between studies, different
methods used (Geurts et al., 2008)
Not accounted for linear relationship between RT
mean and RT standard deviation (Luce, 1986;
Wagenmakers et al., 2005; 2006)
RT variability » Introduction
Luce (1986) ResponseTimes;Wagenmakers, et al (2005) JMP, 49, 195-204;Wagenmakers & Brown (2007) Psych. Rev., 114, 830–841
METHODS DISCUSSED
1.Variance analysis (not ANOVA)
2.RT histograms: fitting models that parameterize
distributional features (Ex-Gaussian in particular)
3.Sequence characteristics
trends,Time series, autocorrelation & spectral
analysis
4.Modeling cognitive processes
RT variability » Introduction
.
TWO DATA SETS
Airplane Task Data
Squid Task Data
RT variability » Data sets used throughout
Babu & Rao (2004) Sankyā, 66, 63–74
!"#$%"&'
( )%"*+,+)
-,$'./012
*)34
50112
*)34
51112
*)34
AIRPLANE TASK DATA
Children (age 9.2 ± 2)
5 groups:ADHD (53),ASD
+ADHD (32),Tourette (21),
HF Autism (25), Controls
(85)
64 practice trials of 2AFC
task
Regular Inter Trial Interval
(ITI)
RT variability » Data sets used throughout » Airplane data
Geurts et al. (2008), Neuropsychologia, 46, 3030–3041
50112
*)34
51112
*)34
!"#$%"&'
( )%"*+,+)
*$).6712
*)34
/82
*)34
*$#269112
*)34
SQUID TASK DATA
Students (age 21 ± 5)
2 groups: different test
locations
150 trials of 2AFC task with
3 difficulty levels
Irregular Inter Trial Interval
(ITI): determined by
response of participant
RT variability » Data sets used throughout » Squid data
.
METHODS DISCUSSED
1.Variance analysis (not ANOVA)
2.RT histograms: fitting models that parametrise
distributional features (Ex-Gaussian in particular)
3.Sequence characteristics
trends,Time series, autocorrelation & spectral
analysis
4.Modeling cognitive processes
.
RT variability » Intra-individual variance
VARIANCE ANALYSIS
Not ANOVA (just to make sure)
Assessment of between group differences in intra-
individual variability (IIV)
looking at intra-individual standard deviations (ISD)
RT variability » Intra-individual variance
Williams et al. (2005) Neuropsychologia, 19, 88–96;Williams et al. (2007) JCENP, 29, 277-289
Response time histograms
RT
Density
500 1000 1500
0.00000.00050.00100.00150.00200.0025
TD Controls
HFA
Example intra-
individual variances
RT histograms HFA
vs.TD controls
TD children more
skewed
Clearly different
RT variability » Intra-individual variance » Example
.
VARIANCE ANALYSIS
Log transformed RT histograms
RT
Density
5.0 5.5 6.0 6.5 7.0 7.5
0.00.20.40.60.81.01.2
TD Controls
HFA
Example intra-
individual variances
Different means
t-test (transformed
and untransformed)
highly significant
RT variability » Intra-individual variance » Example
Williams et al. (2005) Neuropsych., 19, 88–96
VARIANCE ANALYSIS
Log transformed VRT histograms
RT
Density
4.0 4.5 5.0 5.5
0.00.51.01.5
TD Controls
HFA
Example intra-
individual variances
Airplane data
Different ISD’s?
Rather obvious,
confirmed by t-test
(t=-4.1, df=52.7, p
< .001)
RT variability » Intra-individual variance » Example
.
VARIANCE ANALYSIS
VARIANCE ANALYSIS
What is the origin of larger variability?
May be in upper tail or lower tail
RT variability » Intra-individual variance
Williams et al. (2007) JCENP, 29, 277-289
VARIANCE ANALYSIS
What is the origin of larger variability?
May be in upper tail or lower tail
Williams et al. (2007) compare ISDs of 25% highest
RTs and of 25% lowest RTs
HFA > TDC for upper 25% (p < .002, eff. size =.63)
HFA not different from TDC for lower 25% ISDs
RT variability » Intra-individual variance
Williams et al. (2007) JCENP, 29, 277-289
METHODS DISCUSSED
1.Variance analysis (not ANOVA)
2.RT histograms: fitting models that parametrise
distributional features (Ex-Gaussian in particular)
3.Sequence characteristics
trends,Time series, autocorrelation & spectral
analysis
4.Modeling cognitive processes
.
RT variability » Histogram Modeling
MODELING
fit informative density function to RTs histogram
a. k. a. Histrogram fitting
Parametric density functions proposed for RTs
Wald, Log-Normal, Ex-Wald, Ex-Gauss, Gamma,
Weibull, etc.
All long tailed, all associated with waiting times
RT variability » Histogram Modeling » Introduction
Luce (1986) ResponseTimes; van Zandt et al. (2000) PB&R, 7, 424-265; Heathcote et al. (1991) Psych. Bull., 109, 340–347
MODELING
Ex-Gauss (McGill, 1963)
Ex-Gauss r.v. is sum of two independent random
variables (density is convolution)
RT = D + T, D ~ N(μ,σ2), T ~ Exp(λ)
parameters: μ, σ2, λ (sometimes μ, σ2, τ =1/λ)
λ or τ measures ‘fatness’ of the upper tail
RT variability » Histogram Modeling » Ex-Gauss
McGill (1963) Handbook of Math. Psych., Vol.1, pp. 309-360; Heathcote et al. (1991)
Histogram of Ex−Gauss simulated RTs
RT
Density
200 400 600 800
0.0000.0010.0020.0030.0040.0050.006
MODELING
Example simulated RTs
with Ex-Gauss
μ = 304
σ = 34 (σ2 = 1156)
τ = 83
Often very good for
RTs
RT variability » Histogram Modeling » Ex-Gauss » Example
MODELING
How to fit this to data? How to get estimates?
Method of Moments
Maximum Likelihood
Chi-square fitting, quantiles fitting, CDF fitting,
‘Quantile Maximum Likelihood’, Bayesian, and more
Which to choose?
RT variability » Histogram Modeling » Estimation
MODELING
Method of Moments
Based on sample moments
Assumes RTs of different trials are independent
Often easy to calculate
Notoriously unstable if , can result in negative estimates!
E.g., for Ex-Gauss the parameter estimates are
τ = (m3/2)1/3 μ = m1-τ σ2 = m2 -τ2
RT variability » Histogram Modeling » Estimation » Method of Moments
mk = 1
n
n
i=1(xi − x)k
k > 2
MODELING
Maximum likelihood
Based on likelihood of data under different parameter values
Assumes RTs from different trials are independent
Many optimal properties (e.g., most precise)
Often not so easy to determine (computer work!)
Can be unstable (outliers, landscape, numerically)
RT variability » Histogram Modeling » Estimation » Maximum Likelihood
MODELING
Empirical quantiles based methods, e.g.:
Chi-square
QMLE, QMPE
More stable (outliers, numerically)
Inefficient (compared to ML)
Little statistical theory (can we rely on it?)
RT variability » Histogram Modeling » Estimation » Empirical quantiles based
Brown & Heathcote (2003) QMLE, BRMI&C,35, 485–492; Heathcote et al. (2004) QMPE, BRMI&C, 36, 277–290
MODELING
Fitting RT distributions can be done in ‘programmable
environments’
R/S-PLUS, Matlab, Excel, Calc, Gauss,WinBUGS, Maple, etc
SPSS more problematic
But: Ex-Gauss never implemented (nor Wald, Ex-Wald, diffusion)
Special purpose programs made available on internet
DISFIT, qmpe, RTSYS, PASTIS
RT variability » Histogram Modeling » Estimation » Software
Dolan et al. (2002), Heathcote et al. (2003), Heathcote (1996), Cousineau et al. (1997)
Histogram of Squid data (1 subject)
RT
Density
200 400 600 800 1000 1200
0.0000.0020.004
MODELING
Example fit to Squid
task data
How do we know it’s
‘correct’?
RT variability » Histogram Modeling » Estimation » Example
MODELING
Assessment of fit (apart from match with histogram)
Socalled ‘chi-square’ method sometimes in Ψ
literature (e.g., van Zandt et al., 2000)
Sometimes Kolmogorov-Smirnov test suggested
But: parameters are estimated
Bootstrap of e.g., KS-statistic (Babu & Rao, 2004)
Babu & Rao (2004) Sankyā, 66, 63–74
RT variability » Histogram Modeling » Estimation » Diagnostics
MODELING
Assumptions (independent identically distributed)
met?
Difficult to test for in general
Test based on E(XnYm) = E(Xn)E(Ym) X Y
In particular E(XY) = E(X)E(Y) Cov(X,Y) = 0
Most likely sequential correlations autocorrelation
.
RT variability » Histogram Modeling » Estimation » Diagnostics
0 5 10 15
−0.20.20.61.0
Lag
ACF
Airplane Data . subject 20088 (HFA group)
0 5 10 15 20
−0.20.20.61.0
Lag
ACF
Squid Data . subject 40002 (group 1)
MODELING
Autocorrelation plot
Statistical test: (Box-
Pierce), Ljung-Box
Airplane data
χ²= 8.76, df=1, p=.003
Squid data
χ²= 1.02, df=1, p=.31
Ljung & Box, Biometrika, 65, 297–303
RT variability » Histogram Modeling » Diagnostics » Example
METHODS DISCUSSED
1.Variance analysis (not ANOVA)
2.RT histograms: fitting models that parametrise
distributional features (Ex-Gaussian in particular)
3.Sequence characteristics
trends,Time series, autocorrelation & spectral
analysis
4.Modeling cognitive processes
.
RT variability » Time series
TIME SERIES
Autocorrelation shows
sequential order
matters
RT sequential effects
(e.g. post error
slowing)
design induced
spontaneous
Luce (1986) ResponseTimes
RT variability » Time series
400600800
117
300400500600
118
300400500600700
119
4006008001000
0 10 20 30 40 50 60
120
Trial
250350450550
56
300500700
57
200300400500
58
250350450
0 10 20 30 40 50 60
59
Trial
Airplane − HFA & TD Controls
TIME SERIES
How to describe it?
All random but group
differences
Time series (and the
art of analysis)
Brillinger (1975) Time series: Data analysis and theory, Brockwell & Davis (1991) Time series:Theory and methods
RT variability » Time series
Airplane − HFA & TD Controls
Trial
0 10 20 30 40 50 60
20040060080010001200
HFA
TDC
TIME SERIES
Time series descriptives
Trends
Seasonal
Irregular fluctuations
Stationary time series
Non stationary time series
Brillinger (1975) Time series: Data analysis and theory, Brockwell & Davis (1991) Time series:Theory and methods
RT variability » Time series
TIME SERIES
Time series descriptives
Trends
Seasonal
Irregular fluctuations
Stationary time series
Non stationary time series
Brillinger (1975) Time series: Data analysis and theory, Brockwell & Davis (1991) Time series:Theory and methods
RT variability » Time series
TIME SERIES
Brillinger (1975) Time series: Data analysis and theory, Brockwell & Davis (1991) Time series:Theory and methods
RT variability » Time series
Time series descriptives
Trends
Seasonal
Irregular fluctuations
Stationary time series
Non stationary time series (detrending, differencing)
TIME SERIES
(Weakly) Stationary time series
E(Yt) is constant
E(YtYt-k) is function of k only
Characterization: Autocovariance function
E(YtYt-k) - E(Yt)2 or Power spectral density
Brillinger (1975) Time series: Data analysis and theory, Brockwell & Davis (1991) Time series:Theory and methods
RT variability » Time series » Autocovariance function
TIME SERIES
Autocorrelation
functions Airplane data
Differs from one
individual to another
Chatfield (1996) The Analysis of Time Series
RT variability » Time series » Autocovariance function » Example
0 5 10 15
−0.20.20.61.0
Lag
117(HFA)
0 5 10 15
−0.20.20.61.0
Lag
118(HFA)
Series bla[, i]
0 5 10 15
−0.20.20.61.0 Lag
119(HFA)
Series bla[, i]
0 5 10 15
−0.20.20.61.0
120(HFA)
Series bla[, i]
0 5 10 15
−0.20.20.61.0
Lag
56(TDC)
0 5 10 15
−0.20.20.61.0
Lag
57(TDC)
Series bla[, i]
0 5 10 15
−0.20.20.61.0
Lag
58(TDC)
Series bla[, i]
0 5 10 15
−0.20.20.61.0
59(TDC)
Series bla[, i]
TIME SERIES
Autocorrelation
functions Airplane data
Mean autocorrelation
functions: no obvious
difference
Geurts et al. (2008)
0 5 10 15
0.00.20.40.60.81.0
Lag
ACF
Airplane data - mean acf HFA group
0 5 10 15
0.00.20.40.60.81.0
ACF
Airplane data - mean acf TDC group
RT variability » Time series » Autocovariance function » Example
TIME SERIES
How to interpret this
correlation pattern?
This case ‘easy’: Large
RT on one trial
predicts large RT on
next (but R2 < 0.03)
Alternative: oscillatory
components
Chatfield (1996)
0 5 10 15
0.00.20.40.60.81.0
Lag
ACF
Airplane data - mean acf HFA group
0 5 10 15
0.00.20.40.60.81.0
ACF
Airplane data - mean acf TDC group
RT variability » Time series » Autocovariance function » Example
METHODS DISCUSSED
1.Variance analysis (not ANOVA)
2.RT histograms: fitting models that parametrise
distributional features (Ex-Gaussian in particular)
3.Sequence characteristics
trends,Time series, autocorrelation & spectral
analysis
4.Modeling cognitive processes
.
RT variability » Time series
SPECTRAL ANALYSIS
heuristic:‘regression’
of yt, t = 0, …,T-1, on
cosines and sines
yt = ∑ αk cos(kωTt) +
∑ βk sin(kωTt), k=1...K
ωT chosen so that α̂k
and α̂m will be
independent if k ≠ m
Brillinger (1975) Time series: data analysis and theory, Chatfield (1996)
RT variability » Time series » Spectral analysis
SPECTRAL ANALYSIS
not ‘regression’ in true
sense if K=T/2:
estimated αk, βk,
k=1...K are 2K=T coef.
transformation ! (DFT)
we always take K=T/2
Chatfield (1996) The analysis of time series
RT variability » Time series » Spectral analysis
SPECTRAL ANALYSIS
assumptions:
samples regularly
spaced
highest frequency < 2x
sampling frequency
orthogonal to time
(first can be relaxed)
Chatfield (1996) The analysis of time series
RT variability » Time series » Spectral analysis
●
●
●
●
●●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●●
●
●●
●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
SPECTRAL ANALYSIS
doing the ‘regression’
gives amplitudes
Rk = √(αk
2+βk
2) for
every k = 1, ..., K
Rk
2 explain trial-to-trial
variance in RT series
Chatfield (1996) The analysis of time series
RT variability » Time series » Spectral analysis
●
●
●
●
●●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●●
●
●●
●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
1 2 3 4 5 6 7 8 9 10
cycles
Rk
SPECTRAL ANALYSIS
Rk
2 are closely related
to eigenvalues in PCA
∑Rk
2 Var(yt), variance
decomposition
Plot of Rk
2 is called
periodogram
Chatfield (1996) The analysis of time series
RT variability » Time series » Spectral analysis
●
●
●
●
●●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●●
●
●●
●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
1 2 3 4 5 6 7 8 9 10
cycles
Rk
SPECTRAL ANALYSIS
What about in
between frequencies?
Lets take 2T trials in
stead of T and see
what happens
K becomes (2T)/2 = T,
so T amplitudes Rk
ωT becomes ωT/2
Brillinger (1975), Chatfield (1996)
RT variability » Time series » Spectral analysis
●
●
●
●
●●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●●
●
●●
●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
1 2 3 4 5 6 7 8 9 10
cycles
Rk
SPECTRAL ANALYSIS
Lets take 2T trials in
stead of T and see
what happens
K becomes (2T)/2 = T,
so T amplitudes Rk
ωT becomes ωT/2
Rk in between the
previous
Brillinger (1975), Chatfield (1996)
RT variability » Time series » Spectral analysis
●
●
●
●
●●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●●
●
●●
●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
1 2 3 4 5 6 7 8 9 10
cycles
Rk
SPECTRAL ANALYSIS
Double number of
trials again
What if T →∞ (hence
K →∞)?
Brillinger (1975), Chatfield (1996)
RT variability » Time series » Spectral analysis
●
●
●
●
●●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●●
●
●●
●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
1 2 3 4 5 6 7 8 9 10
cycles
Rk
SPECTRAL ANALYSIS
Double number of
trials again
What if T →∞ (hence
K →∞)?
Space in between gets
filled → continuous
amplitude spectrum
Brillinger (1975), Chatfield (1996)
RT variability » Time series » Spectral analysis
●
●
●
●
●●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●●
●
●●
●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
1 2 3 4 5 6 7 8 9 10
cycles
Rk
SPECTRAL ANALYSIS
Every indeterministic
discrete stationary time
series has continuous
amplitude spectrum
Our periodogram of
the ‘regression’ on
cosines and sines
estimates this
continuous function
Brillinger (1975), Chatfield (1996)
RT variability » Time series » Spectral analysis
●
●
●
●
●●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●●
●
●●
●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
1 2 3 4 5 6 7 8 9 10
cycles
Rk
SPECTRAL ANALYSIS
It can be shown that
Rk
2 k =1, ..., K, are
regression coefficients
of autocovariance on
cosines
Makes power
spectrum and
autocovariance two
sides of same coin
Brillinger (1975), Chatfield (1996)
RT variability » Time series » Spectral analysis
●
●
●
●
●●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●●
●
●●
●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
1 2 3 4 5 6 7 8 9 10
cycles
Rk
Periodogram for HFA
and TDC individuals
Difficult to see any
pattern
Except: axes HFA
extends to much
higher values
Chatfield (1996)
0.0 0.2 0.4
0100000
frequency
117(HFA)
bandwidth = 0.00481
0.0 0.2 0.4
015000
frequency
118(HFA)
bandwidth = 0.00481
0.0 0.2 0.4
020000
frequency
119(HFA)
bandwidth = 0.00481
0.0 0.2 0.4
0e+008e+04
frequency
120(HFA)
0.0 0.2 0.4
06000
frequency
56(TDC)
bandwidth = 0.00481
0.0 0.2 0.4
040000
frequency
57(TDC)
bandwidth = 0.00481
0.0 0.2 0.4
030000
frequency
58(TDC)
bandwidth = 0.00481
0.0 0.2 0.4
015000
frequency
59(TDC)
RT variability » Time series » Spectral analysis » Example
SPECTRAL ANALYSIS
SPECTRAL ANALYSIS
estimated Rk
2 ~ scaled
χ2(2), no mater how
many trials T
estimated Rk
2 are very
variable and bad
estimators
(inconsistent) of
spectrum
Brillinger (1975), Chatfield (1996)
RT variability » Time series » Spectral analysis
●
●
●
●
●●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●●
●
●●
●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
1 2 3 4 5 6 7 8 9 10
cycles
Rk
SPECTRAL ANALYSIS
Solution is some form
of averaging Rk
2’s of
consecutive cycles (i.e.
periodogram smoothing)
at expense of bias
Further problem:
leakage due to finite T
(alleviated by tapering)
Brillinger (1975), Chatfield (1996)
RT variability » Time series » Spectral analysis
●
●
●
●
●●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●
●
●
●
●●●
●
●●
●
●
●
●●
●
●
●
●
●●
●
●
●●
●
●
●
●
●●
1 2 3 4 5 6 7 8 9 10
cycles
Rk
Smoothed
periodogram for HFA
and TDC individuals
7 consecutive cycle
average
Chatfield (1996)
0.0 0.2 0.4
060000
frequency
117(HFA)
bandwidth = 0.0127
0.0 0.2 0.4
5000
frequency
118(HFA)
bandwidth = 0.0127
0.0 0.2 0.4
500025000
frequency
119(HFA)
bandwidth = 0.0127
0.0 0.2 0.4
1000060000
frequency
120(HFA)
0.0 0.2 0.4
20006000
frequency
56(TDC)
bandwidth = 0.0127
0.0 0.2 0.4
1000040000
frequency
57(TDC)
bandwidth = 0.0127
0.0 0.2 0.4
500020000
frequency
58(TDC)
bandwidth = 0.0127
0.0 0.2 0.4
200010000
frequency
59(TDC)
RT variability » Time series » Spectral analysis » Example
SPECTRAL ANALYSIS
Smoothed
periodogram for HFA
and TDC individuals
15 consecutive cycle
average
Chatfield (1996)
0.0 0.2 0.4
1000035000
frequency
117(HFA)
bandwidth = 0.0300
0.0 0.2 0.4
200010000
frequency
118(HFA)
bandwidth = 0.0300
0.0 0.2 0.4
800014000
frequency
119(HFA)
bandwidth = 0.0300
0.0 0.2 0.4
1000040000
frequency
120(HFA)
0.0 0.2 0.4
25004500
frequency
56(TDC)
bandwidth = 0.0300
0.0 0.2 0.4
500020000
frequency
57(TDC)
bandwidth = 0.0300
0.0 0.2 0.4
200012000
frequency
58(TDC)
bandwidth = 0.0300
0.0 0.2 0.4
30007000
frequency
59(TDC)
RT variability » Time series » Spectral analysis » Example
SPECTRAL ANALYSIS
Smoothed
periodogram for HFA
and TDC individuals
31 consecutive cycle
average
gross features change
→ perhaps too much
smoothing
Chatfield (1996)
0.0 0.2 0.4
1500035000
frequency
117(HFA)
bandwidth = 0.0679
0.0 0.2 0.4
30006000
frequency
118(HFA)
bandwidth = 0.0679
0.0 0.2 0.4
900012000
frequency
119(HFA)
bandwidth = 0.0679
0.0 0.2 0.4
1500035000
frequency
120(HFA)
0.0 0.2 0.4
30004000
frequency
56(TDC)
bandwidth = 0.0679
0.0 0.2 0.4
500020000
frequency
57(TDC)
bandwidth = 0.0679
0.0 0.2 0.4
400012000
frequency
58(TDC)
bandwidth = 0.0679
0.0 0.2 0.4
40007000
frequency
59(TDC)
RT variability » Time series » Spectral analysis » Example
SPECTRAL ANALYSIS
Group inference:
Average smoothed
periodograms
Assumption: within
groups spectra are the
same (can be relaxed)
Chatfield (1996)
0.0 0.1 0.2 0.3 0.4 0.5
20000300004000050000600007000080000
Mean spectrum HFA and TD Control groups
frequency
spectrum
HFA
TDC
RT variability » Time series » Spectral analysis » Example
SPECTRAL ANALYSIS
SPECTRAL ANALYSIS
What about window carpentry?
Can help to reduce ‘spectral leakage’; is art
however, most software use cosine bell 10% tapers
What about ‘zero padding’?
only done for computational speed, suggests
increase spectral resolution (is not the case!)
Sometimes remarkable preprocessing (escapes me)
Johnson et al. (2007); Castellanos et al. (2005)
RT variability » Time series » Spectral analysis
Press et al. (2002) Numerical Recipes
0.0 0.1 0.2 0.3 0.4 0.5
050001000015000
frequency
spectrum
Smoothed Periodogram
Zero padded sequence to length 256
bandwidth = 0.00298
RT variability » Time series » Spectral analysis » Example
SPECTRAL ANALYSIS
0.0 0.1 0.2 0.3 0.4 0.5
010000200003000040000
frequency
spectrum
Smoothed Periodogram
original RT sequence (60 trials)
bandwidth = 0.0129
SPECTRAL ANALYSIS
But ... were all assumptions satisfied?
RT sequences stationary? only by eye balling (Dickey-
Fuller test)
samples regularly spaced? Airplane data:Yes
Sampling frequency > 2x highest frequency? Eh...?
RT measurements orthogonal to time? Nope...
Brillinger (1975)
RT variability » Time series » Spectral analysis
SPECTRAL ANALYSIS
non stationary RT sequences? detrending,
differencing, STFT, wavelets, Haar-transform (?)
irregular spaced samples? adapted DFT, splines, Haar-
transform (?)
Sampling frequency < 2x highest frequency? Spectral
folding may be minor problem, focus on trend, Haar(?)
RTs not orthogonal to time? point process, Haar-
transform (?)
Koopman (1995),Torrence & Compo (1998) Bul. Meteor. Soc. , 79, 61–78
RT variability » Time series » Spectral analysis
METHODS DISCUSSED
1.Variance analysis (not ANOVA)
2.RT histograms: fitting models that parametrise
distributional features (Ex-Gaussian in particular)
3.Sequence characteristics
trends,Time series, autocorrelation & spectral
analysis
4.Modeling cognitive processes
.
RT variability » Time series
TIME SERIES MODELS
General linear stationary time series model:
yt = zt + θ1 zt-1 + θ2 zt-2 + θ3 zt-3 + θ4 zt-4 + ⋅⋅⋅
zt, zt-1, zt-2, ..., independent and identically distributed
with variance σ2
that is, the series is “filtered noise”
Very broad class of models, and in most useful cases
equivalently expressed in finite numbers of
parameters
Box & Jenkins (1970) Time Series: Forcasting and control, Brockwell & Davis, Time series theories & methods
RT variability » Time series » Modeling
TIME SERIES MODELS
moving average MA(q)
yt = zt + θ1zt-1 + θ2zt-2 + ⋅⋅⋅ + θqzt-q = zt + ∑θizt-i
autoregressive AR(p)
yt = ϕ1yt-1 + ϕ2yt-2 +⋅⋅⋅+ ϕpyt-p + zt = ∑ϕp yt-p + zt
ARMA(p,q)
yt - ∑ϕp yt-p = zt + ∑θizt-i
Box & Jenkins (1970) Time Series: Forcasting and control; Hamaker, Dolan & Molenaar, MBR, 40, 207–233
RT variability » Time series » Modeling
Chatfield (1996)
MA((1)) θθ1 == 0.7
Time
yt
0 20 40 60 80 100
−3−2−10123
AR((1)) φφ1 == 0.7
Time
yt
0 20 40 60 80 100
−2−10123
0 5 10 15 20
−0.20.00.20.40.60.81.0
Lag
ACF
MA((1)) θθ1 == 0.7
0 5 10 15 20
−0.20.00.20.40.60.81.0
Lag
ACF
AR((1)) φφ1 == 0.7
TIME SERIES MODELS
RT variability » Time series » Modeling » Example
Chatfield (1996)
MA((1)) θθ1 == 0.7
Time
yt
0 20 40 60 80 100
−3−2−10123
AR((1)) φφ1 == 0.7
Time
yt
0 20 40 60 80 100
−2−10123
0.0 0.1 0.2 0.3 0.4 0.5
0.00.51.01.52.02.53.0
frequency
spectrum
MA((1)) θθ1 == 0.7
bandwidth = 0.0180
smoothed periodogram
theoretical spectrum
0.0 0.1 0.2 0.3 0.4 0.5
0246810
frequency
spectrum
AR((1)) φφ1 == 0.7
bandwidth = 0.0180
smoothed periodogram
theoretical spectrum
TIME SERIES MODELS
RT variability » Time series » Modeling » Example
TIME SERIES MODELS
Autoregressive AR(p) can be cast into MA(∞) form
yt = ϕ yt-1 + zt = ϕ (ϕ yt-2 + zt-1) + zt
= ϕ2yt-2 + ϕzt-1 + zt = etc.
= zt + ϕzt-1 + ϕ2zt-2 + ϕ3zt-3 +⋅⋅⋅
requires convergence for stationarity, i.e., |ϕ|<1
More generally, the (complex) solutions for B of
1 - ϕ1B + ϕ2B2 +⋅⋅⋅+ ϕpBp = 0 must satisfy |B|>1
Box & Jenkins (1970), Brockwell & Davis (1991), Chatfield (1995)
RT variability » Time series » Modeling
TIME SERIES MODELS
While not strictly necessary, for technical reasons
MA(q) coefficients are usually restricted such that it
can be cast as an AR(∞) (MA is then called invertible)
ARMA(p, q) satisfying these conditions is stationary
and can be cast into AR(∞) or MA(∞) form
Therefore ARMA(p,q) suits most observed stationary
time series
Box & Jenkins (1970), Brockwell & Davis (1991), Chatfield (1995)
RT variability » Time series » Modeling
Chatfield (1996)
ARMA((1,, 1)) φφ1 == 0.7 θθ1 == 0.7
Time
arima.sim(list(ar=0.7,ma=0.7),100)
0 20 40 60 80 100
−6−4−202
0 5 10 15 20
−0.40.00.20.40.60.81.0
Lag
ACF
ARMA((1,, 1)) φφ1 == 0.7 θθ1 == 0.7
0.0 0.1 0.2 0.3 0.4 0.5
051015202530
frequency
spectrum
ARMA((1,, 1)) φφ1 == 0.7 θθ1 == 0.7
bandwidth = 0.00764
TIME SERIES MODELS
RT variability » Time series » Modeling » Example
TIME SERIES MODELS
How to fit an ARMA(p, q)?
Fitting time series models is an art, but necessary
steps:
choose model (i.e., specify p and q)
fit using least squares or ML (optimization with or
without Kalman filter), many programs: R, SPSS, etc.
evaluate model fit
Box & Jenkins (1970), Brockwell & Davis (1991), Chatfield (1995)
RT variability » Time series » Modeling
HFA individual
Time
RT
0 10 20 30 40 50 60
300350400450500550600
TIME SERIES MODELS
Choosing a model
(i.e., p and q)
For q some guidance
from ACF
For p some guidance
from partial
autocorrelation
Box & Jenkins (1970), Brockwell & Davis (1991), Chatfield (1995)
RT variability » Time series » Modeling » Example
0 5 10 15
−0.20.00.20.40.60.81.0
Lag
ACF
HFA individual
TIME SERIES MODELS
Choosing a model
(i.e., p and q)
For q some guidance
from ACF → 0, 1, 2?
For p some guidance
from partial
autocorrelation
Box & Jenkins (1970), Brockwell & Davis (1991), Chatfield (1995)
RT variability » Time series » Modeling » Example
5 10 15
−0.3−0.2−0.10.00.10.2
Lag
PartialACF
HFA individual
TIME SERIES MODELS
Choosing a model
(i.e., p and q)
For q some guidance
from ACF → 0, 1?
For p some guidance
from partial
autocorrelation → 2
Box & Jenkins (1970), Brockwell & Davis (1991), Chatfield (1995)
RT variability » Time series » Modeling » Example
0.0 0.1 0.2 0.3 0.4 0.5
20004000600080001000012000
frequency
spectrum
HFA individual
bandwidth = 0.0300
TIME SERIES MODELS
Fit AR(2)
AR(2) fit
ϕ1 = 0.03,
ϕ2 = -0.33
theoretical and
smoothed
periodogram
Box & Jenkins (1970), Brockwell & Davis (1991), Chatfield (1995)
RT variability » Time series » Modeling » Example
Standardized Residuals
Time
0 10 20 30 40 50 60
−2−1012
0 5 10 15
−0.20.20.61.0
Lag
ACF
ACF of Residuals
●
●
●
● ● ●
●
●
●
●
2 4 6 8 10
0.00.40.8
p values for Ljung−Box statistic
lag
pvalue
TIME SERIES MODELS
Evaluate model fit
Analyse residuals
standardized
residuals,ACF
residuals, Ljung-Box
test
Box & Jenkins (1970), Brockwell & Davis (1991), Chatfield (1995)
RT variability » Time series » Modeling » Example
0.0 0.1 0.2 0.3 0.4 0.5
050001000015000200002500030000
frequency
spectrum
HFA individual
bandwidth = 0.0300
TIME SERIES MODELS
Modern approach: use
fit indices (AIC, BIC,
etc) to select model
AIC yields ARMA(2,1)
for differenced series:
ϕ1 = 0.02,
ϕ2 = -0.41,
θ1 = -0.91
due to slight trend?
Brockwell & Davis (1991), Chatfield (1995)
RT variability » Time series » Modeling » Example
TIME SERIES MODELS
Most fundamental:ARMA(p, q)
Generalizations:ARIMA(p, d, q),ARFIMA, NARMA, etc
Others: (G)ARCH & family,TAR, MS, point processes
Warning: models are developed for forecasting not
necessarily interpretation (see however Hamaker &
Dolan)
Box & Jenkins (1970), Brockwell & Davis (1991), Chatfield (1996); Hamaker & Dolan (in press)
RT variability » Time series » Modeling
TIME SERIES MODELS
Assumptions in time series models are basically the
same as in spectral analysis:
stationarity
regular sample spacing (can be relaxed, but difficult)
orthogonal to time axis (point process more
natural)
.
RT variability » Time series » Modeling
TIME SERIES MODELS
Both spectral analysis and time series models assume
measurements orthogonal to time axis
RTs are not, they are parallel.What can be done?
Come up with a model for how RTs are generated
One possibility: Postulate a latent process ξt that
determines RTs:
RTt ~ fRT(ξt), e.g., E(RTt) = ξt, requires analysis
.
RT variability » Time series
METHODS DISCUSSED
1.Variance analysis (not ANOVA)
2.RT histograms: fitting models that parametrise
distributional features (Ex-Gaussian in particular)
3.Sequence characteristics
trends,Time series, autocorrelation & spectral
analysis
4.Modeling cognitive processes
RT variability » Introduction
.
PROCESS UNDERLYING RT
Can we understand how RT distributions come
about?
Mathematical psychology: modeling information
processing in the brain
Models should predict RT characteristics (moments,
histograms, serial correlation, etc., and correctness)
.
RT variability » Process modeling
PROCESS UNDERLYING RT
Ex-Gauss purely descriptive
Most important models
Random walks models (discrete time)
Diffusion models (continuous time)
Race models
Luce (1986) Responce times
RT variability » Process modeling
PROCESS UNDERLYING RT
Ratcliff’s diffusion model
‘Special purpose model’ for 2AFC tasks
Smith (1960), Ratcliff (1978)
RT variability » Process modeling » Diffusion models
Two alternative response time tasks are usually
analyzed by considering mean response time (MRT)
and %error separately
Speed-accuracy trade-off
PROCESS UNDERLYING RT
RT variability » Process modeling » Diffusion models
X(t)
0
z
a
0 340 680 1020 1360 1700
Diffusion model
Time (msec)
{
!er
"
Information accumulation as continuous random walk
Ratcliff (1978) Psych Rev
PROCESS UNDERLYING RT
RT variability » Process modeling » Diffusion models
X(t)
0
z
a
0 340 680 1020 1360 1700
Diffusion model
Time (msec)
{
!er
"
Information accumulation as continuous random walk
Correct
response
Ratcliff (1978) Psych Rev
PROCESS UNDERLYING RT
RT variability » Process modeling » Diffusion models
X(t)
0
z
a
0 340 680 1020 1360 1700
Diffusion model
Time (msec)
{
!er
"
Information accumulation as continuous random walk
Correct
response
Error
response
Ratcliff (1978) Psych Rev
PROCESS UNDERLYING RT
RT variability » Process modeling » Diffusion models
X(t)
0
z
a
0 340 680 1020 1360 1700
Diffusion model
Time (msec)
{
!er
"
Information accumulation as continuous random walk
Boundary
Correct
response
Error
response
Ratcliff (1978) Psych Rev
PROCESS UNDERLYING RT
RT variability » Process modeling » Diffusion models
X(t)
0
z
a
0 340 680 1020 1360 1700
Diffusion model
Time (msec)
{
!er
"
Information accumulation as continuous random walk
Starting
point
Correct
response
Error
response
Ratcliff (1978) Psych Rev
PROCESS UNDERLYING RT
RT variability » Process modeling » Diffusion models
X(t)
0
z
a
0 340 680 1020 1360 1700
Diffusion model
Time (msec)
{
!er
"
Information accumulation as continuous random walk
Correct
response
Error
response
Ratcliff (1978) Psych Rev
Drift
PROCESS UNDERLYING RT
RT variability » Process modeling » Diffusion models
X(t)
0
z
a
0 340 680 1020 1360 1700
Diffusion model
Time (msec)
{
!er
"
Information accumulation as continuous random walk
Correct
response
Error
response
Ratcliff (1978) Psych Rev
Non-
decision
PROCESS UNDERLYING RT
RT variability » Process modeling » Diffusion models
X(t)
0
z
a
0 340 680 1020 1360 1700
Diffusion model
Time (msec)
{
!er
"
Information accumulation as continuous random walk
Correct
response
Error
response
Ratcliff (1978) Psych Rev
:= ν + N(0, η2
)
PROCESS UNDERLYING RT
RT variability » Process modeling » Diffusion models
X(t)
0
z
a
0 340 680 1020 1360 1700
Diffusion model
Time (msec)
{
!er
"
Information accumulation as continuous random walk
Correct
response
Error
response
Ratcliff (1978) Psych Rev
:= ν + N(0, η2
):= z + Unif(−ρz, ρz)
PROCESS UNDERLYING RT
RT variability » Process modeling » Diffusion models
X(t)
0
z
a
0 340 680 1020 1360 1700
Diffusion model
Time (msec)
{
!er
"
Information accumulation as continuous random walk
Correct
response
Error
response
Ratcliff (1978) Psych Rev
:= ν + N(0, η2
)
:= τer + Unif(0, ρτ )
:= z + Unif(−ρz, ρz)
PROCESS UNDERLYING RT
RT variability » Process modeling » Diffusion models
X(t)
0
z
a
0 340 680 1020 1360 1700
Diffusion model
Time (msec)
{
!er
"
Information accumulation as continuous random walk
Correct
response
Error
response
Ratcliff (1978) Psych Rev
RT = Exit Time + τer
PROCESS UNDERLYING RT
RT variability » Process modeling » Diffusion models
PROCESS UNDERLYING RT
RT variability » Process modeling » Diffusion models
Parameter estimation by
Maximum Likelihood
Weighted Least Squares
Chi-square estimation
PROCESS UNDERLYING RT
RT variability » Process modeling » Diffusion models
Parameter estimation by
Maximum Likelihood
Weighted Least Squares
Chi-square estimation
Difficulties with estimation
PROCESS UNDERLYING RT
RT variability » Process modeling » Diffusion models
Parameter estimation by
Maximum Likelihood
Weighted Least Squares
Chi-square estimation
Difficulties with estimation
Long computation times
Evaluation of density involves numerical integration
PROCESS UNDERLYING RT
RT variability » Process modeling » Diffusion models
EZ-DIFFUSION ESSENTIALS
Chisquare: FastDM (Voss et al.),
ML, QML: DMat (MATLABVandekerckhove et al.)
Method of Moments estimator simplified models
EZ diffusion model estimates (Wagenmaker et al.)
EZ2 diffusion model estimates (Grasman et al.)
Vandekerkhove et al. (2007) BRM;Voss et al., (2007) BRM;Wagenmakers et al. (2007) PB&R, 14, 3-22, Grasman (2008) JMP, accepted
RTVARIABILITY
That’s all folks!
.
RT variability
RTVARIABILITY
.
RT variability

More Related Content

Viewers also liked

Drugs acting on PNS
Drugs acting on PNSDrugs acting on PNS
Drugs acting on PNS
madan sigdel
 
Mechanism of drug action
Mechanism of drug actionMechanism of drug action
Mechanism of drug action
Dr.Vijay Talla
 
Bioadhesive drug delivery system
Bioadhesive drug delivery systemBioadhesive drug delivery system
Bioadhesive drug delivery system
Sunil Boreddy Rx
 
Lecture 2 Dose Response Relationship 1
Lecture 2  Dose Response Relationship 1Lecture 2  Dose Response Relationship 1
Lecture 2 Dose Response Relationship 1
Dr Shah Murad
 
Receptor Pharmacology
Receptor PharmacologyReceptor Pharmacology
Receptor Pharmacology
Tulasi Raman
 
Drug receptors in pharmacology
Drug receptors in pharmacologyDrug receptors in pharmacology
Drug receptors in pharmacology
Bindu Pulugurtha
 

Viewers also liked (6)

Drugs acting on PNS
Drugs acting on PNSDrugs acting on PNS
Drugs acting on PNS
 
Mechanism of drug action
Mechanism of drug actionMechanism of drug action
Mechanism of drug action
 
Bioadhesive drug delivery system
Bioadhesive drug delivery systemBioadhesive drug delivery system
Bioadhesive drug delivery system
 
Lecture 2 Dose Response Relationship 1
Lecture 2  Dose Response Relationship 1Lecture 2  Dose Response Relationship 1
Lecture 2 Dose Response Relationship 1
 
Receptor Pharmacology
Receptor PharmacologyReceptor Pharmacology
Receptor Pharmacology
 
Drug receptors in pharmacology
Drug receptors in pharmacologyDrug receptors in pharmacology
Drug receptors in pharmacology
 

Similar to Analysis of RT variability

kape_science
kape_sciencekape_science
kape_science
Kapernicus AB
 
PMED Opening Workshop - Individual Variability or Just Variability - Ruy Ribe...
PMED Opening Workshop - Individual Variability or Just Variability - Ruy Ribe...PMED Opening Workshop - Individual Variability or Just Variability - Ruy Ribe...
PMED Opening Workshop - Individual Variability or Just Variability - Ruy Ribe...
The Statistical and Applied Mathematical Sciences Institute
 
Thesis seminar
Thesis seminarThesis seminar
Thesis seminar
gvesom
 
MUMS: Transition & SPUQ Workshop - Some Strategies to Quantify Uncertainty fo...
MUMS: Transition & SPUQ Workshop - Some Strategies to Quantify Uncertainty fo...MUMS: Transition & SPUQ Workshop - Some Strategies to Quantify Uncertainty fo...
MUMS: Transition & SPUQ Workshop - Some Strategies to Quantify Uncertainty fo...
The Statistical and Applied Mathematical Sciences Institute
 
Leiden_VU_Delft_seminar short.pdf
Leiden_VU_Delft_seminar short.pdfLeiden_VU_Delft_seminar short.pdf
Leiden_VU_Delft_seminar short.pdf
Chiheb Ben Hammouda
 
Statistical techniques used in measurement
Statistical techniques used in measurementStatistical techniques used in measurement
Statistical techniques used in measurement
ShivamKhajuria3
 
MUMS Opening Workshop - Extrapolation: The Art of Connecting Model-Based Pred...
MUMS Opening Workshop - Extrapolation: The Art of Connecting Model-Based Pred...MUMS Opening Workshop - Extrapolation: The Art of Connecting Model-Based Pred...
MUMS Opening Workshop - Extrapolation: The Art of Connecting Model-Based Pred...
The Statistical and Applied Mathematical Sciences Institute
 
PhD defense talk slides
PhD  defense talk slidesPhD  defense talk slides
PhD defense talk slides
Chiheb Ben Hammouda
 
Climate Extremes Workshop - Extreme Values of Vertical Wind Speed in Doppler ...
Climate Extremes Workshop - Extreme Values of Vertical Wind Speed in Doppler ...Climate Extremes Workshop - Extreme Values of Vertical Wind Speed in Doppler ...
Climate Extremes Workshop - Extreme Values of Vertical Wind Speed in Doppler ...
The Statistical and Applied Mathematical Sciences Institute
 
An Application of Uncertainty Quantification to MPM
An Application of Uncertainty Quantification to MPMAn Application of Uncertainty Quantification to MPM
An Application of Uncertainty Quantification to MPM
wallstedt
 
Dynamics of structures with uncertainties
Dynamics of structures with uncertaintiesDynamics of structures with uncertainties
Dynamics of structures with uncertainties
University of Glasgow
 
Causality detection
Causality detectionCausality detection
Causality detection
Tushar Mehndiratta
 
Prediction of transcription factor binding to DNA using rule induction methods
Prediction of transcription factor binding to DNA using rule induction methodsPrediction of transcription factor binding to DNA using rule induction methods
Prediction of transcription factor binding to DNA using rule induction methods
ziggurat
 
fNIRS data analysis
fNIRS data analysisfNIRS data analysis
fNIRS data analysis
Marc van Wanrooij
 
Spatio-Temporal Characterization with Wavelet Coherence: Anexus between Envir...
Spatio-Temporal Characterization with Wavelet Coherence: Anexus between Envir...Spatio-Temporal Characterization with Wavelet Coherence: Anexus between Envir...
Spatio-Temporal Characterization with Wavelet Coherence: Anexus between Envir...
ijsc
 
Stat2013
Stat2013Stat2013
Learning to Search Henry Kautz
Learning to Search Henry KautzLearning to Search Henry Kautz
Learning to Search Henry Kautz
butest
 
Learning to Search Henry Kautz
Learning to Search Henry KautzLearning to Search Henry Kautz
Learning to Search Henry Kautz
butest
 
Chapter 4Summarizing Data Collected in the Sample
Chapter 4Summarizing Data Collected in the SampleChapter 4Summarizing Data Collected in the Sample
Chapter 4Summarizing Data Collected in the Sample
WilheminaRossi174
 
Strategies for Metabolomics Data Analysis
Strategies for Metabolomics Data AnalysisStrategies for Metabolomics Data Analysis
Strategies for Metabolomics Data Analysis
Dmitry Grapov
 

Similar to Analysis of RT variability (20)

kape_science
kape_sciencekape_science
kape_science
 
PMED Opening Workshop - Individual Variability or Just Variability - Ruy Ribe...
PMED Opening Workshop - Individual Variability or Just Variability - Ruy Ribe...PMED Opening Workshop - Individual Variability or Just Variability - Ruy Ribe...
PMED Opening Workshop - Individual Variability or Just Variability - Ruy Ribe...
 
Thesis seminar
Thesis seminarThesis seminar
Thesis seminar
 
MUMS: Transition & SPUQ Workshop - Some Strategies to Quantify Uncertainty fo...
MUMS: Transition & SPUQ Workshop - Some Strategies to Quantify Uncertainty fo...MUMS: Transition & SPUQ Workshop - Some Strategies to Quantify Uncertainty fo...
MUMS: Transition & SPUQ Workshop - Some Strategies to Quantify Uncertainty fo...
 
Leiden_VU_Delft_seminar short.pdf
Leiden_VU_Delft_seminar short.pdfLeiden_VU_Delft_seminar short.pdf
Leiden_VU_Delft_seminar short.pdf
 
Statistical techniques used in measurement
Statistical techniques used in measurementStatistical techniques used in measurement
Statistical techniques used in measurement
 
MUMS Opening Workshop - Extrapolation: The Art of Connecting Model-Based Pred...
MUMS Opening Workshop - Extrapolation: The Art of Connecting Model-Based Pred...MUMS Opening Workshop - Extrapolation: The Art of Connecting Model-Based Pred...
MUMS Opening Workshop - Extrapolation: The Art of Connecting Model-Based Pred...
 
PhD defense talk slides
PhD  defense talk slidesPhD  defense talk slides
PhD defense talk slides
 
Climate Extremes Workshop - Extreme Values of Vertical Wind Speed in Doppler ...
Climate Extremes Workshop - Extreme Values of Vertical Wind Speed in Doppler ...Climate Extremes Workshop - Extreme Values of Vertical Wind Speed in Doppler ...
Climate Extremes Workshop - Extreme Values of Vertical Wind Speed in Doppler ...
 
An Application of Uncertainty Quantification to MPM
An Application of Uncertainty Quantification to MPMAn Application of Uncertainty Quantification to MPM
An Application of Uncertainty Quantification to MPM
 
Dynamics of structures with uncertainties
Dynamics of structures with uncertaintiesDynamics of structures with uncertainties
Dynamics of structures with uncertainties
 
Causality detection
Causality detectionCausality detection
Causality detection
 
Prediction of transcription factor binding to DNA using rule induction methods
Prediction of transcription factor binding to DNA using rule induction methodsPrediction of transcription factor binding to DNA using rule induction methods
Prediction of transcription factor binding to DNA using rule induction methods
 
fNIRS data analysis
fNIRS data analysisfNIRS data analysis
fNIRS data analysis
 
Spatio-Temporal Characterization with Wavelet Coherence: Anexus between Envir...
Spatio-Temporal Characterization with Wavelet Coherence: Anexus between Envir...Spatio-Temporal Characterization with Wavelet Coherence: Anexus between Envir...
Spatio-Temporal Characterization with Wavelet Coherence: Anexus between Envir...
 
Stat2013
Stat2013Stat2013
Stat2013
 
Learning to Search Henry Kautz
Learning to Search Henry KautzLearning to Search Henry Kautz
Learning to Search Henry Kautz
 
Learning to Search Henry Kautz
Learning to Search Henry KautzLearning to Search Henry Kautz
Learning to Search Henry Kautz
 
Chapter 4Summarizing Data Collected in the Sample
Chapter 4Summarizing Data Collected in the SampleChapter 4Summarizing Data Collected in the Sample
Chapter 4Summarizing Data Collected in the Sample
 
Strategies for Metabolomics Data Analysis
Strategies for Metabolomics Data AnalysisStrategies for Metabolomics Data Analysis
Strategies for Metabolomics Data Analysis
 

Recently uploaded

How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 

Recently uploaded (20)

How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 

Analysis of RT variability

  • 1. VARIABILITY IN RESPONSE TIME SEQUENCES Raoul Grasman University of Amsterdam
  • 2. INTRODUCTION Motivation High variability ADHD observed oscillatory component specific to ADHD (Castellanos et al., 2005) understanding underlying process RT variability » Introduction Leth-Steensen et al. (2000) Acta Psych., 104,167-190 Castellanos et al. (2005) Biol. Psychiatry, 57, 1416–1423
  • 3. VARIABILITY RESULTS Some results in neuropsychology literature Number of studies report increased intra individual variability (IIV) in RT on cognitive tasks in ADHD More extreem slow responses in ADHD (Leth- Steensen et al., 2000;Williams et al., 2007) IIV potential ‘endopheno type’ (Castellanos & Tannock, 2002) RT variability » Introduction Castellanos & Tannock (2002) Nat. Rev. Neurosc., 3, 617–628
  • 4. VARIABILITY RESULTS Some results in neuropsychology literature Autism associated with increased IIV (Geurts et al., 2004) Details in findings differ between studies, different methods used (Geurts et al., 2008) Not accounted for linear relationship between RT mean and RT standard deviation (Luce, 1986; Wagenmakers et al., 2005; 2006) RT variability » Introduction Luce (1986) ResponseTimes;Wagenmakers, et al (2005) JMP, 49, 195-204;Wagenmakers & Brown (2007) Psych. Rev., 114, 830–841
  • 5. METHODS DISCUSSED 1.Variance analysis (not ANOVA) 2.RT histograms: fitting models that parameterize distributional features (Ex-Gaussian in particular) 3.Sequence characteristics trends,Time series, autocorrelation & spectral analysis 4.Modeling cognitive processes RT variability » Introduction .
  • 6. TWO DATA SETS Airplane Task Data Squid Task Data RT variability » Data sets used throughout Babu & Rao (2004) Sankyā, 66, 63–74
  • 7. !"#$%"&' ( )%"*+,+) -,$'./012 *)34 50112 *)34 51112 *)34 AIRPLANE TASK DATA Children (age 9.2 ± 2) 5 groups:ADHD (53),ASD +ADHD (32),Tourette (21), HF Autism (25), Controls (85) 64 practice trials of 2AFC task Regular Inter Trial Interval (ITI) RT variability » Data sets used throughout » Airplane data Geurts et al. (2008), Neuropsychologia, 46, 3030–3041
  • 8. 50112 *)34 51112 *)34 !"#$%"&' ( )%"*+,+) *$).6712 *)34 /82 *)34 *$#269112 *)34 SQUID TASK DATA Students (age 21 ± 5) 2 groups: different test locations 150 trials of 2AFC task with 3 difficulty levels Irregular Inter Trial Interval (ITI): determined by response of participant RT variability » Data sets used throughout » Squid data .
  • 9. METHODS DISCUSSED 1.Variance analysis (not ANOVA) 2.RT histograms: fitting models that parametrise distributional features (Ex-Gaussian in particular) 3.Sequence characteristics trends,Time series, autocorrelation & spectral analysis 4.Modeling cognitive processes . RT variability » Intra-individual variance
  • 10. VARIANCE ANALYSIS Not ANOVA (just to make sure) Assessment of between group differences in intra- individual variability (IIV) looking at intra-individual standard deviations (ISD) RT variability » Intra-individual variance Williams et al. (2005) Neuropsychologia, 19, 88–96;Williams et al. (2007) JCENP, 29, 277-289
  • 11. Response time histograms RT Density 500 1000 1500 0.00000.00050.00100.00150.00200.0025 TD Controls HFA Example intra- individual variances RT histograms HFA vs.TD controls TD children more skewed Clearly different RT variability » Intra-individual variance » Example . VARIANCE ANALYSIS
  • 12. Log transformed RT histograms RT Density 5.0 5.5 6.0 6.5 7.0 7.5 0.00.20.40.60.81.01.2 TD Controls HFA Example intra- individual variances Different means t-test (transformed and untransformed) highly significant RT variability » Intra-individual variance » Example Williams et al. (2005) Neuropsych., 19, 88–96 VARIANCE ANALYSIS
  • 13. Log transformed VRT histograms RT Density 4.0 4.5 5.0 5.5 0.00.51.01.5 TD Controls HFA Example intra- individual variances Airplane data Different ISD’s? Rather obvious, confirmed by t-test (t=-4.1, df=52.7, p < .001) RT variability » Intra-individual variance » Example . VARIANCE ANALYSIS
  • 14. VARIANCE ANALYSIS What is the origin of larger variability? May be in upper tail or lower tail RT variability » Intra-individual variance Williams et al. (2007) JCENP, 29, 277-289
  • 15. VARIANCE ANALYSIS What is the origin of larger variability? May be in upper tail or lower tail Williams et al. (2007) compare ISDs of 25% highest RTs and of 25% lowest RTs HFA > TDC for upper 25% (p < .002, eff. size =.63) HFA not different from TDC for lower 25% ISDs RT variability » Intra-individual variance Williams et al. (2007) JCENP, 29, 277-289
  • 16. METHODS DISCUSSED 1.Variance analysis (not ANOVA) 2.RT histograms: fitting models that parametrise distributional features (Ex-Gaussian in particular) 3.Sequence characteristics trends,Time series, autocorrelation & spectral analysis 4.Modeling cognitive processes . RT variability » Histogram Modeling
  • 17. MODELING fit informative density function to RTs histogram a. k. a. Histrogram fitting Parametric density functions proposed for RTs Wald, Log-Normal, Ex-Wald, Ex-Gauss, Gamma, Weibull, etc. All long tailed, all associated with waiting times RT variability » Histogram Modeling » Introduction Luce (1986) ResponseTimes; van Zandt et al. (2000) PB&R, 7, 424-265; Heathcote et al. (1991) Psych. Bull., 109, 340–347
  • 18. MODELING Ex-Gauss (McGill, 1963) Ex-Gauss r.v. is sum of two independent random variables (density is convolution) RT = D + T, D ~ N(μ,σ2), T ~ Exp(λ) parameters: μ, σ2, λ (sometimes μ, σ2, τ =1/λ) λ or τ measures ‘fatness’ of the upper tail RT variability » Histogram Modeling » Ex-Gauss McGill (1963) Handbook of Math. Psych., Vol.1, pp. 309-360; Heathcote et al. (1991)
  • 19. Histogram of Ex−Gauss simulated RTs RT Density 200 400 600 800 0.0000.0010.0020.0030.0040.0050.006 MODELING Example simulated RTs with Ex-Gauss μ = 304 σ = 34 (σ2 = 1156) τ = 83 Often very good for RTs RT variability » Histogram Modeling » Ex-Gauss » Example
  • 20. MODELING How to fit this to data? How to get estimates? Method of Moments Maximum Likelihood Chi-square fitting, quantiles fitting, CDF fitting, ‘Quantile Maximum Likelihood’, Bayesian, and more Which to choose? RT variability » Histogram Modeling » Estimation
  • 21. MODELING Method of Moments Based on sample moments Assumes RTs of different trials are independent Often easy to calculate Notoriously unstable if , can result in negative estimates! E.g., for Ex-Gauss the parameter estimates are τ = (m3/2)1/3 μ = m1-τ σ2 = m2 -τ2 RT variability » Histogram Modeling » Estimation » Method of Moments mk = 1 n n i=1(xi − x)k k > 2
  • 22. MODELING Maximum likelihood Based on likelihood of data under different parameter values Assumes RTs from different trials are independent Many optimal properties (e.g., most precise) Often not so easy to determine (computer work!) Can be unstable (outliers, landscape, numerically) RT variability » Histogram Modeling » Estimation » Maximum Likelihood
  • 23. MODELING Empirical quantiles based methods, e.g.: Chi-square QMLE, QMPE More stable (outliers, numerically) Inefficient (compared to ML) Little statistical theory (can we rely on it?) RT variability » Histogram Modeling » Estimation » Empirical quantiles based Brown & Heathcote (2003) QMLE, BRMI&C,35, 485–492; Heathcote et al. (2004) QMPE, BRMI&C, 36, 277–290
  • 24. MODELING Fitting RT distributions can be done in ‘programmable environments’ R/S-PLUS, Matlab, Excel, Calc, Gauss,WinBUGS, Maple, etc SPSS more problematic But: Ex-Gauss never implemented (nor Wald, Ex-Wald, diffusion) Special purpose programs made available on internet DISFIT, qmpe, RTSYS, PASTIS RT variability » Histogram Modeling » Estimation » Software Dolan et al. (2002), Heathcote et al. (2003), Heathcote (1996), Cousineau et al. (1997)
  • 25. Histogram of Squid data (1 subject) RT Density 200 400 600 800 1000 1200 0.0000.0020.004 MODELING Example fit to Squid task data How do we know it’s ‘correct’? RT variability » Histogram Modeling » Estimation » Example
  • 26. MODELING Assessment of fit (apart from match with histogram) Socalled ‘chi-square’ method sometimes in Ψ literature (e.g., van Zandt et al., 2000) Sometimes Kolmogorov-Smirnov test suggested But: parameters are estimated Bootstrap of e.g., KS-statistic (Babu & Rao, 2004) Babu & Rao (2004) Sankyā, 66, 63–74 RT variability » Histogram Modeling » Estimation » Diagnostics
  • 27. MODELING Assumptions (independent identically distributed) met? Difficult to test for in general Test based on E(XnYm) = E(Xn)E(Ym) X Y In particular E(XY) = E(X)E(Y) Cov(X,Y) = 0 Most likely sequential correlations autocorrelation . RT variability » Histogram Modeling » Estimation » Diagnostics
  • 28. 0 5 10 15 −0.20.20.61.0 Lag ACF Airplane Data . subject 20088 (HFA group) 0 5 10 15 20 −0.20.20.61.0 Lag ACF Squid Data . subject 40002 (group 1) MODELING Autocorrelation plot Statistical test: (Box- Pierce), Ljung-Box Airplane data χ²= 8.76, df=1, p=.003 Squid data χ²= 1.02, df=1, p=.31 Ljung & Box, Biometrika, 65, 297–303 RT variability » Histogram Modeling » Diagnostics » Example
  • 29. METHODS DISCUSSED 1.Variance analysis (not ANOVA) 2.RT histograms: fitting models that parametrise distributional features (Ex-Gaussian in particular) 3.Sequence characteristics trends,Time series, autocorrelation & spectral analysis 4.Modeling cognitive processes . RT variability » Time series
  • 30. TIME SERIES Autocorrelation shows sequential order matters RT sequential effects (e.g. post error slowing) design induced spontaneous Luce (1986) ResponseTimes RT variability » Time series 400600800 117 300400500600 118 300400500600700 119 4006008001000 0 10 20 30 40 50 60 120 Trial 250350450550 56 300500700 57 200300400500 58 250350450 0 10 20 30 40 50 60 59 Trial Airplane − HFA & TD Controls
  • 31. TIME SERIES How to describe it? All random but group differences Time series (and the art of analysis) Brillinger (1975) Time series: Data analysis and theory, Brockwell & Davis (1991) Time series:Theory and methods RT variability » Time series Airplane − HFA & TD Controls Trial 0 10 20 30 40 50 60 20040060080010001200 HFA TDC
  • 32. TIME SERIES Time series descriptives Trends Seasonal Irregular fluctuations Stationary time series Non stationary time series Brillinger (1975) Time series: Data analysis and theory, Brockwell & Davis (1991) Time series:Theory and methods RT variability » Time series
  • 33. TIME SERIES Time series descriptives Trends Seasonal Irregular fluctuations Stationary time series Non stationary time series Brillinger (1975) Time series: Data analysis and theory, Brockwell & Davis (1991) Time series:Theory and methods RT variability » Time series
  • 34. TIME SERIES Brillinger (1975) Time series: Data analysis and theory, Brockwell & Davis (1991) Time series:Theory and methods RT variability » Time series Time series descriptives Trends Seasonal Irregular fluctuations Stationary time series Non stationary time series (detrending, differencing)
  • 35. TIME SERIES (Weakly) Stationary time series E(Yt) is constant E(YtYt-k) is function of k only Characterization: Autocovariance function E(YtYt-k) - E(Yt)2 or Power spectral density Brillinger (1975) Time series: Data analysis and theory, Brockwell & Davis (1991) Time series:Theory and methods RT variability » Time series » Autocovariance function
  • 36. TIME SERIES Autocorrelation functions Airplane data Differs from one individual to another Chatfield (1996) The Analysis of Time Series RT variability » Time series » Autocovariance function » Example 0 5 10 15 −0.20.20.61.0 Lag 117(HFA) 0 5 10 15 −0.20.20.61.0 Lag 118(HFA) Series bla[, i] 0 5 10 15 −0.20.20.61.0 Lag 119(HFA) Series bla[, i] 0 5 10 15 −0.20.20.61.0 120(HFA) Series bla[, i] 0 5 10 15 −0.20.20.61.0 Lag 56(TDC) 0 5 10 15 −0.20.20.61.0 Lag 57(TDC) Series bla[, i] 0 5 10 15 −0.20.20.61.0 Lag 58(TDC) Series bla[, i] 0 5 10 15 −0.20.20.61.0 59(TDC) Series bla[, i]
  • 37. TIME SERIES Autocorrelation functions Airplane data Mean autocorrelation functions: no obvious difference Geurts et al. (2008) 0 5 10 15 0.00.20.40.60.81.0 Lag ACF Airplane data - mean acf HFA group 0 5 10 15 0.00.20.40.60.81.0 ACF Airplane data - mean acf TDC group RT variability » Time series » Autocovariance function » Example
  • 38. TIME SERIES How to interpret this correlation pattern? This case ‘easy’: Large RT on one trial predicts large RT on next (but R2 < 0.03) Alternative: oscillatory components Chatfield (1996) 0 5 10 15 0.00.20.40.60.81.0 Lag ACF Airplane data - mean acf HFA group 0 5 10 15 0.00.20.40.60.81.0 ACF Airplane data - mean acf TDC group RT variability » Time series » Autocovariance function » Example
  • 39. METHODS DISCUSSED 1.Variance analysis (not ANOVA) 2.RT histograms: fitting models that parametrise distributional features (Ex-Gaussian in particular) 3.Sequence characteristics trends,Time series, autocorrelation & spectral analysis 4.Modeling cognitive processes . RT variability » Time series
  • 40. SPECTRAL ANALYSIS heuristic:‘regression’ of yt, t = 0, …,T-1, on cosines and sines yt = ∑ αk cos(kωTt) + ∑ βk sin(kωTt), k=1...K ωT chosen so that α̂k and α̂m will be independent if k ≠ m Brillinger (1975) Time series: data analysis and theory, Chatfield (1996) RT variability » Time series » Spectral analysis
  • 41. SPECTRAL ANALYSIS not ‘regression’ in true sense if K=T/2: estimated αk, βk, k=1...K are 2K=T coef. transformation ! (DFT) we always take K=T/2 Chatfield (1996) The analysis of time series RT variability » Time series » Spectral analysis
  • 42. SPECTRAL ANALYSIS assumptions: samples regularly spaced highest frequency < 2x sampling frequency orthogonal to time (first can be relaxed) Chatfield (1996) The analysis of time series RT variability » Time series » Spectral analysis ● ● ● ● ●● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●●● ● ●● ● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●●
  • 43. SPECTRAL ANALYSIS doing the ‘regression’ gives amplitudes Rk = √(αk 2+βk 2) for every k = 1, ..., K Rk 2 explain trial-to-trial variance in RT series Chatfield (1996) The analysis of time series RT variability » Time series » Spectral analysis ● ● ● ● ●● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●●● ● ●● ● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● 1 2 3 4 5 6 7 8 9 10 cycles Rk
  • 44. SPECTRAL ANALYSIS Rk 2 are closely related to eigenvalues in PCA ∑Rk 2 Var(yt), variance decomposition Plot of Rk 2 is called periodogram Chatfield (1996) The analysis of time series RT variability » Time series » Spectral analysis ● ● ● ● ●● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●●● ● ●● ● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● 1 2 3 4 5 6 7 8 9 10 cycles Rk
  • 45. SPECTRAL ANALYSIS What about in between frequencies? Lets take 2T trials in stead of T and see what happens K becomes (2T)/2 = T, so T amplitudes Rk ωT becomes ωT/2 Brillinger (1975), Chatfield (1996) RT variability » Time series » Spectral analysis ● ● ● ● ●● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●●● ● ●● ● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● 1 2 3 4 5 6 7 8 9 10 cycles Rk
  • 46. SPECTRAL ANALYSIS Lets take 2T trials in stead of T and see what happens K becomes (2T)/2 = T, so T amplitudes Rk ωT becomes ωT/2 Rk in between the previous Brillinger (1975), Chatfield (1996) RT variability » Time series » Spectral analysis ● ● ● ● ●● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●●● ● ●● ● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● 1 2 3 4 5 6 7 8 9 10 cycles Rk
  • 47. SPECTRAL ANALYSIS Double number of trials again What if T →∞ (hence K →∞)? Brillinger (1975), Chatfield (1996) RT variability » Time series » Spectral analysis ● ● ● ● ●● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●●● ● ●● ● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● 1 2 3 4 5 6 7 8 9 10 cycles Rk
  • 48. SPECTRAL ANALYSIS Double number of trials again What if T →∞ (hence K →∞)? Space in between gets filled → continuous amplitude spectrum Brillinger (1975), Chatfield (1996) RT variability » Time series » Spectral analysis ● ● ● ● ●● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●●● ● ●● ● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● 1 2 3 4 5 6 7 8 9 10 cycles Rk
  • 49. SPECTRAL ANALYSIS Every indeterministic discrete stationary time series has continuous amplitude spectrum Our periodogram of the ‘regression’ on cosines and sines estimates this continuous function Brillinger (1975), Chatfield (1996) RT variability » Time series » Spectral analysis ● ● ● ● ●● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●●● ● ●● ● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● 1 2 3 4 5 6 7 8 9 10 cycles Rk
  • 50. SPECTRAL ANALYSIS It can be shown that Rk 2 k =1, ..., K, are regression coefficients of autocovariance on cosines Makes power spectrum and autocovariance two sides of same coin Brillinger (1975), Chatfield (1996) RT variability » Time series » Spectral analysis ● ● ● ● ●● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●●● ● ●● ● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● 1 2 3 4 5 6 7 8 9 10 cycles Rk
  • 51. Periodogram for HFA and TDC individuals Difficult to see any pattern Except: axes HFA extends to much higher values Chatfield (1996) 0.0 0.2 0.4 0100000 frequency 117(HFA) bandwidth = 0.00481 0.0 0.2 0.4 015000 frequency 118(HFA) bandwidth = 0.00481 0.0 0.2 0.4 020000 frequency 119(HFA) bandwidth = 0.00481 0.0 0.2 0.4 0e+008e+04 frequency 120(HFA) 0.0 0.2 0.4 06000 frequency 56(TDC) bandwidth = 0.00481 0.0 0.2 0.4 040000 frequency 57(TDC) bandwidth = 0.00481 0.0 0.2 0.4 030000 frequency 58(TDC) bandwidth = 0.00481 0.0 0.2 0.4 015000 frequency 59(TDC) RT variability » Time series » Spectral analysis » Example SPECTRAL ANALYSIS
  • 52. SPECTRAL ANALYSIS estimated Rk 2 ~ scaled χ2(2), no mater how many trials T estimated Rk 2 are very variable and bad estimators (inconsistent) of spectrum Brillinger (1975), Chatfield (1996) RT variability » Time series » Spectral analysis ● ● ● ● ●● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●●● ● ●● ● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● 1 2 3 4 5 6 7 8 9 10 cycles Rk
  • 53. SPECTRAL ANALYSIS Solution is some form of averaging Rk 2’s of consecutive cycles (i.e. periodogram smoothing) at expense of bias Further problem: leakage due to finite T (alleviated by tapering) Brillinger (1975), Chatfield (1996) RT variability » Time series » Spectral analysis ● ● ● ● ●● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●● ● ● ● ●●● ● ●● ● ● ● ●● ● ● ● ● ●● ● ● ●● ● ● ● ● ●● 1 2 3 4 5 6 7 8 9 10 cycles Rk
  • 54. Smoothed periodogram for HFA and TDC individuals 7 consecutive cycle average Chatfield (1996) 0.0 0.2 0.4 060000 frequency 117(HFA) bandwidth = 0.0127 0.0 0.2 0.4 5000 frequency 118(HFA) bandwidth = 0.0127 0.0 0.2 0.4 500025000 frequency 119(HFA) bandwidth = 0.0127 0.0 0.2 0.4 1000060000 frequency 120(HFA) 0.0 0.2 0.4 20006000 frequency 56(TDC) bandwidth = 0.0127 0.0 0.2 0.4 1000040000 frequency 57(TDC) bandwidth = 0.0127 0.0 0.2 0.4 500020000 frequency 58(TDC) bandwidth = 0.0127 0.0 0.2 0.4 200010000 frequency 59(TDC) RT variability » Time series » Spectral analysis » Example SPECTRAL ANALYSIS
  • 55. Smoothed periodogram for HFA and TDC individuals 15 consecutive cycle average Chatfield (1996) 0.0 0.2 0.4 1000035000 frequency 117(HFA) bandwidth = 0.0300 0.0 0.2 0.4 200010000 frequency 118(HFA) bandwidth = 0.0300 0.0 0.2 0.4 800014000 frequency 119(HFA) bandwidth = 0.0300 0.0 0.2 0.4 1000040000 frequency 120(HFA) 0.0 0.2 0.4 25004500 frequency 56(TDC) bandwidth = 0.0300 0.0 0.2 0.4 500020000 frequency 57(TDC) bandwidth = 0.0300 0.0 0.2 0.4 200012000 frequency 58(TDC) bandwidth = 0.0300 0.0 0.2 0.4 30007000 frequency 59(TDC) RT variability » Time series » Spectral analysis » Example SPECTRAL ANALYSIS
  • 56. Smoothed periodogram for HFA and TDC individuals 31 consecutive cycle average gross features change → perhaps too much smoothing Chatfield (1996) 0.0 0.2 0.4 1500035000 frequency 117(HFA) bandwidth = 0.0679 0.0 0.2 0.4 30006000 frequency 118(HFA) bandwidth = 0.0679 0.0 0.2 0.4 900012000 frequency 119(HFA) bandwidth = 0.0679 0.0 0.2 0.4 1500035000 frequency 120(HFA) 0.0 0.2 0.4 30004000 frequency 56(TDC) bandwidth = 0.0679 0.0 0.2 0.4 500020000 frequency 57(TDC) bandwidth = 0.0679 0.0 0.2 0.4 400012000 frequency 58(TDC) bandwidth = 0.0679 0.0 0.2 0.4 40007000 frequency 59(TDC) RT variability » Time series » Spectral analysis » Example SPECTRAL ANALYSIS
  • 57. Group inference: Average smoothed periodograms Assumption: within groups spectra are the same (can be relaxed) Chatfield (1996) 0.0 0.1 0.2 0.3 0.4 0.5 20000300004000050000600007000080000 Mean spectrum HFA and TD Control groups frequency spectrum HFA TDC RT variability » Time series » Spectral analysis » Example SPECTRAL ANALYSIS
  • 58. SPECTRAL ANALYSIS What about window carpentry? Can help to reduce ‘spectral leakage’; is art however, most software use cosine bell 10% tapers What about ‘zero padding’? only done for computational speed, suggests increase spectral resolution (is not the case!) Sometimes remarkable preprocessing (escapes me) Johnson et al. (2007); Castellanos et al. (2005) RT variability » Time series » Spectral analysis
  • 59. Press et al. (2002) Numerical Recipes 0.0 0.1 0.2 0.3 0.4 0.5 050001000015000 frequency spectrum Smoothed Periodogram Zero padded sequence to length 256 bandwidth = 0.00298 RT variability » Time series » Spectral analysis » Example SPECTRAL ANALYSIS 0.0 0.1 0.2 0.3 0.4 0.5 010000200003000040000 frequency spectrum Smoothed Periodogram original RT sequence (60 trials) bandwidth = 0.0129
  • 60. SPECTRAL ANALYSIS But ... were all assumptions satisfied? RT sequences stationary? only by eye balling (Dickey- Fuller test) samples regularly spaced? Airplane data:Yes Sampling frequency > 2x highest frequency? Eh...? RT measurements orthogonal to time? Nope... Brillinger (1975) RT variability » Time series » Spectral analysis
  • 61. SPECTRAL ANALYSIS non stationary RT sequences? detrending, differencing, STFT, wavelets, Haar-transform (?) irregular spaced samples? adapted DFT, splines, Haar- transform (?) Sampling frequency < 2x highest frequency? Spectral folding may be minor problem, focus on trend, Haar(?) RTs not orthogonal to time? point process, Haar- transform (?) Koopman (1995),Torrence & Compo (1998) Bul. Meteor. Soc. , 79, 61–78 RT variability » Time series » Spectral analysis
  • 62. METHODS DISCUSSED 1.Variance analysis (not ANOVA) 2.RT histograms: fitting models that parametrise distributional features (Ex-Gaussian in particular) 3.Sequence characteristics trends,Time series, autocorrelation & spectral analysis 4.Modeling cognitive processes . RT variability » Time series
  • 63. TIME SERIES MODELS General linear stationary time series model: yt = zt + θ1 zt-1 + θ2 zt-2 + θ3 zt-3 + θ4 zt-4 + ⋅⋅⋅ zt, zt-1, zt-2, ..., independent and identically distributed with variance σ2 that is, the series is “filtered noise” Very broad class of models, and in most useful cases equivalently expressed in finite numbers of parameters Box & Jenkins (1970) Time Series: Forcasting and control, Brockwell & Davis, Time series theories & methods RT variability » Time series » Modeling
  • 64. TIME SERIES MODELS moving average MA(q) yt = zt + θ1zt-1 + θ2zt-2 + ⋅⋅⋅ + θqzt-q = zt + ∑θizt-i autoregressive AR(p) yt = ϕ1yt-1 + ϕ2yt-2 +⋅⋅⋅+ ϕpyt-p + zt = ∑ϕp yt-p + zt ARMA(p,q) yt - ∑ϕp yt-p = zt + ∑θizt-i Box & Jenkins (1970) Time Series: Forcasting and control; Hamaker, Dolan & Molenaar, MBR, 40, 207–233 RT variability » Time series » Modeling
  • 65. Chatfield (1996) MA((1)) θθ1 == 0.7 Time yt 0 20 40 60 80 100 −3−2−10123 AR((1)) φφ1 == 0.7 Time yt 0 20 40 60 80 100 −2−10123 0 5 10 15 20 −0.20.00.20.40.60.81.0 Lag ACF MA((1)) θθ1 == 0.7 0 5 10 15 20 −0.20.00.20.40.60.81.0 Lag ACF AR((1)) φφ1 == 0.7 TIME SERIES MODELS RT variability » Time series » Modeling » Example
  • 66. Chatfield (1996) MA((1)) θθ1 == 0.7 Time yt 0 20 40 60 80 100 −3−2−10123 AR((1)) φφ1 == 0.7 Time yt 0 20 40 60 80 100 −2−10123 0.0 0.1 0.2 0.3 0.4 0.5 0.00.51.01.52.02.53.0 frequency spectrum MA((1)) θθ1 == 0.7 bandwidth = 0.0180 smoothed periodogram theoretical spectrum 0.0 0.1 0.2 0.3 0.4 0.5 0246810 frequency spectrum AR((1)) φφ1 == 0.7 bandwidth = 0.0180 smoothed periodogram theoretical spectrum TIME SERIES MODELS RT variability » Time series » Modeling » Example
  • 67. TIME SERIES MODELS Autoregressive AR(p) can be cast into MA(∞) form yt = ϕ yt-1 + zt = ϕ (ϕ yt-2 + zt-1) + zt = ϕ2yt-2 + ϕzt-1 + zt = etc. = zt + ϕzt-1 + ϕ2zt-2 + ϕ3zt-3 +⋅⋅⋅ requires convergence for stationarity, i.e., |ϕ|<1 More generally, the (complex) solutions for B of 1 - ϕ1B + ϕ2B2 +⋅⋅⋅+ ϕpBp = 0 must satisfy |B|>1 Box & Jenkins (1970), Brockwell & Davis (1991), Chatfield (1995) RT variability » Time series » Modeling
  • 68. TIME SERIES MODELS While not strictly necessary, for technical reasons MA(q) coefficients are usually restricted such that it can be cast as an AR(∞) (MA is then called invertible) ARMA(p, q) satisfying these conditions is stationary and can be cast into AR(∞) or MA(∞) form Therefore ARMA(p,q) suits most observed stationary time series Box & Jenkins (1970), Brockwell & Davis (1991), Chatfield (1995) RT variability » Time series » Modeling
  • 69. Chatfield (1996) ARMA((1,, 1)) φφ1 == 0.7 θθ1 == 0.7 Time arima.sim(list(ar=0.7,ma=0.7),100) 0 20 40 60 80 100 −6−4−202 0 5 10 15 20 −0.40.00.20.40.60.81.0 Lag ACF ARMA((1,, 1)) φφ1 == 0.7 θθ1 == 0.7 0.0 0.1 0.2 0.3 0.4 0.5 051015202530 frequency spectrum ARMA((1,, 1)) φφ1 == 0.7 θθ1 == 0.7 bandwidth = 0.00764 TIME SERIES MODELS RT variability » Time series » Modeling » Example
  • 70. TIME SERIES MODELS How to fit an ARMA(p, q)? Fitting time series models is an art, but necessary steps: choose model (i.e., specify p and q) fit using least squares or ML (optimization with or without Kalman filter), many programs: R, SPSS, etc. evaluate model fit Box & Jenkins (1970), Brockwell & Davis (1991), Chatfield (1995) RT variability » Time series » Modeling
  • 71. HFA individual Time RT 0 10 20 30 40 50 60 300350400450500550600 TIME SERIES MODELS Choosing a model (i.e., p and q) For q some guidance from ACF For p some guidance from partial autocorrelation Box & Jenkins (1970), Brockwell & Davis (1991), Chatfield (1995) RT variability » Time series » Modeling » Example
  • 72. 0 5 10 15 −0.20.00.20.40.60.81.0 Lag ACF HFA individual TIME SERIES MODELS Choosing a model (i.e., p and q) For q some guidance from ACF → 0, 1, 2? For p some guidance from partial autocorrelation Box & Jenkins (1970), Brockwell & Davis (1991), Chatfield (1995) RT variability » Time series » Modeling » Example
  • 73. 5 10 15 −0.3−0.2−0.10.00.10.2 Lag PartialACF HFA individual TIME SERIES MODELS Choosing a model (i.e., p and q) For q some guidance from ACF → 0, 1? For p some guidance from partial autocorrelation → 2 Box & Jenkins (1970), Brockwell & Davis (1991), Chatfield (1995) RT variability » Time series » Modeling » Example
  • 74. 0.0 0.1 0.2 0.3 0.4 0.5 20004000600080001000012000 frequency spectrum HFA individual bandwidth = 0.0300 TIME SERIES MODELS Fit AR(2) AR(2) fit ϕ1 = 0.03, ϕ2 = -0.33 theoretical and smoothed periodogram Box & Jenkins (1970), Brockwell & Davis (1991), Chatfield (1995) RT variability » Time series » Modeling » Example
  • 75. Standardized Residuals Time 0 10 20 30 40 50 60 −2−1012 0 5 10 15 −0.20.20.61.0 Lag ACF ACF of Residuals ● ● ● ● ● ● ● ● ● ● 2 4 6 8 10 0.00.40.8 p values for Ljung−Box statistic lag pvalue TIME SERIES MODELS Evaluate model fit Analyse residuals standardized residuals,ACF residuals, Ljung-Box test Box & Jenkins (1970), Brockwell & Davis (1991), Chatfield (1995) RT variability » Time series » Modeling » Example
  • 76. 0.0 0.1 0.2 0.3 0.4 0.5 050001000015000200002500030000 frequency spectrum HFA individual bandwidth = 0.0300 TIME SERIES MODELS Modern approach: use fit indices (AIC, BIC, etc) to select model AIC yields ARMA(2,1) for differenced series: ϕ1 = 0.02, ϕ2 = -0.41, θ1 = -0.91 due to slight trend? Brockwell & Davis (1991), Chatfield (1995) RT variability » Time series » Modeling » Example
  • 77. TIME SERIES MODELS Most fundamental:ARMA(p, q) Generalizations:ARIMA(p, d, q),ARFIMA, NARMA, etc Others: (G)ARCH & family,TAR, MS, point processes Warning: models are developed for forecasting not necessarily interpretation (see however Hamaker & Dolan) Box & Jenkins (1970), Brockwell & Davis (1991), Chatfield (1996); Hamaker & Dolan (in press) RT variability » Time series » Modeling
  • 78. TIME SERIES MODELS Assumptions in time series models are basically the same as in spectral analysis: stationarity regular sample spacing (can be relaxed, but difficult) orthogonal to time axis (point process more natural) . RT variability » Time series » Modeling
  • 79. TIME SERIES MODELS Both spectral analysis and time series models assume measurements orthogonal to time axis RTs are not, they are parallel.What can be done? Come up with a model for how RTs are generated One possibility: Postulate a latent process ξt that determines RTs: RTt ~ fRT(ξt), e.g., E(RTt) = ξt, requires analysis . RT variability » Time series
  • 80. METHODS DISCUSSED 1.Variance analysis (not ANOVA) 2.RT histograms: fitting models that parametrise distributional features (Ex-Gaussian in particular) 3.Sequence characteristics trends,Time series, autocorrelation & spectral analysis 4.Modeling cognitive processes RT variability » Introduction .
  • 81. PROCESS UNDERLYING RT Can we understand how RT distributions come about? Mathematical psychology: modeling information processing in the brain Models should predict RT characteristics (moments, histograms, serial correlation, etc., and correctness) . RT variability » Process modeling
  • 82. PROCESS UNDERLYING RT Ex-Gauss purely descriptive Most important models Random walks models (discrete time) Diffusion models (continuous time) Race models Luce (1986) Responce times RT variability » Process modeling
  • 83. PROCESS UNDERLYING RT Ratcliff’s diffusion model ‘Special purpose model’ for 2AFC tasks Smith (1960), Ratcliff (1978) RT variability » Process modeling » Diffusion models
  • 84. Two alternative response time tasks are usually analyzed by considering mean response time (MRT) and %error separately Speed-accuracy trade-off PROCESS UNDERLYING RT RT variability » Process modeling » Diffusion models
  • 85. X(t) 0 z a 0 340 680 1020 1360 1700 Diffusion model Time (msec) { !er " Information accumulation as continuous random walk Ratcliff (1978) Psych Rev PROCESS UNDERLYING RT RT variability » Process modeling » Diffusion models
  • 86. X(t) 0 z a 0 340 680 1020 1360 1700 Diffusion model Time (msec) { !er " Information accumulation as continuous random walk Correct response Ratcliff (1978) Psych Rev PROCESS UNDERLYING RT RT variability » Process modeling » Diffusion models
  • 87. X(t) 0 z a 0 340 680 1020 1360 1700 Diffusion model Time (msec) { !er " Information accumulation as continuous random walk Correct response Error response Ratcliff (1978) Psych Rev PROCESS UNDERLYING RT RT variability » Process modeling » Diffusion models
  • 88. X(t) 0 z a 0 340 680 1020 1360 1700 Diffusion model Time (msec) { !er " Information accumulation as continuous random walk Boundary Correct response Error response Ratcliff (1978) Psych Rev PROCESS UNDERLYING RT RT variability » Process modeling » Diffusion models
  • 89. X(t) 0 z a 0 340 680 1020 1360 1700 Diffusion model Time (msec) { !er " Information accumulation as continuous random walk Starting point Correct response Error response Ratcliff (1978) Psych Rev PROCESS UNDERLYING RT RT variability » Process modeling » Diffusion models
  • 90. X(t) 0 z a 0 340 680 1020 1360 1700 Diffusion model Time (msec) { !er " Information accumulation as continuous random walk Correct response Error response Ratcliff (1978) Psych Rev Drift PROCESS UNDERLYING RT RT variability » Process modeling » Diffusion models
  • 91. X(t) 0 z a 0 340 680 1020 1360 1700 Diffusion model Time (msec) { !er " Information accumulation as continuous random walk Correct response Error response Ratcliff (1978) Psych Rev Non- decision PROCESS UNDERLYING RT RT variability » Process modeling » Diffusion models
  • 92. X(t) 0 z a 0 340 680 1020 1360 1700 Diffusion model Time (msec) { !er " Information accumulation as continuous random walk Correct response Error response Ratcliff (1978) Psych Rev := ν + N(0, η2 ) PROCESS UNDERLYING RT RT variability » Process modeling » Diffusion models
  • 93. X(t) 0 z a 0 340 680 1020 1360 1700 Diffusion model Time (msec) { !er " Information accumulation as continuous random walk Correct response Error response Ratcliff (1978) Psych Rev := ν + N(0, η2 ):= z + Unif(−ρz, ρz) PROCESS UNDERLYING RT RT variability » Process modeling » Diffusion models
  • 94. X(t) 0 z a 0 340 680 1020 1360 1700 Diffusion model Time (msec) { !er " Information accumulation as continuous random walk Correct response Error response Ratcliff (1978) Psych Rev := ν + N(0, η2 ) := τer + Unif(0, ρτ ) := z + Unif(−ρz, ρz) PROCESS UNDERLYING RT RT variability » Process modeling » Diffusion models
  • 95. X(t) 0 z a 0 340 680 1020 1360 1700 Diffusion model Time (msec) { !er " Information accumulation as continuous random walk Correct response Error response Ratcliff (1978) Psych Rev RT = Exit Time + τer PROCESS UNDERLYING RT RT variability » Process modeling » Diffusion models
  • 96. PROCESS UNDERLYING RT RT variability » Process modeling » Diffusion models
  • 97. Parameter estimation by Maximum Likelihood Weighted Least Squares Chi-square estimation PROCESS UNDERLYING RT RT variability » Process modeling » Diffusion models
  • 98. Parameter estimation by Maximum Likelihood Weighted Least Squares Chi-square estimation Difficulties with estimation PROCESS UNDERLYING RT RT variability » Process modeling » Diffusion models
  • 99. Parameter estimation by Maximum Likelihood Weighted Least Squares Chi-square estimation Difficulties with estimation Long computation times Evaluation of density involves numerical integration PROCESS UNDERLYING RT RT variability » Process modeling » Diffusion models
  • 100. EZ-DIFFUSION ESSENTIALS Chisquare: FastDM (Voss et al.), ML, QML: DMat (MATLABVandekerckhove et al.) Method of Moments estimator simplified models EZ diffusion model estimates (Wagenmaker et al.) EZ2 diffusion model estimates (Grasman et al.) Vandekerkhove et al. (2007) BRM;Voss et al., (2007) BRM;Wagenmakers et al. (2007) PB&R, 14, 3-22, Grasman (2008) JMP, accepted