But you don’t add the different probabilities for where the first item can be. No matter where the first item in the pair occurs, there is a 1⁄29 chance the second item will be next to it.
Another way of thinking about it. For any given item, there are 29 other items. Only one of these can be paired with the first, and all these events are equally likely. The probabilty has to be 1⁄29 and not 1⁄15, because 29 copies of 1⁄15 don’t add up to 1.
Actually, the probability is slightly lower, because some items are not leaves at all. If we take the tree in the article as representative, then we expect roughly 10 pairs among the 30 items, which gives a probability of 2/87: with probability 2⁄3, the first item ends up as half of a pair, and with probability 1⁄29, the second item ends up as the other half of that same pair.
In the movie subtree, we have 12 items, so the probability of being paired is 2⁄33 rather than 1⁄6.
Edit: Laplace-adjusting the “is a random item in a pair” probability, we get 11⁄32 as an estimate instead, and 1⁄16 for the final answer. Note that because of the reasonably large sample size, this doesn’t make a huge difference.
there is a 1⁄29 chance the second item will be next to it.
‘Next to it’, perhaps, but wouldn’t that other alternative be putting it on an entirely different branch and so less similar as it’s not in the same cluster?movie-fearandloathing may be ‘next to’ fanfiction-remiscent-afterthought-threecharacters in the clustering, but not nearly as similar to it as movie-1492conquestparadise… so I think that analysis is less right than my own simple one.
By “next to it” I meant paired with it, sorry. Not all items have another item paired with them, which is where the correction factor of 2⁄3 comes from.
Not all items have another item paired with them, which is where the correction factor of 2⁄3 comes from.
Ah, I see. I’m not sure how I should deal with the non-pairing or multiple node groups; I didn’t take them into account in advance, and anything based on observing the tree that was generated feels ad hoc. So if the odds of the pairing given random chance is overestimated, that means the strength of the pairing is being underestimated, right, and the likelihood ratio is weaker than it ‘should’ be? I’m fine with leaving that alone: as I said, when possible I tried to make conclusions as weak as possible.
What do the pairings even mean, exactly? I would expect two nodes to be paired iff they are closer to each other than to any other node. If this is the case, then under a random-distance model with n nodes the probability that two specific nodes are paired is 1/(2n-3).
But you don’t add the different probabilities for where the first item can be. No matter where the first item in the pair occurs, there is a 1⁄29 chance the second item will be next to it.
Another way of thinking about it. For any given item, there are 29 other items. Only one of these can be paired with the first, and all these events are equally likely. The probabilty has to be 1⁄29 and not 1⁄15, because 29 copies of 1⁄15 don’t add up to 1.
Actually, the probability is slightly lower, because some items are not leaves at all. If we take the tree in the article as representative, then we expect roughly 10 pairs among the 30 items, which gives a probability of 2/87: with probability 2⁄3, the first item ends up as half of a pair, and with probability 1⁄29, the second item ends up as the other half of that same pair.
In the movie subtree, we have 12 items, so the probability of being paired is 2⁄33 rather than 1⁄6.
Edit: Laplace-adjusting the “is a random item in a pair” probability, we get 11⁄32 as an estimate instead, and 1⁄16 for the final answer. Note that because of the reasonably large sample size, this doesn’t make a huge difference.
‘Next to it’, perhaps, but wouldn’t that other alternative be putting it on an entirely different branch and so less similar as it’s not in the same cluster?
movie-fearandloathing
may be ‘next to’fanfiction-remiscent-afterthought-threecharacters
in the clustering, but not nearly as similar to it asmovie-1492conquestparadise
… so I think that analysis is less right than my own simple one.By “next to it” I meant paired with it, sorry. Not all items have another item paired with them, which is where the correction factor of 2⁄3 comes from.
Ah, I see. I’m not sure how I should deal with the non-pairing or multiple node groups; I didn’t take them into account in advance, and anything based on observing the tree that was generated feels ad hoc. So if the odds of the pairing given random chance is overestimated, that means the strength of the pairing is being underestimated, right, and the likelihood ratio is weaker than it ‘should’ be? I’m fine with leaving that alone: as I said, when possible I tried to make conclusions as weak as possible.
What do the pairings even mean, exactly? I would expect two nodes to be paired iff they are closer to each other than to any other node. If this is the case, then under a random-distance model with n nodes the probability that two specific nodes are paired is 1/(2n-3).
As far as I know, it means that they are closer, yes.