API Docs

Manual, tutorials and complete function reference

portfolio_kutrosis

Computes kutrosis of portfolio returns.


Usage
portfolio_kutrosis(portfolio)
portfolio
Portfolio object created using portfolio_create() function

Return Value
Numeric vector of portfolio kutrosis values.
Examples
data(goog.data)
data(aapl.data)
data(spy.data)
portfolio=portfolio_create(priceDataIx=spy.data)
portfolio_settings(portfolio,portfolioMetricsMode="price",windowLength = 3600)
portfolio_addPosition(portfolio,'GOOG',goog.data,100)
portfolio_addPosition(portfolio,'AAPL',aapl.data,300)
util_plot2d(portfolio_kutrosis(portfolio))
% load data
goog.data=importdata('data_goog.mat'); 
aapl.data=importdata('data_aapl.mat');  
spy.data=importdata('data_spy.mat'); 

% create portfolio
portfolio=portfolio_create(spy.data,1); 
portfolio_settings(portfolio, 'windowLength', '1h');
portfolio_addPosition(portfolio,'GOOG',goog.data,100);
portfolio_addPosition(portfolio,'AAPL',aapl.data,300);

% plot metric
plot(portfolio_kutrosis(portfolio));