随机漫步模型及其实现
随机漫步(Random Walk)思想最早由Karl Pearson在1905年提出,它是一种不规则的变动形式,在变动过程当中的每一步都是随机的。通常来说,随机漫步被假定为具有马尔可夫链的性质,也即是每一个步骤具有“无记忆”的特性,换句话说,每一次变动都不会影响别的变动。除此之外,还有许多更加复杂的随机漫步。在维度方面,随机漫步处于图和面上,或者维度更多的结构中,例如群。

















How many times will a random walk cross a boundary line if permitted to continue walking forever? A simple random walk on will cross every point an infinite number of times. This result has many names: the level-crossing phenomenon, recurrence or the gambler's ruin. The reason for the last name is as follows: a gambler with a finite amount of money will eventually lose when playing a fair game against a bank with an infinite amount of money. The gambler's money will perform a random walk, and it will reach zero at some point, and the game will be over.
If a and b are positive integers, then the expected number of steps until a one-dimensional simple random walk starting at 0 first hits b or −a is ab. The probability that this walk will hit b before −a is , which can be derived from the fact that simple random walk is a martingale.
Some of the results mentioned above can be derived from properties of Pascal's triangle. The number of different walks of n steps where each step is +1 or −1 is clearly 2n. For the simple random walk, each of these walks are equally likely. In order for Sn to be equal to a number k it is necessary and sufficient that the number of +1 in the walk exceeds those of −1 by k. The number of walks which satisfy is equally the number of ways of choosing (n + k)/2 elements from an n element set,[citation needed] denoted
. For this to be non-zero, it is necessary that n + k be an even number. Therefore, the probability that
is equal to
. By representing entries of Pascal's triangle in terms of factorials and using Stirling's formula, one can obtain good estimates for these probabilities for large values of
.
If the space is confined to + for brevity, the number of ways in which a random walk will land on any given number having five flips can be shown as {0,5,0,4,0,1}.
This relation with Pascal's triangle is demonstrated for small values of n. At zero turns, the only possibility will be to remain at zero. However, at one turn, there is one chance of landing on −1 or one chance of landing on 1. At two turns, a marker at 1 could move to 2 or back to zero. A marker at −1, could move to −2 or back to zero. Therefore, there is one chance of landing on −2, two chances of landing on zero, and one chance of landing on 2.
k | −5 | −4 | −3 | −2 | −1 | 0 | 1 | 2 | 3 | 4 | 5 |
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
1 | ||||||||||
![]() |
1 | 1 | |||||||||
![]() |
1 | 2 | 1 | ||||||||
![]() |
1 | 3 | 3 | 1 | |||||||
![]() |
1 | 4 | 6 | 4 | 1 | ||||||
![]() |
1 | 5 | 10 | 10 | 5 | 1 |
The central limit theorem and the law of the iterated logarithm describe important aspects of the behavior of simple random walk on . In particular, the former entails that as n increases, the probabilities (proportional to the numbers in each row) approach a normal distribution.




更多推荐
所有评论(0)