p-direction for circular data #566
Unanswered
tardipede
asked this question in
Theoretical contemplations
Replies: 1 comment 3 replies
-
I wouldn't use the angle approach here. Instead, I would calculate the multivariate distance between the two distributions, such as using Mahalanobis' D |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I recently got stuck in how to calculate the p-direction (or an equivalent index of existence of an effect) of the difference between bivariate posterior samples (i.e. each treatment is described by 2 parameters that can be correlated).
As an example in this image, each posterior sample is plotted with a different color for each treatment (red and black), whereas the two parameters are the two axis (x & y).
Calculating the p-direction of the difference between each parameter is feasible, but in this case, even if it is obvious that the treatments occupy different parameter spaces, when taken individually the parameters do not show an effect (and p-direction are quite low).
My idea to obtain a "general" index of existence that consider both parameters and an eventual correlation between them is to check the angles of vectors connecting points (see image below) in the posterior (given an adequate posterior size/ESS/convergence) to have a vector of data suitable for p-direction calculation.
By using those "posterior" angles I could then test the existence of an effect (difference) between my treatments. My main doubt is however how to define the absence of an effect (with standard univariate variables it is 0) as the "0" angle is not equivalent to the absence of effect.
I tried to first compute the median angle, and then "cut" the circle in half perpendicularly to the median angle (black arrow in the figure below). By calculating the proportion of angles lying in the median half of the circle (divided by the red line in the figure below) over all the angles I could obtain an index of existence equivalent to p-direction for circular data.
I am scratching my head for a while to understand if it is an appropriate and meaningful way to test the presence of an effect between two groups described by two potentially correlated parameters and I´m kinda stuck, so any input/idea/criticism is very welcome!
Thanks,
Matteo
Beta Was this translation helpful? Give feedback.
All reactions