MulaiMulai sekarang secara gratis

Analyze results and compare to benchmark

In the previous exercises of the chapter, we created an equal weight benchmark r_benchmark and ran the following optimizations:

  • Minimize portfolio standard deviation with sample estimates (returns stored in returns_base).
  • Minimize portfolio standard deviation with percentage contribution to risk using sample estimates (returns stored in returns_rb).
  • Minimize portfolio standard deviation with percentage contribution to risk using robust estimates (returns stored in returns_rb_robust).

Now we wish to analyze the performance of the optimization backtests and compare with the benchmark.

Latihan ini adalah bagian dari kursus

Intermediate Portfolio Analysis in R

Lihat Kursus

Petunjuk latihan

  • Combine the returns of the benchmark portfolio and optimizations into a single xts object.
  • Compute and display the annualized returns.
  • Chart the cumulative return and drawdowns.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Combine the returns
ret <- cbind(___, ___, ___, ___)

# Compute annualized returns
table.AnnualizedReturns(R = ___)

# Chart the performance summary
charts.PerformanceSummary(R = ___)
Edit dan Jalankan Kode