--
You received this message because you are subscribed to the Google Groups "hddm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hddm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hddm-users/a9639663-2d84-4224-80fd-c22613cbdcb9n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "hddm-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hddm-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hddm-users/ff13dbdc-c721-4160-b659-3b68569ff1aen%40googlegroups.com.
Dear Dr. Frank,I have figured out my error- it was due to calling the incorrect posterior (from another group). When running the corrected code, the probability that Group 1 is larger than group 2 is 0.5955 (which is the overlap).
__________I have used the following code to generate the scatter plot:Group1_Atld, Group2_Atld = mod_group.nodes_db.node[['v(Group1.Atld)', 'v(Group2.Atld)']]
Group1_Atld= (Group1_Atld.trace())
Group2_Atld= (Group2_Atld.trace())
one_condition=pd.DataFrame(Group1_Atld, columns=['Group1'])
second_condition=pd.DataFrame(Group2_Atld, columns=['Group2'])
both_conditions = pd.concat([one_condition, second_condition],axis=1)
pd.plotting.scatter_matrix(both_conditions, hist_kwds={'bins':70})Thank you for showing me a new way to compare posterior plots - and for your guidance.Kind Regards,ZhamilyaOn Tue, Jul 20, 2021 at 7:38 AM Michael J Frank <Michae...@brown.edu> wrote:Hm, that's odd - if the difference between the traces is 1.0 that would imply that every sample for group 1 is higher than the corresponding one for group 2 (which one could see in the scatter plot) - but that is not the case, as they are mostly uncorrelated and overlapping. I suspect there is a bug somewhere - can you print the output of Group1.trace() and Group2.trace()? and show your code for how you generated those scatter plots?On Mon, Jul 19, 2021 at 9:51 PM Zhamilya Gazman <zhamily...@gmail.com> wrote:Dear Dr. Frank,Thank you for your email. I have plotted the traces from the previous email against each other (please see attached). However, I am not sure how to interpret it. Thank you very much for your time - I am new to HDDM/Bayesian analysis and really appreciate your help.Kind Regards,ZhamilyaOn Mon, Jul 19, 2021 at 3:14 PM Michael J Frank <Michae...@brown.edu> wrote:I mean not to plot the posteriors but to plot the samples from the traces for each group against the other - it would be a scatter plot with each value for group 1 on the x-axis and the value for group 2 on the y-axisOn Mon, Jul 19, 2021 at 3:10 PM Zhamilya Gazman <zhamily...@gmail.com> wrote:Dear Dr. Frank,Thank you for your guidance! I have plotted just the posteriors for the two groups. Is there another check that I can do beyond comparing the posteriors?
Group1, Group2 = mod_group.nodes_db.node[['v(Group1)', 'v(Group2)']]print ((Group1.trace() >Group2.trace()).mean())
1.0