Stack Exchange Network

Stack Exchange network consists of 175 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.

6
votes
2answers
307 views

How to deal with zeroes in returns?

Suppose there are two time series that I want to analyze and compare. However, many, or most, of the data are zeroes for some reason. For example, consider a pair of intraday trading returns time ...
6
votes
0answers
118 views

Feller Condition (Cox-Ingersoll-Ross) source

For the Cox-Ingersoll-Ross model $$\text{d}r_t = a(b-r_t)\text{d}t+\sigma\sqrt{r_t}\text{d}W_t$$ the condition (referred to as "Feller condition") $$2ab\geq\sigma^2$$ ensures that the solution is ...
6
votes
0answers
1k views

Asymmetric Volatility Modeling (Interpretation)

I am currently writing a paper on asymmetric volatility modeling of brent, gold, silver, wheat, soybean and corn from 1986-2012 and divided them into 4 sub-sample periods (i.e. 1986-1991, 1991-1997, ...
5
votes
2answers
5k views

Calculating Portfolio Skewness & Kurtosis

I need to calculate the skewness and kurtosis of 2 asset portfolio, can someone please help me with the formulas and definition of terms? Thank you. I have been using the matrices method and I am not ...
5
votes
4answers
2k views

Is there any way to easily estimate and forecast seasonal ARIMA-GARCH model in any software?

I use R to estimate a seasonal ARIMA(8,0,0)(5,0,1)[7] model for the seasonal differences of logs of daily electricity prices: ...
5
votes
1answer
3k views

How do I estimate the parameters of an MA(q) process?

It is relatively easy to estimate the parameters of an autoregressive $AR(p)$ process. How do I do with a moving average $MA(q)$ process?
5
votes
1answer
1k views

How to apply quasi-Monte Carlo to path-dependent options?

Following up on my recent question on variance reduction in a Cox-Ingersoll-Ross Monte Carlo simulation, I would like to learn more about using a quasi-random sequence, such as Sobol or Niederreiter, ...
5
votes
4answers
178 views

What is the industry standard for annualizing returns over non-contiguous time periods?

Suppose I am invested in the same fund for the first 200 days in 2013, some combination of 150 days in 2014, and the last 100 days in 2015. Further suppose that geometrically linking the daily returns ...
5
votes
1answer
704 views

time in time series database - UTC or local

I strictly store UTC time stamps inside time series files or databases, mainly to allow processing several time series together. Timezone information is kept with each time series file or item, so ...
5
votes
3answers
1k views

How to normalize Futures data(different leverage) for cointegration test?

For example I want to construct 2 time series, one for ES and the other for NQ and test for cointegration. ES one point equal to 50$. NQ one point equal to 20$. If I have the following data: ES[0]=...
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)*...
5
votes
1answer
344 views

From $AR(p)$ to SDE

Let the Vasicek model to be $$\Delta r_{t}=k(\theta - r_{t-1})\Delta t+\sigma\Delta z_{t}$$ Due to the fact that $$\Delta r_{t}=r_{t}-r_{t-1}$$ if you let $\Delta t=1$, it is easy to see by ...
5
votes
2answers
267 views

Two correlated time series - driver and follower

Say that there are two time series of highly correlated stocks one of which is the driver and the second one follows the first one. What mathematical measure or formula would you use to identify ...
5
votes
1answer
5k views

How to use Newey West covariance corrector?

I have implemented the following model: daily_vol(t+1) = A*daily_vol(t) + B*weekly_vol(t) + C*monthly_vol(t) + error where vol means volatility, and A, B, C are ...
5
votes
4answers
980 views

Regressor: Nominal return, continuous return or first difference?

Suppose the application is linear models in financial econometrics. If we want to analyze stocks, the standard approach is to take the continuous/log return: $\ln{ \frac{P_t}{P_{t-1}} }$. Suppose, ...
5
votes
3answers
1k views

Pairs trading: Question on non-negative profits, size of the positions and trading signals

I'm trying to backtest Pairs Trading but have become a bit confused on the different methods of selecting pairs, how to look for trading signals and what size of the positions to take in the assets. ...
5
votes
2answers
183 views

Economic contagion to individual stocks (ideas for analysis)

