An open source programming language and software environment for statistical computing and graphics.
1
vote
1answer
127 views
Cointegration tests
I'm trying to figure out how to perform cointegration tests in R between 2 time series. I'm using po.test from the package ...
10
votes
0answers
140 views
A non parametric study of VaR with kernel density
I'm working in order to compare the calculation of the VaR between the methodology of copulas and kernel density, all this by using the software r.
The process that I follow is:
Obtain a sample ...
9
votes
0answers
83 views
rugarch: Joint estimation leads to different results
I want to fit an ARMA-GARCH model to my data using rugarch package in R.
First of all, I look at the acf and pacf:
...
5
votes
0answers
462 views
Alternative to Block Bootstrap for Multivariate Time Series
I currently use the following process for bootstrapping a multivariate time series in R:
Determine block sizes - run the function b.star in the np package which produces a block size for each series
...
3
votes
0answers
57 views
How to simulate a Geometric Binomial Process with state/tie dependent increments?
I want to simulate a geometric binomial process with state/time dependent increments.
So the model is given by
\begin{align}R_t=\frac{X_t}{X_{t-1}}\end{align}
\begin{align}P(R_t=u)=p(X_{t-1},t) ...
3
votes
0answers
60 views
RQuantLib: any difference between FixedRateBond() and FixedRateBondPriceByYield() with flat term structure?
Please, consider the following functions from RQuantLib package:
FixedRateBond()
...
3
votes
0answers
220 views
How to balance two Forex crosses correctly to do a linear regression?
I have two cross and an account in EUR:
EUR/USD
GBP/USD
I would like to do a balanced linear regression using R. With "balanced" I mean that I would like to normalize it by calculating the ...
2
votes
0answers
101 views
Philips-Ouliaris test for cointegration
I'm trying to implement cointegration tests using the R urca package. I've figured out the Johansen test (ca.jo), but I'm having trouble with the Philips-Ouliaris test (ca.po). I have two questions:
...
2
votes
0answers
85 views
Error term/Innovation process in ARCH/GARCH processes?
I am wondering about the distribution of the error term/innovation process in a ARCH/GARCH process and its implementation, I am not sure about some points. The basic assumption is
...
2
votes
0answers
49 views
2
votes
0answers
151 views
Markov-Switching E-GARCH with R
I am looking for a R library for modeling a Markov-Switching E-GARCH process.
In other questions at StackExchange related to GARCH models, the package rugarch is often mentionned. Do you recommend it ...
2
votes
0answers
733 views
Backtest pair trade strategy in R
I am looking for some tips on how to run a simple backtest on a pairtrading strategy intraday using eg. 30minute bars.
I have calculated the spread, ...
1
vote
0answers
85 views
Interpolate option volatility in delta space in R
I have a bunch of deltas and option implied vols at those deltas. I would like to interpolate them in R. Interpolating them in delta space seems difficult, since normally you would like the ATM calls ...
1
vote
0answers
79 views
analyze strategy performance with given matrix of weights/time and weekly returns in R
I have a matrix of 259 weekly returns, 50 assets and a portfolio composition for each of the 259 weeks. I would like to test the performance of the portfolio during 52 weeks, rebalancing every 12 ...
1
vote
0answers
257 views
portfolio optimization with a loop
I am attempting to minimize the variance of a 3 stock portfolio using optimization within a loop. What I have done is calculated the stock returns and cov matrix from dates 1980-01-01 to 1989-12-31 ...
1
vote
0answers
157 views
R ARMA-GARCH rugarch package doesn't always converge
I'm trying to compute the standard ARMA(1,1)-GARCH(1,1) as shown in this answer for an entire index,just to store in a database to quickly lookup values for back ...
