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

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.

主站蜘蛛池模板: 安阳县| 舞钢市| 洱源县| 水城县| 高平市| 郸城县| 留坝县| 格尔木市| 繁峙县| 辉县市| 那坡县| 永宁县| 琼中| 高邮市| 黎川县| 彭山县| 得荣县| 遵义县| 靖远县| 若羌县| 津南区| 青铜峡市| 新营市| 郧西县| 贵定县| 北碚区| 鹿邑县| 彰武县| 剑河县| 瑞昌市| 保亭| 广昌县| 长宁区| 兰州市| 奉新县| 安泽县| 马尔康县| 嘉善县| 邢台县| 普宁市| 平山县|