Asset moments can be estimated according to a couple of ways.

Abstract types

# DynAssMgmt.UnivEstimatorType.

UnivEstimator

Abstract super type for asset moment estimators.

source

Estimators

# DynAssMgmt.EWMAType.

EWMA(muPersistence::Float64, covPersistence::Float64)

Exponential weighted moving average estimator of asset moments. muPersistence is the lambda value of the estimator of mean asset returns, and covPersistence is the lambda value for the covariance matrix.

source

Fields of composite types

julia> using DynAssMgmt

julia> fieldnames(EWMA)
2-element Array{Symbol,1}:
 :muPersistence
 :covPersistence

Usage

# DynAssMgmt.applyMethod.

apply(thisEstimator::UnivEstimator, rets::Returns)

Apply some moment estimator to return data. In the background, apply needs to be defined for each possible estimator.

source

# DynAssMgmt.applyOverTimeFunction.

applyOverTime(thisEstimator::UnivEstimator, retsData::Returns, minObs::Int)

Successively apply given moment estimator to return data. minObs determines the minimum number of observations. This bascially defines the first subsample where the estimator will be applied.

source

Functions

# DynAssMgmt.getEwmaMeanFunction.

getEwmaMean(data::Array{Float64, 1}, persistenceVal::Float64)

EWMA estimator of expected value. persistenceVal defines how much weight historic observations get, and hence implicitly also defines the weight of the most recent observation.

source

getEwmaMean(data::Array{Float64, 2}, persistenceVal::Float64)

source

getEwmaMean(data::TimeArray, persistenceVal::Float64)

source

getEwmaMean(data::Returns, persistenceVal::Float64)

source

# DynAssMgmt.getEwmaStdFunction.

getEwmaStd(data::Array{Float64, 1}, persistenceVal::Float64)

EWMA estimator of standard deviation. persistenceVal defines how much weight historic observations get, and hence implicitly also defines the weight of the most recent observation.

source

getEwmaStd(data::Array{Float64, 2}, persistenceVal::Float64)

source

getEwmaStd(data::TimeArray, persistenceVal::Float64)

source

getEwmaStd(data::Returns, persistenceVal::Float64)

source

# DynAssMgmt.getEwmaCovFunction.

getEwmaCov(data::Array{Float64, 1}, persistenceVal::Float64)

EWMA estimator of covariance matrix. persistenceVal defines how much weight historic observations get, and hence implicitly also defines the weight of the most recent observation.

source

getEwmaCov(data::TimeArray, persistenceVal::Float64)

source

getEwmaCov(data::Returns, persistenceVal::Float64)

source