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

4
votes
4answers
76 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 = ...
6
votes
1answer
939 views

How to calculate the JdK RS-Ratio

Anyone have a clue how to calculate the JdK RS-Ratio? Let's say I want to compare the Relative strength for these: EWA iShares MSCI Australia Index Fund EWC iShares MSCI Canada Index Fund EWD ...
0
votes
3answers
46 views

Skewed Student t distribution MLE and Simulation

I have Financial LOB data and I feel that a skewed t distribution will fit best. I have a problem trying to find the parameters using MLE numerically since Matlabs built in function does not allow for ...
1
vote
1answer
267 views

Weights Blowing up in PCA

I'm using daily settlement data to get yield levels for a couple of products. From this data I am doing PCA on a rolling collection of the yield levels. I have been using sci-kit learn's PCA function, ...
4
votes
2answers
121 views

Convergence of the distribution of 0.05 quantiles through Monte-Carlo simulation

I am trying to get admitted to a masters in quantitative finance (I come from a computer science background), so next week I will have 3h to solve an exam in statistical computing using my favourite ...
3
votes
0answers
61 views

what is the minimum capital necessary for quantitative/automated/algorithm trading? [closed]

I mean from my home for myself I have a degree in statistics so I know time series, predictions, R ... I would like to design statistical model for trading with R I don't ask for trading strategies, ...
6
votes
1answer
54 views

Where to get Tobin's Q by country

I am trying to rank countries based on Tobin's Q ratio. US data can be easily gathered from FED's report and is available on multiple website. I want get data on other countries with high Index of ...
0
votes
1answer
174 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
1answer
56 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
1answer
61 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?
1
vote
0answers
14 views

Deming Regression

I am trying to test the linearity = interdependence or the non-linear (contagion) between Asian countries during the Asian crises using the fluctuation of the exchange rate. Is it relevant to use the ...
0
votes
2answers
115 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
vote
0answers
41 views

Proper Definition of Backtesting Parameter

Currently I'm trying to test the efficacy of a tail-hedging strategy in which an investor goes long in an index and correspondingly buys 1-month OTM put options. For practical reasons, the options ...
3
votes
0answers
52 views

subadditivity of VaR

It is known that the VaR (Value at risk) doesn't fulfill subadditivity, i.e. $VaR(X)+VaR(Y) \le VaR(X+Y)$ But for elliptical distributions subadditivity is true. Questions: (1) Which ...
3
votes
1answer
56 views

CIR model - nth moment generation $E^*[r_T^n]$

I am analyzing the nth moment generation process for $r_t$ with dynamics defined by CIR model $r_t$ has following dynamics $$dr_t=a(b-r_t)dt+\sigma \sqrt{r_t} dW_t^* \quad \quad (1)$$ for some ...
1
vote
1answer
76 views

How to statistically prove that an automated trading strategy outperforms the market? [closed]

For a university project, I have been working on a rather complex automated trading strategy, that levers machine learning techniques. I backtested the algorithm, as a result I have daily return data ...
9
votes
2answers
311 views

Kolmogorov-Smirnov test for Generalized Pareto Distribution

I've fitted my data to a generalized pareto distribution as to model the returns in the tails more accurately. The interior is fitted with kernel distributions. I would like to now test whether the ...
0
votes
0answers
59 views

Easy question (?) - how to measure if volatility for two samples is significantly different?

For my bachelor thesis I'm doing a research where at one point I want to measure if volatility for a certain sample of stocks in period A is significantly different from i) the same sample of stocks ...
0
votes
1answer
27 views

What are “df”, “t”, and “p” in these sharpe ratio related estimates?

I am looking at some sharpe ratio related estimates and have not seen Sharpe stats broken down this way before. I don't know what is meant by df, t, and p. Can someone explain that to me? Thank you!...
1
vote
0answers
15 views

Affect of choosing different combinations of variables for multivariate regression [closed]

If I have variables x1,x2,x3,and x4 that have correlation coefficients −0.9,−0.5,0.5, and 0.9 to another variable y, what is the effect of choosing different combinations of them in a multivariate ...
9
votes
4answers
20k views

How to fit ARMA+GARCH Model In R?

I am currently working on ARMA+GARCH model using R. I am looking out for example which explain step by step explanation for fitting this model in R. I have time series which is stationary and I am ...
3
votes
1answer
71 views

The use of $p$-value in finance after the recent statement of ASA (American Statistical Association)

The ASA (American Statistical Association) has just released a statement about the misuse of $p$-value. Will this action have much effect on the use of $p$-value in finance?
1
vote
0answers
73 views

FX Statistical Arbitrage Strategy [closed]

I have had experience creating stat arb strategies for equities and etfs, but haven't dabbled much into FX trading. I was wondering if anyone knew any resources online they would suggest, or could ...
2
votes
1answer
88 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 . ...
0
votes
0answers
25 views

