BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Digicha1
Fluorite | Level 6

Hello,

I'm trying to calculate Bayes factor (BF) from my posterior summaries from PROC MCMC. While PROC MCMC produces posterior probabilities (PP), I wondered if I could naively calculate the ratio of two of my posterior probabilities to obtain an approximate BF?

 

Whilst the BF is the ratio of the marginal likelihood and not the PP, if I'm assuming the same prior probabilities (no changes in prior distribution assumptions between both models), could I just take the ratio of the PP from my two models instead? I'm interested in the Bayes factor between P(Diff >0) vs P(Diff <0) in particular, so I'm planning to say BF = P(Diff >0 | D) / (P(Diff < 0 | D).

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
sbxkoenk
SAS Super FREQ

Hello,

 

SESUG Paper 289-2018

A Flexible Approach to Computing Bayes’ Factors with PROC MCMC

Tyler Hicks, University of Kansas

https://www.lexjansen.com/sesug/2018/SESUG2018_Paper-289_Final_PDF.pdf

 

Ciao, Koen

View solution in original post

2 REPLIES 2
sbxkoenk
SAS Super FREQ

Hello,

 

SESUG Paper 289-2018

A Flexible Approach to Computing Bayes’ Factors with PROC MCMC

Tyler Hicks, University of Kansas

https://www.lexjansen.com/sesug/2018/SESUG2018_Paper-289_Final_PDF.pdf

 

Ciao, Koen

Digicha1
Fluorite | Level 6

@sbxkoenk thanks, I found this paper too. From my understanding they have used the posterior probabilities from the outputs, whilst assuming equal prior distributions from the two hypotheses. I've assumed similarly now in my MVN model too. 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 698 views
  • 2 likes
  • 2 in conversation