introduction to bayesian statistics...it is unanimously agreed that statistics depends somehow on...

39
Introduction to Bayesian Statistics James Swain University of Alabama in Huntsville ISEEM Department

Upload: others

Post on 20-May-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Introduction to Bayesian Statistics

James Swain

University of Alabama in Huntsville

ISEEM Department

Page 2: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Author Introduction

โ€ข James J. Swain is Professor of Industrial and Systems Engineering Management at UAH. His BA,BS, and MS are from Notre Dame, and PhD in Industrial Engineering from Purdue University.

โ€ข Research interests include statistical estimation, Monte Carlo and Discrete Event simulation and analysis.

โ€ข Celebrating 25 years at UAH with experience at Georgia Tech, Purdue, the University of Miami, and Air Products and Chemicals.

Page 3: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Outline

โ€ข Views of probability

โ€ข Likelihood principle

โ€ข Classical Maximum Likelihood

โ€ข Bayes Theorem

โ€ข Bayesian Formulation

โ€ข Applicationsโ€ข Proportions

โ€ข Means

โ€ข Approach to Hypothesis Tests

โ€ข Conclusion

โ€ข References

Page 4: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

โ€œ

โ€

It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics, there has seldom been such complete disagreement and breakdown of communication since the Tower of Babel.

Savage, 1954

Bayesian statistics are based on โ€œsubjectiveโ€ rather than โ€œobjectiveโ€ probability

Page 5: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Classical View of Probability

โ€ข Physical or Objective probabilityโ€ข Also known as โ€œfrequentist probabilityโ€

โ€ข Description of physical random processesโ€ข Dice

โ€ข Roulette Wheels

โ€ข Radioactive processes

โ€ข Probability as the limiting ratio of repeated occurrences

โ€ข Philosophically --- Popper, von Mises, etc.

Page 6: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Subjective Probability

โ€ข Subjective or Evidential โ€ข Also called โ€œBayesianโ€ probability

โ€ข Assessment of uncertainty

โ€ข Plausibility of possible outcomesโ€ข May be applied to uncertain but fixed quantities

โ€ข Bayes analysis treats unknown parameters as random

โ€ข Sometimes elucidated in terms of wagers on outcomes

โ€ข Philosophically --- de Finetti, Savage, Carnap, etc.

Page 7: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Note on Notation

โ€ข Samples: X for either single or multiple samples

โ€ข Distributions: โ€ข p(X) for either discrete or continuous

โ€ข N(ยต, ฯƒ2) for normal with mean and variance parameters (sometimes ฯ†)

โ€ข Parameters: โ€ข For binomial examples, ฯ€ is population proportion of success

โ€ข For continuous case, it is simply ฯ€

Page 8: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Likelihood Principle

1 61 41 21 086420

0.25

0.20

0.1 5

0.1 0

0.05

0.00

X

Pro

bab

ilit

y

0.2

0.4

p

Binomial, n=20

If X = 8 is observed, which Binomial is more likely to have produced? โ€ข Example: X=8 --- source?

โ€ข b(8:0.4, 20) = 0.18

โ€ข b(8;0.2, 20) = 0.02

โ€ข Either possible

โ€ข First more likely

Page 9: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Likelihood (Discrete Sample)

โ€ข Likelihood function ๐ฟ ๐œ‹: ๐‘‹โ€ข Note: ๐œ‹ is unknown proportion of success

โ€ข Here, sample X is โ€œgivenโ€

โ€ข Parameter ๐œ‹ is variable to solve

โ€ข Solution is MLE (max. likelihood estimator)

๐‘ฅ๐‘– = แ‰Š1 Success0 Failure

๐ฟ ๐œ‹: ๐‘‹ =เท‘

๐‘–=1

๐‘›

๐œ‹ ๐‘ฅ๐‘– 1 โˆ’ ๐œ‹ 1โˆ’ ๐‘ฅ๐‘– = ๐œ‹๐‘ฅ 1 โˆ’ ๐œ‹ ๐‘›โˆ’๐‘ฅ

