apaMeanVariance.Transform.Turnover.Collapse(Results, CurrentWeights, OutputType, Covariances)
=apaMeanVariance.Transform.Turnover.Collapse(Results, CurrentWeights, OutputType, Covariances)Result
Converts the results of a problem transformed with apaMeanVariance.Transform.Turnover into final weights, trades, buys, sells or turnover. Results may be weights (k x (2n + 1)) or rows with volatility, expected return and weights (k x (2n + 3)), e.g. a frontier or results with DoShowVolRetOtherwiseWeightsOnly = TRUE.
Syntax
Results: k x (2n + 1) weights or k x (2n + 3) rows with volatility, expected return and weights of the transformed problem
CurrentWeights: 1 x n vector with the current constituent weights w0, as used in the transformation
OutputType: optional; 0 final weights w0 + trades, preceded by volatility and expected return if Results has them (k x n or k x (n + 2)), 1 trades, 2 buys, 3 sells (negative), all k x n, 4 turnover sum|trades| (k x 1); default: 0
Covariances: optional; n x n covariance matrix; if supplied, the volatility in front of the final weights is recomputed as sqrt(w'Σw) of the final weights, i.e. without TradeVariance; default: volatility of the transformed problem
Remarks
The expected return in front of the final weights is the expected return net of transaction costs. The volatility is a sample or population volatility as Covariances is. If Results is an error message, it is returned unchanged. Rows of Results containing non-numeric cells (e.g. #N/A) return #N/A.
