필터 지우기
필터 지우기

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
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!

Translated by