Bayesian hypothesis testing
- Dr. Jarad Niemi
STAT 544 - Iowa State University
March 7, 2019
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 1 / 25
Bayesian hypothesis testing Dr. Jarad Niemi STAT 544 - Iowa State - - PowerPoint PPT Presentation
Bayesian hypothesis testing Dr. Jarad Niemi STAT 544 - Iowa State University March 7, 2019 Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 1 / 25 Outline Scientific method Statistical hypothesis testing Simple vs
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 1 / 25
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 2 / 25
http://www.wired.com/wiredscience/2013/04/whats-wrong-with-the-scientific-method/ Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 3 / 25
Statistical hypothesis testing
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 4 / 25
Statistical hypothesis testing
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 5 / 25
Statistical hypothesis testing All simple hypotheses
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 6 / 25
Statistical hypothesis testing All simple hypotheses
n = 13; y = rbinom(n,1,.45); sum(y) [1] 7
0.0 0.1 0.2 0.3 0.00 0.25 0.50 0.75 1.00
theta value variable
prior posterior
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 7 / 25
Statistical hypothesis testing All composite hypotheses
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 8 / 25
Statistical hypothesis testing All composite hypotheses
0.03 0.12 0.25 0.3 0.21 0.08 0.01
1 2 3 0.00 0.25 0.50 0.75 1.00
x y
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 9 / 25
Posterior propriety Tonelli’s Theorem
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 10 / 25
Posterior propriety Proper priors
z∈Y p(z) = z∈Y
T T
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 11 / 25
Posterior propriety Proper priors
T T
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 12 / 25
Posterior propriety Propriety of prior predictive distributions
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 13 / 25
Posterior propriety Propriety of prior predictive distributions
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 14 / 25
Bayesian hypothesis testing
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 15 / 25
Bayesian hypothesis testing
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 16 / 25
Bayesian hypothesis testing
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 17 / 25
Bayesian hypothesis testing Binomial model
0 θny(1−θ)n(1−y) θa−1(1−θ)b−1 Beta(a,b)
1 Beta(a,b)
0 θa+ny−1(1−θ)b+n−ny−1θ
Beta(a+ny,b+n−ny) Beta(a,b)
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 18 / 25
Bayesian hypothesis testing Binomial model
0.00 0.25 0.50 0.75 1.00 0.00 0.25 0.50 0.75 1.00
ybar p(H0|y) n
10 20 30
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 19 / 25
Bayesian hypothesis testing Binomial model
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 20 / 25
Bayesian hypothesis testing Binomial model
0.00 0.25 0.50 0.75 1.00 0.00 0.25 0.50 0.75 1.00
ybar p(H0|y) e
1e−04 0.001 0.01 0.1 1
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 21 / 25
Bayesian hypothesis testing Binomial model
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 22 / 25
Bayesian hypothesis testing Binomial model
0.00 0.25 0.50 0.75 1.00 25 50 75 100
C p(H0|y) y
1 2 3 4 5
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 23 / 25
Bayesian hypothesis testing Binomial model
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 24 / 25
Bayesian hypothesis testing Binomial model
Jarad Niemi (STAT544@ISU) Bayesian hypothesis testing March 7, 2019 25 / 25