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.

0
votes
0answers
30 views

Negative abnormal stock return and permanent impact

Assume we have a day where stock price falls many standard deviations of the mean (e.g >3) . How could we test, in terms of time-series, if this negative shock is permanent or deminishes in the long ...
0
votes
0answers
40 views

How to find the maximum clean price during lifetime of a bond

I'm trying to find a solution to following question: If I'm buying a bond and assume an upward sloping yield curve, than this bond will (under certain circumstances) experience price gains during his ...
1
vote
2answers
303 views

R: optimize timeseries to minimize “integral”

What I am looking to do is: for a given time-series $P_t$ (which will be constructed from different timeseries itself): $P_t$ = $\beta_1$$I_t^1$+$\beta_2$$I_t^2$+$\beta_3$$I_t^3$ $\qquad$ ($I_t^i$ ...
1
vote
1answer
134 views

Collect all stock returns in one single matrix using quantmod in R

My problem is similar to the one in this question: how do I loop through all the stocks with quantmod and ttr? To estimate the covariance matrix of stock returns, I need a $NxT$ matrix $X$ of returns ...
1
vote
1answer
33 views

Recreating / Extending Bond Time Series

I am trying to analyse historical yield curve dynamics within an across countries and step one is extending / recreating historical yields and/or prices. The challenge is this: lets say a 10 year ...
3
votes
0answers
74 views

What is the purpose of short rate models?

Just venturing into quantitative finance and studying short rate models (Vasicek, CIR, Hull-White etc.). Wanted to ask a very simple intuitive question. How would a practitioner use these models? I ...
0
votes
1answer
33 views

Drop weekend data Vs fill weekend data for GARCH-type modelling

I have a dilemma for an analysis I'm currently on. I doing some GARCH modelling of bitcoin and a fiat currency. There are some null values with the fiat datasets in comparison with bitcoin data as ...
4
votes
1answer
150 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 ...
1
vote
0answers
75 views

Which stats are the best predictors of model sucess in real time? [closed]

What are the best predictors of real time model success in quantitative trading, i.e. # of transactions, length of backtest, StdDev, Skewness, Excess Kurtosis etc and what are the numerical values of ...
0
votes
0answers
15 views

Transform the sd of slope into that of the corresponding elasticity - for impulse response function estimates

As the title implies, I want to transform the sd of slope into the sd of the corresponding elasticity, particularly, in the context of impulse response function in VAR model. Some background ...
1
vote
1answer
92 views

Asset class dynamics differences

If we compare daily return dynamics of the main asset class time series (e.g. Stock indexes, bonds, precious commodities, etc) do we observe quantifiable differences? Are there some reference paper on ...
1
vote
1answer
93 views

How to create a currency independent commodity index

I'm looking for insights on a methodology to create my own bespoke index, specifically a gold index. I'd like to take the price of gold in various currencies, along with the different cross rates ...
0
votes
0answers
335 views

Meyer Packard Algorithm and its implementation

I have been trying to programatically implement a type of genetic algorithm called the Meyer Packard algorithm and the resources tend to be cryptic in terms of describing the different components for ...
0
votes
2answers
88 views

What returns to use?

I have monthly returns of my portfolio... I would like to summarize the performance over a longer period in one overall figure. Should I use log returns per month then use geometric mean on the log ...
0
votes
1answer
51 views

Time Series Multiple Choice

1) Consider a standard AR(2) process. When is the maximum likelihood estimator identical to the OLS estimator? (a) when $\varepsilon $~ (N 0,$\Sigma^2) (b) always? I'm thinking (a), but that I also ...
0
votes
1answer
71 views

dividend paid on FTSE100 time series data

I need dividend paid on FTSE100 for last 10 years. I want to calculate the dividend-price ratio for FTSE100 as a time series data. I would really appreciate if anybody can give me a clue about finding ...
-1
votes
1answer
160 views

Accuracy for GARCH models

How does one calculate the accuracy of forecasts given by GARCH models considering GARCH is run on returns. Assuming GARCH is a derivative of a regression based prediction model, would regular ...
1
vote
0answers
38 views

