官术网_书友最值得收藏!

Simulating Random Walks

Stochastic processes involve systems that evolve over time (but also more generally in space) according to probabilistic laws. Such systems or models describe the complex phenomena of the real world that have the possibility of being random. These phenomena are more frequent than we can believe. We encounter these phenomena when the quantities we are interested in are not predictable with absolute certainty. However, when such phenomena show a variability of possible outcomes that can be somehow explained or described, then we can introduce a probabilistic model of the phenomenon.

For example, say that we are examining the motion involved in a random walking movement. We study the motion of an object that is constrained to move along a straight line in the two directions allowed. At each movement, it moves randomly to the right or left, each step being of equal length and independent of the other steps. A Markov chain is a stochastic process whereby the evolution of a system depends only on its present state and not on its past state. A Markov chain is characterized by a set of states and by the probability of transition between states. Think of a point that can move randomly forward or backward along a line at discrete intervals of time, covering a certain distance at each interval. This is an example of a random walk. In this chapter, we will simulate a random walk using Markov chains through a Python code implementation.

In this chapter, we will cover the following topics:

  • Random walk
  • Random walk simulation
  • Basic probability concepts
  • Markov chain
  • Forecasting using a Markov chain
  • Markov chain text generator

At the end of the chapter, the reader will know the basic concepts of the Markov process, the basic concepts of random walks, how the random walk algorithms work, know how to use a Markov chain to forecast the weather, and how to simulate random walks using Markov chains.

主站蜘蛛池模板: 武穴市| 黎川县| 武义县| 新余市| 海安县| 海盐县| 德令哈市| 潮安县| 清徐县| 咸宁市| 乃东县| 辽阳市| 吉隆县| 库伦旗| 平谷区| 沅陵县| 循化| 育儿| 嘉黎县| 嘉兴市| 双流县| 咸宁市| 叙永县| 富源县| 合作市| 鄂温| 突泉县| 三江| 泗洪县| 保康县| 齐河县| 扶沟县| 广州市| 宁陵县| 阳朔县| 西宁市| 梅河口市| 白山市| 滦平县| 资阳市| 蓬安县|