flankr: EPS presentation

104
flankr: An R Package Implementing Computational Models of Attentional Selectivity Jim Grange [email protected]

Transcript of flankr: EPS presentation

Page 1: flankr: EPS presentation

flankr: An R Package Implementing Computational Models of Attentional

Selectivity

Jim [email protected]

Page 2: flankr: EPS presentation

<<><<

Eriksen & Eriksen (1974)

<<<<<

Page 3: flankr: EPS presentation

Flanker Task

• Response times are slower to incongruent trials compared to congruent– The “congruency effect”

• Attentional selectivity improves with processing time (Gratton et al., 1998)– Evidence for this gathered using so-called

Conditional Accuracy Functions (CAFs)

Page 4: flankr: EPS presentation
Page 5: flankr: EPS presentation

Improvement of Attentional Selectivity

• Continuous Improvement of attentional selectivity– Shrinking attentional spotlight reduces the effect

of flankers on response selection as processing time progresses (Heitz & Engle, 2007; White et al., 2011)

Page 6: flankr: EPS presentation

<<><<

e.g., Heitz & Engle (2007)

Page 7: flankr: EPS presentation

<<><<

e.g., Heitz & Engle (2007)

Page 8: flankr: EPS presentation

<<><<

e.g., Heitz & Engle (2007)

Page 9: flankr: EPS presentation

<<><<

e.g., Heitz & Engle (2007)

Page 10: flankr: EPS presentation

<<><<

e.g., Heitz & Engle (2007)

Page 11: flankr: EPS presentation
Page 12: flankr: EPS presentation
Page 13: flankr: EPS presentation
Page 14: flankr: EPS presentation

Improvement of Attentional Selectivity

• Discrete Improvement of attentional selectivity– Attentional selectivity rather poor in a first stage

of processing, but switches to a focussed processing mode at discrete time-point (Huebner et al., 2010).

Page 15: flankr: EPS presentation

<<><<

e.g., Huebner et al. (2010)

Page 16: flankr: EPS presentation

<<><<

e.g., Huebner et al. (2010)

Page 17: flankr: EPS presentation

Prop

ortio

n Co

rrec

t

Page 18: flankr: EPS presentation

Probability of entering second stage increases with processing timePr

opor

tion

Corr

ect

Page 19: flankr: EPS presentation

Improvement of Attentional Selectivity

• Two competing theories for improvement of attentional selectivity:– Continuous improvement– Discrete improvement

• These accounts are hard to disambiguate at the behavioural level– Both predict the observed improvement of

attentional selectivity with time

Page 20: flankr: EPS presentation

Computational Implementations

• Computational models are advantageous for model comparison– Precise, quantitative (cf., verbal models), model

predictions can be directly compared to observed data

– Statistical competitive model comparison techniques can be used to select best-fitting model

Page 21: flankr: EPS presentation

Behavior Research Methods, in press

Dual-Stage, Two-Phase Model

(Huebner et al., 2010)

Shrinking Spotlight Model (White et

al., 2011)

Page 22: flankr: EPS presentation

The Models

Page 23: flankr: EPS presentation
Page 24: flankr: EPS presentation

<<><<

Page 25: flankr: EPS presentation

<<><<

Correct Response Boundary

Page 26: flankr: EPS presentation

<<><<

Correct Response Boundary

Error Response Boundary

Page 27: flankr: EPS presentation

<<><<

Page 28: flankr: EPS presentation

<<><<

Page 29: flankr: EPS presentation

<<><<

Page 30: flankr: EPS presentation

<<><<

Page 31: flankr: EPS presentation

<<><<

Early Attentional Selection

Page 32: flankr: EPS presentation

<<><<

Page 33: flankr: EPS presentation

<<><<

Page 34: flankr: EPS presentation

<<><<

Late Attentional Selection

Page 35: flankr: EPS presentation

<<><<

Page 36: flankr: EPS presentation

<<><<

Page 37: flankr: EPS presentation
Page 38: flankr: EPS presentation
Page 39: flankr: EPS presentation
Page 40: flankr: EPS presentation

Time

Page 41: flankr: EPS presentation

Time

Page 42: flankr: EPS presentation

Time

Page 43: flankr: EPS presentation

Time

Page 44: flankr: EPS presentation
Page 45: flankr: EPS presentation

Overview of flankr

Page 46: flankr: EPS presentation

flankr

• flankr is a package which extends R statistics, written with C++ and R– Hence the “r” on flankr…– R is a free statistical programming language

