Info
此问题已关闭。 请重新打开它进行编辑或回答。
How can I make a function that determines the probability of finding specific sequence?
1 次查看(过去 30 天)
显示 更早的评论
How can I make a function that determines the probability of finding specific sequence?
3 个评论
John D'Errico
2020-7-8
Will you please stop asking the same confusing question? This is now the third time you have asked this question. Or if you insist, then explain the question, CLEARLY.
Your question, as it is, has no meaning. If you have a long sequence of data, you can compute the FREQUENCY of occurrence in that sequence, of any given subsequence. But that is NOT the probability of the sub-sequence, only a sample estimate of the true probability.
To compute any probability, you need to KNOW the underlying distribution of the elements of the sequence. If you know that probability distribution, then you can in theory, compute the probability as you ask for. For some complex problem statements, it may only be possible to estimate the probability using simulation anyway. Otherwise, given only some data in a single sequence, you can at best only estimate the probability by counting how many times you saw the sub-sequence under study.
If you want a useful answer, then you need to make yourself clear. So...
What do you have? What do you know about the sequence? What assumptions are you willing to make? Can you give a small example, so that others can understand your question better? And what is it that makes this a question about MATLAB, as opposed to a question better served in a forum on probability and statistics?
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!