Probability of two adjacent cells being below gaussian percentile
2 次查看(过去 30 天)
显示 更早的评论
Hello, I have a matrix, whose data is described by a gaussian curve. Now I have a probability of 8%, that the data falls below a threshold and is therefore faulty. Is there a way I can calculate the probability of at least two neighbouring cells of the matrix (each cell has 8 neighbours, counting diagonals!) being faulty? Any pointing in the right direction would be appreciated.
Thank you
0 个评论
回答(1 个)
Iain
2014-8-27
Doing it properly can be tricky.
For one "bad" elements - you have an average of 8% - it has 8 neighbours (actually, on average slightly less, but lets not worry about the boundaries) There is a 0.92 probability that one neighbour doesn't fail, so there is a 0.92^8 probability that no neighbour fails (51%).
BUT! That makes the assumption that there is no spatial relationship between elements, when there probably is, so that 51% is probably an underestimate.
Alternatively, you can actually measure the properties of your matrix by thresholding it, and either convolving it with something to highlight pairs of bad elements or by objectising it to get good descriptions of the clumps (bwlabel & regionprops)
4 个评论
Iain
2014-8-27
This is where the "trickiness" comes in. If your matrix is small - say, 7 x 7, you've got 25 elements where the normal stats apply - and 24 where they're improved due to the boundaries - for the central 25 elements , you've got on average, 2 bad elements, and half of those elements will be in a "clump"
If you have a typical image-sized matrix (at least 100x100), its not really a "probability of having two bad elements next to each other", it's more like a "how many pairs of bad elements do I expect on average?" - and then, how do you deal with clumps of 3, 4, and 5 etc. bad pixels.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!