Bayesian Hypothesis Testing for Proportions Antonio Nieto / Sonia Extremera / Javier Gómez PhUSE Annual Conference, 9th-12th Oct 2011, Brighton UK.

Slides:



Advertisements
Similar presentations
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 9 Inferences Based on Two Samples.
Advertisements

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)
Significance Tests About
Two Sample Hypothesis Testing for Proportions
1 Midterm Review Econ 240A. 2 The Big Picture The Classical Statistical Trail Descriptive Statistics Inferential Statistics Probability Discrete Random.
10-1 Introduction 10-2 Inference for a Difference in Means of Two Normal Distributions, Variances Known Figure 10-1 Two independent populations.
Machine Learning CMPT 726 Simon Fraser University CHAPTER 1: INTRODUCTION.
Section 9.3 Testing a Proportion p. 2 Focus Points Identify the components needed for testing a proportion. Compute the sample test statistic. Find the.
Chapter 11: Inference for Distributions
Inferences About Process Quality
Statistical Inference Lab Three. Bernoulli to Normal Through Binomial One flip Fair coin Heads Tails Random Variable: k, # of heads p=0.5 1-p=0.5 For.
BCOR 1020 Business Statistics Lecture 18 – March 20, 2008.
BCOR 1020 Business Statistics Lecture 20 – April 3, 2008.
BCOR 1020 Business Statistics
5-3 Inference on the Means of Two Populations, Variances Unknown
Hypothesis Testing :The Difference between two population mean :
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 9 Hypothesis Testing: Single.
Quantitative Business Methods for Decision Making Estimation and Testing of Hypotheses.
CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics, 2007 Instructor Longin Jan Latecki Chapter 7: Expectation and variance.
Hypothesis Testing and T-Tests. Hypothesis Tests Related to Differences Copyright © 2009 Pearson Education, Inc. Chapter Tests of Differences One.
One Sample  M ean μ, Variance σ 2, Proportion π Two Samples  M eans, Variances, Proportions μ1 vs. μ2 σ12 vs. σ22 π1 vs. π Multiple.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 12 Analyzing the Association Between Quantitative Variables: Regression Analysis Section.
Claims about a Population Mean when σ is Known Objective: test a claim.
STAT 5372: Experimental Statistics Wayne Woodward Office: Office: 143 Heroy Phone: Phone: (214) URL: URL: faculty.smu.edu/waynew.
The paired sample experiment The paired t test. Frequently one is interested in comparing the effects of two treatments (drugs, etc…) on a response variable.
PBG 650 Advanced Plant Breeding
June 18, 2008Stat Lecture 11 - Confidence Intervals 1 Introduction to Inference Sampling Distributions, Confidence Intervals and Hypothesis Testing.
PROBABILITY & STATISTICAL INFERENCE LECTURE 6 MSc in Computing (Data Analytics)
+ Chapter 9 Summary. + Section 9.1 Significance Tests: The Basics After this section, you should be able to… STATE correct hypotheses for a significance.
Statistical Review We will be working with two types of probability distributions: Discrete distributions –If the random variable of interest can take.
Introduction to Hypothesis Testing: One Population Value Chapter 8 Handout.
Dr. Gary Blau, Sean HanMonday, Aug 13, 2007 Statistical Design of Experiments SECTION I Probability Theory Review.
Mid-Term Review Final Review Statistical for Business (1)(2)
Estimating parameters in a statistical model Likelihood and Maximum likelihood estimation Bayesian point estimates Maximum a posteriori point.
Day 2 Review Chapters 5 – 7 Probability, Random Variables, Sampling Distributions.
1 SMU EMIS 7364 NTU TO-570-N Inferences About Process Quality Updated: 2/3/04 Statistical Quality Control Dr. Jerrell T. Stracener, SAE Fellow.
Biostatistics, statistical software VII. Non-parametric tests: Wilcoxon’s signed rank test, Mann-Whitney U-test, Kruskal- Wallis test, Spearman’ rank correlation.
AP Statistics Chapter 22 Notes “Comparing Two Proportions”
Dan Piett STAT West Virginia University Lecture 10.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Example 10.17:
Not in FPP Bayesian Statistics. The Frequentist paradigm Defines probability as a long-run frequency independent, identical trials Looks at parameters.
Section A Confidence Interval for the Difference of Two Proportions Objectives: 1.To find the mean and standard error of the sampling distribution.
: An alternative representation of level of significance. - normal distribution applies. - α level of significance (e.g. 5% in two tails) determines the.
Simple examples of the Bayesian approach For proportions and means.
IE 300, Fall 2012 Richard Sowers IESE. 8/30/2012 Goals: Rules of Probability Counting Equally likely Some examples.
Hypothesis Testing Errors. Hypothesis Testing Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean.
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.
© Copyright McGraw-Hill 2004
Statistical Inference Drawing conclusions (“to infer”) about a population based upon data from a sample. Drawing conclusions (“to infer”) about a population.
Inference ConceptsSlide #1 1-sample Z-test H o :  =  o (where  o = specific value) Statistic: Test Statistic: Assume: –  is known – n is “large” (so.
Hypothesis Testing. Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean μ = 120 and variance σ.
1 Chapter 23 Inferences About Means. 2 Inference for Who? Young adults. What? Heart rate (beats per minute). When? Where? In a physiology lab. How? Take.
SUMMARY EQT 271 MADAM SITI AISYAH ZAKARIA SEMESTER /2015.
Course Review. Distributions What are the important aspects needed to describe a distribution of one variable? List three types of graphs that could be.
Objectives (BPS chapter 12) General rules of probability 1. Independence : Two events A and B are independent if the probability that one event occurs.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 7 Inferences Concerning Means.
Introduction For inference on the difference between the means of two populations, we need samples from both populations. The basic assumptions.
Hypothesis Testing for Proportions
STAT 312 Chapter 7 - Statistical Intervals Based on a Single Sample
Consolidation & Review
Sampling Distribution of Sample Means Open Minitab
Section 12.2: Tests about a Population Proportion
Bayesian Inference, Basics
Statistical NLP: Lecture 4
Interval Estimation and Hypothesis Testing
CHAPTER 6 Statistical Inference & Hypothesis Testing
Sampling Distributions
Copyright © Cengage Learning. All rights reserved.
Exam 2 - Review Chapters
Presentation transcript:

