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.

1
vote
2answers
84 views

Reliable data sources of 1,2,3,5,10,30,60,320 minute S&P500 O,H,L,C,V data

I am looking for a reliable data source provider for 1 to 320 minute S&P500 data. Or the ES mini contract. Can anyone suggest a good source for this? Thanks! Andrew
0
votes
0answers
76 views

Time Series clustering

I have financial time series and PCA scores, that I'm trying to cluster. As PCA scores don't have orientation, I would like to know what clustering method would be suitable for clustering these kind ...
1
vote
0answers
695 views

R Help: Daily time series on business days

I have a daily time series in a csv file. With the below command I read the data in a data.frame test <- read.csv("xxxx.csv", header = T, sep=";", dec=",") I ...
0
votes
1answer
846 views

Historical beta: Beta estimation for which time horizon?

In practice historical beta is the most used approach for calculating beta. Some one can use i.e. the last 6 month daily returns of stock i and market m to calculcate this. Nevertheless I am ...
7
votes
0answers
307 views

Why are my GARCH forecasts biased?

I've run an ARMA(1, 1)-GARCH(1, 1) model with normal density on log returns for twelve stocks. I computed the one-step-ahead out of sample forecast for daily volatility on a rolling windows for 500 ...
0
votes
0answers
517 views

How to construct a continuous price time series out of futures raw data in Excel?

My object of research is corn futures: It is well known that corn futures expire 5 times per year: March, May, July, September and December. Due to their finite life that is limited by their maturity,...
1
vote
2answers
200 views

Log-periodic power law model: is it a continuous or discrete-time process?

Are the log-periodic power law models used to predict financial market crashes continuous or discrete-time processes?
3
votes
1answer
204 views

How do you decide what time frame you're going to use when testing for cointegration?

I've been fiddling around with different time frames when doing tests for cointegration between two timeseries, and I've realized that the dates that you use for your start/stop of the test will ...
2
votes
0answers
478 views

Is there a difference between “regression toward the mean” vs “mean reversion”, in the context of financial time series and cash flow analysis?

I read the Wikipedia articles, and it implied that it was different: https://en.wikipedia.org/wiki/Regression_toward_the_mean In finance, the term mean reversion has a different meaning. Jeremy ...
1
vote
3answers
161 views

ARIMA model coefficients from discontinuous data series

Stock prices are not stationary processes during all week or all day. For example EURGBP has low variability at night in Europe but during working hours is changing much more dynamic because of market ...
2
votes
3answers
396 views

Mean and standard deviation of price series with Kalman

I like to calculate the mean and standard deviation of a price series, using the Kalman filter. I am somehow stuck with the deviation, or have some problem in understanding, which my research could ...
1
vote
0answers
73 views

Using GO GARCH to optimize a yearly-rebalanced portfolio based on daily data

Is it reliable to optimize portfolio weights on a yearly-rebalanced portfolio based on the Generalized Orthogonal GARCH (GO-Garch) covariance, coskewness, and cokurtosis matrices with the rmgarch R-...
0
votes
1answer
525 views

How to efficiently get covariance matrices from a rolling window in Matlab?

