instruction
stringlengths
35
27.7k
I am exploring de-noising and cleansing of covariance matrices via Random Matrix Theory. RMT is a competitor to shrinkage methods of covariance estimation. There are various methods expressed usually by the names of the authors: LPCB, PG+, and so on. For each method, one can start by filtering the covariance matrix di...
I am tweaking a covered call algorithm. The short leg consists of out of the money call options. The goal is to collect the tim premium, but an equally favorable circumstance is when the call decreases in value due to the lower price of the underlying asset in the normal course of market fluctuations. The short leg can...
I've skimmed through more than one ETF prospectus trying to find the procedure for clamping losses at the limits of an ETF, and so far, no help. Has anyone found a description of the "clamping" procedure? For example, if the S&P drops 35% in one day, how will Direxion's BGU (3X Bull ETF) "clamp" the loss to that 90% ...
Is there any published research on estimating the beta of a security with respect to one or more risk factors via Bayesian networks? I'd like to see if this is a promising angle of research.
The term high frequency trading has been used quite often recently to refer to trading using real-time tick data (or data aggregated to few seconds) and having an intra-day holding period. How are medium and low frequency trading strategies defined? Do they use real-time data, or do they use end-of-day (OHLC, volume) d...
For most financial instruments we can go long or short and make a bet on the price. In the case of options we can bet on derivatives of price and other factors (e.g., interest rates). Is there an instrument or a strategy that can benefit from changes in trading volume, besides buying and selling equity in an exchange?
I'm trying to wrap my head around pricing a Constant Maturity Swap (CMS). Let's imagine the following deal: 6m LIBOR in one direction, 10y swap rate in the other. The discount curve is derived from OIS. Naively I would just price this by taking the difference between the present value of cash flows from the forward 6m ...
Estimation of model-free implied volatility is highly dependent upon the extrapolation procedure for non-traded options at extreme out-of-the-money points. Jiang and Tian (2007) propose that the slope at the lowest/highest moneyness traded point from a cubic spline interpolation be used to extrapolate Black-Scholes imp...
When doing cointegration tests should I use the adjusted close price or just close price for the time series? The dividend of each stock is on different dates and can cause jumps in the data.
By "exotic" I mean anything that is not a plain vanilla swap, swaption, cap or floor. Also any IR hybrids if appropriate. Possible examples would be: CMS and CMS spread options Multi-callable swaps Range accruals and callable range accruals. Any thoughts much appreciated.
What is the consensus on which risk measure to use in measuring portfolio risk? I am researching what is the best risk measure to use in a portfolio construction process for a long/short option-free equity portfolio. Since the late '90s thru today, it seems that VaR is the dominant risk measure but is losing ground. Ar...
Imagine that you have the fastest connection to the exchange (receive quotes 1 ms earlier than everyone else) for both stocks and derivatives. How would you benefit from this? Of course almost any strategy would work better on a faster connection, but I'm looking for strategies that: will only work on the fastest conn...
I have a correlation matrix $A$ for an equity market that is not positive definite. Higham (2002) proposes the Alternating Projections Method, minimising the weighted Frobenius norm $||A-X||_W$ where $X$ is the resulting positive definite matrix. How should one choose the weight matrix $W$? The easy alternative is to w...
When does an Exchange Traded Fund (ETF) take out expenses (for example 0,3% on a yearly basis)? Does it happen daily, or once yearly or according to some other scheme? Where does it take them from?
Both for private projects, and for clients, I've been working on code a lot this year to evaluate automated trading strategies. This often ends up turning into the task of how to fairly compare apples and oranges. E.g. to use an FX example, some of the strategies just buy/sell 1 lot, in a single currency. Others are tr...
I know two applications of local time in option pricing theory. First, it allows a derivation of Dupire's formula on local volatility in a neat way (i.e. without resorting to differential operator theory which I'm not really acquainted with). Second, it can be used to show that you can't perfectly replicate (for exam...
If I know the daily returns of my portfolio, I need to multiply the Sharpe Ratio by $\sqrt{252}$ to have it annualized. I don't understand why that is.
My goal is to find clusters of stocks. The "affinity" matrix will define the "closeness" of points. This article gives a bit more background. The ultimate purpose is to investigate the "cohesion" within ETFs and between similar ETFs for arbitrage possibilities. Eventually if everything goes well this could lead to the ...
For example I want to construct 2 time series, one for ES and the other for NQ and test for cointegration. ES one point equal to 50$. NQ one point equal to 20$. If I have the following data: ES[0]=1300;ES[1]=1307;ES[2]=1314... NQ[0]=2700;NQ[1]=2692;NQ[2]=2715... How do I normalize this data for cointegration test? TX i...
I need to calculate the skewness and kurtosis of 2 asset portfolio, can someone please help me with the formulas and definition of terms? Thank you. I have been using the matrices method and I am not sure if that is correct.
Where can the specification of a creation unit basket for an ETF be found? This information is needed for calculating the arbitrage possible between the ETF instrument itself and the creation unit basket constituent instruments. ETF marketing material usually specifies what index or stocks it tracks, but it seems harde...
Large institutions can swap baskets of underlying securities for ETF shares that can then be traded on an exchange as part of arbitrage between the price of the basket and the ETF share price. These baskets are called creation units. How often does the creation unit basket for a given ETF typically change? Hourly, dail...
What are the most popular probability distributions in quantitative finance and what are their applications?
I'm sure there is a simple answer to this but I haven't had any luck with searches. I'm just wondering when someone places a market order which order(s) from the limit order book are selected to fill that? Let's say the order book has the highest bid at 100 and the lowest ask at 101 and I place a limit order to buy a...
Say I have 6 possible investment options with the following probability of success and the corresponding returns: | Investment | Probability of Success | Return | | I1 | 0.5 | 2x | | I2 | 0.3 | 6x | | I3 | 0.1 | 10x | | I4 ...
Certain bank loans pay a spread above a floating-rate interest rate (typically LIBOR) subject to a floor. I would like to find the value of this floor to the investor. Assume for this example that the loan does not have any default (credit) risk. As a first pass, the value of the floor could be approximated using the...
I'm a university student and I'm quite interested in High Frequency Trading Algorithms. What courses should I take and what skills should I acquire so that I can work in this field? So far, I've been developing web applications and Android apps as a software engineer.
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 from very similar samples. I'm looking for a mechanism to detect when the distributions deviate from one another by so...
I'm trying to improve my methods for calculating real-time US Equity option portfolio risk. My main problem is volatility "stability" across all strikes in an option series. The current implementation is similar to the OCC Haircut calculations, where I calculate volatility at current market prices and then calculate ...
Could anyone explain the difference between STOXX and STOXXE? Which is the right index for benchmarking European stocks? Thanks.
I was wondering if someone has an implementation of the Tian third moment-matching tree (http://papers.ssrn.com/sol3/papers.cfm?abstract_id=1030143) with smoothing in code (e.g. c++, vba, c#, etc.)? It would help hugely if the implementation also shows how to handle discrete dividends and calculate greeks (delta, vega,...
I have read the CBOE's white paper on the VIX and a lot of other things, but I need to honestly say, I don't really get it, or I am missing something important. In semi-layman's terms, is the VIX simply the a measurement of the volume of protective options bought? That is, individual contract volatility increases when ...
What is the difference between Close price and Settlement Price for future contracts? Is there a defined rule for evaluating the settlement price or different rules are applied for each instrument/exchange? For example the CME Emini S&P500(ES) or ICE Russell 2000(TF).
I'm creating some .Net libraries for bond pricing and verifying its correctness with a bond pricing excel spreadsheet (Bond Pricing and Yield from Chrisholm Roth) but I believe it calculates the Yield to Horizon erroneously. This site describes how to calculate the Yield to Horizon, with the example given defined below...
My objective is to show the distribution of a portfolio's expected utilities via random sampling. The utility function has two random components. The first component is an expected return vector which is shocked by a random Gaussian variable ($ER$). The shock shifts the location parameter of the return distribution. Th...
Can social media sites, like Twitter, be used to analyze financial markets for algorithmic trading? How much research has been done on this topic?
Is there an understood way of determining how far out the money an option can be, before it starts/stops responding to the underlying asset price changes? I usually look at the greeks, gamma, delta, theta and volatility to determine how an options price will change, but a certain many strikes out of the money (low gamm...
Possible Duplicate: What data sources are available online? Earnings and valuation data sources online I'd like to backtest some strategies involving earnings release surprises, as well as moves in correlated stocks. Are there any sites that offer easy to 'scrape' tables/XML/JSON of all the past historical earnings,...
If we suppose an instrument goes up or down 1 tick per $\Delta t$ (binary model), its long term distribution will be normal, per the Central Limit Theorem. However, suppose we model as follows: The first tick is up or down with 50% probability. Every future tick is: 60% likely to be in the same direction as the previo...
I have been building a momentum pattern detection algo (essentially involves fitting curves in overlapping windows at different timeframes) and wanted to see if anyone has done/seen similar work. I was specifically looking into intraday movements (not HFT) and don't know if I will end up doing a glorified Roscher test ...
Can options volume affect the underlying asset price indirectly? I know that options buying/selling does not directly affect the price of the underlying asset (rather, the asset price contributes most to the option price). I do know of technical studies and alert systems that factor in options volume, and put/call rati...
I am developing an algorithm and it needs to know what to do in certain market conditions It takes on a Vertical Bull Call Debit Spread on LEAPS that are 12+ months out in the future. This means that a long OTM call is taken, and a short OTM call at a higher strike price is acquired as well. The net debit will usually ...
Are there libraries in R for estimating time-varying joint distributions via copulas? Hedibert Lopes has an excellent paper on the topic here. I know there is an existing packaged called copula but it fits a static copula.
I'm happy how we store a single time series but we somehow lack a system that glues them all together. I'm talking about a few million time series coming from ~50 data vendors and representing maybe a million contracts. It appears to me that hydrologists(!) have a pretty decent framework (KiTSM) but it takes A LOT of ...
Is it possible to combine different algorithms so as to improve trading performance? In particular, I have read that social media sentiment tracking, digital signal processing and neural networks all can be used for trading algorithms. Would it be possible to create a trading algorithm that combines elements from these...
One typically models the log returns of a portfolio of equities by some unimodal, symmetric (or nearly symmetric) distribution with parameters like the mean and standard deviation estimated by empirical estimators. For example, the most basic model would be to assume the returns are normal (yes, I know the tails are n...
Given a cointegrated set of price series, I am trying to compute the Hasbrouck's information share, as described in page 12-13 of this article. page 7-8 of this article I have the vector error correction model (VECM) set up for the price series. But I am unable to understand how to derive the vector moving average fro...
I am writing a paper with a case study in financial maths. I need to model an interest rate $(I_n)_{n\geq 0}$ as a sequence of non-negative i.i.d. random variables. Which distribution would you advise me to use? Currently I am considering the exponential distribution, but I am not sure that it is the right choice, thou...
Sorry if this is obvious, I am not a professional. I like to trade 30 year treasury zero's. I have noticed that the price for a 30 year principal payment is never the same as a 30 year interest payment. The difference is small (~.3%), and I haven't tracked it long enough to confirm if one is always greater than the ot...
Some years ago there was a proliferation of new products touting the ability of active managers to take short bets on securities: 130/30 funds, 150/50 funds, and the like. What is the empirical performance of these actively managed funds vs. their benchmarks? For funds with positive alpha, is the contribution to alpha...
Could anyone show how this could be done in R? The dlm package seems to be a good start, but I can't really find any good examples to learn from. Currently I have two timeseries of the closing prices for two stocks. I then do a rolling regression that gives me the corresponding timeseries of the beta between the two st...
Is there any way to calculate theta at X day in future based solely on knowing 1) Total Current Option Price 2) Days Till Expiration How would this be done? Thank you
How do you price calendar spread options, that is, options on the same underlying and the same strike but different times to maturity? Clarification: I'm interested in the pricing of a a CSO (calender spread option) as defined by CME Group. Following their definition, the payout of the option at expiry is (price of lon...
If a thinly traded stock has not traded for the last few days (volume=0), is it better to use the last known trade price (i.e. roll over last non-missing trade price) or use last known bid/ask/valuation price? This is for stock chart application.
I see that term tossed around a lot, in articles relating to HFT, and ultra high frequency data. It says at higher frequencies, smaller intervals, microstructure noise is very dominant. What is this microstructure noise that they refer to?
If an underlying doesn't pay dividends (for our purpose defined as any distribution to the underlying's holder) directly or indirectly (e.g. options on futures) how does put-call parity change from the usual assumption of a European option? In particular, I'm thinking of bond options like the 10-year Treasury Note. Cl...
Consider american options on interest rate futures such as the 10-year treasury note. When is early exercise optimal?
I have a simple stock market trading hypothesis ... Something along these lines: Based on a certain deviation from a stock market index over a 30-day period, 5 certain stocks tend to drift in a particular direction during the next 30-day period. I'd like to run this hypothesis on historical data to see if the...
I'm using KPSS Method to check if the series is stationary, but I would also like to use another test to confirm if the series is stationary or not, what method coudl I use?
I'll teach an introductory course on mathematical finance in the near future. The course is intended to entertain and broaden some well-prepared advanced undergrad mathematics majors, some physics majors may attend as well. It need not cater the sort of poorly prepared students one typically finds in quantitate finan...
Below a R code wrote by the moderator @richardh (whom I want to thank again) about ARCH/GARCH models. library(quantmod) library(tseries) getSymbols("MSFT") ret <- diff.xts(log(MSFT$MSFT.Adjusted))[-1] arch_model <- garch(ret, order=c(0, 3)) garch_model <- garch(ret, order=c(3, 3)) plot(arch_model) ...
I subscribe to various blogs and twitter feeds which I use to parse for keywords. Many times these subscriptions do not include topics which are of the primary concern. Are there multiplex channels to subscribe to which aggregate over a very diverse range of financial topics? Is the only solution for each person to sea...
I have recently undertaken a research into automated algorithmic trading algorithms. The aim of the research is to focus on studying algorithmic trading and trying to improve a basic implementation of an algorithm that exists. The algorithms usually analyze past market data, social media events and other factors in nea...
How sensitive are vertical spreads to changes in volatility / implied volatility in the money, at the money, and out of the money? I'm thinking for 1 point spreads this would be very small / neutral for ITM, ATM, and OTM, but I'm not sure. If you have thoughts on this, perhaps please confirm in a comment or answer. Fo...
I'm interested to know what are the critical reference texts you rely on for portfolio or risk management? I mean those texts that you come back to because they are chock full of insight and know-how. For example: Bernd Scherer - Portfolio Construction and Risk Budgeting (2005) Grinold and Kahn - Active Portfolio Manag...
I have a simple question. Is the Black-Scholes Formula convex with respect to Implied volatility parameter $\sigma$ (for calls or put) ? When I say Black-Scholes I mean for a call the following one (on Forward price $F_t$): $$Call (F_t,T-t, K, \sigma^2) = F_t.N(d_1) - K.e^{-r.(T-t)}.N(d_2)$$ $$d_1=\frac{Ln(F_t/K)+1/2....
How do you replicate the payoff of a constant maturity swap rate? That is, if the payoff of a contract pays the 5-year swap rate every year for 10 years, how would you replicate this payoff using swaptions?
I'm familiar with supervised learning algorithms like regression and neural networks which look at a bunch of input points and learn a function which outputs a value (the value varying depending on whether the algo is a classifier, logistic regression, or standard regression)..but I am facing a problem now where each o...
How can one compute the alpha decay of a systematic trading strategy?
I am working on an intraday strategy using 5/10 minute bars. I am getting a decent return and sharpe on the strategy. But on close examination I see that I am making about 1 cent per trade (I haven't taken transaction cost into account). How do you guys go about choosing a good intraday strategy ? I have always used s...
In a Barrier option (where the contract cancels when the underlying hits the barrier) I succesfully found the way to compute the probability of a single underlying touching the barrier (with constant volatility). The problem comes when I have an average basket of underlyings $B_t$ $$ B_t = \sum_{i=1}^n \omega_iS_t,\qq...
I've only recently begun working in the quantitative finance field, and I've noticed that some time series I'm given are labeled "seasonally adjusted", and some labeled with "seasonally adjusted annual rate". What's the difference between these two data transforms?
If you're hedging with a back month / leap option, what are good underlying / market conditions to move this option out even further in time? For simplicity, let's say you own a call with 6 months expiration. What conditions provide the best "prices", for selling this option, and then buying another further out in ti...
Are there comprehensive analyses of how much theta a weekly options loses in a day, per day? I know what the shape of theta decay looks like, in theory, where the decay towards zero happens more rapidly the closer you get to expiration. But with weeklies, an example question would be: do they lose 20% by first Friday ...
I'm working through different books about financial mathematics and solving some problems I get stuck. Suppose you define an arbitrary stochastic process, for example $ X_t := W_t^8-8t $ where $ W_t $ is a Brownian motion. The question is, how could I deduce that this stochastic process is a martingale or not using It...
I'm trying to understand option pricing better. Let's say security ABC is \$40, and a 38 PUT option with 40% implied volatility (and 90 days till expiration) is priced at X. If security ABC then drops to \$30, should the price of a $28 PUT option with 40% implied volatility (and 90 days till expiration), now have a ...
I'm wondering if there is some measurement or name to this notion, i.e.: Markets typically fall fast, but rise slowly. It seems like this is the case -- get some bad news out of Europe on the debt crisis there, and things drop fast. Then, in the absence of daily bad news, things tend to rise ... slowly. Is this the w...
Per a previous question on this topic -- markets generally fall fast and rise slowly: what options strategies or other strategies can one use to take advantage of this common occurrence?
I'm looking for a method to automatically detect structural breaks, I tried the Chow test, It works good but it doesn't work for breaks in variance. Do you know a test to check structural break in variance/volatility for financial timeseries?
Bill Sharpe proves that the average alpha from active management is zero (and after transaction costs the average active manager returns less than passive funds). One active manager's gain is offset by equal losses among some other active managers. So I stumbled across this paper "Does Active Management Pay? New Intern...
I want to generate a mock price series. I want it to be within a certain range and have a defined correlation with the original price series. If I choose, say, oil, I want as many time series which have some similar characteristics in terms of correlation but not exact. I do not want the data to wander off in a complet...
There is quite a bit of art in constructing an equity risk model. This paper summarizes some of the key decisions: choice of factors, horizon matching, cross-sectional vs. time-series method, and regression procedure to name a few. The risk vendors make available their methodologies to their customers (and in more rece...
Assuming I want to run an optimization over a short period, say 2 years, I would decide to take daily values in order to compute the efficient frontier of a portfolio. That works fine as long as I have classical assets with daily indices. For other asset classes, these indices might not exists. How would you then proce...
A recent personal finance question asks when to hire an investment professional? Given that many of us here are on the professional manager side of the business, how would you make the case? What quantitative evidence would you show a potential client? What research is there to guide one as to the right asset level ...
Let's say I have a factor model which I am using for Performance Attribution. I'd like to separate returns from alpha vs. returns from exposure to various risk factors. For each date, the factor model decomposes the returns of a security into its daily alpha (i.e. idiosyncratic component not explained by the factor mo...
I have a trading strategy that I use on single tickers. I'd like to start using it with pairs as well. However, I'm somewhat math challenged and not sure how to best calculate the stops of the individual tickers. Could someone point me in the right direction? If I have a pair, ABC and DEF, that I'd like to go long ...
Is there such a thing? Or is there a project around that aims to realize Quantlib in JS? I'm a JS coder and I'd like to get involved if so. Maybe it seems futile or insane today, but who can doubt that's merely a calendrical issue? I find no JS R but there's a JStat package that's advertised as "like R:" Jstat To make ...
I am trying to work out how to value the following transactions. It should be straight forward, since it breaks down into a series of well known instruments, yet I am not sure how to evaluate it: Receive Cash payment amount of \$X Subsequent pay out \$Y per calendar month into perpetuity Have the option to "close out"...
I see the Generalized Method of Moments suggested in numerous academic papers as a way to calibrate stochastic volatility models. However, any decent trading shop is going to calibrate to observable option prices instead. Are there any places that have used GMM in an actual trading context, say in some market where hi...
There's a relatively new product in the market / on the Nasdaq called Alpha Indexes. It lets one own a company -- e.g. Apple, GE, Google, etc -- as the difference between how that company does (the "target"), and a benchmark (e.g. SPY). That seems like a "stock analyst's dream", being able to say they believe company...
You can calculate the value of an option free bond or swap by using the spot curve and discounting cashflows accordingly. Alternatively, apparently you can use a single-factor short rate model in a binomial tree as you would for options. Can someone explain why we refer to using short-rate models for pricing option-fre...
My concern is how to handle a negative value for the Kelly formula. Even when you have a system that has positive expectancy, you can (and usually will) sustain a number of losses, sometimes consecutively. This is usually most relevant at the beginning of trading system signals, each loss has a large impact on the form...
Hello I am doing an analysis on covered calls with and extra amount of naked calls. Ignore the symbol and current macroeconomic events. I couldn't find any reference to this strategy (unbalanced is an adjective I chose, referring to the non-equivalent legs), it looks favorable because of the amount of premium that can ...
When someone wants to calculate a 30-day moving average of a commodity, do they mean 30 business days, or 30 calendar days? I'm looking for the general consensus, not "you could do it this way or that way".
I have two cross and an account in EUR: EUR/USD GBP/USD I would like to do a balanced linear regression using R. With "balanced" I mean that I would like to normalize it by calculating the difference in pips from the previous day and the current, and then multiply by the respective (middle) pip value. I do a simple e...
I'm trying to model interest rates, and will use the following equation: $dr = \mu r dt + \sigma r dW $ I'm also being told that interest rates are 40% correlated to S&P returns. How can I include correlation to the S&P into this equation? (It is pretty weird that interest rates are being correlated to S&P returns)
I am working out a numerical integral for option pricing in which I'm simulating an interest rate process using a Cox-Ingersoll-Ross process. Each step in my Monte Carlo generated path is a realization of a noncentral chi-squared random variable. What variance reduction techniques may be applied in this case? Can on...
Do you evaluate a strategy in a backtest based on the cumulative returns generated by the strategy (i.e. looking at the cumulative returns of the trades that occur) or do you start with a certain dollar amount and look at the cash at end to compute the annualized return. The reason I ask is because things like position...
I was asked today to "quantify" the precision of an estimated the standard deviation from a small sample, I was not sure how to answer. The case is quite simple, I have a sample of $n=25$ measures (returns as you would have guessed). I used the classic unbiased estimator for the standard deviation: $$\sigma_x = \sqrt{\...
I am trying to classify similar looking curves of a timeseries and was wondering what is the best algorithm to research. Reading R, it looks like k-means clustering could be applied - but I don't know if there are better algorithms. Any pointers is much appreciated. My concern is if k-means could group points around a ...