Bayesian Hypothesis Testing for Proportions Antonio Nieto / Sonia Extremera / Javier Gómez PhUSE Annual Conference, 9th-12th Oct 2011, Brighton UK

Introduction Tests on proportions –Frequentist approach If pvalue < significance level → Null hypothesis will be rejected –Bayesian approach Probability under any hypotheses → Comparison to see what is the most plausible alternative Both approaches can coexist and they should be used in the statistical interest

Bernouilli distribution The variable that records the patient’s response follows a Bernouilli distribution –Discrete probability distribution, which takes value 1 “success” with probability “p” and 0 “failure” with probability “1-p”

60% to be responder 40% to be non-responder Bernouilli Considering the probability to respond is 0.60 After treatment FAILURE SUCESS

Binomial distribution Sum of “n” Bernouilli experiments –Discrete probability distribution, which counts the sum of successes/failures out of ‘n’ independent samples

Binomial Considering the probability to respond (p=0.60) in 10 patients then E(x)=10 x 0.6=6 Var(x)=10 x 0.6 x 0.4=2.4 Exact confidence intervals, hypothesis tests can be calculated, binomial could be also approximated by the Normal distribution

Frequentist approach A possible solution: Binomial distribution will be approximated with the Normal distribution and then taking a decision based on the pvalue associated to the Gauss curve

Bayes’ theorem (1763) It expresses the conditional probability of a random event A given B in terms of the conditional probability distribution of event B given A and the marginal probability of only A Let {A 1,A 2,...,A n } a set of mutually exclusive events, where the probability of each event is different from zero. Let B any event with known conditional probability p(B|A i ). Then, the probability of p(A i |B) is given by the expression:

Bayes’ in medicine Sensitivity: Probability of positive test when we know that the person suffers the disease Specificity: Probability of negative test when we know that the person does not suffer the disease Probability of hypertension=0.2, sensitivity=91% specificity=98% Probability to have hypertension if positive test is obtained p=0.91 x 0.2/ (0.91 x 0.2+(1-0.98) x 0.8)=0.9192

Bayesian approach A priori distribution Sample distribution Posterior conjugate distribution

Beta distribution Continuous distribution in the interval (0,1) Posterior Beta (a,b) where a=∑xi+α, b=n-∑xi+ ß

No ‘a priori’ information As initial assumption probability any value between zero and one Uniform (0,1)=Beta (1,1) Sample distribution Binomial (n,p) Posterior Beta (a,b) where a=∑x i +1, b=n-∑x i +1

Example 1 N=40, no prior information: –H0: Proportion of responders is ≤40% –H1: Proportion of responders is >60% If 24 successes then posterior probability Beta (25,17) H0H1XNTest Prob. under H0 Prob. under H1 p<=0. 4 p> H1 is more probable than H Prior distribution: Uniform (0,1)

Prior Knowledge Bayesian tests is enhanced when some information is available –Example the probability will fall [ ] –In values relatively high of α and ß, Beta~Normal then >95% of the probability [m±2s]; where m=mean and s=standard deviation (s) –By means of a moment‘s method type m=α / (α + ß); s 2 =m(1-m) / (α + ß + 1) α = [m 2 (1-m) /s 2 ] –m; ß = (α-mα)/m=[m (1-m) 2 /s 2 ] + m -1 Sample distribution Binomial (n,p) Posterior Beta (a,b) where a=∑x i +α, b=n-∑x i + ß

Example 2 N=40, probability will fall [ ] with a 95% probability: –H0: Proportion of responders is ≤40% –H1: Proportion of responders is >60% If 24 successes then posterior probability Beta (36,28) H0H1XNTest Prob. under H0 Prob. under H1 p<=0. 4 p> H1 is more probable than H Prior distribution: Beta (12,12)

SAS ® macro

Beta distribution plots Example 1 Example 2

Example 2 (other prior)

Conclusion Bayesian tests are nowadays being increasingly used, especially in the context of adaptive designs Very important aspects are: – Good selection of the distributions – Clear definition of the ”a priori” information collected A Bayesian approach has been presented to be included in the statistical armamentarium to test proportion hypotheses –It can be also extended to other endpoints and distributions

Questions