I'am trying to produce a rolling window to estimate a covariance matrix using a for-loop. I have my returns under the variable returns_sec and I have 260 ...
3
votes
1answer
2k 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(...
1
vote
1answer
205 views

Calculating HIstorical VaR with short time series

Intuitively, Historical VAR is an approach which assumes that in the past data, we have observed everything that can happen, so we consider the worst case(tail). However, when your equity/instrument ...
2
votes
3answers
786 views

Cointegration pair trading - how to test a trading rule using Monte Carlo?

I am doing a research exercise where I have two price series $X_t, Y_t$ which I regress against each other and test for cointegration. Once I confirm that they are cointegrated (using CADF or ...
1
vote
2answers
107 views

Co integration of diverging time series

I have 2 time-series datasets. I am trying to find co integration between them. Now the thing is they are negatively correlated. So if I want to look at the distance between them, would I be right in ...
0
votes
0answers
76 views

Common pre-processing steps for forex data

This is almost certainly going to make me seem like a novice, but googling for answers is very difficult for this sort of thing. My friend asked me to take a look at some forex data recently. My ...
5
votes
4answers
168 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 ...
1
vote
0answers
71 views

Price return or total return for GARCH models

Is there a problem in modeling total return rather than price return when using GARCH models? My line of thinking is that total return includes dividends, which is only a "pseudo-random variable" in ...
1
vote
2answers
620 views

How to adjust regression for rolling returns?

I have a predictor variable (x) and dependent variable (y). Both are monthly rolling annualized returns, which naturally induces significant autocorrelation in x and y. They both also fail to be ...
3
votes
2answers
1k views

Getting data of sub-sector indexes of an S&P 500 index sector using QuantMod in R

Using the quantmod package in R, one can download the S&P500 index using the following command: ...
8
votes
1answer
610 views

Is this a viable method for testing market making strategies?

I found a video game market (steam community market) which allows for trading of in game items between users, most items are <0.25 USD each, and market capitalization appears to be maybe $5-$10 USD ...
38
votes
5answers
17k views

Building Financial Data Time Series Database from scratch

My company is starting a new initiative aimed at building a financial database from scratch. We would be using it in these ways: Time series analysis of: a company's financial data (ex: IBM's total ...
1
vote
2answers
135 views

References for biased forecasts from EGARCH

A few months ago I've read somewhere that although the exponential GARCH model may lead to higher BIC values in comparison to other extensions of the GARCH family (GARCH, GJR-GARCH, TGARCH, ...), ...
1
vote
1answer
95 views

Window length for predictive regressions

I am building a trading strategy that predicts the current period returns using historical returns (think e.g. using an estimated OLS model to predict next weeks return based on this weeks return). ...
0
votes
1answer
744 views

How to estimate an Engle's asymmetric DCC model in R?

I have a $N x d$ matrix of standardized residuals, and I want to estimate the parameters $\alpha$, $\beta$ and $\gamma$ of the asymmetric version (Cappiello, Engle, Sheppard, 2006) of the usual ...
1
vote
0answers
165 views

Example Scalar Model Extended Kalman Filter

I have a simple question. I think not a question is, is a request. This month I have been studying how to understand and implement the Kalman filter algorithm for simple models such as the local level....
4
votes
4answers
255 views

Compare two time series with different frequencies

Lets say I have two time series $X_t$ and $Y_{t,q}$. As an examples, lets say $X_t$ is a series that measures year over year changes in the level of output of a good (say number of widgets). So $X_t = ...
7
votes
1answer
284 views

Block bootstrap to synthesize asset prices

I have a few basic questions on block bootstrapping on a financial time series ('TS'). Assuming my trade universe consists of 10 stocks, I would like to create a set of synthetic prices for all 10 ...
1
vote
0answers
247 views

Problems in computing VaR with GARCH-GPD-copula approach

I use a time-varying Gaussian copula (with GARCH-filtered standardized residuals modeled semiparametrically with Gaussian kernel interior and GPD tails, i.e. generalized pareto distributed) to ...
3
votes
0answers
62 views

False warning messages in R, is it possible?

I'm modeling GARCH-filtered standardized residuals via semiparametric distribution with Gaussian kernel and GPD (generalized pareto distribution) tails with thresholds at 5% and 95%. For some series I'...
1
vote
0answers
56 views

How to get daily OHLC (fints) from minutes OHLC (fints) in MatLab?

I have a minutes OHLC time series stored in fints object, how can I get a new fints object which contains daily OHLC? What is the easiest way to do it?
3
votes
0answers
722 views

'GARCH - extreme value theory - copula' approach to estimate risk measures in R

I'm reading about this approach of using GARCH-EVT-copula methodology to separate univariate and joint estimation and then estimate for example VaR and ES. I wanted to try something similar, but my ...
1
vote
0answers
54 views

Account for empirical relationship between signal and market data

I have two monthly time series : one is a 'signal', on which I will base my decision to buy or short-sell, and the second one is the time serie of a given asset's price. I have implemented this ...
2
votes
2answers
1k views

cumulative return calculation, disagreement

A friend of mine and myself are having an argument on how to correctly determine cumulative return. The dataset has monthly return data and we are trying to determine the 6-month cumulative return. ...
7
votes
1answer
485 views

Why is the GARCH intercept supposed to be strictly positive?

Maybe it's a simple question but I don't really understand why it is theoretically required. Let's take the standard GARCH(1,1) $$\sigma^2_{t+1}=\omega+\alpha\epsilon^2_{t}+\beta\sigma^2_{t}$$ In most ...
1
vote
0answers
115 views

Estimating time-varying tail dependence for Archimedean copulas

Patton (2006) defines the upper tail dependence coefficient for a time-varying bivariate SJC copula as $$\tau^u_t=\Lambda \left(\omega_u + \beta_u \tau^u_{t-1}+\alpha_u \frac{1}{10}\sum^{10}_{i=1}|u_{...
2
votes
1answer
195 views

Time series of European sovereign credit ratings by the Big Three?

I would need time series, from 2000 to 2015 (if possible) of sovereign credit ratings by Moody's, S&P and Fitch. Could you suggest me a source or provide me such a dataset? Thank you very much!
1
vote
0answers
407 views

Cointegration for forex using ARMA model to forecast the spread

I am working on an automatized quantitative strategy that use cointegration in Forex. I am backtesting this strategy in Python. Please see below the python file: https://drive.google.com/file/d/...
1
vote
0answers
153 views

How to write time-varying functions in R? Applied example

Let's say I want to use a Gaussian copula $$C_{R_t}(\eta_1, ..., \eta_n) = N_{R_t}(N^{-1}(\eta_1), ...,N^{-1}(\eta_n))$$ with a time-varying correlation matrix $R_t$. Through DCC we model the ...
4
votes
1answer
523 views

How to obtain Standardized Residuals from a Time-Series?

I have my estimates for an AR(3). To obtain the residuals I'm supposed to use $$Y_t-\hat\phi_0-\hat\phi_1Y_{t-1}-\hat\phi_2Y_{t-2}-\hat\phi_3Y_{t-3},$$ where the Y's are from the dataset. If I do ...
1
vote
1answer
874 views

how to derive critical values for augmented Dickey–Fuller test (ADF) using Monte Carlo method?

Can anybody explain in simple terms how the critical value of the ADF test can be derived using Monte Carlo simulation?
2
votes
1answer
751 views

Does the unconditional variance implied by a GARCH equal the sample variance?

In the MATLAB default settings for GARCH estimation they say "presample conditional variance is the sample average of the squared disturbances of the offset-adjusted response data y". Am I right in ...
0
votes
2answers
198 views

GARCH model is better for index than stock

We have used a standard GARCH(1,1) model with t distributed innovations for daily data of S&P index and JPM stock. Question: is there any financial or statistical reason why the GARCH model ...
-1
votes
1answer
77 views

Open source code based on quandl for security analysis and options priming

Quandl seems to be an excellent source of wide range of free/open financial data. But is there an open source code or platform that uses the quandl datasets to perform security analysis and option ...
-2
votes
2answers
76 views

Is my demand prediction too low?

I have a problem right now at work. For certain business segments, some sales target are established each year. These targets are established based on the managers feelings. It's like this: Manager: ...
-1
votes
1answer
75 views

Determining confidence level of directional signals

With regards to technical analysis, are there ways of determining the confidence level of a directional signal? Taking a relative strength index (RSI) as an example, can the extent to which an asset ...
1
vote
0answers
380 views

How to choose a GARCH model which delivers iid standardized residuals?

For my thesis I first need to examine nine financial time series and fit a conditional volatility model such that the obtained standardized residuals ($z_t = \epsilon_t / \sigma_t$) are approximately ...
2
votes
0answers
173 views

serial correlation, Fama MacBeth (1973) procedure incorporating momentum

I have a question regarding the use of the Fama-MacBeth (1973) procedure on panel data. I am investigating the cross sectional determinants of expected REIT return following the procedure from: Chui, ...