Why difference a time series for forecasting? From various econometrics/time series analysis/forecasting texts I take that it is common practice to difference time series that have a stochastic trend before modeling them with forecasting models. I assumed that this somehow improves forecasts.
To check this, I coded up an example in which I simulate $N=200$ time points from an unstable AR-process ($\rho = 1.01$), and hence the time series has a stochastic trend. Then I use the first 180 time points to forecast the last 20 time points either by fitting an AR model directly to the raw data, or by fitting it to the differences. Across many repetitions, the forecasting error based on the second approach is on average a bit lower.
Why is this the case? I know that differencing is supposed to remove stochastic trends. But why not simply model the stochastic trend? I am doing this here in the first approach, because the AR parameter $\rho$ is not restricted to $|\rho| < 1$. Yet, the differencing approach is still better. I am looking for an answer that goes beyond "because model XYZ assumes stationary time series", which I find everywhere and which I don't find very insightful.

The reason is because if you have a process that ( say a random walk for ease of explanation ) that has a changing mean at any time $t$ and you difference that process, you will, for all intents and purposes, obtain a process with a constant mean. Once you have a process with a constant mean, then, the forecast is "mostly" forecasting the mean, which, since it's constant, is easier to forecast. Example: Suppose you have a random walk:
$y_t = y_{t-1} + \epsilon_t$
The conditional mean of this process ( expected value of the process at time $t$ ) is $y_{t-1}$ so it's not constant.
Now, difference the process:
$y_t - y_{t-1} = \epsilon_t - \epsilon_{t-1}$
The conditional mean of this process at time $t$ is $\epsilon_{t-1}$ whose expected value is zero. So, you are forecasting a zero mean process which is generally easier to forecast. The same argument sort of holds for any process with a non-constant mean.
Note what I said is really the same thing as saying that you want your series to be stationary which is what you already have been hearing.