๐‘™ ๐œ‹: ๐‘‹ = ln ๐ฟ ๐œ‹: ๐‘‹ = ๐‘ฅ ln๐œ‹ + ๐‘› โˆ’ ๐‘ฅ ln 1 โˆ’ ๐œ‹

๐‘‘๐‘™

๐‘‘๐œ‹= 0

๐‘ฆ๐‘–๐‘’๐‘™๐‘‘๐‘ ๐‘ = เท๐œ‹ =

๐‘ฅ

๐‘›

Page 10: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Likelihood for continuous

โ€ข For sample x = 13

โ€ข Normal( 12.5, 4) โ€ข f(13: 12.5, 4) = 0.19

โ€ข Normal (10, 4) โ€ข f(13: 10, 4) = 0.065

Page 11: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

MLE for Continuous (Normal)

โ€ข Multiple samples (n)

โ€ข Likelihood L

โ€ข Parameters chosen to max L using Ln L

โ€ข Estimation (MLE)

๐ฟ ๐œ‡, ๐œŽ2: ๐‘‹ =เท‘

๐‘–=1

๐‘›๐‘’โˆ’ ฮค๐‘ฅ๐‘–โˆ’๐œ‡

2 2๐œŽ2

2๐œ‹๐œŽ2

๐‘™ ๐œ‡, ๐œŽ2: ๐‘‹ = ln ๐ฟ ๐œ‡, ๐œŽ2: ๐‘‹ = โˆ’๐‘›

2ln 2๐œ‹ โˆ’

๐‘›

2ln ๐œŽ2 โˆ’

1

2๐œŽ2

๐‘–=1

๐‘›

๐‘ฅ๐‘– โˆ’ ๐œ‡ 2

๐‘‘๐‘™

๐‘‘๐œ‡= 0 ฦธ๐œ‡ = าง๐‘ฅ

๐‘‘๐‘™

๐‘‘๐œŽ2= 0 เทœ๐œŽ2 =

ฯƒ๐‘–=1๐‘› ๐‘ฅ๐‘– โˆ’ าง๐‘ฅ 2

๐‘›=

๐‘› ๐‘ 

๐‘› โˆ’ 1

2

Page 12: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Classical Statistics: Summary

โ€ข Theory is well developedโ€ข E.g., most cases asymptotically unbiased and normal

โ€ข Variance parameters based on log likelihood derivatives

โ€ข Confidence Intervals โ€ข Confidence level means ?

โ€ข Hypothesis Testsโ€ข Pesky p-value

Page 13: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

โ€œ

โ€

Thereโ€™s no theorem like Bayesโ€™ theoremLike no theorem we knowEverything about it is appealingEverything about it is a wowLet out all that a priori feelingYouโ€™ve been concealing right up to now!

George E. P. Box

Bayes Theorem useful, controversial (in its day), and the bane of introductory probability students. Sometimes known as โ€œinverse probabilityโ€

Page 14: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Bayes Theorem I: Sets and Partition of S

โ€ข Consider a sample space S

โ€ข Event ๐ต โŠ‚ ๐‘†

โ€ข Partition of sample space ๐ด1, ๐ด2, โ€ฆ , ๐ด๐‘˜โ€ข Exhaustive

โ€ข Mutually exclusive

โ€ข Decomposition of B into subsets ๐ต โˆฉ ๐ด๐‘–

โ€ข By Axioms of probability

๐‘† = ๐ด1 โˆช ๐ด2 โˆช โ€ฆ โˆช ๐ด๐‘˜๐ด๐‘– โˆฉ ๐ด๐‘— = โˆ…

๐ต = ๐ต โˆฉ ๐‘† = ๐ต โˆฉ ๐ด1 โˆช ๐ต โˆฉ ๐ด2 โˆชโ‹ฏโˆช ๐ต โˆฉ ๐ด๐‘˜

