Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [time-series]

A temporal sequence of events measured at discrete points in time.

7
votes
2answers
804 views

Fitting Copula and Simulation

I would greatly appreciate any insights into the problem described below, regarding using the data obtained from applying the functions of the rugarch package ...
8
votes
5answers
3k views

Thoughts on how quantitative hedge funds use machine learning to invest in the stock market (algorithms, examples of data, etc.)

I believe there are several post on this general topic but I thought I would start my own thread. I'm a former fundamental hedge fund investor (i.e. modeling a company's financials, forecasting the ...
2
votes
1answer
145 views

Automate selection of BIC-minimizing ARIMA(1,0,X) model

I want to estimate an ARIMA(1,0,X) model. The MA(X) in the model is selected to minimize BIC. I have the following code employing the function auto.arima from "...
1
vote
0answers
119 views

Marginal Distribution using GARCH model

I have n return series. I fitted AR(1)-GARCH(1,1) to each return series. Then used PIT(residuals) to transform the residuals to uniform. Then I fitted n dim copula to the data. I simulated 1000 points ...
1
vote
0answers
58 views

Distribution of AR and MA polynoms roots in ARMA/ARMA-GARCH models

I have another noob question. So, for example, I have ARMA(2,2) model: $$ x_{t} = \phi_{1}x_{t-1} + \phi_{2}x_{t-2} + e_{t} + \theta_{1} e_{t-1} + \theta_{2} e_{t-2}$$. So, I have 2 polynoms: $$1 - \...
0
votes
1answer
73 views

How to create time series with lagged in R [closed]

Would anyone else advise me, how to create time series with lagged in R. I would the result is the difference with lagged, there is a function Delt() but the result is the percentage change. Please ...
1
vote
1answer
122 views

What causes discontinuities with stock prices

With reference to the figure above, why is it that the price at which the stock closed at on monday not equal to the open price on tuesday? Is this discontinuity due to an adjustment in the price to ...
2
votes
1answer
244 views

distribution of AR, MA coefficients estimation in ARMA-GARCH models

could anyone give me an information about distributions of AR and MA coefficients via estimation? So, for example, I have ARMA(1,1)-GARCH(1,1) model with the same AR(1) and MA(1) parameters ...
2
votes
0answers
400 views

Johansen cointegration test interpretation in R

I want to test my time series for cointegration using the Johansen test in R. I got the following result and so I know now that at least 5 out of 9 of my time series are cointegrated. My question is, ...
4
votes
2answers
844 views

How to deal with negative ARCH terms?

Lately I have been trying to fit a GJR-GARCH(1,1) model to fit against the S&P 500 returns over 1985-2015 but I have ran into some problems I can't quite figure out. The GJR-GARCH(1,1) model I am ...
3
votes
2answers
426 views

ARMA-GARCH model, bset model selection and confidence levels calculations

I'm a newbie in GARCH models. I tried to realize ARMA(p, q)-GARCH(u, v) model via fGarch. So, 2 main questions. 1) Can I use BIC/AIC for selection best model for all (p, q)-(u, v) models? So, is it ...
3
votes
1answer
128 views

Dickey Fuller test of stationarity differenced data

In this case study on treasury yeilds from MIT, I have a question on page 11-12. He uses this data getYahooData("^TNX", start=20000101, end=20130531) His logic on page 11 is this "only daily is ...
3
votes
2answers
563 views

Error when trying to estimate a Markov-switching Var model in R

I'm trying to estimate a Markov-switching VAR in R using the command msvar. These are the first 10 entries of my two time series. I have 798. When I try to run this I get an Error message ...
1
vote
0answers
74 views

Problem with overlapping data when testing futures market efficiency

In my case non-overlapping data would represent the scenario where futures prices (3 months) do not correspond to the futures spot prices in terms of delivery date. For example, futures settlement ...
2
votes
1answer
323 views

Strategies to merge bid, offer and trade price time series into a single price time series?

I'm doing intraday analysis on low volume stocks. There are just a few trades every day, but a whole host of bids and offers. In order to reduce the sparsity of the time series data I'd like to ...
2
votes
0answers
139 views

VAR models for log-returns?