Page 47: flankr: EPS presentation

flankr

• You do NOT need to know R to use flankr– The paper is written with an R-novice in mind

Page 48: flankr: EPS presentation

flankr

• You do NOT need to know R to use flankr– The paper is written with an R-novice in mind

www.r-project.org

Page 49: flankr: EPS presentation

flankr

• You do NOT need to know R to use flankr– The paper is written with an R-novice in mind

www.rstudio.com

Page 50: flankr: EPS presentation

flankr

• You do NOT need to know R to use flankr– The paper is written with an R-novice in mind

www.rstudio.com

Page 51: flankr: EPS presentation

www.github.com/JimGrange/flankr

Page 52: flankr: EPS presentation

Overview of flankr

• Simulate data from the DSTP and SSP models– Useful for exploring model characteristics

• Fit DSTP and SSP model to user data– Fit to congruent & incongruent trials– Fit group data or individual subjects– Multiple parameter optimisation methods

supported• Plot model fits to user data• Model comparison via statistical tests• Bootstrapping & Jack-knifing of model fits

Page 53: flankr: EPS presentation

Overview of flankr

• Simulate data from the DSTP and SSP models– Useful for exploring model characteristics

• Fit DSTP and SSP model to user data– Fit to congruent & incongruent trials– Fit group data or individual subjects– Multiple parameter optimisation methods

supported• Plot model fits to user data• Model comparison via statistical tests• Bootstrapping & Jack-knifing of model fits

Page 54: flankr: EPS presentation

Simulating Data

Page 55: flankr: EPS presentation

Simulating Data

Page 56: flankr: EPS presentation

Simulating Data

Page 57: flankr: EPS presentation

Simulating Data

Page 58: flankr: EPS presentation

Simulating Data

Page 59: flankr: EPS presentation

Simulating Data

Page 60: flankr: EPS presentation
Page 61: flankr: EPS presentation

Overview of flankr

• Simulate data from the DSTP and SSP models– Useful for exploring model characteristics

• Fit DSTP and SSP model to user data– Fit to congruent & incongruent trials– Fit group data or individual subjects– Multiple parameter optimisation methods

supported• Plot model fits to user data• Model comparison via statistical tests• Bootstrapping & Jack-knifing of model fits

Page 62: flankr: EPS presentation

Overview of flankr

• Simulate data from the DSTP and SSP models– Useful for exploring model characteristics

• Fit DSTP and SSP model to user data– Fit to congruent & incongruent trials– Fit group data or individual subjects– Multiple parameter optimisation methods

supported• Plot model fits to user data• Model comparison via statistical tests• Bootstrapping & Jack-knifing of model fits

Page 63: flankr: EPS presentation

Fitting Empirical Data

Page 64: flankr: EPS presentation

Warning Signal

<<><<

Page 65: flankr: EPS presentation

Fitting Empirical Data

Page 66: flankr: EPS presentation

Cumulative Distribution Function

Conditional AccuracyFunction

Page 67: flankr: EPS presentation

Fitting Empirical Data

Page 68: flankr: EPS presentation

Fitting Empirical Data

Page 69: flankr: EPS presentation

Fitting Empirical Data

Page 70: flankr: EPS presentation

Fitting Empirical Data

Page 71: flankr: EPS presentation
Page 72: flankr: EPS presentation

Overview of flankr

• Simulate data from the DSTP and SSP models– Useful for exploring model characteristics

• Fit DSTP and SSP model to user data– Fit to congruent & incongruent trials– Fit group data or individual subjects– Multiple parameter optimisation methods

supported• Plot model fits to user data• Model comparison via statistical tests• Bootstrapping & Jack-knifing of model fits

Page 73: flankr: EPS presentation

Overview of flankr

• Simulate data from the DSTP and SSP models– Useful for exploring model characteristics

• Fit DSTP and SSP model to user data– Fit to congruent & incongruent trials– Fit group data or individual subjects– Multiple parameter optimisation methods

supported• Plot model fits to user data• Model comparison via statistical tests• Bootstrapping & Jack-knifing of model fits

Page 74: flankr: EPS presentation
Page 75: flankr: EPS presentation
Page 76: flankr: EPS presentation

Overview of flankr

• Simulate data from the DSTP and SSP models– Useful for exploring model characteristics

• Fit DSTP and SSP model to user data– Fit to congruent & incongruent trials– Fit group data or individual subjects– Multiple parameter optimisation methods

supported• Plot model fits to user data• Model comparison via statistical tests• Bootstrapping & Jack-knifing of model fits