๐‘ƒ ๐ต =

๐‘–=1

๐‘˜

๐‘ƒ(๐ต โˆฉ๐ด๐‘–)

Page 15: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Bayes Theorem II: Conditional Probability

โ€ข Conditional probability

โ€ข Multiplication rule

โ€ข Total probability

๐‘ƒ ๐ต ๐ด๐‘– =)๐‘ƒ(๐ด๐‘– โˆฉ ๐ต

)๐‘ƒ(๐ด๐‘–

๐‘ƒ ๐ด๐‘– โˆฉ ๐ต = ๐‘ƒ ๐ด๐‘– ๐‘ƒ ๐ต ๐ด๐‘–

๐‘ƒ ๐ต =

๐‘–=1

๐‘˜

๐‘ƒ(๐ต โˆฉ๐ด๐‘–) =

๐‘–=1

๐‘˜

)๐‘ƒ ๐ด๐‘– ๐‘ƒ(๐ต|๐ด๐‘–

Page 16: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Bayes III: The Theorem

โ€ข Direct result of previous definitionsโ€ข Multiplication rule

โ€ข Total Probability

โ€ข Conditionals are โ€œreversedโ€ or โ€œinvertedโ€

๐‘ƒ ๐ด๐‘– ๐ต =)๐‘ƒ(๐ด๐‘– โˆฉ ๐ต

)๐‘ƒ(๐ต=

)๐‘ƒ ๐ด๐‘– ๐‘ƒ(๐ต|๐ด๐‘–

ฯƒ๐‘–=1๐‘˜ )๐‘ƒ ๐ด๐‘– ๐‘ƒ(๐ต|๐ด๐‘–

Page 17: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Quick Bayes Theorem Example

โ€ข Let C = โ€œconformingโ€

โ€ข A part is sampled, tested, and found to be conforming: ๐‘ƒ ๐ด3 ๐ถ = ?

VendorP(C|Vendor)

(%)

Vendor

Proportion

(%)

A1 88 30

A2 85 20

A3 95 50

Page 18: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Bayes Statistical Formulation

โ€ข Parameter ฮธ uncertainty

โ€ข Prior distribution ๐‘(๐œƒ)

โ€ข Conditional on sample: Likelihood

โ€ข Posterior distribution ๐‘ ๐œƒ ๐‘‹

โ€ข Posterior proportional to numerator

๐‘ ๐œƒ ๐‘‹ =)๐ฟ ๐œƒ ๐‘‹ ๐‘(๐œƒ

)๐‘(๐‘‹

๐‘ ๐‘‹ =

๐ด๐‘™๐‘™ ๐‘–

)๐ฟ ๐œƒ๐‘– ๐‘‹ ๐‘(๐œƒ๐‘– Discrete case

เถฑ๐ฟ ๐œƒ ๐‘‹ ๐‘ ๐œƒ d๐œƒ Continuous Case

)๐‘ ๐œƒ ๐‘‹ โˆ ๐ฟ ๐œƒ ๐‘‹ ๐‘(๐œƒ

Page 19: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Proportionality

โ€ข Denominator โ€ข Complex

โ€ข A constant

โ€ข Key information is numerator

โ€ข Standardize numerically if needed

โ€ข Bayes methods frequently computer intensive

)๐‘ ๐œƒ ๐‘‹ โˆ ๐ฟ ๐œƒ ๐‘‹ ๐‘(๐œƒ

๐‘ ๐œƒ ๐‘‹ =)๐ฟ ๐œƒ ๐‘‹ ๐‘(๐œƒ

)๐‘(๐‘‹

Page 20: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Updating Posterior

โ€ข Two independent samples X, Y

โ€ข Posterior from X is prior to Y

โ€ข Updated posterior

๐‘ ๐œƒ ๐‘‹ =)๐ฟ ๐œƒ ๐‘‹ ๐‘(๐œƒ

)๐‘(๐‘‹

๐‘ ๐œƒ ๐‘‹, ๐‘Œ =๐ฟ ๐œƒ ๐‘Œ ๐‘ ๐œƒ ๐‘‹

)๐‘(๐‘Œ=

)๐ฟ ๐œƒ ๐‘Œ ๐ฟ ๐œƒ ๐‘‹ ๐‘(๐œƒ

)๐‘ ๐‘Œ ๐‘(๐‘‹

Page 21: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

High Density Intervals (HDI)

โ€ข Summarizing Posterior Distribution

โ€ข High Density Intervals

โ€ข Probability content (e.g., 95%)

โ€ข Region with largest density valuesโ€ข Similar for symmetric (e.g., normal)

โ€ข May differ for skewed (e.g., Chi-squared)

โ€ข Special tables may be required

โ€ข Source: Krusche, p. 41

โ€ข Special tables for HDI (e.g., inverse log F)

Page 22: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Bayes Analysis: Binomial Sample (Beta prior)

โ€ข Estimating proportion of success ฯ€

โ€ข Noted: Likelihood

โ€ข What prior? Beta distribution is typical

๐‘ฅ๐‘– = แ‰Š1 Success0 Failure

๐ฟ ๐œ‹: ๐‘‹ =เท‘

๐‘–=1

๐‘›

๐œ‹ ๐‘ฅ๐‘– 1 โˆ’ ๐œ‹ 1โˆ’ ๐‘ฅ๐‘– = ๐œ‹๐‘ฅ 1 โˆ’ ๐œ‹ ๐‘›โˆ’๐‘ฅ

Page 23: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Beta Prior for Proportion Success

โ€ข Uncertainty about proportion success (ฯ€)

โ€ข Similarity to likelihood

โ€ข โ€œUninformativeโ€ prior

๐‘ ๐œ‹ =๐œ‹๐›ผโˆ’1 1 โˆ’ ๐œ‹ ๐›ฝโˆ’1

)๐ต(๐›ผ, ๐›ฝ

๐ต ๐›ผ, ๐›ฝ =)ฮ“ ฮฑ ฮ“(ฮฒ

)ฮ“(๐›ผ + ๐›ฝ

Page 24: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Beta Prior for Proportion Success

โ€ข Mean and variance formulas

E ฮ  =๐›ผ

๐›ผ + ๐›ฝ

Var(ฮ ) =๐›ผ๐›ฝ

๐›ผ + ๐›ฝ 2 ๐›ผ + ๐›ฝ + 1

Page 25: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Example: Small Poll

โ€ข Priorโ€ข โ€œWorthโ€ sample 20

โ€ข Estimated Mean 25%

โ€ข Sampleโ€ข Sample size 100

โ€ข Vote favorable 40 (40%)

๐›ผ0 = ๐œ‹0 ๐‘›0๐›ฝ0 = 1 โˆ’ ๐œ‹0 ๐‘›0

๐œ‹0 =๐›ผ0

๐›ผ0 + ๐›ฝ0

๐œ‹1 =๐‘ฅ + ๐›ผ0

๐‘› + ๐›ผ0 + ๐›ฝ0=๐‘ฅ

๐‘›

๐‘›

๐‘› + ๐›ผ0 + ๐›ฝ0+

๐›ผ0๐›ผ0 + ๐›ฝ0

๐›ผ0 + ๐›ฝ0๐‘› + ๐›ผ0 + ๐›ฝ0

Page 26: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Conjugate Priors

โ€ข Prior / Posterior distributions that are similar

โ€ข Conjugate: Posterior/Prior same form

โ€ข Identification of distributional constants simplified

๐‘ ๐œ‹ ~๐œ‹๐›ผโˆ’1 1 โˆ’ ๐œ‹ ๐›ฝโˆ’1

๐ฟ ๐œ‹: ๐‘‹ = ๐œ‹๐‘ฅ 1 โˆ’ ๐œ‹ ๐‘›โˆ’๐‘ฅ

๐‘ ๐œ‹|๐‘‹ ~๐œ‹๐›ผ+๐‘ฅโˆ’1 1 โˆ’ ๐œ‹ ๐›ฝ+๐‘›โˆ’๐‘ฅโˆ’1

Page 27: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Simple Normal-Normal Case for Mean

โ€ข Simplified Caseโ€ข Fixed variance

โ€ข Mean ๐œ‡ has prior parameters ๐œ‡0, ๐œ‘0

โ€ข Derivation steps omitted (Ref: Lee)

)๐œ‡ ~ ๐‘(๐œ‡0, ๐œ‘0)๐‘ฅ ~ ๐‘(๐œ‡, ๐œ‘

๐‘(๐œ‡|๐‘ฅ) โˆ exp โˆ’๐œ‡2 ๐œ‘0

โˆ’1 + ๐œ‘โˆ’1

2+ ๐œ‡

๐œ‡0๐œ‘0

+๐‘ฅ

๐œ‘

Page 28: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Results: Normal-Normal

โ€ข Summarized results

โ€ข Posterior mean weighted value

๐œ‘1 =1

๐œ‘0โˆ’1 + ๐œ‘โˆ’1

๐œ‡1 = ๐œ‘1๐œ‡0๐œ‘0

+๐‘ฅ

๐œ‘

๐œ‡ ~ ๐‘(๐œ‡1, ๐œ‘1)๐‘ฅ ~ ๐‘(๐œ‡, ๐œ‘)

๐œ‡1 = ๐œ‡0๐œ‘0โˆ’1

๐œ‘0โˆ’1 + ๐œ‘โˆ’1

+ ๐‘ฅ๐œ‘โˆ’1

๐œ‘0โˆ’1 + ๐œ‘โˆ’1

Page 29: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Example: Carbon Dating I

โ€ข Ennerdale granophyre

โ€ข Earliest dating: K/Ar in 60โ€™s, 70โ€™s

โ€ข Prior: 370 M-yr, ยฑ20 M-yr

โ€ข Later Rb/Sr 421 ยฑ8 (M-yr)

โ€ข Posterior estimate

Page 30: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Carbon Dating II

โ€ข Substitute Alternative Expert Prior

โ€ข 400 M-yr, ยฑ50 M-yr

โ€ข Revised posterior

โ€ข Note posterior roughly same

Page 31: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Normal-Normal (Multiple Samples)

โ€ข Similar arrangement

โ€ข Multiple samples

โ€ข Variances are constant

๐œ‡ ~ ๐‘(๐œ‡0, ๐œ‘0)๐‘ฅ๐‘– ~ ๐‘(๐œ‡, ๐œ‘)

๐ฟ(๐œ‡|๐‘ฅ) โˆ exp( โˆ’๐œ‡2 ๐œ‘0

โˆ’1 + ๐‘›๐œ‘โˆ’1

2+ ๐œ‡

๐œ‡0๐œ‘0

+ฯƒ๐‘ฅ๐‘–๐œ‘

Page 32: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Results: Multiple Samples

โ€ข Similar analysis

โ€ข As n increases, posterior converges to าง๐‘ฅ

๐œ‘1 =1

๐œ‘0โˆ’1 + ๐‘›๐œ‘โˆ’1

๐œ‡1 = ๐œ‘1๐œ‡0๐œ‘0

+าง๐‘ฅ

๐œ‘/๐‘›

๐œ‡ ~ ๐‘(๐œ‡1, ๐œ‘1)๐‘ฅ ~ ๐‘(๐œ‡, ๐œ‘/๐‘›)

๐œ‡1 = ๐œ‡0๐œ‘

๐œ‘ + ๐‘›๐œ‘0+ าง๐‘ฅ

๐‘›๐œ‘0๐œ‘ + ๐‘›๐œ‘0

Page 33: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Example: Menโ€™s Fittings

โ€ข Modified from Lee (p. 46)

โ€ข Experience: Chest measurement N(38, 9)

โ€ข Shop data 39.8, ยฑ2 on n = 890 samples

Page 34: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Normal: Prior in Variance

โ€ข Default prior in mean uniform

โ€ข Improper for infinite range

โ€ข Varianceโ€ข Uniformity in value (like mean)?

โ€ข Transform: uniform in log ฯ†

โ€ข Conjugate prior in Variancesโ€ข Inverse Chi-squared distribution

๐‘ ๐œ‘ =1

๐œ‘

๐‘ ๐œ‘ โˆ ๐œ‘โˆ’๐œˆ2โˆ’1ex p โˆ’

๐‘†02๐œ‘

๐‘ ๐œ‘|๐‘‹ โˆ ๐œ‘โˆ’๐œˆ+๐‘›2

โˆ’1exp โˆ’๐‘†0 + ๐‘†

2๐œ‘

Page 35: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Conjugate Prior for Normal Variance

โ€ข Inverse chi-squared distribution

โ€ข Exact match not critical (likelihood will dominate)

๐œ‘ ~ ๐‘†0 ๐œ’๐œโˆ’2

๐ธ ๐œ‘ =๐‘†0

๐œˆ โˆ’ 2

Var ๐œ‘ =2๐‘†0

2

๐œˆ โˆ’ 2 2 ๐œˆ โˆ’ 4

Page 36: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

General Approach Hypothesis Tests

โ€ข Hypothesis Tests: Choice between two alternatives

โ€ข Alternatives disjoint and exhaustive of course

โ€ข Priors

โ€ข Posterior

๐ป0: ๐œƒ โˆˆ ฮ˜0 ๐ป1: ๐œƒ โˆˆ ฮ˜1

๐œ‹0 = ๐œƒ โˆˆ ฮ˜0 ๐œ‹1 = ๐œƒ โˆˆ ฮ˜1

)๐‘0 = ๐‘ƒ(๐œƒ โˆˆ ฮ˜0|๐‘‹ )๐‘1 = ๐‘ƒ(๐œƒ โˆˆ ฮ˜1|๐‘‹

๐œ‹0 + ๐œ‹1 = 1 ๐‘0 + ๐‘1 = 1

Page 37: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Hypothesis Tests --- General

โ€ข Prior โ€œoddsโ€

โ€ข Posterior โ€œoddsโ€

โ€ข Bayes Factor Bโ€ข Odds favoring ๐ป0 against ๐ป1

โ€ข Two simple alternativesโ€ข Larger B denotes favor for ๐ป0

๐œ‹0๐œ‹1

=๐œ‹0

1 โˆ’ ๐œ‹0

๐‘0๐‘1

=๐‘0

1 โˆ’ ๐‘0

๐ต =

๐‘0๐‘1๐œ‹0๐œ‹1

๐ต =)๐‘(๐‘‹|๐œƒ0)๐‘(๐‘‹|๐œƒ1

Page 38: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

Summary and Conclusion

โ€ข Bayesian estimation โ€ข Since parameters random, provides probability statements about values

โ€ข Provides mechanism for non-sample information

โ€ข Avoids technical difficulties with likelihood along

โ€ข More advanced analysis computationally intensiveโ€ข Tied to computer software

โ€ข Open source R with application BUGS

โ€ข Machine learning heavily dependent on Bayesian methods

Page 39: Introduction to Bayesian Statistics...It is unanimously agreed that statistics depends somehow on probability. But, as to what probability is and how it is connected with statistics,

References

โ€ข Lee (2012), Bayesian Statistics: An Introduction, 4Ed., Wiley

โ€ข Lindley (1972), Bayesian Statistics, A Review, SIAM.

โ€ข Krusche (2011), Doing Bayesian Data Analysis: A Tutorial with R and BUGS, Academic Press/Elsevier.