I need to write a php class fulfillment script that has to pick 4 numbers from one group (101-159) and then pick one number out of a new group that has the same number set (101-159) and over the history of the sets what is the odds that the one number picked from the second set. I know the odds of that second number that is picked not being that same is higher than it being the same, but how do I show these odds to make a better prediction of the second number.
Ok maybe a sample set of data will help me explain myself :D. These are past real results.
set1 has 101-159 set2 has101-159 rule1: 4 out of set 1 but never same rule2: 1 out of set 2 past test results: set1(115 123 143 145) set2(107) set1(108 113 117 134) set2(135) set1(105 133 141 154) set2(113) set1(104 119 128 129) set2(105) set1(112 124 143 144) set2(107) set1(106 129 134 144) set2(128) set1(110 130 136 138) set2(101) set1(105 119 129 145) set2(125) set1(103 121 124 138) set2(124) set1(121 135 146 147) set2(102) set1(105 123 125 128) set2(134) set1(116 121 127 141) set2(114) set1(114 116 130 151) set2(119) set1(110 113 115 131) set2(118)
So I need to predict the next 3 set with it being super close. Like a one in 10 chance kinda close is the goal. Can someone steer me in the right direction?
[EDIT]
So to try to explain it a different way, as we all read things differently, I need to take a bunch of database entries and use them, and some basic formation of the entry data to predict the next one in line to occur within a error rate of something like 20%.
The rules are
There are two sets of numbers per entry full row will be formed like (FYI: random & user choice) ==================================================== set1(115 123 143 145) | set2(107) 4 numbers between 101-159 non-matching | 1 number numbers between 101-159 ====================================================
Now there are some thing I think are common sense, but do know how to form in a math equation. Like, the odds of a set like this
set1(101 102 103 104) set2(101) <<< odd very low.
also I would think this would be a low accuring running of the chocies.
<<< odd very low. set1(101 112 123 134) set2(101) set1(102 113 124 135) set2(101) set1(103 114 125 136) set2(101)
And I would also think the odds of the numbers being evenly spread out is very low.. ie:
set1(101 111 121 131) set2(141)