4. Simple and log inflation. You are given the 2020 and 2021 cpi inflation rates: cpi_2020
and
cpi_2021
. Calculate the simple and log inflation rates using the formulas below:
\[ simple\_inflation_{t} = \frac{cpi_{t}}{cpi_{t-1}} - 1 \]
\[ log\_inflation_{t} = log(\frac{cpi_{t}}{cpi_{t-1}}) \]