# All Questions

30 views

### Good broad review of network modeling for quant finance?

Trying to find some good review of agent-based models for quantitative finance, covering opinion dynamics, correlated behavior, etc. Are there any articles or books that cover major advances in these ...
26 views

### ROC — Output from Calculating Stock Returns Producing Lower Numbers Than Actual

I tried this on stack exchange, but think it is a better question here. I am beginning user and I need help with an error / bad output I am getting when calculating returns (using ROC) on stock ...
48 views

### 2-step estimation of DCC GARCH model in Python

Embedded in this thread are multiple questions. I'm currently im the process of implementing a DCC GARCH forecast model on quantopian (a python-powered trading platform). The two step consists of ...
38 views

### What does the cointegration coefficient represent in pairs trading when cointegrating log stock prices?

In Pairs Trading by Vidyamurthy, on page 83 (and throughout the book), the author describes an elementary example of trading with log prices. The long run equilibrium of the basic portfolio is given ...
40 views

### GARCH estimation does not work, error in my returns?

Hey everyone and I hope that there are some smarter people out here that can help me out with my problem...: I have trouble with my implementation of a GARCH(1,1) model and I do not know how to move ...
23 views

### Return.portfolio error from PerformanceAnalytics package

When using the PerformanceAnalytics package of R, I am getting an error from the Return.portfolio function whenever I ask it to rebalance_on any frequency. If the rebalance parameter is removed, the ...
53 views

### Financial theory

Ok guys, I'm studying from Danthine and Donaldson - Intermediate Financial Theory. The book itself doesn't have a lot of worked examples, and I'm lacking the basics for understanding some concepts ...
48 views

### More cache friendly linked list or alternative with optimal append, delete, and ordered traversal for limit order book?

I am trying to implement a stock matching engine/order book in C++, and am searching for a more cache friendly architecture. Currently, my data structures are as follows: An intrusive rb-tree for the ...
42 views

### Fed Funds Rate: longer maturities

FFR published by Fed Bank of NY is the average rate US banks charge each other for the overnight loans of their reserves required by the Fed regulations. Since Fed acts similar to a clearing house ...
57 views

### Ledoit-Wolf portfolio weights calculation

I am trying to implement the Ledoit-Wolf minimum variance portfolio strategy on a real-world stock dataset. ...
49 views

51 views

### Long-term proportion of convex and concave strategies in artificial financial markets

In their classic paper "Dynamic Strategies for Asset Allocation" Perold and Sharpe state: "That convex and concave strategies are mirror images of one another tells us that the more demand there ...
45 views

### Issues with +100 symbols in Quantstrat, Erratic Trades

I've tested my code against individual symbols and very small groups of symbols. I'm finding the more symbols I add the fewer trades I get. For instance, if I just include the first five symbols, all ...
61 views

### Forecast of ARMA-GARCH model in R

I managed to forecast a GARCH model yesterday and run a Monte Carlo simulation on R. Nevertheless, I can't do the same with an ARMA-GARCH. I tested 4 different method but without achieving an ...
36 views

### Texts on the Generalized Method of Moments

I was looking for a book that could explain me well the Generalized Method of Moments, its mathematical nuances, and even have a look to the empirical side, maybe with some guided exercises with Stata ...
52 views

### Broker or source of intraday futures data for a python API?

I am looking for a broker that offers a python API for downloading historical intraday data on futures. So far I have only seen Interactive Brokers and Tradestation. Are there some other brokers ...
39 views

### Interpretation of Johansen cointegration test in R

