Numerical computing environment developed to allow matrix manipulations, plotting of functions and data and implementation of algorithms.

learn more… | top users | synonyms

2
votes
1answer
103 views

How to get around flat likelihood function when calibrating GBM parameters

(Hope this is the correct place for this question - I posted it first on stackoverflow:) I want to calibrate jointly the drift mu and volatility sigma of a geometric brownian motion, ...
0
votes
1answer
22 views

Aggregate interactive brokers data in matlab

I am using matlab and interactive brokers API. I am getting real time data using tickerID = ib.realtime({ct},'233',@(varargin)ibEventRealTimeData(varargin{:})); where ib is the interface to ...
0
votes
1answer
36 views

Do I need simulink to model the risks of an option portfolio

I wish to buy Matlab Home and learn to model the risks of a derivatives portfolio and then stress test it. So I am guessing I will need : Stochastic calculus Linear algebra Stats/Probability Some ML ...
4
votes
0answers
177 views

How can I introduce exogenous variables in the equation of the conditional variance?

Is it possible to introduce dummy variables or explanatory variables in the GARCH variance equation (garchset and garchfit).This is done in the mean (ARMAX) equation through the input 'Regress' in ...
3
votes
0answers
25 views

Matlab Portfolio Optimization with bid ask spread

I'm trying to find the optimal portfolio of options and stock which minimizes the standard deviation of the portfolio returns but also taking into consideration the bid and ask prices of the assets. ...
2
votes
0answers
117 views

Stochastic Volatility CIR estimation

Would anyone have a code (pref. Matlab or R) for any type of estimation (QML, GMM) not using option prices of a stochastic volatility model driven by a CIR process described below? \begin{equation} ...
1
vote
0answers
21 views

Initial values for Heston Model calibration

I'm doing a Heston model in Matlab using simple Monte Carlo simulations (5.000 paths and 2 steps per day, simulating 360 days). When I try to calibrate the Heston parameters using fminsearch it takes ...
1
vote
0answers
42 views

How to estimate constrained a constrained VAR(1) with MATLAB?

Suppose I want to estimate the following VAR(1) model: $$ Y_t = \mu + \Phi Y_{t-1} + \varepsilon_t $$ where $Y_t=(y_{1t}, y_{2t},…,y_{kt})'$, $\mu=(\mu_1,…,\mu_{k})’$ and $\Phi$ a matrix of ...
1
vote
0answers
203 views

Autoregressive distributed lag models ADL(p,q) howto in preferably matlab (stata/R/python/C# etc)

Could anyone provide me the details of how to determine the lag order of the distributed lags for an ADL(p,q) model in Matlab or another statistical package (and very much preferably in combination ...
1
vote
0answers
87 views

Handling IQFeed events in Matlab

I need to get some specific market data for my studies, and it seems like the most convenient way for me to do this is to use IQFeed data feed and MATLAB. But unfortunately, since I'm not a seasoned ...
0
votes
0answers
18 views

How to decide if the ARCH coefficient is necessary in the GJR-GARCH model?

I did some analysis for CAC 40, the French market benchmark, for the period 2005-2014, and I tried to fit the data with a GJR(1,1) model in MATLAB. Then some warning showed Lower bound ...
0
votes
0answers
33 views

Interpreting Johansen co integration test

I am a little new to econometrics. Please pardon me for this silly question. I was running a Johansen cointegration test on two time series using the econometrics toolbox provided by James LeSage for ...
0
votes
0answers
53 views

Portfolio Performance Metrics

In comparing different long portfolios in stocks for 15 quarters, where at each quarter I re-balance the portfolio. So what I have done is made a function that outputs the rand value of the portfolio ...
0
votes
0answers
75 views

What is the most elegant way to write a trading (or asset selection) algorithm in MATLAB, based on a simple criterion?

Assume a $T \times N$ matrix $X$ of values for an asset characteristic at time $t \in \{1,2,\dots,T \}$, where $T$ is the observation period in months and $N$ is the number of assets and a ...
0
votes
0answers
89 views

Interpretation of Cointegration results, pValues and t-Stat

This is a follow up to: Cointegration results interpretation validation? I ran another Engel Granger Test on a pair, The results I get: ...
0
votes
0answers
36 views

Engle Granger test returns a 0 in matlab, while correlation factor is .80+. Am I doing something wrong?

Engle Granger test is giving me a ans = 0. The correlation factor is: 0.8+ Does this imply the No cointegration hypothesis is true? i.e. as per my understanding that there is cointegration? I am ...
0
votes
0answers
222 views

Copula Value At Risk

Let's suppose I have two asset in my portfolio. I want to compute Copula Value At Risk. Can you help me? This is the code I wrote: ...
0
votes
0answers
674 views

fetch from yahoo! finance database - varying number of ticks

To test a model with real-life data, I used the fetch-function in matlab to connect to the database of yahoo! finance. My code to try and get 7 different assets' returns is the following: ...