T HOMAS B AYES TO THE RESCUE st5219: Bayesian hierarchical modelling lecture 1.4.

Slides:



Advertisements
Similar presentations
Bayes rule, priors and maximum a posteriori
Advertisements

Statistics.  Statistically significant– When the P-value falls below the alpha level, we say that the tests is “statistically significant” at the alpha.
Psychology 290 Special Topics Study Course: Advanced Meta-analysis April 7, 2014.
By C. Yeshwanth and Mohit Gupta.  An inference method that uses Bayes’ rule to update prior beliefs based on data  Allows a-priori information about.
Hypothesis Testing A hypothesis is a claim or statement about a property of a population (in our case, about the mean or a proportion of the population)
MPS Research UnitCHEBS Workshop - April Anne Whitehead Medical and Pharmaceutical Statistics Research Unit The University of Reading Sample size.
Likelihood ratio tests
AP Statistics – Chapter 9 Test Review
Bayesian inference Gil McVean, Department of Statistics Monday 17 th November 2008.
M ATH S TAT T RIVIAL P URSUIT (S ORT OF )F OR R EVIEW ( MATH 30)
Introduction  Bayesian methods are becoming very important in the cognitive sciences  Bayesian statistics is a framework for doing inference, in a principled.
Class Handout #3 (Sections 1.8, 1.9)
Business Statistics - QBM117
Hypothesis Testing Lecture 4. Examples of various hypotheses The sodium content in Furresøen is x Sodium content in Furresøen is equal to the content.
Intro to Statistics for the Behavioral Sciences PSYC 1900
7/2/2015Basics of Significance Testing1 Chapter 15 Tests of Significance: The Basics.
G. Cowan Lectures on Statistical Data Analysis 1 Statistical Data Analysis: Lecture 7 1Probability, Bayes’ theorem, random variables, pdfs 2Functions of.
INFERENTIAL STATISTICS – Samples are only estimates of the population – Sample statistics will be slightly off from the true values of its population’s.
Descriptive statistics Inferential statistics
1 Bayesian methods for parameter estimation and data assimilation with crop models Part 2: Likelihood function and prior distribution David Makowski and.
A quick intro to Bayesian thinking 104 Frequentist Approach 10/14 Probability of 1 head next: = X Probability of 2 heads next: = 0.51.
Statistical Decision Theory
Bayesian Inference, Basics Professor Wei Zhu 1. Bayes Theorem Bayesian statistics named after Thomas Bayes ( ) -- an English statistician, philosopher.
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…”
Estimating parameters in a statistical model Likelihood and Maximum likelihood estimation Bayesian point estimates Maximum a posteriori point.
MAS2317 Presentation Jake McGlen. Assuming vague prior knowledge, obtain the posterior distribution for µ and hence construct a 95% Bayesian confidence.
STA Lecture 291 STA 291 Lecture 29 Review. STA Lecture 292 Final Exam, Thursday, May 6 When: 6:00pm-8:00pm Where: CB 106 Make-up exam: Friday.
STT 315 Ashwini Maurya Acknowledgement: Author is indebted to Dr. Ashok Sinha, Dr. Jennifer Kaplan and Dr. Parthanil Roy for allowing him to use/edit many.
Practical Statistics for Particle Physicists Lecture 3 Harrison B. Prosper Florida State University European School of High-Energy Physics Anjou, France.
Maximum Likelihood - "Frequentist" inference x 1,x 2,....,x n ~ iid N( ,  2 ) Joint pdf for the whole random sample Maximum likelihood estimates.
Bayesian vs. frequentist inference frequentist: 1) Deductive hypothesis testing of Popper--ruling out alternative explanations Falsification: can prove.
Bayesian statistics Probabilities for everything.
Statistical Inference Statistical Inference is the process of making judgments about a population based on properties of the sample Statistical Inference.
Bayesian Inference, Review 4/25/12 Frequentist inference Bayesian inference Review The Bayesian Heresy (pdf)pdf Professor Kari Lock Morgan Duke University.
Statistical Decision Theory Bayes’ theorem: For discrete events For probability density functions.
Lecture: Forensic Evidence and Probability Characteristics of evidence Class characteristics Individual characteristics  features that place the item.
MeanVariance Sample Population Size n N IME 301. b = is a random value = is probability means For example: IME 301 Also: For example means Then from standard.
1 CHAPTER 4 CHAPTER 4 WHAT IS A CONFIDENCE INTERVAL? WHAT IS A CONFIDENCE INTERVAL? confidence interval A confidence interval estimates a population parameter.
Hypothesis Testing Lecture 3. Examples of various hypotheses Average salary in Copenhagen is larger than in Bælum Sodium content in Furresøen is equal.
Simple examples of the Bayesian approach For proportions and means.
1 URBDP 591 A Lecture 12: Statistical Inference Objectives Sampling Distribution Principles of Hypothesis Testing Statistical Significance.
Inen 460 Lecture 2. Estimation (ch. 6,7) and Hypothesis Testing (ch.8) Two Important Aspects of Statistical Inference Point Estimation – Estimate an unknown.
Bayes Theorem. Prior Probabilities On way to party, you ask “Has Karl already had too many beers?” Your prior probabilities are 20% yes, 80% no.
1 Methods of Experimental Particle Physics Alexei Safonov Lecture #24.
G. Cowan Lectures on Statistical Data Analysis Lecture 8 page 1 Statistical Data Analysis: Lecture 8 1Probability, Bayes’ theorem 2Random variables and.
1 Hypothesis Tests on the Mean H 0 :  =  0 H 1 :    0.
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
Statistics for Political Science Levin and Fox Chapter Seven
© 2013 Pearson Education, Inc. Active Learning Lecture Slides For use with Classroom Response Systems Introductory Statistics: Exploring the World through.
G. Cowan Lectures on Statistical Data Analysis Lecture 4 page 1 Lecture 4 1 Probability (90 min.) Definition, Bayes’ theorem, probability densities and.
Bayes Theorem, a.k.a. Bayes Rule
G. Cowan Lectures on Statistical Data Analysis Lecture 12 page 1 Statistical Data Analysis: Lecture 12 1Probability, Bayes’ theorem 2Random variables and.
Parameter Estimation. Statistics Probability specified inferred Steam engine pump “prediction” “estimation”
DSCI 346 Yamasaki Lecture 1 Hypothesis Tests for Single Population DSCI 346 Lecture 1 (22 pages)1.
MCMC Stopping and Variance Estimation: Idea here is to first use multiple Chains from different initial conditions to determine a burn-in period so the.
Lecture Nine - Twelve Tests of Significance.
Lecture 2.
Bayes for Beginners Stephanie Azzopardi & Hrvoje Stojic
More about Posterior Distributions
Chapter 23 Comparing Means.
Bayesian Inference, Basics
Hypothesis Testing.
Virtual University of Pakistan
Lecture 10/24/ Tests of Significance
BUSINESS MATHEMATICS & STATISTICS.
Chapter 24 Comparing Means Copyright © 2009 Pearson Education, Inc.
Bayes for Beginners Luca Chech and Jolanda Malamud
CS639: Data Management for Data Science
Bayesian Data Analysis in R
Presentation transcript:

