Home » Archimedes archive » Acorn User » AU 1997-01 B.adf » Regulars » StarInfo/Amery/!CtrlLimit/!Help
StarInfo/Amery/!CtrlLimit/!Help
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn User » AU 1997-01 B.adf » Regulars |
Filename: | StarInfo/Amery/!CtrlLimit/!Help |
Read OK: | ✔ |
File size: | 0710 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
This is a simple program to demonstrate the Central Limit Theorum. When you run it it will ask you for the sample size, the bigger this is the better the fit to a Normal distribution. If the size is too big then the program will just be slow. The suggested size of 16 is good. For each individual test a random number is generated between 0 and 639. These are averaged over the sample. The graph (in blue) is of the means of the samples. It should approximate a Normal. As the graph reaches the top of the screen it is redrawn at a smaller scale. If Space is pressed the programme will superimpose a Normal (in yellow) on the graph so you can check the fit. The programme then quits. If Return is pressed the same happens but it first saves the data to a file (!Data) inside the application. To reload this data run the application with Return held down. �1996 Jonathan Amery Released as Acorn User PD My Address. ----------- If you have any comments, have noticed any bugs, have been directed here by the program (yes it can happen), suggestions for other utilities, wish to give me some money (for some reason) or anything else not covered by the disclaimer above you will be able to contact me at: 3, The Avenue, Clifton, YORK. ENGLAND YO3 6AS. for the forseeable future. (I will be going to University in September/October 1996 but mail will be forwarded.) If trying to contact me after June 1999 my address may well have changed, see future Readme/!Help files. Until about the 20th June 1996 I can be contacted at: jona@bootham.demon.co.uk Thank-you for reading this long boring document. Jonathan Amery.
00000000 20 20 20 20 20 20 20 20 54 68 69 73 20 69 73 20 | This is | 00000010 61 20 73 69 6d 70 6c 65 20 70 72 6f 67 72 61 6d |a simple program| 00000020 20 74 6f 20 64 65 6d 6f 6e 73 74 72 61 74 65 20 | to demonstrate | 00000030 74 68 65 20 43 65 6e 74 72 61 6c 20 4c 69 6d 69 |the Central Limi| 00000040 74 20 54 68 65 6f 72 75 6d 2e 20 20 0a 57 68 65 |t Theorum. .Whe| 00000050 6e 20 79 6f 75 20 72 75 6e 20 69 74 20 69 74 20 |n you run it it | 00000060 77 69 6c 6c 20 61 73 6b 20 79 6f 75 20 66 6f 72 |will ask you for| 00000070 20 74 68 65 20 73 61 6d 70 6c 65 20 73 69 7a 65 | the sample size| 00000080 2c 20 74 68 65 20 62 69 67 67 65 72 20 74 68 69 |, the bigger thi| 00000090 73 20 69 73 20 74 68 65 20 0a 62 65 74 74 65 72 |s is the .better| 000000a0 20 74 68 65 20 66 69 74 20 74 6f 20 61 20 4e 6f | the fit to a No| 000000b0 72 6d 61 6c 20 64 69 73 74 72 69 62 75 74 69 6f |rmal distributio| 000000c0 6e 2e 20 20 49 66 20 74 68 65 20 73 69 7a 65 20 |n. If the size | 000000d0 69 73 20 74 6f 6f 20 62 69 67 20 74 68 65 6e 20 |is too big then | 000000e0 74 68 65 20 70 72 6f 67 72 61 6d 20 77 69 6c 6c |the program will| 000000f0 20 6a 75 73 74 20 62 65 20 73 6c 6f 77 2e 20 20 | just be slow. | 00000100 54 68 65 20 73 75 67 67 65 73 74 65 64 20 73 69 |The suggested si| 00000110 7a 65 20 6f 66 20 31 36 20 69 73 20 67 6f 6f 64 |ze of 16 is good| 00000120 2e 0a 20 20 20 20 20 20 20 20 46 6f 72 20 65 61 |.. For ea| 00000130 63 68 20 69 6e 64 69 76 69 64 75 61 6c 20 74 65 |ch individual te| 00000140 73 74 20 61 20 72 61 6e 64 6f 6d 20 6e 75 6d 62 |st a random numb| 00000150 65 72 20 69 73 20 67 65 6e 65 72 61 74 65 64 20 |er is generated | 00000160 62 65 74 77 65 65 6e 20 30 20 61 6e 64 20 20 36 |between 0 and 6| 00000170 33 39 2e 20 20 54 68 65 73 65 20 61 72 65 20 61 |39. These are a| 00000180 76 65 72 61 67 65 64 20 6f 76 65 72 20 74 68 65 |veraged over the| 00000190 20 73 61 6d 70 6c 65 2e 20 20 54 68 65 20 67 72 | sample. The gr| 000001a0 61 70 68 20 28 69 6e 20 62 6c 75 65 29 20 69 73 |aph (in blue) is| 000001b0 20 6f 66 20 74 68 65 0a 6d 65 61 6e 73 20 6f 66 | of the.means of| 000001c0 20 74 68 65 20 73 61 6d 70 6c 65 73 2e 20 20 49 | the samples. I| 000001d0 74 20 73 68 6f 75 6c 64 20 61 70 70 72 6f 78 69 |t should approxi| 000001e0 6d 61 74 65 20 61 20 4e 6f 72 6d 61 6c 2e 0a 20 |mate a Normal.. | 000001f0 20 20 20 20 20 20 20 41 73 20 74 68 65 20 67 72 | As the gr| 00000200 61 70 68 20 72 65 61 63 68 65 73 20 74 68 65 20 |aph reaches the | 00000210 74 6f 70 20 6f 66 20 74 68 65 20 73 63 72 65 65 |top of the scree| 00000220 6e 20 69 74 20 69 73 20 72 65 64 72 61 77 6e 20 |n it is redrawn | 00000230 61 74 20 61 20 73 6d 61 6c 6c 65 72 20 73 63 61 |at a smaller sca| 00000240 6c 65 2e 20 20 49 66 20 53 70 61 63 65 20 69 73 |le. If Space is| 00000250 20 70 72 65 73 73 65 64 20 74 68 65 20 70 72 6f | pressed the pro| 00000260 67 72 61 6d 6d 65 20 77 69 6c 6c 20 73 75 70 65 |gramme will supe| 00000270 72 69 6d 70 6f 73 65 20 61 20 4e 6f 72 6d 61 6c |rimpose a Normal| 00000280 20 28 69 6e 20 0a 79 65 6c 6c 6f 77 29 20 6f 6e | (in .yellow) on| 00000290 20 74 68 65 20 67 72 61 70 68 20 73 6f 20 79 6f | the graph so yo| 000002a0 75 20 63 61 6e 20 63 68 65 63 6b 20 74 68 65 20 |u can check the | 000002b0 66 69 74 2e 20 20 54 68 65 20 70 72 6f 67 72 61 |fit. The progra| 000002c0 6d 6d 65 20 74 68 65 6e 20 71 75 69 74 73 2e 0a |mme then quits..| 000002d0 20 20 20 20 20 20 20 20 49 66 20 52 65 74 75 72 | If Retur| 000002e0 6e 20 69 73 20 70 72 65 73 73 65 64 20 74 68 65 |n is pressed the| 000002f0 20 73 61 6d 65 20 68 61 70 70 65 6e 73 20 62 75 | same happens bu| 00000300 74 20 69 74 20 66 69 72 73 74 20 73 61 76 65 73 |t it first saves| 00000310 20 74 68 65 20 64 61 74 61 20 74 6f 20 61 20 66 | the data to a f| 00000320 69 6c 65 20 28 21 44 61 74 61 29 20 69 6e 73 69 |ile (!Data) insi| 00000330 64 65 20 74 68 65 20 61 70 70 6c 69 63 61 74 69 |de the applicati| 00000340 6f 6e 2e 20 20 54 6f 20 72 65 6c 6f 61 64 20 74 |on. To reload t| 00000350 68 69 73 20 64 61 74 61 20 72 75 6e 20 74 68 65 |his data run the| 00000360 20 0a 61 70 70 6c 69 63 61 74 69 6f 6e 20 77 69 | .application wi| 00000370 74 68 20 52 65 74 75 72 6e 20 68 65 6c 64 20 64 |th Return held d| 00000380 6f 77 6e 2e 0a 20 20 20 20 20 20 20 20 0a 0a 20 |own.. .. | 00000390 20 20 20 20 20 20 20 a9 31 39 39 36 20 4a 6f 6e | .1996 Jon| 000003a0 61 74 68 61 6e 20 41 6d 65 72 79 0a 20 20 20 20 |athan Amery. | 000003b0 20 20 20 20 52 65 6c 65 61 73 65 64 20 61 73 20 | Released as | 000003c0 41 63 6f 72 6e 20 55 73 65 72 20 50 44 0a 0a 4d |Acorn User PD..M| 000003d0 79 20 41 64 64 72 65 73 73 2e 0a 2d 2d 2d 2d 2d |y Address..-----| 000003e0 2d 2d 2d 2d 2d 2d 0a 20 20 20 20 20 20 20 20 49 |------. I| 000003f0 66 20 79 6f 75 20 68 61 76 65 20 61 6e 79 20 63 |f you have any c| 00000400 6f 6d 6d 65 6e 74 73 2c 20 68 61 76 65 20 6e 6f |omments, have no| 00000410 74 69 63 65 64 20 61 6e 79 20 62 75 67 73 2c 20 |ticed any bugs, | 00000420 68 61 76 65 20 62 65 65 6e 20 64 69 72 65 63 74 |have been direct| 00000430 65 64 0a 68 65 72 65 20 62 79 20 74 68 65 20 70 |ed.here by the p| 00000440 72 6f 67 72 61 6d 20 28 79 65 73 20 69 74 20 63 |rogram (yes it c| 00000450 61 6e 20 68 61 70 70 65 6e 29 2c 20 73 75 67 67 |an happen), sugg| 00000460 65 73 74 69 6f 6e 73 20 66 6f 72 20 6f 74 68 65 |estions for othe| 00000470 72 20 75 74 69 6c 69 74 69 65 73 2c 0a 77 69 73 |r utilities,.wis| 00000480 68 20 74 6f 20 67 69 76 65 20 6d 65 20 73 6f 6d |h to give me som| 00000490 65 20 6d 6f 6e 65 79 20 28 66 6f 72 20 73 6f 6d |e money (for som| 000004a0 65 20 72 65 61 73 6f 6e 29 20 6f 72 20 61 6e 79 |e reason) or any| 000004b0 74 68 69 6e 67 20 65 6c 73 65 20 6e 6f 74 20 63 |thing else not c| 000004c0 6f 76 65 72 65 64 20 62 79 0a 74 68 65 20 64 69 |overed by.the di| 000004d0 73 63 6c 61 69 6d 65 72 20 61 62 6f 76 65 20 79 |sclaimer above y| 000004e0 6f 75 20 77 69 6c 6c 20 62 65 20 61 62 6c 65 20 |ou will be able | 000004f0 74 6f 20 63 6f 6e 74 61 63 74 20 6d 65 20 61 74 |to contact me at| 00000500 3a 0a 0a 20 20 20 20 20 20 20 20 33 2c 20 54 68 |:.. 3, Th| 00000510 65 20 41 76 65 6e 75 65 2c 0a 20 20 20 20 20 20 |e Avenue,. | 00000520 20 20 43 6c 69 66 74 6f 6e 2c 0a 20 20 20 20 20 | Clifton,. | 00000530 20 20 20 59 4f 52 4b 2e 0a 20 20 20 20 20 20 20 | YORK.. | 00000540 20 45 4e 47 4c 41 4e 44 0a 20 20 20 20 20 20 20 | ENGLAND. | 00000550 20 59 4f 33 20 36 41 53 2e 0a 0a 20 20 20 20 20 | YO3 6AS... | 00000560 20 20 20 66 6f 72 20 74 68 65 20 66 6f 72 73 65 | for the forse| 00000570 65 61 62 6c 65 20 66 75 74 75 72 65 2e 20 20 28 |eable future. (| 00000580 49 20 77 69 6c 6c 20 62 65 20 67 6f 69 6e 67 20 |I will be going | 00000590 74 6f 20 55 6e 69 76 65 72 73 69 74 79 20 69 6e |to University in| 000005a0 0a 53 65 70 74 65 6d 62 65 72 2f 4f 63 74 6f 62 |.September/Octob| 000005b0 65 72 20 31 39 39 36 20 62 75 74 20 6d 61 69 6c |er 1996 but mail| 000005c0 20 77 69 6c 6c 20 62 65 20 66 6f 72 77 61 72 64 | will be forward| 000005d0 65 64 2e 29 0a 20 20 20 20 20 20 20 20 49 66 20 |ed.). If | 000005e0 74 72 79 69 6e 67 20 74 6f 20 63 6f 6e 74 61 63 |trying to contac| 000005f0 74 20 6d 65 20 61 66 74 65 72 20 4a 75 6e 65 20 |t me after June | 00000600 31 39 39 39 20 6d 79 20 61 64 64 72 65 73 73 20 |1999 my address | 00000610 6d 61 79 20 77 65 6c 6c 20 68 61 76 65 0a 63 68 |may well have.ch| 00000620 61 6e 67 65 64 2c 20 73 65 65 20 66 75 74 75 72 |anged, see futur| 00000630 65 20 52 65 61 64 6d 65 2f 21 48 65 6c 70 20 66 |e Readme/!Help f| 00000640 69 6c 65 73 2e 0a 0a 20 20 20 20 20 20 20 20 55 |iles... U| 00000650 6e 74 69 6c 20 61 62 6f 75 74 20 74 68 65 20 32 |ntil about the 2| 00000660 30 74 68 20 4a 75 6e 65 20 31 39 39 36 20 49 20 |0th June 1996 I | 00000670 63 61 6e 20 62 65 20 63 6f 6e 74 61 63 74 65 64 |can be contacted| 00000680 20 61 74 3a 0a 20 20 20 20 20 20 20 20 20 20 20 | at:. | 00000690 20 20 20 20 20 6a 6f 6e 61 40 62 6f 6f 74 68 61 | jona@bootha| 000006a0 6d 2e 64 65 6d 6f 6e 2e 63 6f 2e 75 6b 0a 0a 20 |m.demon.co.uk.. | 000006b0 20 20 20 20 20 20 20 54 68 61 6e 6b 2d 79 6f 75 | Thank-you| 000006c0 20 66 6f 72 20 72 65 61 64 69 6e 67 20 74 68 69 | for reading thi| 000006d0 73 20 6c 6f 6e 67 20 62 6f 72 69 6e 67 20 64 6f |s long boring do| 000006e0 63 75 6d 65 6e 74 2e 0a 0a 20 20 20 20 20 20 20 |cument... | 000006f0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000700 20 4a 6f 6e 61 74 68 61 6e 20 41 6d 65 72 79 2e | Jonathan Amery.| 00000710