apaMeanVariance.Restricted.Bounded.Weights.Resampled.FromRiskTolerance(RiskTolerance, ExpectedReturns, Covariances, LowerBounds, UpperBounds, PortfolioExposure, nSamples, SampleSize, UncertaintyType, IsSampleOtherwisePopulation, DoShowVolRetOtherwiseWeightsOnly)
=apaMeanVariance.Restricted.Bounded.Weights.Resampled.FromRiskTolerance(RiskTolerance, ExpectedReturns, Covariances, LowerBounds, UpperBounds, PortfolioExposure, nSamples, SampleSize, UncertaintyType, IsSampleOtherwisePopulation, DoShowVolRetOtherwiseWeightsOnly)Result
Calculates the composition of a resampled portfolio on the Markowitz mean-variance efficient frontier for a given risk tolerance, i.e. the average of the optimal portfolios across resampled inputs. Important: this is not the Resampled Efficient Frontier by Michaud, which is copyright protected. Optionally, the portfolio volatility and expected return are shown in front of the weights.
Syntax
RiskTolerance: risk tolerance, i.e. the slope of the efficient frontier at the portfolio
ExpectedReturns: 1 x n vector with expected constituent returns
Covariances: n x n covariance matrix
LowerBounds: 1 x n vector with lower constituent exposure bounds
UpperBounds: 1 x n vector with upper constituent exposure bounds
PortfolioExposure: value of the equality constraint on total portfolio exposure as the sum of constituent exposures
nSamples: number of samples to generate
SampleSize: number of observations in each sample
UncertaintyType: 1 = uncertainty about both returns and covariances, 2 = uncertainty about covariances only, 3 = uncertainty about returns only
IsSampleOtherwisePopulation: optional; TRUE for sample covariances (division by n-1), FALSE for population covariances (division by n); default: FALSE
DoShowVolRetOtherwiseWeightsOnly: optional; TRUE returns the portfolio volatility sqrt(w'Σw), calculated from Covariances and therefore a sample or population volatility as Covariances is, the portfolio expected return e'w, and the n constituent weights, i.e. a 1 x (n + 2) row; FALSE returns the weights only; default: FALSE
Algorithm
nSamples return samples of size SampleSize are simulated from a multivariate normal distribution with the given expected returns and covariances.
Remarks
The averaged portfolio satisfies the bounds and the total exposure constraint, but it is generally not efficient with respect to the original inputs.
Covariances of the resampled data are sample (denominator n − 1) or population (denominator n) covariances, set by IsSampleOtherwisePopulation; default: population.
Pressing Esc aborts the calculation; the function then returns "Calculation aborted by user."
