Bayesian Hierarchical Model: Many Theta's in Multiple Conditions

Slides:



Advertisements
Similar presentations
Lecture 4A: Probability Theory Review Advanced Artificial Intelligence.
Advertisements

Please close your laptops
Bayesian Estimation in MARK
Flipping A Biased Coin Suppose you have a coin with an unknown bias, θ ≡ P(head). You flip the coin multiple times and observe the outcome. From observations,
FMRI - What Is It? Then: Example of fMRI in Face Processing Psychology 355: Cognitive Psychology Instructor: John Miyamoto 04/06 /2015: Lecture 02-1 This.
Psych 548, Miyamoto, Win '15 1 Set Up for Students Your computer should already be turned on and logged in. Open a browser to the Psych 548 website ( you.
Everything you ever wanted to know about BUGS, R2winBUGS, and Adaptive Rejection Sampling A Presentation by Keith Betts.
Please open your laptops, log in to the MyMathLab course web site, and open Quiz 4.1/4.2. IMPORTANT NOTE: If you have time left after you finish this quiz,
Learning In Bayesian Networks. General Learning Problem Set of random variables X = {X 1, X 2, X 3, X 4, …} Training set D = { X (1), X (2), …, X (N)
Evidence for a Visuospatial Sketch Pad (VSP) Psychology 355: Cognitive Psychology Instructor: John Miyamoto 4/28 /2015: Lecture 05-2 This Powerpoint presentation.
Psychology of Judgment & Decision Making: Future Directions Psychology 466: Judgment & Decision Making Instructor: John Miyamoto 12/10/2015: Lecture 11-2.
Linear Judgment Models: What Do They Suggest About Human Judgment?
When “Less Is More” – A Critique of the Heuristics & Biases Approach to Judgment and Decision Making Psychology 466: Judgment & Decision Making Instructor:
Bayesian Statistics, Modeling & Reasoning What is this course about? P548: Intro Bayesian Stats with Psych Applications Instructor: John Miyamoto 01/04/2016:
Bayes Theorem, a.k.a. Bayes Rule
Gestalt Principles of Perception Psychology 355: Cognitive Psychology Instructor: John Miyamoto 04/08 /2015: Lecture 02-3 This Powerpoint presentation.
Markov-Chain-Monte-Carlo (MCMC) & The Metropolis-Hastings Algorithm P548: Intro Bayesian Stats with Psych Applications Instructor: John Miyamoto 01/19/2016:
第 8 章 PowerPoint 2003 的使用 1 PowerPoint 2003 窗口简介 2 PowerPoint 2003 演示文稿的创建与放映 3 幻灯片的基本操作.
Cognitive Neuroscience (Psychology 460) Summer Quarter Mondays & Wednesdays 12:00 – 2:10pm This course will focus on answering the question, “How are cognitive.
Computing with R & Bayesian Statistical Inference P548: Intro Bayesian Stats with Psych Applications Instructor: John Miyamoto 01/11/2016: Lecture 02-1.
Bursts modelling Using WinBUGS Tim Watson May 2012 :diagnostics/ :transformation/ :investment planning/ :portfolio optimisation/ :investment economics/
Bayesian Estimation and Confidence Intervals Lecture XXII.
When “Less Is More” – A Critique of the Heuristics & Biases Approach to Judgment and Decision Making Psychology 466: Judgment & Decision Making Instructor:
Markov Chain Monte Carlo in R
Bayesian Statistics, Modeling & Reasoning What is this course about?
Unit 3 lec 2: Significant Figures
This course will focus on answering the question,
Widescreen Presentation
Bayesian Estimation and Confidence Intervals
MCMC Output & Metropolis-Hastings Algorithm Part I
Please CLOSE YOUR LAPTOPS,
C4: DISCRETE RANDOM VARIABLES
Use of Pseudo-Priors in Bayesian Model Comparison
Set Up for Instructor MGH Display: Try setting your resolution to 1024 by 768 Run Powerpoint. For most reliable start up: Start laptop & projector before.
CLOSE Please YOUR LAPTOPS, and get out your note-taking materials.
Confidence Interval Estimation for a Population Proportion
Properties of Addition and Multiplication
“What” and “Where” Pathways in the Brain – A Hypothesis About Localization of Perceptual Functions Psychology 355: Cognitive Psychology Instructor:
The Allais Paradox & the Ellsberg Paradox
1st: Representativeness Heuristic and Conjunction Errors 2nd: Risk Attitude and Framing Effects Psychology 355:
These slides are preview slides
Unilateral Neglect, Spatial Attention, Object-Based Attention
Framing Effects and Affective Forecasting
Four Linear Judgment Models
Psychology 466: Judgment & Decision Making
fMRI: What Does It Measure?
Judgment & Decision Making A Few Final Comments
Sensory Memory, Short-Term Memory & Working Memory
Solving Equations Containing Fractions
Set Up for Instructor MGH Display: Try setting your resolution to 1024 by 768 Run Powerpoint. For most reliable start up: Start laptop & projector before.
Brief History of Cognitive Psychology
Unit 1 lec 3: Significant Figures
My Office Hours I will stay after class on both Monday and Wednesday, i.e., 1:30 Mon/Wed in MGH 030. Can everyone stay if they need to? Psych 548, Miyamoto,
Introduction to Bayesian Model Comparison
One-Sample Models (Continuous DV) Then: Simple Linear Regression
Set Up for Instructor Classroom Support Services (CSS), 35 Kane Hall,
Intro to Bayesian Hierarchical Modeling
Set Up for Instructor Classroom Support Services (CSS), 35 Kane Hall,
Set Up for Instructor Classroom Support Services (CSS), 35 Kane Hall,
The Distributive Property
CSCI 5822 Probabilistic Models of Human and Machine Learning
6.2/6.3 Probability Distributions and Distribution Mean
Hierarchical Models of Memory Retention
Set Up for Instructor Classroom Support Services (CSS), 35 Kane Hall,
#1. 5(m-3) #2. (4-z)( -2) #3. 5/15 + 1/3 #4. 1/5 + 6/20
Set Up for Instructor Classroom Support Services (CSS), 35 Kane Hall,
Psychology 355: Cognitive Psychology Instructor: John Miyamoto /2011
Bayesian Data Analysis in R
RDFinancial in PowerPoint
MAS2317- Introduction to Bayesian Statistics
Presentation transcript:

Bayesian Hierarchical Model: Many Theta's in Multiple Conditions Lecture was not given on Monday 2/6/2017 because of UW closure due to snow. A lecture that is largely the same as the present one will be given as lec06-2.p548.w17.pptm on Wednesday 2/8/2017. Bayesian Hierarchical Model: Many Theta's in Multiple Conditions P548: Bayesian Stats with Psych Applications Instructor: John Miyamoto 02/06/2017: Lecture 06-1 Note: This Powerpoint presentation may contain macros that I wrote to help me create the slides. The macros aren’t needed to view the slides. You can disable or delete the macros without any change to the presentation.

Figure 8.2: Bayesian Model for Flips of a Single Coin q X N q ~ beta(1, 1) X ~ binomial(q, N) Kruschke, Fig. 8.2, p. 196 LW, Fig. 2.1, p. 18 Psych 548:, Miyamoto, Win ‘16

Figure 9.7: J coins sampled from the same mint k w a b qs yij s = 1, ..., J i = 1, ..., n Amu and Bmu are not represented as random variables in the diagram on the right because they are treated as constants in this model. They are not sampled from a hyperhyperdistribution. Skappa & Rkappa are not represented as random variables in the diagram on the right because they are treated as constants in this model. Specifically, Skappa = pow(10,2)/pow(10,2) = 1, Rkappa = 10/pow(10,2). Note that kappa is a random variable that is sampled from a gamma( Skappa, Rkappa ) distribution. Kruschke Fig. 9.7 UW Psych 548, Miyamoto, Spr '12

Figure 9.13 (ed.2): J coins sampled from C mints w k A B c = 1, 2, 3 wc kc Amu and Bmu are not represented as random variables in the diagram on the right because they are treated as constants in this model. They are not sampled from a hyperhyperdistribution. Skappa & Rkappa are not represented as random variables in the diagram on the right because they are treated as constants in this model. Specifically, Skappa = pow(10,2)/pow(10,2) = 1, Rkappa = 10/pow(10,2). Note that kappa is a random variable that is sampled from a gamma( Skappa, Rkappa ) distribution. ac bc s = 1, ..., J qs i = 1, ..., n yij Kruschke Fig. 9.13 p. 252 UW Psych 548, Miyamoto, Spr '12

Simplified Version, LW Notation. Figure 9. 13 (ed Simplified Version, LW Notation. Figure 9.13 (ed.2): J coins sampled from N mints w k w k A B c = 1, 2, 3 c = 1, 2, 3 wc kc wc kc Amu and Bmu are not represented as random variables in the diagram on the right because they are treated as constants in this model. They are not sampled from a hyperhyperdistribution. Skappa & Rkappa are not represented as random variables in the diagram on the right because they are treated as constants in this model. Specifically, Skappa = pow(10,2)/pow(10,2) = 1, Rkappa = 10/pow(10,2). Note that kappa is a random variable that is sampled from a gamma( Skappa, Rkappa ) distribution. s = 1, ..., J ac bc qs s = 1, ..., J qs i = 1, ..., n yij i = 1, ..., n yij UW Psych 548, Miyamoto, Spr '12

Correspondence Between Model Syntax & Graphical Model   # Hyperpriors for omega0 and kappa0, the parameters of # the hyperdistribution from which omega[cc] and kappa[cc] # are sampled. omegaO ~ dbeta( 1.0, 1.0 ) kappaO <- kappaMinusTwoO + 2 kappaMinusTwoO ~ dgamma( 0.01, 0.01 ) # Compute the A0 and B0 parameters of the hyper beta distribution A0 <- omegaO*(kappaO - 2) + 1 B0 <- (1 - omegaO)*(kappaO - 2) + 1 # Hyperprior for omega[cc] and kappa[cc], # the condition-specific omega and kappa for ( mm in 1:Ncat ) { omega[mm] ~ dbeta( A0, B0 )   kappaMinusTwo[mm] ~ dgamma( 0.01, 0.01 )   kappa[mm] <- kappaMinusTwo[mm] + 2 } # Prior for theta[j] for ( j in 1:Nsubj ) { aSubj[j] <- omega[p[j]]*(kappa[p[j]]-2)+1 bSubj[j] <- (1-omega[p[j]])*(kappa[p[j]]-2)+1   theta[j] ~ dbeta( aSubj[j], bSubj[j] ) # Likelihood function for ( i in 1:Nsubj ) { z[i] ~ dbin( theta[i], N[i] ) } #close bracket for the model syntax w k A B c = 1, 2, 3 wc kc Amu and Bmu are not represented as random variables in the diagram on the right because they are treated as constants in this model. They are not sampled from a hyperhyperdistribution. Skappa & Rkappa are not represented as random variables in the diagram on the right because they are treated as constants in this model. Specifically, Skappa = pow(10,2)/pow(10,2) = 1, Rkappa = 10/pow(10,2). Note that kappa is a random variable that is sampled from a gamma( Skappa, Rkappa ) distribution. ac bc s = 1, ..., J qs i = 1, ..., n yij UW Psych 548, Miyamoto, Spr '12

Set Up for Instructor Turn off your cell phone. Close web browsers if they are not needed. Classroom Support Services (CSS), 35 Kane Hall, 206-543-9900 If the display is odd, try setting your resolution to 1024 by 768 Run Powerpoint. For most reliable start up: Start laptop & projector before connecting them together If necessary, reboot the laptop Psych 548, Miyamoto, Aut ‘16