MulaiMulai sekarang secara gratis

Objective measure values

This exercise is a continuation of the last exercises analysing the output of opt and opt_rebal. All objectives in the portfolio specification are evaluated during the optimization and the values can be extracted with extractObjectiveMeasures(). The objective measures are an important component of the optimization output to analyze. An important use case looks at the result of each iteration/trial of the optimizer. This can give you insight into how the optimizer approaches the optimal solution and potentially tune parameters. We can also analyse the distribution of the in-sample objective values of the optimal portfolios and compare to out-of-sample performance.

Latihan ini adalah bagian dari kursus

Intermediate Portfolio Analysis in R

Lihat Kursus

Petunjuk latihan

  • Extract the objective measures for the single period optimization.
  • Extract the objective measures for the optimization backtest.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.


# Extract the objective measures for the single period optimization


# Extract the objective measures for the optimization backtest

Edit dan Jalankan Kode