Bayes for Beginners Anne-Catherine Huys M. Berk Mirza Methods for Dummies 20 th January 2016.

Slides:



Advertisements
Similar presentations
J. Daunizeau Institute of Empirical Research in Economics, Zurich, Switzerland Brain and Spine Institute, Paris, France Bayesian inference.
Advertisements

Bayesian models for fMRI data
A Survey of Probability Concepts
MEG/EEG Inverse problem and solutions In a Bayesian Framework EEG/MEG SPM course, Bruxelles, 2011 Jérémie Mattout Lyon Neuroscience Research Centre ? ?
0 0 Review Probability Axioms –Non-negativity P(A)≥0 –Additivity P(A U B) =P(A)+ P(B), if A and B are disjoint. –Normalization P(Ω)=1 Independence of two.
Bayes for beginners Methods for dummies 27 February 2013 Claire Berna
Introduction to Bayesian Statistics Harry R. Erwin, PhD School of Computing and Technology University of Sunderland.
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. 6.1 Chapter Six Probability.
J. Daunizeau Wellcome Trust Centre for Neuroimaging, London, UK Institute of Empirical Research in Economics, Zurich, Switzerland Bayesian inference.
I The meaning of chance Axiomatization. E Plurbus Unum.
Chapter 6 Probabilit y Vocabulary Probability – the proportion of times the outcome would occur in a very long series of repetitions (likelihood of an.
Section 5.2 The Addition Rule and Complements
Estimating the Transfer Function from Neuronal Activity to BOLD Maria Joao Rosa SPM Homecoming 2008 Wellcome Trust Centre for Neuroimaging.
Probability.
Graziella Quattrocchi & Louise Marshall Methods for Dummies 2014
Bayes for Beginners Presenters: Shuman ji & Nick Todd.
METHODSDUMMIES BAYES FOR BEGINNERS. Any given Monday at pm “I’m sure this makes sense, but you lost me about here…”
“PROBABILITY” Some important terms Event: An event is one or more of the possible outcomes of an activity. When we toss a coin there are two possibilities,
Methods for Dummies 2009 Bayes for Beginners Georgina Torbet & Raphael Kaplan.
Dr. Gary Blau, Sean HanMonday, Aug 13, 2007 Statistical Design of Experiments SECTION I Probability Theory Review.
Chapter 1 Probability Spaces 主講人 : 虞台文. Content Sample Spaces and Events Event Operations Probability Spaces Conditional Probabilities Independence of.
Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 4 Probability.
3 - 1 © 1998 Prentice-Hall, Inc. Chapter 3 Probability.
3 - 1 © 2000 Prentice-Hall, Inc. Statistics for Business and Economics Probability Chapter 3.
BA 201 Lecture 6 Basic Probability Concepts. Topics Basic Probability Concepts Approaches to probability Sample spaces Events and special events Using.
Bayes for Beginners Reverend Thomas Bayes ( ) Velia Cardin Marta Garrido.
Random Experiment Random Variable: Continuous, Discrete Sample Space: S Event: A, B, E Null Event Complement of an Event A’ Union of Events (either, or)
Mathematics topic handout: Conditional probability & Bayes Theorem Dr Andrew French. PAGE 1www.eclecticon.info Conditional Probability.
DCM – the theory. Bayseian inference DCM examples Choosing the best model Group analysis.
Making sense of randomness
26134 Business Statistics Tutorial 7: Probability Key concepts in this tutorial are listed below 1. Construct contingency table.
ELEC 303, Koushanfar, Fall’09 ELEC 303 – Random Signals Lecture 3 – Conditional probability Farinaz Koushanfar ECE Dept., Rice University Sept 1, 2009.
Probability You’ll probably like it!. Probability Definitions Probability assignment Complement, union, intersection of events Conditional probability.
12/7/20151 Math b Conditional Probability, Independency, Bayes Theorem.
1 Probability Chapter Assigning probabilities to Events Random experiment –a random experiment is a process or course of action, whose outcome.
Introduction to Probability 1. What is the “chance” that sales will decrease if the price of the product is increase? 2. How likely that the Thai GDP will.
Probability. Rules  0 ≤ P(A) ≤ 1 for any event A.  P(S) = 1  Complement: P(A c ) = 1 – P(A)  Addition: If A and B are disjoint events, P(A or B) =
Probability Likelihood of an event occurring! Random Circumstances A random circumstance is one in which the outcome is unpredictable. Test results are.
Copyright © 2006 The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Review of Statistics I: Probability and Probability Distributions.
Fall 2002Biostat Probability Probability - meaning 1) classical 2) frequentist 3) subjective (personal) Sample space, events Mutually exclusive,
Basic Probability.
Psychology 202a Advanced Psychological Statistics September 24, 2015.
Probability. Probability Probability is fundamental to scientific inference Probability is fundamental to scientific inference Deterministic vs. Probabilistic.
PROBABILITY AND BAYES THEOREM 1. 2 POPULATION SAMPLE PROBABILITY STATISTICAL INFERENCE.
STATISTICS 6.0 Conditional Probabilities “Conditional Probabilities”
BUSA Probability. Probability – the bedrock of randomness Definitions Random experiment – observing the close of the NYSE and the Nasdaq Sample.
Statistical NLP: Lecture 4 Mathematical Foundations I: Probability Theory (Ch2)
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 4 Probability.
HL2 Math - Santowski Lesson 93 – Bayes’ Theorem. Bayes’ Theorem  Main theorem: Suppose we know We would like to use this information to find if possible.
PROBABILITY 1. Basic Terminology 2 Probability 3  Probability is the numerical measure of the likelihood that an event will occur  The probability.
Probability What is the probability of rolling “snake eyes” in one roll? What is the probability of rolling “yahtzee” in one roll?
Matching ® ® ® Global Map Local Map … … … obstacle Where am I on the global map?                                   
Statistics for Managers 5th Edition
Bayesian Model Selection and Averaging SPM for MEG/EEG course Peter Zeidman 17 th May 2016, 16:15-17:00.
Probability and Statistics
Chapter 4 Probability.
What is Probability? Quantification of uncertainty.
Quick Review Probability Theory
Quick Review Probability Theory
Bayes for Beginners Stephanie Azzopardi & Hrvoje Stojic
Statistics for Business and Economics
Learn to let go. That is the key to happiness. ~Jack Kornfield
Statistical NLP: Lecture 4
Wellcome Trust Centre for Neuroimaging
Bayes for Beginners Luca Chech and Jolanda Malamud
Bayesian inference J. Daunizeau
General Probability Rules
Bayesian Model Selection and Averaging
Chapter 1 Probability Spaces
Presentation transcript:

