apaReturns.Shrink.Mean(Returns, Shrinkage)
Excel
=apaReturns.Shrink.Mean(Returns, Shrinkage)Result
Shrinks a vector of cross-sectional returns towards the mean return.
Syntax
Returns: 1 x c return vector
Shrinkage: shrinkage factor between 0% and 100%
Algorithm
Each element is calculated as (1 − Shrinkage) * r(i) + Shrinkage * mean(r).
Remarks
The function is volatile.
Related functions
apaReturns.FromAllocations.GrossCalculates portfolio returns from asset returns and allocations, without considering transaction costs.apaReturns.FromAllocations.NetCalculates portfolio returns from asset returns and allocations, net of transaction costs, assuming either equal costs for all assets or asset-specific costs.apaReturns.Means.ArithmeticReturns the arithmetic means of a time series matrix.apaReturns.Means.Arithmetic.JaggedReturns the arithmetic means of a jagged time series matrix.apaReturns.Means.ExpWeightedReturns the exponentially weighted means of a time series matrix.apaReturns.Means.GeometricReturns the geometric means of a time series matrix.apaReturns.Means.Geometric.JaggedReturns the geometric means of a jagged time series matrix.apaReturns.BearReturns the bear market returns, i.e. the portfolio returns when the benchmark return is negative.apaReturns.BoomBustIdentifies retrospective boom and bust phases of a return time series, based on high-water-mark drawdown episodes.apaReturns.BullReturns the bull market returns, i.e. the portfolio returns when the benchmark return is larger than or equal to zero.apaReturns.ContinuousToDiscreteConverts continuous returns into discrete returns.apaReturns.Cumulative.ArithmeticReturns the cumulative return based on continuous subperiod returns, i.e. arithmetic sums.apaReturns.Cumulative.GeometricReturns the cumulative return based on discrete subperiod returns, i.e. chain-linking.apaReturns.FromConstWeightsCalculates portfolio return time series from a matrix of constant constituent weights and a matrix of constituent returns.apaReturns.FromWeightsCalculates a portfolio return time series from time-varying weights and returns.apaReturns.FromPricesConverts prices into discrete or continuous returns.apaReturns.DiscreteToContinuousConverts discrete returns into continuous returns.apaReturns.DownReturns the down market returns, i.e. all negative returns.apaReturns.HoldingPeriods.ArithmeticCalculates the cumulative arithmetic returns for all possible holding periods.apaReturns.HoldingPeriods.GeometricCalculates the cumulative geometric (chain-linked) returns for all possible holding periods.apaReturns.RandomGenerates a 1 x nAssets vector of uniformly distributed random returns between -100% and +100%.apaReturns.RollingReturns the data of a particular rolling window.apaReturns.Rolling.AllReturns all rolling windows, each column containing a window.apaReturns.Rolling.NumberOfWindowsDetermines the number of rolling windows which can be calculated.apaReturns.Shrink.HiShrinks a vector of cross-sectional returns towards the highest return.apaReturns.Shrink.LoShrinks a vector of cross-sectional returns towards the lowest return.apaReturns.Simulate.ARMA22Simulates returns which follow an ARMA(2,2) process.apaReturns.Simulate.GARCH11Simulates returns which follow a GARCH(1,1) process.apaReturns.Simulate.GBMSimulates returns which follow a geometric Brownian motion.apaReturns.LowerExtracts the lower returns, defined as the conditional portfolio returns rp | rb < Threshold.apaReturns.UpperExtracts the upper returns, defined as the conditional portfolio returns rp | rb >= Threshold.apaReturns.UpReturns the up market returns, i.e. all positive returns.
