Python, Data Science, Technology, Programming, Coding.
And a sample of our mean-reverting time series shows a clear tendency to pull back from extremes to our long-term value of 1.00: Inspecting 1 plot we see the series indeed looks mean-reverting (adjust kappa to increase or decease the mean-reversion factor): Next, and as promised, here is the code