Forecasting a Step-Like Time Series I have an interesting time series dataset.  I have monthly data and I would like to forecast the next 12 months of data points.  I know the dates at which the dependent variable 'may' change up or down (i.e. the changepoints).  One such example excerpt of my dataset is shown below.

My question is, how can I go about forecasting the next 12 months?  I initially tried some other time series methods (e.g. prophet) but that resulted in some very strange, erratic forecasts and this seems like there should be a 'better' approach but my initial investigations have come up short.  Any recommendations would be appreciated.
 A: If you know the dates of your changepoints, there are two possibilities:


*

*Although you know the dates of the changepoints, you know nothing about the vertical change at each change date. In this case, the best you can do is to discard all the data before the last change date and use only the data since then to forecast out. You can only forecast out until the next change date, because after that, you again know nothing.

*In addition to the change date, you also know something about the vertical change. In this case, you might be able to learn something from the entire series (e.g., using dummies to mark each "regime"), and you may be able to forecast beyond the next change date, possibly with some post-processing. How exactly to do so depends on what information you have about the vertical change.
In the example you give, things seem to be very simple indeed, since the time series is constant in each regime. If this is so in general, the naive forecast (forecast the last observation out) is of course optimal, at least until the next change date.
A: Your time series is really strange with a staircase effect where it shift from different means at different times.
I'd suggest an ARIMA modeling in this particular case when it comes to series like that that are purely shift + stay at the mean for a long time.
But since your series isn't obviously stationary, don't forget to work on a differentiate serie.