Dividing H in the Hurst power law function to get the Hurst exponent?

For my own learning I have been following the guide here. It is highly instructive. Implementing this in R I was able to reproduce the authors results on the data sets provided within some ...
1
vote
0answers
108 views

Yield curve estimaton using linear regression

Assuming that there are not any zero coupon bonds in the market, then someone has to use the prices of regular bonds with same maturity and characteristics (risk,issue etc.) to obtain the yield curve. ...
6
votes
0answers
127 views

Determining Hurst exponent of a Brownian motion

I am trying to determine the Hurst exponent of a simple Brownian motion, however, I seem to get a result that differs from 0.5. I am following the instructions given on the Wikipedia-page, and here is ...
0
votes
1answer
98 views

Is it possible to generate time&sales(tape) off of the tick data for a stock?

I want to build my own stock trading simulator with the ability to play it faster. ThinkorSwim has onDemand. But it's not fast enough to accumulate more experience. To code up my own market replay ...
0
votes
0answers
62 views

Regressing Implied Volatility on Historical Volatility - Should I regress using daily returns?

I am trying to scope out the main drivers of implied volatility from a series of different historical volatilities. The objective being to be able to make a fair estimate of implied volatility in ...
0
votes
0answers
116 views

What can cause autocorrelation in higher lag orders of returns?

I am fitting an AR(p) model to the daily time series of S&P500 returns. I have examined AIC/BIC up to 5 lags and both show that model with 2 lags is optimal. However, when I examine the residuals ...
0
votes
0answers
96 views

using database to scan trading signals as fast as possible

In stock market sometimes we search for certain "signals" such as stocks that raise for five consecutive days. In this scenario, we're not saying that the stock's price raises for every seconds in ...
0
votes
0answers
55 views

How to reduce “frequency” of statsmodels.api.tsa.MarkovRegression?

The essential problem I am facing right now is that the statsmodels.api.tsa.MarkovRegression, when used for Regime Change Detection, is reporting Bullish and Bearish Trends over a large period of ...
0
votes
3answers
289 views

log return of sp500. Stationary vs strictly stationary

By first glance of this time series; will you say it is stationary? I can easily see some "seasonality" which means that this is not strictly stationary since the distribution will not be the same; ...
1
vote
1answer
95 views

How can I 'quantize' a time-series in 'groups' exhibiting similar patterns? [closed]

In Signal processing, there is a topic of 'Quantization' (the process of mapping input values from a large set to output values in a (countable) smaller set ('states') ). I would like to construct a ...
2
votes
0answers
40 views

Non stationarity issue on copula estimation procedure

