a primer to computational modeling in psychology and … · 2020-01-31 · • case study:...

27
A Primer to Computational Modeling in Psychology and Neuroscience

Upload: others

Post on 11-Mar-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

A Primer to Computational Modeling in Psychology and Neuroscience

Page 2: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

My goals for today

•  Not to teach you computational modeling

•  Demystifying computational models

•  Central message:

Computational models are not as complicated (nor as fancy) as they sound, and with a little bit of work,

everyone can incorporate it into their research

Page 3: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Outline

•  What is a computational model?

•  Case Study: Reinforcement learning models of decision-making

•  Why computational modeling? •  Picking up computational modeling

Page 4: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

What is a computational model?

Page 5: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Building intuition from simple models

y=ax+b

How do we determine a and b? How do we quantify the error of the model? (i.e. how we measure how good the model is)?

Page 6: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Building intuition from simple models

Page 7: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Basic framework

•  Fit the model(s) to dependent measure (i.e behavior or neural activity) to find optimal value for the free parameters

•  Compare different models to see which model best explains dependent measure

Page 8: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Extending to more complicated models

•  Algorithmic description of cognitive processes

•  System of equations rather than one equation

•  Multiple free, non-independent parameters, so difficult to systematically predict model behavior

Page 9: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Case Study:

Reinforcement learning models of decision-making

Page 10: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Classical Conditioning

Page 11: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Learning rule

Observedvalue

Temporal-difference learning algorithm

Expectedvalue

Update

ImmediateReward

DiscountedFutureReward

Intuition: You care about future rewards as well as current reward When do you need to update your values? When you are surprised! How much should you update? Depends on how surprised you were!

Page 12: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Dopamine Response

Schulz,Dayan&Montague,1997

Before training

After training

Page 13: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Dopamine Response

Page 14: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Dopamine Response

Pessiglione,etal.2006 O’Doherty,etal.2004

Page 15: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking
Page 16: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Wickens et al., 1996

Three-factor learning rule

Cortex = State Information Striatum = Value of States Dopamine = prediction error

(trains values)

Page 17: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Operant Conditioning

Page 18: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Why computational modeling?

Page 19: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Verbally expressed statements are sometimes flawed by internal inconsistencies, logical contradictions, theoretical weaknesses and gaps. A running computational model, on the other hand, can be considered as a sufficiency proof of the internal coherence and completeness of the ideas it is based upon...” (Fum, Del Misser, Stocco, 2007)

Page 20: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

TakenfrompersonalpageofConstanRnA.Rothkopf,PhDhTps://fias.uni-frankfurt.de/~rothkopf/

Page 21: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Modeling Techniques

•  Reinforcement Learning

•  Symbolic systems

•  Neural Networks

•  Bayesian Networks •  Agent-based models

•  Many more …

Page 22: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

All models are wrong, but some are useful

George Box

Page 23: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Learning how to model

•  Learn how to code

•  Basics of Modeling Computational Modeling in Cognition: Principles and Practice http://www.amazon.com/Computational-Modeling-Cognition-Principles-Practice/dp/1412970768

•  Reinforcement Learning https://webdocs.cs.ualberta.ca/~sutton/book/ebook/the-book.html

•  Neural Network Models https://grey.colorado.edu/CompCogNeuro/index.php/CCNBook/Main

•  Probabilistic Models (i.e. Bayesian Models)

https://probmods.org/

Page 24: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Some additional pieces of information

Page 25: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Some additional pieces of information

Page 26: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

Computers playing Atari games

Page 27: A Primer to Computational Modeling in Psychology and … · 2020-01-31 · • Case Study: Reinforcement learning models of decision-making • Why computational modeling? • Picking

AlphaGo vs. Lee Seedol (4 -1)