Calculating the probability of one bin preceding the other
古いコメントを表示
Hi,
I'm having a difficult time with this problem.
A matrix, M (2500x2), was binned into B:
bins = 1:1:8
B =
2 4
1 1
1 1
1 3
1 1
8 8
7 8
I'd like to know the probability of [1,1] proceeding [8,8].
The only thought I have is the obvious: counting each instance of [1,1] where [8,8] comes right before it, and then divide by 2500. However simple that is, I'm unable to implement it.
Any help would be greatly appreciated. Thank you, Scott
2 件のコメント
the cyclist
2014 年 3 月 21 日
For the 7-row example you show, what is the correct value of the probability p? Should it be p = 1/7, because there is one instance of [1 1] of preceding [8 8]? Should it be p = 1, because the only instance of [8 8] is preceded by [1 1]? Or should it be p = 1/3, because out of the 3 instances of [1 1], there is one case where [8 8] comes next? Or something else?
Scott
2014 年 3 月 21 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!