In this paper (1), on page 14 (section 4), the author presents an empirical experiment on the computation of a copula through the use of kernels. To do so, he uses the following stochastic process (...
3
votes
1answer
140 views

How to estimate a copula for time series

I want to estimate a copula for the innovations of two dependent time series (A and B). I have found no reference with a step by step on how to do this. I have only found summarized papers from which ...
0
votes
1answer
74 views

unsupervised pattern discovery - methods?

Given that I select features manually, what methods are available for pattern discovery with the purpose of time series prediction (footnote)? I only stumbled upon hierarchical clustring ("bottom-up"...
1
vote
0answers
45 views

Minimum Lower Partial Moment (n=2) hedging ratio

I would like to better have understanding on the minimum-LPM hedging. I have understood that the co-LPM matrix cannot be modeled by GARCH type models that are used to estimate to the covariance matrix,...
0
votes
1answer
123 views

Finding maximum profit on 'ideal' trading with fees

To properly develop my trading strategies I need to find a way to calculate maximum theoretical income made from trading time series with perfect accuracy (i.e. trading while holding 'crystal ball' ...
9
votes
0answers
3k views

How to use statsmodels' Granger causality test to measure the lag between two time series?

I am using the Granger causality test to measure the lag between pairs of time series where it is already apparent that one is following the other. So I am not expecting this test to tell me whether ...
1
vote
0answers
53 views

Time series edge minmax probability

Not sure if someone had encountered this problem before: say given a time series, we need to determine the minmax. Usually we need to use some kernel smoother to extract second-derivative. It is easy ...
1
vote
2answers
96 views

Price is Log-normal distributed, yet the return is non-normal

I have a price series. The natural logarithm of the price shows good normality. As shown in the standardized normal probability plot below: However, by viewing the standardized normal probability ...
2
votes
0answers
54 views

Determine GARCH(1,1) from a mean reverting time series recursion

Let $(v_t)$ be a discrete time series of variance obeying a mean-reverting variance process $v_t$, which is actually the discrete version of the Heston model in finance. \begin{align} x_t &= \sqrt{...
0
votes
0answers
214 views

Interpreting ACF/PACF of return series

Researching a return series on some currency pairs I grabbed 2 years worth of daily data and got to work trying to fit an ARIMA/GARCH model to it. Fitting the (log) return series: ...
4
votes
1answer
180 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 ...
2
votes
1answer
163 views

R Mean Reversion Estimate on Funds

I am new to mean reversion, and I'd like to run an analysis on a fund (ts with monthly returns only) to see if mean reversion applies and if so, when it will happen. Most of the examples I found ...
0
votes
1answer
180 views

Estimate an AR(1) model from returns [closed]

I am studying share price log returns and AR(1) model. I downloaded data from $FTSE100$ and I used the Adj.close column to find the Ln returns: Now I am trying to understand how can I estimate an AR(...
1
vote
0answers
56 views

Creating a synthetic future

Let's say we have a time series for an illiquid future and we would like to replicate this time series using two time series for liquid futures using daily rebalancing. What would be a good approach ...
2
votes
1answer
201 views

Generating surface of Kernel Density Estimates over time

I have a 1-minutely OHLC dataset indexed by time as follows: ...
11
votes
4answers
724 views

Why (most) quants think that the risk-neutral measure should not be used for financial forecasting?

In posts regarding the $\mathbb{P}$ vs $\mathbb{Q}$ debate (see 1, 2, 3 or 4), most answers seem to conclude that historical-based methods are better suited than risk-neutral models for financial ...
1
vote
3answers
1k views

How to convert weekly data to monthly in r (or in Julia)

I have weekly series on financial risk index data as follows: DATE NFCIRISK 1/8/1971 0.58 1/15/1971 0.61 ......through 10/6/2017 -0.88 10/13/2017 -0.89 10/20/2017 -0.89 ...
1
vote
1answer
383 views

Close and Adjusted Close in Interactive Brokers API and Yahoo Finance

On Interactive Broker's TWS API manual, there are several historical data types to choose from. Which IB TWS data type's Close value corresponds to Close Adjusted ...
1
vote
0answers
107 views

ARMA-GARCH Forecasting [closed]

I want to forecast a differenced time series of an Index using the combined ARMA-GARCH model (because I want to forecast the mean and not the variance). My model is a ARMA(2,2)-GARCH(1,1) model. So ...
1
vote
1answer
96 views

Why should we care if the “squares of returns are independently distributed over time” to choose an adequate model of the distribution of returns?

In a Time Series Book by Hashem Pesaran, he mentions that there are a number of issues that need to be addressed in order to choose an adequate model for predicting asset returns. I understand the ...
1
vote
3answers
169 views

Reverse chronological time-series / inverse time-series

If a timeseries follows a BM, is it true that the inverse ts and reverse chronological ts is also a BM? What if the ts exhibits mean reversion tendencies? Would these tendencies become a momentum ...
1
vote
2answers
204 views

Why does the Weak Form of Market Efficiency and Markov Property hold?

This question is to do with a paragraph in Hull (Options and other Derivatives) He explains that Stock Prices usually follow a Markov Property, where the current price of the stock contains all the ...
3
votes
0answers
152 views

Trouble computing the VaR for Student's t-distribution for a minimum-variance portfolio composed of four cryptocurrencies (BTC, ETH, LTC, and XMR)

I have modelled the time-series of daily log-returns from August 2015 to October 2017 of a minimum-variance portfolio composed of four cryptocurrencies (BTC, ETH, LTC, XMR) by fitting the data to four ...