<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def roc(series, window=14):
 """ compute rate of change """

    res = (series - series.shift(window)) / series.shift(window)
    return pd.Series(index=series.index, data=res)