Binomial vs inverse binomial transform in obtaining moments

I am trying to obtain raw co-moment matrices from central co-moment matrices and I have found formulas for the transition from central to raw moments here . I have also found the opposite, that is ...
4
votes
2answers
109 views

Degrees of freedom in calculating significance of GARCH coefficients

I am trying to determine the significance of coefficients of a GARCH model by calculate the p-values using the following Matlab formula: pvalues = 2*(1-tcdf(abs(t),n-v)), where $t$ is the t-stat,...
0
votes
0answers
71 views

Problems calculating RSI

For the last few days I've been trying to calculate an RSI that matches a reliable source. Yahoo finance, E-trade, and TDA all give identical values, which I am unable to replicate. I have tried ...
11
votes
3answers
3k views

How do I calculate the skewness of a portfolio of assets?

I need to calculate the skewness of a portfolio consisting of 6 assets. I know that for that I would need the co-skewness matrix between the assets. Does anybody know the formula for co-skewness or ...
9
votes
1answer
2k views

How do I reproduce the cross-sectional regression in “Intraday Patterns in the Cross-section of Stock Returns”?

Recently I was trying to reproduce the results of "Intraday Patterns in the Cross-section of Stock Returns" (published in the Journal of Finance 2010). The authors used cross-sectional regression to ...
35
votes
7answers
7k views

Is R being replaced by Python at quant desks?

I know the title sounds a little extreme but I wonder whether R is phased out by a lot of quant desks at sell side banks as well as hedge funds in favor of Python. I get the impression that with ...
4
votes
1answer
221 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}+\...
4
votes
1answer
61 views

market change, correlation and estimation bias

I hear many quants sating that markets change very slowly. This "fact" is even presented as a justification of statistical arbitrage, for example, by affirming that correlations remain roughly the ...
0
votes
1answer
108 views

How to calculate confidence interval for option price?

I model option prices for European call using Monte Carlo method. What is the proper way to calculate the confidence interval? A. -> Calculate the payoffs (there will be number of zeros as some ...
0
votes
0answers
47 views

Probability of reversion for cointegrated variables

I ran a Johansen test to figure out the cointegrating relationship between two variables $x$ and $y$, forming the equation $z=ax+by$ using the eigenvectors. The values are computed using from time ...
0
votes
2answers
76 views

High values of skewness and kurtosis of realized protfolio returns

I am investigating some asset allocation strategies and I am wondering about the results I obtain. I am working on monthly and weekly data of the same stock indices (SP500, FTSE 100 etc). And when I ...
0
votes
1answer
28 views

How to calculate 5 years return & STD for ETF?

I want to calculate by-myself 5 year return & STD for SPY ETF. What I did: Downloaded to Excel from yahoo finance historical data for the ETF (daily Adj. Close) from ...
0
votes
0answers
49 views

Impulse response function interpretation

I would need a quick help with Impulse response function interpretation which I have done after Vector autoregression model in stata. I need to understand how to interpret IRF graph or table values ...
3
votes
1answer
84 views

Monte Carlo Convergence

Let $\{X_i\}$ be an i.i.d. sample of $X$ with $E(X) = \mu$ and $Var(X) = \sigma^2$. We know a MC estimate converges to the true value almost surely by the SLLN. That is, $$ \bar{X}_n \to \mu, \...
1
vote
0answers
52 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
46 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 ...
3
votes
0answers
46 views

Test for difference in security returns before and after financial regulation

I'm going to study the effect of corporate credit rating changes (Moody's) on stock prices before and after a specific financial regulation. So far i have used an event study where i have divided the ...
5
votes
2answers
232 views

Covariance structure of call option surface

Assume the observed call option prices $C(K_i,T_i)$ for $i = 1,\dots,N$ are disturbed by some unknown measurement noise $\epsilon$. What would an appropriate covariance structure be for $\epsilon$? ...
1
vote
1answer
35 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
68 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
3answers
132 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+...
18
votes
1answer
9k views

How to interpret the eigenmatrix from a Johansen cointegration test?

I ran a Johansen cointegration test on 3 instruments, A B and C. The results that I got are: ...
10
votes
2answers
3k views

How can I compare distributions using only mean and standard deviation?

I only have means and standard deviations of samples of two random variables. What technique can I use to determine how similar the distributions these describe are? Assume that the values are built ...
10
votes
2answers
444 views

GARCH model, expectation of volatility?

Consider a time series $\{r_t\}$ following a standard GARCH(1,1) model, i.e., $$ r_t = \sigma_t \epsilon_t,$$ where $\epsilon_t \sim N(0,1)$ and are i.i.d, and $$\sigma_t^2 = \omega + \alpha_1 r_{t-1}^...
2
votes
1answer
107 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 http://www.le....
5
votes
3answers
366 views

How is stock data objectively different to this random walk?

I have a random walk that is generated as so using python, numpy, and matplotlib ...