
Re: Need evaluation of example method for forecasting randomnumbers.
Posted:
Jan 24, 2005 8:19 AM


socraticquest wrote: > I've been experimenting with a method for forecasting random numbers. > I've provided an example of this method. Are similar methods in use? > What downloads are available?
I guess you're trying to forecast random numbers that have some bias or are correlated in some way. For example maybe you are trying to forecast tomorrow's temperature.
> Take a random sequence of twenty numbers ranging from 1 to 20. The > objective is to predict a twentyfirst number. > > In trials, resulting predictions are often plus or minus oneaway from > the twentyfirst occurring number.
I take this to mean you are allowing an error tolerance of plus or minus one.
> Random number sequence: > 20,13,16,2,11,13,12,6,3,13,12,13,11,17,3,2,14,17,13,16 > > Next, take numbers 1 to 20 and list in descending numerical order 20, > 19,18,17,16 etc. > > The reason for listing the numbers in descending order is that the > majority of numbers are over the median number (10) in the 1 to 20 > range in the above number sequence. If the majority of numbers were at > or under the median number of (10), then a listing of numbers in > ascending order would be used. > > The objectives of using ascending or descending numbers is to get an > analysis which may best reflect the 'randomness' of the number > sequence for subsequent forecasting. > > Next, the descending order of numbers (N) are listed after each of the > twenty random numbers. The objective here is to use each random number > (RN) as a "seed of sorts." The routine has (RN) becoming (N). This > subsequent (N) contains an (RN) value that is tallied. For reference, > the tallied (RN) can be listed as (TRN) > > Listed as / (RN or TRN)(N) /: 2020 / 1319 / 1618 / 217 / 1116 / > 1315 / 1214 / 613 / 312 / 1311 / 1210 / 139 / 118 / 177 / 36 > / 25 / 144 / 173 / 132 / 161 > > Example: (RN) 20 equals (N) 20 that is (TRN) 20. Number 20 is tallied. > // (RN) 13 equals (N) 13 that is (TRN) 6. Number 6 is tallied. // (RN) > 16 equals (N) 11 that is (TRN) 13. Number 13 is tallied //. This > process is repeated until (RN) 16 equals (N) 11 that is (TRN) 13. > Number 13 is tallied. > > Here are the tallies: Listed as (TRN)(final tallies) (Numbers in > sequence that received zero tallies are not noted) 22, 32, 61, > 112, 122, 135, 141, 162, 172, 201. The projected twentyfirst > number (based on frequency) is 13 plus or minus one. The actual > occurring number was 12.
I have a hard time understanding your description. But I think your prediction for the 21st number is just the median of the first 20.
If that's what you are doing, you won't be correct very often. For example, you'll never predict anything near the endpoints of the distribution, so you'll never be correct if the actual number is 1 or 20 in your example.
Using the observed samples as an estimate of the underlying distribution, you could improve upon your method (in terms of the chance of a correct prediction) by picking the mode rather than the median. Actually you should pick N such that the combined observations of N1, N, and N+1 is the highest.
Bob H

