The study of the collection, organization, analysis, and interpretation of data. Questions may deal with descriptive statistics, probability distributions, random variables, sampling, regression, density estimation, filtering, inference, estimation theory, or computational statistics.

learn more… | top users | synonyms

2
votes
3answers
409 views

Dou you have an example of implementing Engle-Granger 2-step cointegration?

Does anyone know where to find an example of implementing Engle-Granger 2-step cointegration? Python's ideal, but any language will do. I've skimmed and read many articles, but understand little ...
2
votes
2answers
1k views

Detrending price data for analysis of signal returns

I'm looking to conduct hypothesis tests on some of my trading signals to see if the signal returns are statistically significant enough to falsify my null hypothesis that the signal has no predictive ...
2
votes
1answer
37 views

What is the borne function mentioned in this paper?

On page 16, first paragraph of this paper, the authors introduce a function called "borne", which divides the normal distribution into n ranges of equal size, without citation. The definition is clear ...
2
votes
2answers
170 views

What are the proper metrics to look at for checking discrepancies in these two time series

I am obtaining bid/ask price and volume market data from two different sources for the same ticker and for the same day and checking to see that at time intervals X they are "roughly the same". The ...
2
votes
1answer
89 views

FORECASTING Model AR(1) in an Autoregressive Form The Pi´s Parameters

Ive been implementing a little exercise to obtain the first 2 forecasting points of an AR(1) process. And i want to have the forecasting ponts using the three forms: Im folowing this pdf ...
2
votes
1answer
380 views

using garch to forecast volatility but getting low persistence model

I am using a GARCH(1, 1) model to try model volatility for a certain stock. I have a GARCH function in matlab that returns the three parameters, omega, alpha & beta. I then use this parameters ...
2
votes
1answer
95 views

Law of large numbers necessary for APT derivation?

The question refers to the well-known Ross (1976) paper with the derivation of the Asset Pricing Theory. In the APT, the return of asset $i$ is driven by a linear factor model: $$ R_i = \alpha_i + ...
2
votes
2answers
73 views

Is this a reasonable approach to determine the relative importance of valuation factors?

I am trying to come up with a measure of relative importance of a number of valuation factors. I am wondering whether correlation coefficients can't be used for determining this. More on the issue: ...
2
votes
1answer
307 views

How to compare different volatility measures?

I read the Euan Sinclair's book (Volatility trading) in which he suggests different volatility estimators (Close-to-close, Parkinson, Garman-Klass, ...). I am inquiring about what is the best stock ...
2
votes
1answer
370 views

Are my estimates of parameters of geometric brownian motion correct?

