Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Scale Differences Across Models (new issue - I've seen Richard's Tweet)

Hello everyone,

My ultimate goal is to understand how the scale parameter impacts the prior probability allocated to various standardized effect sizes.

Here's my issue: my math (which is probably wrong) suggests a different relationship between the scales for ttestBF, anovaBF, and generalTestBF. Here's Richard's tweet:

"if X is the t-test prior scale, then X/sqrt(2) is the ANOVA scale, and X/2 is the corresponding regression scale."

However, here's the scales that I get:

1) t-test scale: (m1-m2)/sigma | g ~ Normal(0, g)
2) ANOVA scale: (m1-m2)/sigma | g ~ Normal(0, 2g)
3) generalTest scale: (m1-m2)/ sigma | g ~ Normal(0, 4g)

Here's my math (assume equal cell sizes throughout).

1) t-test follows directly from definition of t-test with prior defined on effect size.
2) ANOVA codes regression coefficient as sqrt(2)/2.

The difference in means is therefore: m1 - m2 = (alpha + betaANOVA * sqrt(2)/2) - (alpha - betaANOVA * sqrt(2)/2) = sqrt(2)*betaANOVA. So betaANOVA = (m1-m2)/sqrt(2). The ANOVA parametrization is:

betaANOVA | g ~ Normal(0, sigma^2 * g)

therefore, (m1-m2)/sigma | g ~ Normal(0, 2g) since betaANOVA*sqrt(2) / sigma | g ~ Normal(0, 2g)

3) Suppose I manually code as (+1, -1). Recall, the regression approach doubly normalizes the effect sizes.

m1 - m2 = (alpha + betaGT) - (alpha - betaGT) = 2*betaGT
so betaGT = (m1 - m2)/2

betaGT | g ~ Normal(0, sigma^2 * (XtX)^-1 * N * g)

With equal cell size,

betaGT | g ~ Normal(0, sigma^2 * g)

(m1-m2)/sigma | g ~ Normal(0, 4 g) since (2 betaGT)/sigma | g ~ Normal(0, 4 g)

Of course, the Bayes Factor package won't tie to my equations because it is programmed to take into account the relationship between the scales the way that Richard has defined them. It seems like with Richard's approach, there are terms that should be squared that are not (since Var(a*x) = a^2 Var(x)).

What am I doing wrong? Please help!

Comments

  • edited May 2018

    I considered that maybe the normal distributions were specified with the mean and standard deviation, but this doesn't seem to be the case in Rouder et al 2012 or in the documentation (e.g. see here: http://127.0.0.1:14490/library/BayesFactor/html/anovaBF.html).

    Is it something to do with the following: "The square-root of the scale for g's corresponding to fixed and random effects is given by rscaleFixed and rscaleRandom, respectively."

    I considered that maybe the rscale values need to be squared before plugging them into the formula. However, I interpret the above quote as talking about how the scale parameter enters into the Inverse Gamma distribution at which point it is squared (so that the formulas match Liang et al 2008; see equation 15).

  • I figured this out.

    x | g ~ Normal(0, x*g)
    and
    g ~ InverseGamma(1/2, (r^2)/2)

    Imply:

    x ~ Cauchy(0, sqrt(x)*r)

    So, indeed, the square root of the multiple of g in the variance must be square rooted to convert to the proper scale for the Cauchy. Sorry for the message!

  • *The multiple of g must be square rooted to get the Cauchy scale parameter. My silly mistakes are now permenanlty stored on the internet. Great.
  • :-)
    It's not silly at all, of course. This stuff is very difficult. And even if it were silly (which it is definitely not), remember that it was the Leibnitz (!) who argued that the chance of throwing "11" with two dice is just as high as the chance of throwing "12".
    ;-)
    E.J.

  • Thanks for the encouragement, E.J. Love the anecdote on Leibnitz.

    Turns out I made another silly mistake in the fact that I used x twice to mean different things. Just to prevent confusion for anyone who reads this string at some point, I meant to say:

    Beta | g ~ Normal(0, x*g)
    and
    g ~ InverseGamma(1/2, (r^2)/2)

    Imply:

    Beta ~ Cauchy(0, sqrt(x)*r)

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games