Simulating random walk with "known" prediction

by user2974951   Last Updated September 11, 2019 09:19 AM - source

Suppose a random walk that looks like this

for (i in 2:length(x)) {

enter image description here

The first 700 points are actual data, the other 300 are predictions. The predictions are assumed to be "true", however we suspect that the path will be a lot more variable than predicted.

How can we simulate some random walks, that will oscillate around the predictions (having similar mean) but with arbitrary variability. This to get a better idea of possible paths taken during this time.

Related Questions

Modelling turnovers by a random walk. Is it right?

Updated April 29, 2015 21:08 PM

Dickey Fuller simulation in R

Updated June 03, 2017 20:19 PM

Random walk with "negative coefficient"

Updated October 22, 2018 17:19 PM