I wrote a simulation of a geometric Brownian motion which works like this: ${ t }_{ i }-{ t }_{ i-1 } \sim Exp(\lambda )$ ${ Z }_{ i }\sim N(0,1)$ ${ Y }_{ i }\sim { e }^{ \sigma \sqrt { { t }_{ i ...
2
votes
1answer
622 views

Monte Carlo Options Probability Calculation

I have a fairly simple problem for an application I am writing currently. How do you calculate the options probability of being in the money or touching a certain strike price. I know there are at ...
2
votes
1answer
861 views

Predict Quadratic Trend in Time Series

Can anyone kindly point out if I made any mistakes in making predictions using quadratic regression model in time series? I called the predict() function with the appropriate data vector and model, ...
2
votes
1answer
134 views

How to reconstruct a discontinued economic time series such as the Fed's CP rate?

The old 3-Month Commercial Paper Rate (CP3M) on FRED was discontinued in 1997. I would like to reconstruct this series in a reasonable fashion, so I can use it to analyze more recent events. I was ...
2
votes
0answers
49 views

How to construct a cointegrating vector using more than 2 price series in R?

I use now this code from hier Why does the following data fail my cointegration test? with slightly modification of possibility to load something directly from Dropbox file storage . ...
2
votes
0answers
88 views

Can you tell me what this RBloomberg formula means?

I've been asked to re-create a spreadsheet that used RBloomberg using a different data source. But I'm having trouble figuring out exactly what one of the spreadsheet's formulas does. Can anyone tell ...
2
votes
0answers
27 views

What methods - inspired by Haavelmo’s Structural Econometrics - can show that a partial equilibrium model is unreliable? [closed]

According to Spanos 2014 Revisiting Haavelmo's Structural econometrics: Bridging the gap between theory and data Dynamic Stochastic General Equilibrium models are statistically inadequate, in such an ...
2
votes
0answers
75 views

seasonality and generalized additive model

I am reading a report which talks about seasonality. There is a chart showing the average returns for each month of the year. In the chart it appears the last 3 months of the year tend to be negative. ...
2
votes
0answers
149 views

Correlation between idiosyncratic residuals and forward returns

The classic mean-reversion strategy is to calculate an "expected return" (alpha) by computing the raw return for each security and then remove the part which you think is market driven. Statistically ...
2
votes
0answers
600 views

Does the geometric Ornstein-Uhlenbeck process have stationary variance?

I know that the long run variance of the standard OU process is $\lim_{s\rightarrow \infty}\mbox{Var}(P_{t+s}|P_t) = \frac{\sigma^2}{2\theta}$ I'm using the geometric version of the process. I ...
1
vote
3answers
1k views

Calculate correlation between two sub portfolios and the combined portfolio

I have two sub portfolios (lets call them portfolio a & portfolio b - a portfolio is just a vector of weights that sum to 1) that combine to create a total portfolio. I also have a 2 x 2 ...
1
vote
1answer
429 views

Testing Significance of Correlation

Lets say I have the returns of two stocks(stock1 and stock2). Now without running a regression, I lag one of the variables, calculate the correlation between the two stocks and repeat this process as ...
1
vote
3answers
450 views

Kolmogorov-Smirnov test

Is Kolmogorov-Smirnov test self-sufficient to prove normal distribution of a time series? And then test efficiency of a market?
1
vote
1answer
153 views

What is an appropriate algorithm to use for tax loss harvesting?

I've been reading into how Betterment and Wealthfront have architected their tax loss harvesting algorithms, but they stop short of providing any real examples. Essentially, they both reduce to: ...
1
vote
2answers
1k views

Partial Least Squares Discriminant Analysis

Could anyone point me to detailed literature about "Partial Least Squares Discriminant Analysis"? Intuition, methodology and examples.. Thanks,
1
vote
2answers
154 views

Statistics of difference between two GBMs

if I have two asset prices modeled separately as geometric brownian motions. How do i go about calculating the expected statistics of their difference? Like given the sigmas and mus of both processes, ...
1
vote
3answers
115 views

Is variance additive only under Log-returns?

Can't seem to figure this one out by thinking it through. Let's say that the simple return $R_t=P_{t+1}/P_t -1$ is assumed to be $R_t \sim iid N(0,\sigma^2)$. Thus, a two period return would be ...
1
vote
1answer
410 views

detecting and measuring lead lag effect

Given two time series data. I remember there is one statistics that tells you one is the leading factor while the other is the lagging factor. However, i do not remember the exact details. correlation ...
1
vote
2answers
268 views

How to combine Gaussian marginals with Gaussian copula to obtain multivariate normals?

in the book "Numerical Methods and Optimization in Finance" I red the following: "Combining the Gaussian copula with Gaussian marginal gives a fancy way of expressing multivariate normals. However, ...
1
vote
1answer
1k views

Probability of a return from historical average and standard deviation

I have a question from a sample exam paper that I'm having some trouble figuring out. The question is: Bavarian Sausage stock has an average historical return of 16.3% and a standard deviation of ...
1
vote
1answer
167 views

help me compare methods to compute one instrument price from another instrument price

Assume we have two instruments A and B. Also time is increasing from 1 to n. Let's say that ...
1
vote
1answer
44 views

What is wrong in my non-linear estimation sample code?

I am trying to reproduce the code and plot you see here on pages 8,9 and 10 which was coded in MATLAB, but I'd like to convert it to R code. I believe I converted the MATLAB code below to R syntax ...
1
vote
1answer
105 views

To lump or not to lump

Suppose I have a very simple asset whose price takes only three possible values: $X_t\in \{-1,0,1\}$. I also got some discrete time series $X = (X_t)_{t\geq 0}$ and I would like to come up with a ...
1
vote
1answer
19 views

Historical volatility from non-uniform samples

The way I compute historical volatility is that I take two parameters $dt$ and $T$, get a list of stock prices with the step of $dt$ over the window $T$ (so $T/dt+1$ samples in total), compute $T/dt$ ...
1
vote
0answers
38 views

White’s Reality Check p-value calculation?

I'm testing whether technical trading rules can deliver superior returns in contrast to a benchmark, the risk free rate. As performance measurement, denoted by $\varphi$, I use the annualized Sharpe ...
1
vote
0answers
49 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)) ...
1
vote
1answer
30 views

Fitting (marginal/multivariate) distributions to financial return data

I have calculated the simple arithmetic return on a number of different financial securities and am fitting both a Student-T and Generalised Pareto Distribution. My question is can I just use the ...
1
vote
1answer
53 views

Calculating unweighted performance of stocks within a period

The well known calculation of unweighted index of stocks is just calculating an arithmetic average. And then, to calculate the performance of the index, I calculate the %change of the unweighted ...
1
vote
0answers
14 views

How do I calculate what % of price hits R1 before pivot

I am trying to calculate what % of times the price touches R1 before the pivot level. I have the data for the last 10 years and know how often it touches the R1 one and pivot point but I don't know ...
1
vote
0answers
66 views

ISM PMI data - sector trend through ranking and seasonal decomposition

I have monthly data for each of the 18 sectors in the ISM PMI. Each datapoint shows the trend of a sector: growing, contracting or neutral. It also tells the strength of that trend with a number: ...
1
vote
0answers
91 views

Create Markets Bubble Indicator

I am trying to replicate a Bubble Indicator described here. The indicator is strictly based on calculating the regularity of price behavior to determine herding in multiple time frames. I tried the ...
1
vote
0answers
250 views

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

I have some time series from a stock exchange market. For each of them, I want to answer the question that whether the price will grow at least p percent in the d coming days or NOT(and during these ...
1
vote
0answers
54 views

How to value a portfolio of non-mature consumer loans?

I'm looking for the best way to value a portfolio of consumer loans that have NOT reached maturity and for which I do observe the payment/default history to date? I'm working with a large database of ...
1
vote
0answers
340 views

Autoregressive distributed lag models ADL(p,q) howto in preferably matlab (stata/R/python/C# etc)

Could anyone provide me the details of how to determine the lag order of the distributed lags for an ADL(p,q) model in Matlab or another statistical package (and very much preferably in combination ...
1
vote
0answers
75 views

Sampling and/or asymptotic distribution of a function

Assume we have the following function: $$f(p) = \frac{1}{(1-p)d}\ln\left(\frac{1}{T}\sum_{t=1}^{T}\left[\frac{1+X_t}{1+Y_t} \right]^{1-p} \right)$$ where $d$ is a constant $T$ is a constant $X_t$ ...
0
votes
3answers
265 views

Profit estimation with a dice: 10 dollars for 6, -1 dollar for anything else

I recently found the following question: What is your profit estimate throwing a dice in the long run if you get 10 dollars for each time you hit 6 and lose 1 dollar for any other number? I tried to ...
0
votes
2answers
166 views

Estimate weekly, yearly quantities from finite samples

I'd like to estimate from a daily prices serie $P_t$ with $N$ observations a quantity such as the variance of the weekly returns. I will use $\ln\left(\frac{P_{T+5}}{P_T}\right)$ assuming 5 days in a ...
0
votes
1answer
126 views

Calculating company-level market capitalisations from share quantities and values

I want to calculate company-level market cap values for stock exchanges listed by Bloomberg. I gather this can be calculated as the product of share price and the total of shares in circulation. But ...
0
votes
1answer
199 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 ...
0
votes
2answers
194 views

Use of geometric mean for average return of several indices

Can anyone give any reference for using the geometric mean to average the returns from several indices? Note, this question is not about the usual use of geometric mean to obtain the average return ...
0
votes
2answers
209 views

Interpretation of PCs

I have computed PC1 and PC2 wts on future contracts derived from cumulative log differences. How can I use them to get back the theoretical price of each contract using those 2 pcs? Thanks in ...