Bayes for Beginners Anne-Catherine Huys M. Berk Mirza Methods for Dummies 20 th January 2016

Of doctors and patients A disease occurs in 0.5% of population A diagnostic test gives a positive result in: 99% of people with the disease 5% of people without the disease (false positive) A random person off the street is found to have a positive test result. What is the probability of this person having the disease? A: 0-30% B: 30-70% C: 70-99%

Probabilities for dummies Probability 0 – 1

Probabilities for dummies P(A) = probability of the event A occurring P(B) = probability of the event B occurring Joint probability (intersection) Probability of event A and event B occurring P(A,B) P(A∩B) Order irrelevant P(A,B) = P(B,A)

Probabilities for dummies Union Probability of event A or event B occurring P(A ∪ B) = P(A) + P(B) P(A ∪ B) = P(A)+P(B) – P(A∩B) Order irrelevant P(A ∪ B) = P(B ∪ A) Complement - Probability of anything other than A (P~A) = 1-P(A) BA

Marginal probability (sum rule) Probability of a sphere (regardless of colour) P(sphere) = ∑ P(sphere, colour) colour P(A) = ∑ P(A, B) B Conditional probability A red object is drawn, what is the probability of it being a sphere? The probability of an event A, given the occurrence of an event B P(A|B) ("probability of A given B") colour Redgreen Cube Sphere

From conditional probability to Bayes rule

Bayes’ Theorem Likelihood Prior Marginal Posterior P(data|θ) x P(θ) P(data) P(θ|data) = θ = the population parameter data = the data of our sample 1.Invert the question (i.e. how good is our hypothesis given the data?) 1.prior knowledge is incorporated and used to update our beliefs

Back to doctors and patients A disease occurs in 0.5% of population. 99% of people with the disease have a positive test result. 5% of people without the disease have a positive test result.  random person with a positive test  probability of disease??

P(positive test) A disease occurs in 0.5% of population. 99% of people with the disease have a positive test result. 5% of people without the disease have a positive test result.  random person with a positive test  probability of disease?? Marginal probability Conditional probability P(A,B) = P(A|B) * P(B) P(positive test, disease state) =(positive test|disease state) *P(disease) P(A) = ∑ P(A, B) B P(positive test) = ∑ P(positive test, disease states) disease states = 0.99 * * = 0.055

Back to doctors and patients A disease occurs in 0.5% of population. 99% of people with the disease have a positive test result. 5% of people without the disease have a positive test result.  random person with a positive test  probability of disease??

Example: Someone flips coin. We don’t know if the coin is fair or not. We are told only the outcome of the coin flipping.

Example: 1 st Hypothesis: Coin is fair, 50% Heads or Tails 2 nd Hypothesis: Both side of the coin is heads, 100% Heads

Example:

1 st Flip 2 nd Flip

Example:

Example

Prior, Likelihood and Posterior Prior: Likelihood: Posterior:

Bayesian Paradigm - Model of the data: y = f(θ) + εe.g. GLM, DCM etc. - Assume that noise is small - Likelihood of the data given the parameters: Noise

Forward and Inverse Problems P(Data|Parameter) P(Parameter|Data)

Complex vs Simple Model

Principle of Parsimony

Free Energy

Bayesian Model Comparison Bayes Factor Marginal likelihood

Hypothesis testing Classical SPM Define the null hypothesis H0: Coin is fair θ=0.5 Bayesian Inference Define a hypothesis H: θ>

Posterior Probability Maps Bayesian Algorithms Dynamic Causal Modelling Multivariate Decoding

References Dr. Jean Daunizeau and his SPM course slides Previous MfD slides Bayesian statistics: a comprehensive course – Ox educ – great video tutorials p5YzjqXQ4oE4w9GVWdiokWB9gEpm p5YzjqXQ4oE4w9GVWdiokWB9gEpm

Special Thanks to Dr. Peter Zeidman