Howdy, Stranger!

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

Supported by

Seeds do not reproduce my results...

Hello dear JASP team!

I've been experimenting with setting seeds for Bayesian analyses. I've set my seed in one data file, and then created another JASP file with the very same data. I re-ran the analyses with the very same seed and got different results - some of my Bayes factors have changed by as much as six! Is this something to worry about?

Kind regards,

Anna

Comments

  • This is strange -- I'll make some enquiries

    E.J.

  • Hi Anna,

    thank you very much for contacting us. Could you please describe what specific analysis lead to different results after re-running it with a specified seed?

    Cheers,

    Frantisek

  • Hi Frantisek!

    These were repeated-measures analyses of covariance. Essentially, I had one JASP file full of analyses and I was struggling to wrap my head around what would be the best analytical approach to choose. Eventually, I settled and wanted to have one neat and tidy file, but keep the untidy file. So I opened the very same data set in JASP in a fresh file, entered the analyses with the same seed and voilà, different results...

    Cheers,

    Anna

  • Hi Anna,

    thanks for the quick response. I tried to reproduce your finding using our test datasets but I did not manage to do so. Could I ask you to save the .JASP file from the analyses as well as a screenshot that marks the results that changed, so I can re-run it on my computer? It would greatly help me in solving this issue.

    You can send me the files and screenshot at f.bartos96@gmail.com. I won't share the .JASP file or the screenshot with anyone else.

    Cheers,

    Frantisek

  • Hi Frantisek,

    I'm sorry, I just saw this. I will email you over the course of the next few days.


    Best,

    Anna

  • Hi Anna,

    no problem, looking forward to your email.

    Cheers,

    Frantisek

  • edited April 2021

    Hi, I just saw this, I'm playing with the Bayesian regression as well as was wondering whether this has been solved?

    Thanks

  • Hi Agata,

    Unfortunatelly, I did not receive the email at end and we did not manage to reproduce it internally. If you happen to achive the same problem, let us know please!

    Best,

    Frantisek

  • Hi again, I haven't actually been able to reproduce the error, but I do remember encountering this and I wonder if this can be the question of workflow? Because when I run a regression and then set seed, it doesn't change, so the initial random BF doesn't change. On the other hand, when I set seed before adding predictors, shouldn't it give me a different, non-random result?

  • Hi Agata,

    what you describe should not be the case. Especially in Bayesian Linear Regression where the BF are obtained by quadrature and are not dependent on the seed (the seeds matters for the posterior distribution and interval estimates when the MCMC method is selected). I also tried what you described with Bayesian ANOVAs where the BF computation is dependent on seed. Before setting a seed, I get a BF corresponding to a random seed, after changing the seedm the model is automatically recomputed and produces the same BF even if the analysis is refreshed. This is also the case if you set seed before adding predictors into the model - which gives the same result as if I added the predictors before setting the seed. Or did you had a different combination in mind that I did not check?

    Cheers,

    Frantisek

  • I see, I just wanted to make sure, this is good to know. I think that dispels my doubts, thanks!

  • Hi, I'm really sorry to ring the alarm bells here and then to be offline for so long. After I re-installed JASP, the seed-setting worked just fine, thankfully. I'm not sure what happened but I was transferring the files between Linux at work and my private Mac in my "home office", and maybe something got scrambled there? Now that I've abandoned Linux, I haven't encountered the error again.

  • Hi eniseg2,

    thanks for getting back to us and glad to hear that you did not experience a similar issue again.

    Regarding the file transfer between MacOS and Linux, I do not know whether that could have caused the issue but I will forward it to our team and we will check it out.

    Cheers,

    Frantisek

  • So, I got an answer regarding the same seed usage across different OSes.

    Setting a seed does not guarantee identical results across different OSes. Even completely deterministic algorithms may return different results across different OSes. There are multiple possible reasons for this, but it is not a concern for e.g. MCMC, as long as the chains converge to the same target distribution (e.g. the quantiles converge to similar values after many, many iterations).

    Another thing that differs between OSes is rounding error (i.e., https://en.wikipedia.org/wiki/Round-off_error). This might play more of a role especially in cases where one of the compared models does not describe the data well and its marginal likelihood is hard to estimate. You mentioned that the BF differed by 8, it might sound like a lot, but the relevance is practically irrelevant if the original BF was on the scale of thousands.

    Hope this provides additional clarification,

    Frantisek

  • Hi Frantisek,

    Thank you so much for getting back to me about this issue. I'll make sure not to convert between Linux and Mac regularly to avoid any issues with replication, and to always export & save an HTML file.

    All the best, eniseg

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