I am using urca package of R for Johansen Cointegration test in 2 stocks datas( A and B. My question is very elementar, but have cause some problems for me. How I interpret the critical values, for ...
48 views

### Identifiability of a state space model (Dynamic Linear Model)

Take a general linear Gaussian state space model (SSM)(aka Dynamic Linear Model DLM): $X_{t+1}=FX_t + V_t$ $Y=HX_t+W_t$ $V_t \sim N(0,Q)$ $W_t \sim N(0,R)$ I am interested in the ...
75 views

### Black-Scholes formula with deterministic interest rate and dividend yield

Does any one have the Black-Scholes formula for a European call with time-dependent but deterministic interest rate and dividend yield ?
40 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 . ...
57 views

### PDE vs TREE vs MC vs Analytical

One what basis the pricing model can be differentiated for particular trade pricing. For exapmle why PDE or Binomial tree or MC or Analytical method will be consider for pricing any trade. Question ...
44 views

### Recording Google/yahoo finance data streams

Is there any way to record or piggyback with an app, code or excell goggle finances' (or yahoo even) data stream? Ideally i need tick by tick data, as in every price change of the day. All the ...
52 views

### Issue with Naive Bootstrapping (US Government Bonds)

I am using the formula here to determine the discount factor function. I get the data for Coupons, Face Values and Closing Prices from Thomson Reuters, which I insert into the Dataframe ...
12 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 ...
45 views

### Time discretisations, FDM vs FEM

I am interested in adaptive mesh methods for numerical solution of PDEs with applications to finance. As part of a school project, I have been pricing vanilla European call and put options using 2D ...
63 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 ...
11 views

### Calculating rate of renewal for Certificate of Deposit

I am trying to calculate the rate of renewal for a large stock of Certificates of Deposit. These contracts are given on a fixed amount of time and some of them get renewed every time they reach ...
29 views

### Major categories of tradable securities and the ETF's that track them?

I'm just starting to learn about quantitative finance and I'm overwhelmed by the amount of tradable securities out there. I'm seeing all these things like VXX, TLT, TMF, SPY, SPXL, HYG, VWEHX and so ...
30 views

### How should I use central banks rates in order to compute 2-day forward exchange rate on EURUSD

Good morning, I would like to compute a 2-day forward exchange rate on EURUSD. For that, I have historical data on EURUSD spot price, and I know that theoretically, when maturity is T we have : ...
48 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: ...
21 views

### how does a bond maturing affect the pricing of the corresponding CDS?

if a bond matures, and there is no other existing bond from the legal entity that has not matured. Then how does that affect the CDS that corresponds to that bond?
24 views

### Disaggregating stock performance and dividend yield

I modeled the performance of several portfolios with adjusted close data and would now like to understand how much of it is driven by changes in stock price and dividend payouts. I have all the data ...
73 views

### Using cross-sectional factor model (BARRA type) returns in a time series factor model (Fama-French type)?

This may be seen as a follow up question for the previous discussion on time-series vs cross-sectional factor models: Which approach to estimating fundamental factor models is better, cross-sectional ...
39 views

### Initial values for Heston Model calibration

I'm doing a Heston model in Matlab using simple Monte Carlo simulations (5.000 paths and 2 steps per day, simulating 360 days). When I try to calibrate the Heston parameters using fminsearch it takes ...
34 views

### How to decide if the ARCH coefficient is necessary in the GJR-GARCH model?

I did some analysis for CAC 40, the French market benchmark, for the period 2005-2014, and I tried to fit the data with a GJR(1,1) model in MATLAB. Then some warning showed Lower bound ...
70 views

### Zero rate vs. yield on coupon bearing bond

in Hull's solutions manual of Options, Futures & Derivatives (8th edition), there's question 4.7, in which is asked to put the following in descending order: a) the five-year zero rate, b) the ...
82 views

### Multivariate Itô's lemma

Hey guys I'm looking for worked examples who show how to apply Itô's lemma in several variables, starting from the very basics. Thank you in advance!
30 views

### Hypothesis Testing for Portfolio Weights

Investigating international diversification is an ongoing topic in portfolio allocation literature. Britten-Jones and Kempf-Memmel , for example, use derived properties of the distribution of ...
46 views

### Variance of a stochastic integral

Ok guys, I'm new to stochastic calculus and I did an exercise that I don't know if it is correct, so I need somebody with more experience to check if it is true. Compute the variance of the R.V. ...
34 views

### Relation between Parkinson number and historical volatility

In his book 'Dynamic Hedging', Nassim Taleb gives the relation: P = 1.67*historical volatility, where P is the Parkinson number. What is the basis of this relationship. Does this hold under special ...
112 views

### High frequency price forecast model ARMA GARCH or another?

Can you reccomend model for high frequency data (1 second and less) (returns and volatility forecasting)? Most papers use ARMA, GARCH etc in 1 minute and lower time frame. PROBLEM ARMA does not know ...
24 views

### Show that in an arbitrage-free and non-redundant market a certain set is compact

Some notation: We consider a financial market with $d+1$ assets, the $0$-th asset is considered the risk-free asset, the others are the risky ones. The vector $\overline \pi \in \mathbb R^{d+1}$ ...
74 views

### Filtering my own orders from a UDP multicast market data feed

I am wondering what is the policy practiced by most exchanges from different market segments (FX, equities, futures, etc.) about the privacy implications of order identification in their market data ...
26 views

### Budget Constraint in Duffie's book

On Page 5 of Duffie's Dynamic Asset Pricing Theory, the budget-feasible set is defined as: $$X(q,e) = {e+D^T\theta \in R_+^s:\theta \in R^N, q\theta \leq 0}$$ Compared to Kerry Back's presentation of ...
61 views

### B-S Put Option Formula: Derivation using expected value under Q

I have been working on an old problem in one of my finance classes and, since no solution has been provided and I won't be able to contact my teacher anytime soon, I was hoping I could ask you guys to ...
73 views

### Black Scholes Model Replicating Strategy Delta Hedged Exam Question

A share is currently priced at 640p. A writer of 100,000 units of a one year European put option with an exercise price of 630p has delta-hedged the option with a portfolio which holds cash and is ...
81 views

### Constant Conditional Correlation GARCH (1,1)

I am a beginner in R and my econometrics background is not very sound either. I want to build a constant conditional correlation GARCH (1,1) model in R and I found the function, the description of ...