I am new to random number generation in Python.
I understand the concept of a Markov Chain, but I am unable to convert it into a useful code:
Markov Chain - P(X_m+1 = j|X_m = i, X_m-1 = x_m-1,.....,X_0 = i_0) = P(X_m+1 = j |X_m = i)
For example how could I use Python to generate a Markov chain of real numbers distributed according to the exponential distribution :
P(x) = Ne^{−|x|}
where N is a normalization factor?