I am wondering if Vector Autoregression (and other autoregressive models) is a sound modelling for the daily (not high-frequency!) log-returns of time series from liquid financial markets. One can ...
0
votes
0answers
25 views

Guidance on machine learning approach to improve interpolation [duplicate]

I am thinking about doing a project on improving the accuracy of some stock signals. The signals are fundamentally derived scores on a per stock basis. They are updated on a weekly or monthly ...
5
votes
2answers
990 views

ruGarch - Interpret test results

I'm working on a R project, trying to calibrate a GARCH (so far, (1,1) ) model to the yields of the STOXX50 index over the last 2 years. I've tried the garch function of the tseries package, but it ...
2
votes
0answers
172 views

Are there alternatives to the Box-Tiao decomposition in identifying mean reverting portfolios?

As documented in this paper, Box-Tiao decomposition (a way to decompose multiple time series into components with different speeds of mean reversion) can be used to identify mean reverting portfolios. ...
2
votes
1answer
486 views

VEC GARCH (1,1) for 4 time series

I have to estimate a VEC GARCH(1,1) model in R. I already tried rmgarch, fGarch, ccgarch, mgarch, tsDyn. Has somebody estimated a model like that? ...
1
vote
0answers
88 views

Estimating Daily Dynamics using Hourly Data

This article gives a nice outline of how daily data can be used to estimate cointegration on a monthly horizon. http://papers.ssrn.com/sol3/papers.cfm?abstract_id=1404905 I'd like to use the same ...
0
votes
1answer
212 views

Aggregating Tick Data

I have Level 1 data that has already been aggregated into 0.5s buckets by the exchange. I'd like to further aggregate the data into hourly and daily buckets. I plan to do this by simply taking a ...
1
vote
1answer
403 views

Memory-efficient clustering algorithm for large time-series datasets

I have a simulation task at hand with ~1e6 time series to be clustered on the basis of statistical measures every few days in the simulation. Most clustering methods I'm aware of require an affinity ...
1
vote
1answer
308 views

Is there any package in R for conditional autoregressive range model (CARR)?

I am working on a project which requires volatility estimation using range based volatility. Is there any package in R which helps me in estimating the CARR model proposed by Chou (2005).
2
votes
1answer
439 views

Augmented Dickey-Fuller Questions

I've been searching in bibliography about this test applied to an AR(p) model. $$Q(L)(Y_{t})=c+\epsilon_{t}$$ Where L represent the Lag Operator and $Q=1-\phi_{1}x-.....-\phi_{p}x^{p}$ is the ...
1
vote
0answers
520 views

How to fit exogenous + GARCH Model In Python?

I am studying a textbook of statistics / econometrics, using Python for my computational needs. I have encountered GARCH models and my understanding is that this is a commonly used model. In an ...
-1
votes
2answers
573 views

adding dummy variable to ts object in r for particular quarter

I've looked all over and can't seem to get a clear idea of how to do this; I have ts data with quarterly frequencies. I simply want to add a dummy variable only for the data corresponding to Q4 but I ...
2
votes
2answers
1k views

Augmented Dickey-Fuller Test/ Unit Root test on multiple time series dataframe in R

I have a dataset/dataframe in which I have calculated the daily log returns of five thousand companies and these companies are as column as well. I want carry out ADF test on this dataframe. I have ...
10
votes
2answers
5k views

What time series database can be used with Python and Pandas?

I'm looking for a time series database that can be easily used with Python and Pandas objects such as DataFrame, Panel... But these objects will always contains time series. Ideally I'm looking for ...
4
votes
1answer
318 views

Is that a good way to work with the ARMA model?

I would like to share with you what I am doing to get your point of view, and to make a better trading system in collaboration. I am working on EURUSD forex, and I am trying to find a way to place ...
10
votes
1answer
2k views

ARMA+GARCH prediction with package rugarch (R)

I am analyzing FTSE 100 series, from 2007-01-01 to 2010-12-31 (university exam homework). I have to use the data 'til 2010-11-30 as sample, and the remaining (23) observations as in-sample forecast (...
0
votes
1answer
3k views

Transforming daily simple returns into weekly

I am trying to transform daily simple returns into weekly returns. I am using the following R code: ...
2
votes
1answer
196 views

