147 and 997 Random Generator Algorithm
|
12-10-2020, 08:50 PM
(This post was last modified: 12-12-2020 09:47 PM by Nihotte(lma).)
Post: #2
|
|||
|
|||
RE: 147 and 997 Random Generator Algorithm
Hi Gamo !
Thanks for your question in this thread I have found it interesting ! I asked me how to answer to it and I thought of a method So ! In first time, I decided to experiment a distribution of 1000 items between 100 numbers : from 0 to 99. In perfect world, I can expect a fair distribution of 10 items by number (because 100 x 10 = 1000). I can consider a couple of data as the number (0..99) and its number of draws obtained all along the distribution And, if I manage to position and accumulate each pair on a line, I should get a correlation of 1 for a slope of 10. I needed 4 steps to do this : 1) make a distribution of 1000 generations between the 100 numbers 2) see the result of the distribution 3) transfer the results to a statistical structure 4) collect the calculation of the correlation coefficient of the line and calculate the value of its slope. And I would also like to recover the standard deviation of the data. Well. I said to me : it's a job for my HP35s, it can do this ! It has a huge memory, easy to adress from 0 to 99. It's not really slow It has on-board (built-in) statistical functions Then, I made 3 little programs, one for each step 1 to 3. (I will make the step 4 from the keyboard of the calculator) Code:
Usage of LBL H to obtain the initial distribution and try to test 147 : 147 STO S (or 997 STO S) 100 STO M 1000 STO L XEQ H Code:
Usage of LBL G to display each result of the distribution from "winners" 99 to 0 : XEQ G Code:
Usage of LBL F to insert the results of LBL H in the stats registers : 2 axes : 1) to obtain the standard deviations SF 0 XEQ F then Sy and oy from the keyboard (blue arrow and +) 2) to evaluate the quality of the linear regression CF 0 XEQ F then L.R results with r and m from the keyboard (yellow arrow and -) Finally, with this set of programs and the proposed sequence of steps : --> I examine the result of a distribution of 1000 random generations of numbers based on 147 or 997 --> I summary evaluate the quality of this distribution What do I obtain ? I think that gives a better correlation for the random numbers obtained on the basis of generator 997 than on the basis of 147 and also it gives less disparity for the total of the draws of each possible number. That is, the output of numbers over the entire range is more consistent using the generator based on the 997 than on the 147. Therefore, I thought at first it was better to choose a high number 997 > 147 So I have also tested 23, 653, 1283, 1999, 9929, 9931, 62927, 689459 and 851801 In the reality, there are disparate results ! You should see by yourself. I just give you 3 results on 1000 and 10000 draws each. Code:
Now, in my turn, I have a question! Look at the results and see how idyllic the generation obtained on the basis of the number 837799 is ... Could somebody say how is that? Keep you healthy ! |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
147 and 997 Random Generator Algorithm - Gamo - 12-08-2020, 06:57 AM
RE: 147 and 997 Random Generator Algorithm - Nihotte(lma) - 12-10-2020 08:50 PM
RE: 147 and 997 Random Generator Algorithm - EdS2 - 12-11-2020, 10:10 AM
RE: 147 and 997 Random Generator Algorithm - Namir - 12-11-2020, 01:21 PM
RE: 147 and 997 Random Generator Algorithm - Nihotte(lma) - 12-12-2020, 06:19 PM
|
User(s) browsing this thread: 1 Guest(s)