image thumbnail

updated 13 days ago

Yahoo Finance Time Series Analysis Tool by Christian Pass

Performs various time series analysis operations (data export, finance, gui)

Yahoo Finance Time Series Analysis Tool

image thumbnail

updated 14 days ago

Monte Carlo example of the Multi-Factor coupled Commodity Forward curves Simulator by Ahmos Sansom

Implementation of the Multi-Factor multi commodity forward curve simulator (finance, mathematics, optimization)

GetCov(x, y)

LnTestofSims(mySims, LastFC, volFN, Factors)

MultiFactorForwardCurveSimulator(nSims, Seed, historicalFor...

image thumbnail

updated 1 month ago

Building and Extending Portfolio Optimization Models with MATLAB by sri

Object-oriented implementations of the Portfo and the Black-Litterman approach (portfolio optimizatio..., finance, object oriented progr...)

View(varargin)

compareWeights( ExcessHistoricalReturns, ExcessImpliedRetur...

PortfolioBL

image thumbnail

updated 2 months ago

Trinomial tree calibration by Francesco Paolo Esposito

This function calibrates the Hull-White trinomial tree. (finance)

trintree_calswaption( Curve, V, Period, coin )

image thumbnail

updated 3 months ago

Risk-neutral density recovery via spectral analysis by Matthias

Implementation of Monnier (2013) "RND recovery via spectral analysis" (finance, statistics, risk neutral density)

spectralrecovery(X,bid,ask,F,r,tau,nopt)

spectralExample.m

image thumbnail

updated 5 months ago

Black and Shcoles calculator by Hanan Kavitz

Graphical Black and Shcoles calculator for visualizing different sensetives (black and shcoles, finance, gui)

blscalculator(varargin)

image thumbnail

updated 6 months ago

Mining Economics with MATLAB by David Willingham

Simulates a distribution of Net Present Values of a mine via a forecasting model for Iron Ore Prices (commodities, mining, economics)

FitNPV(NPV)

cashflow(data,NTrials,SYear)

discounting(data,capex,NTrials,sales,discFactorY,salesb)

image thumbnail

updated 7 months ago

Analyzing Investment Strategies with CVaR Portfolio Optimization by Bob Taylor

Scripts and data to demonstrate the new PortfolioCVaR object in Financial Toolbox. (finance, portfolio, optimization)

covered_engine(X, T, mu, sigma, ...

gbm_calibration(t0, X, t)

gbm_call_price(X0, K, r0, T, sigma)

image thumbnail

updated 8 months ago

Matrix Decomposition by Aleksander

Positive definite correlation matrix based on spectral decomposition. Now both for .m, C and Mex (spectral decompositio..., cholesky decompositio..., correlation matrix)

SpectralDP(Correlation)

image thumbnail

updated 9 months ago

Markowitz Efficient Frontier by Luca Beldi

Calculates the Markowitz Efficient Frontier (efficient frontier, mean standard deviati..., finance)

EfficientFrontier( Assets , NumPoints, LongOnly)

image thumbnail

updated 9 months ago

CVaR Portfolio Optimization by Seth DeLand

Conditional Value at Risk (CVaR) portfolio optimization with the PortfolioCVaR object (portfolio optimizatio..., cvar, conditional value at ...)

CVaRPortfolioOptimizationExample.m

image thumbnail

updated 1 year ago

Estimation of Nelson-Siegel and Svensson Models by Kamil Kladivko

Estimation of zero yield curve from coupon bond prices by Nelson-Siegel or Svensson model. (interpolation, nelson siegel, yield curve)

NScurve(Params, Tau, Model)

NSerror.m

NSest(Bonds, ShortRates, Model, Optimization)

image thumbnail

updated 1 year ago

ARMAX-GARCH-K Toolbox (Estimation, Forecasting, Simulation and Value-at-Risk Applications) by Alexandros Gabrielsen

ARMAX-GARCH-K Toolbox (agarch, statistics, apgarch)

[mu h]=egarchcore(parameters, data, ar, ma, x, p, q, y, m, ...

agarchcore(parameters, data, ar, ma, x, p, q, y, m, z, v, T...

apgarchcore(parameters, data, ar, ma, x, p, q, y, m, z, v, ...

image thumbnail

updated 1 year ago

Improving MATLABĀ® performance when solving financial optimization problems by Jorge Paloschi

Jorge Paloschi,PHD and Sri Krishnamurthy,CFA May 2011, http://www.wilmott.com/magazine.cfm (optimization, finance, symbolic)

OptimizationWithSymbolicToolboxDemo()

vectorize(s)

image thumbnail

updated 2 years ago

Fully Flexible Extreme Views by Attilio Meucci

Entropy Pooling for extreme views on CVaR (finance, statistics, portfolio management)

Prior2Posterior(M, Q, M_Q, S, G, S_G)

gaussHermiteMesh(J)

hermitePolynomial(n)

image thumbnail

updated 2 years ago

Review of Dynamic Allocation Strategies by Attilio Meucci

Convex versus Concave Management, CPPI, OBPI, portfolio insurance, etc. (finance, statistics, portfolio management)

D=Delta(Time_to_Maturity,Stock_Value,Stock_Volatility,Strik...

K=Solve4Strike(Strike,Time_to_Maturity,Stock_Value,Stock_Vo...

S_Main.m

image thumbnail

updated 2 years ago

Fully Flexible Views and Stress-testing by Attilio Meucci

Full generalization of Black-Litterman and related techniques via entropy pooling (blacklitterman, analysis, finance)

CVaR=ComputeCVaR(Units,Scenarios,Conf)

Constr=SetUpConstraints(Securities);

EfficientFrontier(X,p, Options);

image thumbnail

updated 2 years ago

Using MATLAB to Optimize Portfolios with Financial Toolbox by Bob Taylor

Scripts and data to demonstrate the new Portfolio object in Financial Toolbox. (backtesting, analysis, finance)

part1_plot(varargin)

PortfolioDemo

part1_intro.m

image thumbnail

updated 2 years ago

In sample Value at Risk and backtesting with the Pearson type IV distribution by Stavros Stavroyiannis

Garch(1,1) model with Pearson type IV distribution innovations and Value at Risk backtesting (christoffersen, finance, garch)

results=varinPIV(data)

image thumbnail

updated 2 years ago

In sample value at risk and backtesting by Stavros Stavroyiannis

Garch model with Gaussian distribution and Value at Risk in sample backtesting. (kupiec, garch, finance)

results=varin(data)

image thumbnail

updated 2 years ago

n-person game by Bapi Chatterjee

The function npg solves an n-person finite non-co-operative game to compute one Nash Equilibrium. (matrix game, nperson game, non co operative game)

gamer(n,Us,p,I,s,ub,lb,x0,Aeq,beq,pay,U)

npg(M,U)

image thumbnail

updated 2 years ago

Portfolio Optimizer Tool by Patric Schenk

Portfolio Optimizer Tool (data import, gui, finance)

portfoliotool(varargin)

ExcelReport

Portfolio

image thumbnail

updated 2 years ago

Efficient Frontier GUI by Ameya Deoras

Efficient frontier from Yahoo or database data. (finance, analysis, modeling)

dfdb_port_opt(varargin)

cleanMe.m

image thumbnail

updated 2 years ago

Financial Seminar Demos by Ameya Deoras

Demos commonly used at The MathWorks financial modeling seminars. (finance, modeling, portfolio var risk ma...)

PortVaRmc(nsim)

blsimpv(so,x,r,t,call,maxiter,q,tol)

blsvis(varargin)

image thumbnail

updated 2 years ago

Pricing Derivatives Securities using MATLAB by Mayeda Reyes-Kattar

Examples of pricing derivatives securities using MATLAB (webinar, derivatives securitie..., finance)

optionvanilla(S,E,r,T,sigma,divYield,nSims,nSteps,type, sho...

portbrowser(varargin)

treedemonew(Command, Trees,Port,RS)

image thumbnail

updated almost 3 years ago

Local Regression 2D by Arnout Tilgenkamp

Local Regression for 2D Data with plot/figure (finance, regression, local regression)

[y0]=MLR(X,y,span,X0,robuust)

image thumbnail

updated almost 3 years ago

Speeding Up Optimization Problems with Parallel Computing by Stuart Kozola

Files from the webinar: Speeding up optimization problems with parallel computing (aerospace, automotive, demo)

Electron Problem Optimization

First Order Reliability Method using a Simulink Flutter Mod...

computebestportfolioPCT(expRet,expCov,portSize,targetRet)

image thumbnail

updated 3 years ago

UK Power Value Neutral hedge by Ahmos Sansom

Example of a value neutral hedge for the UK power (electricity) markets. (optimization, mathematics, finance)

HedgeMinNightBaseFunction(x, TotalPrice, BasePrice, NightPr...

HedgeMinNightPeakBaseFunction(x, TotalPrice, BasePrice, Pea...

HedgeMinPeakBaseFunction(x, TotalPrice, BasePrice, PeakPric...

image thumbnail

updated 3 years ago

Term Structure of Volatility Calibration by Ahmos Sansom

Derives term structure parameters used in Commodity pricing (mathematics, finance, optimization)

ReturnsLFMin(x,returns,t,TermType)

TermFunMin(x,t,LocalVol,TermType)

sigma=TermFun(x,t,TermType)

image thumbnail

updated 3 years ago

Salvaging a Linear Correlation Matrix by Ahmos Sansom

Finds the nearest correlation Matrix using the Hypershere or Spectral decomposition methods (finance, mathematics)

HypersphereDecomp(InMat, Tol, minOption)

SpectralDecomp(InMat)

CorrelationExample.m

image thumbnail

updated 4 years ago

Risk and Asset Allocation by Attilio Meucci

Software for quantitative portfolio and risk management (value at risk, modeling, analysis)

...

Addition(x,y);

Adendotd(dense, d, sparAd, Ablk, blkstart)

image thumbnail

updated 4 years ago

Developing a Financial Market Index Tracker using MATLAB OOP and Genetic Algorithms by Mark Hoyle

Files used in the webinar of the same name (finance, modeling, analysis)

CreateIndex(NumDays,NumStocks,TotalNumStocks,L,K,s,t)

GetGAData(Wts,Stocks,Dates,StartDate)

InitialiseSession

image thumbnail

updated 4 years ago

Zero Sum Game by Bapi Chatterjee

Solves a zero sum matrix game. (finance, game theory, optimization)

[C,D,msg]=zsum(A)

image thumbnail

updated almost 5 years ago

CVaR optimization by Manthos Vogiatzoglou

The file provides scripts and functions to estimate the optimal portfolio by minimizing CVaR (analysis, conditional value at ..., market risk)

[fval,w]=CVaROptimization(ScenRets, R0, VaR0, beta, UB, LB...

CVaR_fmincon.m

CVaR_fmincon_variousR0.m

image thumbnail

updated 5 years ago

Monte Carlo simulations using MATLAB by Vincent Leclercq

Demonstrations of Monte Carlo simulations in MATLAB (monte carlo simulatio..., finance, analysis)

BlsHalton(S0,X,r,T,sigma,NPoints)

BlsMC(S0,X,r,T,sigma,NRepl)

BlsMCAV(S0,X,r,T,sigma,NRepl)

image thumbnail

updated 5 years ago

MathWorks Webinar: Using Genetic Algorithms in Financial Applications by Oren Rosen

Presentation and M-Files for MathWorks Webinar (cardinality constra, analysis, finance)

ComputeBestPortfolio(expRet,expCov,portSize,targetRet)

ComputeHistoricalStats(prices)

FindTarget(target)

image thumbnail

updated 5 years ago

Devise a bond maturity strategy by Dimitri Shvorob

(via an interactive GUI) (finance, modeling, analysis)

bondito

image thumbnail

updated 6 years ago

Matlab-GUI equity derivative calculator by Biao

equity derivative calculator using matlab GUI (finance, modeling, analysis)

American(varargin)

AssetorNth(varargin)

CashorNth(varargin)

image thumbnail

updated almost 7 years ago

GMM by zhiguang cao

GMM (analysis, code for gmm, gmm)

[paraest,t_sta,V,it,Chi_sta,Pvalue]=gmmestimation(moment,pa...

image thumbnail

updated 7 years ago

Interactive Efficient Frontier Viewer by Paul Taylor

Efficient Frontier Viewer using nested functions (finance, modeling, analysis)

portfolio_eff_frontier(varargin)

image thumbnail

updated 7 years ago

Using MATLAB to Develop Portfolio Optimization Models by Bob Taylor

Scripts to create time-evolving efficient frontiers and to backtest results. (analysis, portfolio, optimization)

[DateHistory, RetHistory, PortHistory, X, Y, Z ] ...

ecmninit(Data, InitMethod)

ecmnmle(Data, InitMethod, MaxIter, Tolerance, Mean0, Covar0...

image thumbnail

updated 8 years ago

Style Analysis by Andreas Steiner

Rolling style analysis. (rolling style analysi..., finance, modeling)

COLS(x)

CORREL(X,Y)

COVAR(X,Y)

image thumbnail

updated 9 years ago

Option Pricing Demo by Kas Sharma

Demo of an option pricing tool (blackscholes, option pricing, analysis)

blsapp2()

blsapp2()

blsbtyval(SpotPrice, ...

image thumbnail

updated 9 years ago

Pricing Derivatives by Kas Sharma

Ilustrates how to price an instrument portfolio. (finance, modeling, analysis)

ProcessInst.m

ProcessInstBDT.m

image thumbnail

updated almost 10 years ago

TechTradeTool by Stephanos-George Papadamou-Stephanides

A toolbox for calculating and optimizing technical analysis trading systems. (finance, modeling, analysis)

[bestPerf, opt1, opt2, opt3, opt4]=optimizeSys2(menuIn, st,...

[bestPerf, opt1, opt2]=optimizeSys(st, tsIn, lobIdays1, upb...

[plRuin]=plotpruin(NT,MT,XWO,XPL,XRF,NR);

Contact us