✔ 最佳答案
A simulation was made by designing a Visual Basic Macro. The listing of the program can be found in the link below:
http://www.funp.net/241486
The algorithm for the simulation is:
1.Initialise 31 variables to the same value of 10,000
2.Simulate a random sequence for 31 cards using Visual Basic instructions “Randomize” and “Rnd”.
3.The values of the 31 variables are then modified according to the generated sequence, using the multiplication factor defined in the problem description.
4.Step 2 and 3 are repeated 30 times, to represent 30 days.
5.The maximum of the 31 variables are then recorded, representing the winning amount among 31 participants.
6.The maximum of the first 10 variables are also recorded, representing the winning amount among 10 participants. The remaining 21 data are irrelevant in this particular step.
7.Steps 1 through 6 are repeated 2 million times.
The above simulation took 3 hours 1 minute and 17 seconds to complete. The resulting Excel data file is 72 Mbytes in size and is not easily shareable over the internet.
Note :
1.Since the behaviour of Visual Basic instructions “Randomize” and “Rnd” are not fully known, there is uncertainty regarding how “random” the generated sequences are.
2.Although a significant amount of data were generated, it is very very small compared to the order of magnitude of 31^30, so the reliability of the data pattern generated hinges very much on the randomness of the data generation process.
The obtained average for the case with 31 participants is $25,222.53 while the average for the case with 10 participants is $19,833.42.
If the 2 million data points are segmented into 32 sub-groups with 62,500 data points each, and the average for these 32 sub-groups are compiled, 2 ranges of averages are obtained:
31 participants : $25,154 - $25,305
10 participants : $19,781 - $19,882
Distribution histograms are plotted for the two cases as below, green for 10 participants.
圖片參考:
http://img84.imageshack.us/img84/2444/frequencydistribution.png
http://img84.imageshack.us/img84/2444/frequencydistribution.png