Calculating Bayes Factor from Z score, n, and No

by RichardMillington   Last Updated January 11, 2019 11:19 AM

I'm completely stuck on how to get this answer from a course below.

enter image description here

I guessed the answer, but I'm lost on how they get to it. I did the following in R

N_0 = 1
n = 1000
z = 2.055
BF = (((n+N_0)/n)^0.5)* exp((-1/2)*(n/(n+N_0)*z^2))
[1] 0.121371

Given the Bayes Factor is 3.83, I know I've screwed up somewhere (and got the right answer by accident.

Can anyone help spot my error?

Answers 1

The mistake is in the way you are calculating the BF. The BF should be BF = (((n+N_0)/N_0)^0.5)* exp((-1/2)*(n/(n+N_0)z^2)) based on the formula provided in the text. You have used, BF = (((n+N_0)/n)^0.5) exp((-1/2)*(n/(n+N_0)*z^2))

January 11, 2019 10:50 AM

Related Questions

Updated April 12, 2019 14:19 PM

Updated April 24, 2017 13:19 PM

Updated March 31, 2016 08:08 AM

Updated March 27, 2018 22:19 PM