Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How can I make a function that determines the probability of finding specific sequence?

1 visualización (últimos 30 días)
How can I make a function that determines the probability of finding specific sequence?
  3 comentarios
John D'Errico
John D'Errico el 8 de Jul. de 2020
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?

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by