I'm doing my undergraduate thesis on firm-level contagion. Specifically I look at a measure of performance over a financial crisis (e.g. raw stock returns), then run cross-sectional regressions with ...
5
votes
3answers
251 views

estimating the accuracy of a method for forecasting the distribution

Say for a stock I want to do a simulation using 30 days of historical returns, and maybe generate 1000 paths, with 2 days as the forecast horizon. Say I have 100 of these 5 day blocks used for ...
5
votes
1answer
793 views

Measuring momentum as AR(1) process

I would like to measure the momentum in the price of a stock from the time the market opens until the time I trade each day. I want to use this momentum number in post-trade analysis (regression of ...
5
votes
2answers
153 views

Interpretation of Correlation

I have two geometric Brownian motions (GBMs) driven by the same underlying Brownin motion, namely \begin{align*} S_t^1 = S_0^1\exp\left(\left(\mu_1 - \frac{\sigma_1^2}{2}\right)t + \sigma_1 W_t\right),...
5
votes
1answer
526 views

DCC GARCH: specifying ARCH and GARCH parameter matrices in STATA

The command in STATA to estimate the DCC model of two variables is: mgarch dcc ( x1 x2=, noconstant) , arch(1) garch(1) distribution(t) $$ \begin{bmatrix} h_1{...
5
votes
1answer
526 views

What machine learning method is more suitable for prediction of financial time series?

I have time series data for various assets and which I transform to create various features. I have framed the problem as a classification task where I attempt to predict either a positive or negative ...
5
votes
1answer
240 views

Fitting a non linear AR + GARCH(1,1)-M model

I want to fit the following model to a time series: $$ y_{t}=\alpha_{0}+\alpha_{1}y_{t-1}+\alpha_{2}y_{t-1}^{2}+\lambda h_{t}+\varepsilon_{t} $$ $$ h_{t}=\beta_{0}+\beta_{1}\varepsilon_{t-1}^{2}+\...
5
votes
1answer
346 views

Average beta of index consitutents w.r.t. the index is 0.60

I have 1 year time series data of 300 constituents of the Australian All Ordinaries index (which is composed of 491 firms). The missing firms are mostly smaller firms. I run the market model $R_{it} =...
5
votes
2answers
141 views

Is there a relation between these two forecasting/estimation approaches?

When learning econometrics I have usually seen stuff from the following perspective: Assume $Y_t = f(X_t) + e_t$, where f is some function of $X_t$ (typically linear). For example, assume $Y_t = X_t *...
5
votes
0answers
370 views

Calculating volatility of inhomogeneous time series

I am reading an article by Zumbach and Müller whose name is Operators on Inhomogeneous Time Series. This is interesting in general, but my main goal is to learn a good and efficient method to ...
5
votes
0answers
1k views

Hasbrouck's information share

Given a cointegrated set of price series, I am trying to compute the Hasbrouck's information share, as described in page 12-13 of this article. page 7-8 of this article I have the vector error ...
4
votes
6answers
576 views

Book recommendation for time series analysis

I have been trying to wrap my head around Engel-Granger test and jcitest etc. I have failed thus far. If possible can someone guide me about which books to start with and possibly reach to ...
4
votes
2answers
3k views

How to remove outliers in financial times series?

I have a bunch of time series; i need to clean them before modelling. So far I just know the “filtering/smoothing” method : -Ex: moving average methodology (filter the data with a moving average (...
4
votes
4answers
3k views

Unsmoothing of returns

The following problem arises in the context of private equity, which typically report "smoothed" returns (think of it as a moving average). As you can imagine, "smoothed" returns would have a much ...
4
votes
2answers
1k 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 ...
4
votes
3answers
663 views

Transaction Data with Participant ID

For my master thesis, I need high-frequency data with the market participant ID or which identifies the trading parties, respectively. I don't need the entire orderbook but just the matched orders ...
4
votes
2answers
104 views

Imputed values in a multi-index

I have an equal-weighted index on a number of different Indices (from US, Europe and Asian markets). This compound index is constructed from a time series that has missing values (for example, those ...
4
votes
1answer
3k views

How is the MA (moving average model) useful?

How is the MA model useful in modeling financial data, for example the stock indices? For example, from what i understand in the AR (auto-regressive) model portion, we can use the ADF test to check ...
4
votes
2answers
430 views

central limit theorem and VAR

If I have a lot of data points and number of different dependent variables, can I use central limit theorem to assume data is multivariate normal and compute my VAR? Is this the appropriate use of ...
4
votes
2answers
935 views

What's the difference between SA and SAAR?

I've only recently begun working in the quantitative finance field, and I've noticed that some time series I'm given are labeled "seasonally adjusted", and some labeled with "seasonally adjusted ...
4
votes
1answer
226 views

Hansen and Jagannathan distance

Hansen and Jagannathan distance, or HJ-distance for time-series regression of excess test assets return on excess factor return reads: $HJ = \sqrt{\alpha'(E[RR']^{-1})\alpha}$ However, I am little ...
4
votes
3answers
2k views

Calibration of a GBM - what should dt be?

I have a time series of daily data that I want to calibrate GBM parameters $\mu$ and $\sigma$ to. Using the discretized solution $$ S_{t_{i+1}} = S_{t_i}\exp\left(\left(\mu - \frac{\sigma^2}{2}\...
4
votes
1answer
711 views

Is there a measure for the 'degree' of cointegration

Is there a standard (or maybe even intuitive?) way of ranking pairs of cointegrated time series so that one could make statements like the following: ...
4
votes
1answer
206 views

R Calculate future price range and plot the result

First I want to say that I've read this post (How to calculate future distribution of price using volatility?) but it doesn't help much. Here is what I'm trying to do (values are not real) Let's ...
4
votes
1answer
726 views

What is the variance risk premium?

Can someone provide an intuitive understanding of the variance risk premium? I am very confused by this definition and cannot interpret my time series analysis.
4
votes
2answers
110 views

Does heteroskedasticity of returns depend on the time frame?

Similarly to my last question, for which I obtained very interesting and useful answers, I would like to know if there has been any study regarding heteroskedasticity and time-frames of the returns. ...
4
votes
3answers
211 views

Modelling currency exchange rates timeseries data across re-denomation dates

I am working with data for an exotic currency, that has been re-denominated a couple of times during the twenty years of data that I have. What is the best way of 'normalising' the data, so that I ...
4
votes
1answer
2k views

How should we select efficiently orders parameters in time series modelling?

A common way to select orders parameters (ex: to choose the number of AR terms to be included in the model ) in time series modelling is to rely on some Information Criteria (AIC, BIC, Hannan Quinn..)...
4
votes
1answer
347 views

Application of ACD models

I have been playing around with autoregressive conditional duration (ACD) models and I have a nicely working R based implementation using real high frequency data (trades only data). However, what's ...
4
votes
1answer
108 views

How to check if relationship between two variable changes over time?

I am working on a commodity-exchange rate model as part of my thesis. My dependent variable is log of first difference of exchange rate of Colombia and my independent variable is log of first ...
4
votes
1answer
3k views

How to find the formula for the half-life of an AR(1) process (using the Ornstein–Uhlenbeck process)

Using the Ornstein–Uhlenbeck process, I want to prove the half life formula for AR(1) is $$\text{HL}=-\log\left(\frac{2}{ \lambda}\right)$$ I have Ornstein–Uhlenbeck process defined as $$dx_t=\theta(...
4
votes
1answer
943 views

ARIMA model, cannot get rid of low order ACF spike

I've gone through all the steps to fit a good ARIMA model - I plotted the data, I looked at the ADF tests, I looked at the ACF plot with no AR and MA terms just a constants. I came up with an ARMA(0,1,...
4
votes
1answer
505 views

Linear regression and assets direction prediction

I have the following asset returns Y and the predictions for the same periods Y': Y = { 10, 200, -1000, -1, -7 } Y' = { 1, 2, -3, -4, -5 } The OLR R-squared for ...
4
votes
1answer
5k views

How to estimate a multivariate GJR or TARCH model in Eviews?

How do I specify the GARCH/TARCH equation in Eviews 6 in the variance regressors frame, if I want to find out whether there are volatilty spillovers from stock markets A and B to stock market C? P.S. ...