{{Percolation Simulation}} Let be a vector of values of either 1 or 0 where the probability of any value being 1 is ; the probability of a value being 0 is therefore . Define a run of 1s as being a group of consecutive 1s in the vector bounded either by the limits of the vector or by a 0. Let the number of such runs in a given vector of length be . For example, the following vector has
[1 1 0 0 0 1 0 1 1 1] ^^^ ^ ^^^^^Percolation theory states that : ;Task Any calculation of for finite is subject to randomness so should be computed as the average of runs, where . For values of of 0.1, 0.3, 0.5, 0.7, and 0.9, show the effect of varying on the accuracy of simulated . Show your output here. ;See also * [http://mathworld.wolfram.com/s-Run.html s-Run] on Wolfram mathworld.