how to simulate a markov chain?
조회 수: 5 (최근 30일)
이전 댓글 표시
we have a geometric random walk for modeling the behavior of the price of a stock over time. state space is 1,02^j with j from -100 to 100. initial price is p(0) = 1. if p(t) = 1,02^100 then p(t+1) = 1,02^99. if p(t) = 1,02^-100, then p(t+1) = 1,02^-99 with probability 0,99, and the price remains unchanged with probability 0,01- our question is: how do we write a code to simulate the process?
댓글 수: 0
답변 (1개)
Jonathan LeSage
2013년 10월 16일
From what I gather from you description, this question has already been answered:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Markov Chain Models에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!