Page 77: flankr: EPS presentation

Overview of flankr

• Simulate data from the DSTP and SSP models– Useful for exploring model characteristics

• Fit DSTP and SSP model to user data– Fit to congruent & incongruent trials– Fit group data or individual subjects– Multiple parameter optimisation methods

supported• Plot model fits to user data• Model comparison via statistical tests• Bootstrapping & Jack-knifing of model fits

Page 78: flankr: EPS presentation

Model Comparison

• Fit DSTP model to data– Get bBIC_DSTP

• Fit SSP model to data– Get bBIC_SSP

• Fit with the lowest bBIC is to be preferred– Parameters are penalised via M, so simpler

models are preferred, all else equal…

Page 79: flankr: EPS presentation
Page 80: flankr: EPS presentation

Overview of flankr

• Simulate data from the DSTP and SSP models– Useful for exploring model characteristics

• Fit DSTP and SSP model to user data– Fit to congruent & incongruent trials– Fit group data or individual subjects– Multiple parameter optimisation methods

supported• Plot model fits to user data• Model comparison via statistical tests• Bootstrapping & Jack-knifing of model fits

Page 81: flankr: EPS presentation

Overview of flankr

• Simulate data from the DSTP and SSP models– Useful for exploring model characteristics

• Fit DSTP and SSP model to user data– Fit to congruent & incongruent trials– Fit group data or individual subjects– Multiple parameter optimisation methods

supported• Plot model fits to user data• Model comparison via statistical tests• Bootstrapping & Jack-knifing of model fits

Page 82: flankr: EPS presentation

Bootstrapping

• Often, fits to individual subjects are too noisy• Group fits are therefore preferred when trial

numbers are low

• How to examine differences of parameter values between experimental conditions?– We only have one set of parameter values for

each condition

Page 83: flankr: EPS presentation

Bootstrapping

Page 84: flankr: EPS presentation

Best Model Parameters (Condition

A)

Sim. 1

simDSTP Fit 1

fitDSTP

Page 85: flankr: EPS presentation

Best Model Parameters (Condition

A)

Sim. 1

simDSTP Fit 1

fitDSTP

Sim. 2

Sim. 3

Sim. N

Fit 2

Fit 3

Fit N

Page 86: flankr: EPS presentation

Best Model Parameters (Condition

A)

Sim. 1

simDSTP Fit 1

fitDSTP

Sim. 2

Sim. 3

Sim. N

Fit 2

Fit 3

Fit N

Page 87: flankr: EPS presentation
Page 88: flankr: EPS presentation
Page 89: flankr: EPS presentation
Page 90: flankr: EPS presentation

Current Work

• Due to ability to simulate data from each model, flankr can be used for detailed model comparison studies

• Current work examining model mimicry– The extent to which each model makes unique

predictions of data

Page 91: flankr: EPS presentation

Model Mimicry

• If models make unique predictions, then data simulated from one model should be better fit by that generating model

DSTP DSTP Data

DSTP bBIC

SSPbBIC

Page 92: flankr: EPS presentation

DSTP Generated Data

Page 93: flankr: EPS presentation

DSTP Generated Data

DSTP Model Preferred

Page 94: flankr: EPS presentation

DSTP Generated Data

SSP Model Preferred

Page 95: flankr: EPS presentation

DSTP Generated Data

Model Mimicry(Both models fit

equally well)

Page 96: flankr: EPS presentation

Model Mimicry

• 1,000 data sets simulated for each model• Each data set then fit by each model & plotted

on landscape

DSTP DSTP Data

DSTP bBIC

SSPbBIC

Page 97: flankr: EPS presentation

DSTP Generating Model

Page 98: flankr: EPS presentation

56%

44%

Page 99: flankr: EPS presentation

SSP Generating Model

Page 100: flankr: EPS presentation

74%

26%

Page 101: flankr: EPS presentation

Model Mimicry

• The DSTP model generates data that is equally well fit by the SSP model– Some degree of model mimicry

• The SSP model generates relatively unique data that the DSTP model cannot predict– But SSP model not as well fit to human data,

generally

Page 102: flankr: EPS presentation

Model Mimicry

• More diagnostic data might be required to establish the dynamics of attentional selectivity

Page 103: flankr: EPS presentation

Incon.Con.

LEFT RIGHT

CongruentIncongruent

<<><<<<><<

Page 104: flankr: EPS presentation

Thank You!

A copy of these slides will be available on my website:

www.jimgrange.wordpress.com