Estimating Carma(2,1) parameters (using yuima package)

I am very new to R, and particularly to the yuima package, so I was hoping someone would be able to help me. I have some data (daily prices) that I wish to fit to ...
3
votes
0answers
170 views

When to use SV or a GARCH model

So i have been searching for this answer for a question if there is a rule or something that would say when to use GARCH type model or use an stochastic volatility model to predict the volatility of ...
1
vote
0answers
99 views

copulas and time series

Can anbody explain how Copulas are used to describe the dependency between, for example, the return on two different stocks? I understand how Copulas are the "glue" that binds the two marginals ...
2
votes
2answers
307 views

Normalizing SPY ETF time series data with its sector ETFs?

I am looking to compare the returns of a sector rotation strategy between the various SPDR sector ETFs XLY, XLP, XLE, XLF, XLV, XLI, XLB, XLK, XLU vs. ...
0
votes
1answer
527 views

CCC-Garch predict

So I'm trying to measure the VaR of 2 stock with a multivariate GARCH model, so im using the CCC model. I need to predict the standard-diviation and the mean but the ...
2
votes
2answers
367 views

Logistic Regression of tick data

I've been given some data (it's financial tick data) and I want to predict based on some observed variables whether the next move will be up, down or unchanged. So I have been trying to use ...
-1
votes
1answer
140 views

Calculating the volatility for Black Scholes

The following problem is from the book by Hull. I did it but I am not sure it is right. I am hoping that somebody here can tell me if I did it right and if not where I went wrong. Thanks Bob Problem:...
0
votes
3answers
1k views
5
votes
1answer
2k views

Shannon's entropy for financial times-series (return)

I'm looking at Shannon entropy, and generaly at ways to tell noise from signal when observing intraday returns (at the minute level for now). In python, e.g. I've implemented the fomula (sum of P(xi)*...
4
votes
0answers
727 views

Application of time series analysis to Bitcoin prices

Various exchanges allow for the trading of Bitcoins. The price of Bitcoin was very volatile since the inception of the system, today it is 391.76 USD: I wonder whether time series analysis tools from ...
1
vote
0answers
71 views

state space for affine yield curve

i would like to reproduce in R the working paper " Affine free arbitrage class of Nelson Siegel term structure". The authors considering the equation of nelson siegel plus an adjustment term(C(t,T)) ...
4
votes
0answers
203 views

Fourth moment of ARCH(2)

I am studying the ARCH(2) process given by $$X_t = \sqrt{h_t} \varepsilon_t$$ where $$h_t = \alpha_0 + \alpha_1 X_{t-1} ^2 + \alpha_2 X_{t-2} ^2$$ and $\varepsilon_t$ follows $N(0,1)$. ...
2
votes
1answer
91 views

Define polynomials of an ARMA process

I just started out with financial time series and I'm a bit stuck with ARMA models. I have the following ARMA process: $-4X_t + X_{t-2} = Z_t + 0.2 Z_{t-1}$ Now I am being asked for the polynomials ...
2
votes
2answers
219 views

Is there an implementation of VAR-EGARCH model in R or Stata?

I am writing my undergrad honor thesis and want to run a multivariable VAR-EGARCH model. Is there any package in R or formulas in Stata 14 that allows me to implement directly? If not, could you ...
1
vote
2answers
153 views

What methods are there for showing a time series is mean reverting?

What methods are there for showing a time series is mean reverting? Is there a hypothesis relating to the Ornstein-Uhlenbeck process for example?
1
vote
1answer
188 views

Building predictive model for closing price using only previous days data

I am trying to determine which quantitative model to try and build a predictive model for the next day's closing price for all the S&P stocks based on their bar for that particular day. However, I ...
1
vote
0answers
86 views

Transforming Variables in time series regression

I have multiple quarterly time series data and trying to build a linear regression model using this dataset. Should the transformations on the LHS and RHS be the same i.e QoQ percent changes? Could ...
11
votes
2answers
574 views

Imposing Restrictions on Cointegrating Vectors, R example

The code given below estimates a VEC model with 4 cointegrating vectors. It is a reproducible code, so just copy and paste into your R console (or script editor). ...