Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
Mara Pereira
Mara Pereira le 6 Juil 2020
Clôturé : MATLAB Answer Bot le 20 Août 2021
How can I make a function that determines the probability of finding specific sequence?
  3 commentaires
John D'Errico
John D'Errico le 8 Juil 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?

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by