(Solved) : 3 Construct Two New Variable Monthly Returns Tsx Btc Hint Monthly Percentage Returns Defin Q44117003 . . .
3. Construct two new variable: monthly returns of TSX andBTC.
Hint: Monthly percentage returns are defined as the priceappreciation with respect to the last months prices: Rt = (Pt -Pt1) / Pt1.
You can calculate the returns following the equation or use thepercentage change function of Pandas: .pct_change().
Alternatively, you can work with the log return of each month iscalculated with respect to the previous months values using the logof prices,
i.e. Rt = ln(Pt) – ln(Pt1)
Expert Answer
Answer to 3. Construct two new variable: monthly returns of TSX and BTC. Hint: Monthly percentage returns are defined as the price…
OR