T HOMAS B AYES TO THE RESCUE st5219: Bayesian hierarchical modelling lecture 1.4

B AYES THEOREM : MATHS ALERT (You know this already, right?)

B AYES THEOREM : APPLICATION You are GP in country like SP Foreign worker comes for HIV test HIV test results come back +ve Does worker have HIV? How to work out? Test sensitivity is 98% Test specificity is 96% ie f(test +ve | HIV +ve) = 0.98 f(test +ve | HIV --ve) = 0.04

B AYES THEOREM : APPLICATION Analogy to hypothesis testing Null hypothesis is not infected Test statistic is test result p-value is 4% Reject hypothesis of non-infection, conclude infected But we calculated: f(+ test | infected) NOT f(infected | + test) But we calculated: f(+ test | infected) NOT f(infected | + test)

B AYES THEOREM : APPLICATION How to work out? Test sensitivity is 98% Test specificity is 96% Infection rate is 1% ie f(test +ve | HIV +ve) = 0.98 f(test +ve | HIV --ve) = 0.04 f(HIV +ve) = 0.01

B AYES THEOREM : APPLICATION

AIDS AND H0 S Frequentists happy to use Bayes’ formula here But unhappy to use it to estimate parameters But... If you think it is wrong to use the probability of a positive test given non-infection to decide if infected given a positive test why use the probability of (imaginary) data given a null hypothesis to decide if a null hypothesis is true given data ?

T HE B AYESIAN I D AND FREQUENTIST E GO How do you normally estimate parameters? Is theta hat the most likely parameter value?

T HE B AYESIAN I D AND FREQUENTIST E GO The parameter that maximises the likelihood function is not the most likely parameter value How can we get the distribution of the parameters given the data? Bayes’ formula tells us posterior likelihood prior (this is a constant)

U PDATING INFORMATION VIA B AYES Can also work with 1.Start with information before the experiment: the prior 2.Add information from the experiment: the likelihood 3.Update to get final information: the posterior If more data come along later, the posterior becomes the prior for the next time

U PDATING INFORMATION VIA B AYES 1.Start with information before the experiment: the prior 2.Add information from the experiment: the likelihood 3.Update to get final information: the posterior

U PDATING INFORMATION VIA B AYES 1.Start with information before the experiment: the prior 2.Add information from the experiment: the likelihood 3.Update to get final information: the posterior

U PDATING INFORMATION VIA B AYES 1.Start with information before the experiment: the prior 2.Add information from the experiment: the likelihood 3.Update to get final information: the posterior

Mean: S UMMARISING THE POSTERIOR Median:Mode:

S UMMARISING THE POSTERIOR 95% credible interval: chop off 2.5% from either side of posterior

S UMMARISING THE POSTERIOR Bye bye delta approxi mations !!!

S OUNDS TOO EASY ! W HAT ’ S THE CATCH ?! Here are where the difficulties are: 1. building the model 2. obtaining the posterior 3. model assessment Same issues arise in frequentist statistics (1, 3); estimating MLEs and CIs difficult for non à la carte problems Let’s see an example! Back to AIDS!