If you are given 1000 two digits numbers in a row. You have to find 5 most probable numbers that would appear at 1001th place by using historical pattern. (If we can find probability of occurrence also, it would be really great)

  • $\begingroup$ Your problem sounds like finding a forecast prediction interval (with a pre-defined alpha value). With that alpha value, you indicate how "wide" will your prediction interval be $\endgroup$
    – German C M
    May 26, 2021 at 10:51

1 Answer 1


Without having more context this is how I would approach this -

Assuming there is not meaning to being 'close' in the prediction. I.E, if real 1001 number was 42, then predicting 41 and 99 is just as wrong.

If we assume no stochastic structure to the series, I.E previous number dosnt affect current number I would use the top 5 most frequent numbers as predictions.

If we assume there is a stochastic structure to the series, under our assumption that difference between numbers is not a factor. We can treat this problem as a sequence prediction problem. This is common in text analysis and there are various models that can be used.

Assuming there is a meaning of being 'close' to the prediction.
IF no stochastic nature, use the 5 percentiles based on 1000 values series as predictions.
If yes stochastic nature, use time series modelling. AR(IMA) modelling perhaps.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.