instruction
stringlengths
35
27.7k
Ideally an intuitive explanation with an example, please.
Suffixes indicating class, preferred, new, etc., are well defined for NASDAQ and NYSE, but I can't find anything documenting the meanings of the trailing punctuation. For example, here's some that I saw in today's feed from NASDAQ: OHI-D* REN+ RTN+ SGS= F+ AIG+ BLL# AA-
Given the time series for a particular stock market, what are the statistical weapons one can bring on to prove, or disprove that random walk hypothesis?
I have asked myself many times about Quantization Numerical Methods, is anyone here familiar with the subject and could give a reasonable insight of what Quantization concepts are about, and what are the underlying principles that make it work ?
Let's say you have a logistic regression model. Some of the factors are intrinsically categorical but some are continuous variables. Under which circumstances should a continuous variable be binned into categories? For example, logistic regression is widely used in retail credit modeling, and age is an explanatory vari...
A fairly naive approach to estimate the probability of drawdown / ruin is to calculate the probabilities of all the permutations of your sample returns, keeping track of those that hit your drawdown / ruin level (as I've written about). However, that assumes returns are independently distributed, which is unlikely. In...
I came across an example where a well-known weakness of a credit risk model was dealt with by augmenting some of the existing risk factors via increased factor loadings. This made the the model more conservative in terms of the required economic capital it recommended. What does that mean? Is it a matter of increasing...
I have been thinking a lot about the following puzzle. But, could not arrive at a solution. Can someone explain me how can you get a fair (equal probability) outcome using only an unfair coin (where unfair means that it will land head with probability p and tails 1-p where p != .5)? Thanks in advance!
When returns are auto-correlated, calculating a Sharpe ratio := $\frac {mean(x)}{\sqrt{var(x)}}$, (where $x$ are the returns) is complicated, but basically solved (see, e.g. Lo (2005)). Without the correction, the Sharpe ratio is too large, b/c auto-correlation reduces the variance of the returns. However calculating t...
A real track record is better than backtesting! I am looking for products, funds, certificates, indices etc. that are based on quantitative trading strategies where the strategies and performance data are completely transparent and reproducible (apart perhaps from trading costs). The markets and locations are not im...
This is based on a 1995 paper by Rubinstein/Jackwerth by the above title where the authors produces a distribution of stock prices inferred from option prices. But their approach only produces a joint distribution of stock prices and whatever other contributing factors, most prominent being volatility. My question is: ...
I would like to be able to analyse futures prices as one continuous time series, so what kinds of methods exist for combining the prices for the various delivery dates into a single time series? I am assuming you would just use the front date for most of the time, and then combine this into some kind of weighted combin...
I'm looking to find a free source of tick by tick data (<1sec) for training purposes. It doesn't need to be longer than a day, and I don't care what instrument, or exchange, or time it is. I just want real numbers with a high frequency. Is such a data set freely available?
I'd like to compare the returns of a portfolio segregated by groups to the returns of those groups in total. So say for example I have a portfolio with 40% Industrials and 60% Technology, then over the the same period the returns of Industrials and Technology were 5% and 10%, respectively. How can I get some idea of t...
Can you implement a condor options trading strategy in a spreadsheet? Could you give an example?
Is there a general (or specialised) FREE library to solve learning problems such that found in the book "The Elements of statistical Learning". As it is often time consuming to write all the algorithms for statistical learning, I would like to know what (free) libraries are used in quantitative finance. I'm thinking ab...
What are your favourite video lectures, presentations and talks available online? A few rules: Must be related to quantitative finance. No Economics 101 courses, please. Try to avoid DIY lectures for wannabe Soros types (e.g. how to earn millions trading S&P 500 futures). Try to post specific links to freely availab...
First thing i want to do is load data(.csv) into R. The data i am concentrating are the COT reports. Want to load a single column into R and calculate the correlation with the proper instrument.
I am trying to analyze valuation methods for swaptions. Does anyone know of free example data for these OTC-traded securities?
I'm looking for an options broker that provides an execution API. I'd like to ideally test on a papertrading version of it before connecting to a real execution engine. I know IB offers that, but they require a funded account with 10K min balance. I was hoping for no more than 2-3K. I would appreciate your suggestions...
Are there any free data source for historical US equity data? Yahoo finance has daily prices but I'm looking for something more granular and goes back 2 or more years (doesn't have to be close to tick data, hourly is fine). I've looked through Data sources online, there isn't much on stock market data.
What are the most effective techniques for reject inference in the context of retail credit scoring. Parcelling is something I use frequently... Any other approaches out there?
How should I store tick data? For example, if I have an IB trading account, how should I download and store the tick data directly to my computer? Which software should I use?
What methods can be used to map the correlation skew of a credit index on a bespoke CDO portfolio?
Libor Market Model (LMM) models the interest rate market by simulating a set of simply compounded, non-overlapping Libor rates which reset and mature on predefined dates. How do I obtain from them a Libor rate which resets and/or mature between these fixed dates?
How do I model the randomness of recovery rate given default when pricing credit derivatives?
What is an efficient method of pricing callable range accruals on rate spreads? As an example: A cancellable 30 year swap which pays 6M Libor every 6M multiplied by the number of days the spread of 10-year and 2-year CMS rate is above 0, in exchange for a fixed or floating coupon. Using LMM for this is dog slow, and 1 ...
I have been testing a trend following strategy. The results shows massive drawdowns which makes the equity curve very unstable. I just wanted to know what are some ways in which I can reduce the volatility (increase smoothness) of the equity curve? Better exits? Better entries?
Is a JV model simply Local Vol + Jump Diffusion? If so, it seems logical that an existing JV model be able to be used for valuation of both Vanilla and Exotic options. Is this true? Does a Local Vol model not model the smile parameters (Skew and Kurtosis) at all, and hence the use of JVol in equity option calculati...
If you are interested in determining whether there is a correlation between the Federal Reserve Balance Sheet and PPI, would you calculate the correlation between values (prices) or period-to-period change (returns)? I've massaged both data sets to be of equal length and same date range and have labeled them WWW (WRESC...
I am currently developing a commercial automated trading program in which users can write their own proprietary code and develop strategies, like in NinjaTrader, MetaTrader etc. Right now I am working on the order handling part, which is really important. I can not figure out how to reference the orders entered during ...
How does left tail risk differ from right tail risk? In what context would an analyst use these metrics?
I can't find S&P 500 index (SPX) futures data with Greeks to create delta-hedged portfolios. Do these data exist? I have access to most of the common data sources. In the meantime, I am trying to form so these delta=hedged portfolios "manually". Unfortunately, I can't find SPX data with maturity, so I use a continuous ...
Aside from Black-Scholes with crazy skews, what major models are used for energy derivatives? I'm thinking particularly of electricity derivatives, but I'm also interested in natural gas and other volatile contracts(*). (*): pun intended
What are the current computational (non-network) bottlenecks now in a quant's workflow? What computational tasks would be revolutionary with a 10-100x improvement in performance using general purpose GPUs?
Can anyone explain the process and the calculations needed to select a portfolio of liquid futures assets with the least correlation? Given a set of returns for a series of assets, how do I select the best subset such that I minimize their correlation with each other?
Assuming a naive stochastic process for modelling movements in stock prices we have: $dS = \mu S dt + \sigma S \sqrt{dt}$ where S = Stock Price, t = time, mu is a drift constant and sigma is a stochastic process. I'm currently reading Hull and they consider a simple example where volatility is zero, so the change in th...
The new kid on the block in finance seems to be random matrix theory. Although RMT as a theory is not so new (about 50 years) and was first used in quantum mechanics it being used in finance is a quite recent phenomenon. RMT in itself is a fascinating area of study concerning the eigenvalues of random matrices and fin...
While many systems like to treat dividends as a continuous yield when pricing equity options, it works quite poorly for short-dated options. In the short run, deterministic dividends are clearly the way to go, since the upcoming dividend is usually known with fairly high precision. In the medium term, we may start to ...
Assuming a directional strategy (no pairs or spread trades) is there a "standard" method for quantifying mean-reversion? Should auto-correlation, variance ratios, hurst exponent, or some other measure be preferred in all cases, or are there advantages to each given the context?
There are many online sources about common risk factors in investing and trading e.g. market risk, credit risk, interest rate risk. There are various factor models (Fama-French, Carhart) and risk management methods to mitigate them. What are examples of non-financial risk, such as hardware or network connection failur...
I would like to find stock pairs that exhibit low correlation. If the correlation between A and B is 0.9 and the correlation between A and C is 0.9 is there a minimum possible correlation for B and C? I'd like to save on search time so if I know that it is mathematically impossible for B and C to have a correlation bel...
There is a concept of trading or observing the market with signal processing originally created by John Ehler. He wrote three books about it. Cybernetic Analysis for Stocks and Futures Rocket Science for Traders MESA and Trading Market Cycles There are number of indicators and mathematical models that are widely accept...
We were talking about merger arb in a class I had last night, and when we got do deal construction it was mentioned that the different ways can be viewed as different options. For instance a fixed with collar can be a short call, because an upside limit is met, and a long put after the downside limit is met. What are ...
I heard that trading firms employ CEP platforms such as StreamBase, Marketcetera, JBoss Drools, and etc., to implement trading systems. I wonder which one is most popular and the recent trend of related technology.
There is a large body of literature on the "success" of the application of evolutionary algorithms in general, and the genetic algorithm in particular, to the financial markets. However, I feel uncomfortable whenever reading this literature. Genetic algorithms can over-fit the existing data. With so many combinations,...
Finance is drowning in a deluge of data. Humans are not very good at comprehending large amounts of data. One way out may be visualization. Traditional ways of visualizing patterns, complexities and contexts are of course charts and for derivatives e.g. payoff diagrams, a more modern approach are heat maps. My questio...
Esper and its .NET port NEsper are components that enable Complex Event Processing (CEP) and Event Stream Processing (ESP) engines. They are especially suitable for trading applications. They can, among other things, make it easier to deal with data-bursts and threading and they use a query language tailored for event ...
A commentary attributed to Matt Rothman had recently (in the past six months) been making the rounds of the internet echo chamber claimed "There are no idiosyncratic returns available in the market". How would one turn this into a proper statistical hypothesis test? As part of the commentary, a plot of 'implied corre...
In my firm we are beginning a new OMS (Order Management System) project and there is a debate whether we use Quickfix or we go for a professional fix engine? Because there is a common doubt that QuickFix is not enough fast and obviously we will not get any technical support. I heard that in BOVESPA it has been used fo...
I figure this perhaps the best place to ask this. What technology stack is used in Bloomberg? I'm C++ developer, and I definitely prefer C++ to C, so I don't want to touch C unless it's strictly necessary. I've had my fair share of maintaining legacy systems, and it's not something I enjoy. From my reading it seems ...
What is the market standard for pricing quanto CDS (i.e. CDS which pays the contingent leg in different currency than the pricing leg)?
What is a good place to acquire cheap/free historical quarterly filings data for US Companies? Specifically, I'm interested in the consolidated financial statements. The data should be well-structured and machine-readable (csv,tsv,json, etc.) I'm familiar with CompuStat and CRSP but both are well out of my price range...
Currently I trade trough IB. I run my HFT strategies (100 roundtrips per hour) but I think that latency is killing me and my profits are shrinking. I need the fastest possible brokers out there which meet the following requirements: Willing to deal with small accounts (50k). Hence lime is off the table. Has Java api (...
I am currently wrapping up my thesis. My final chapter is on applying the SABR model model for pricing purposes. I am valuing a constant maturity swap by replicating its value using plain vanille European payer and receiver swaptions as described by P. Hagan (http://pds4.egloos.com/pds/200702/26/99/convexit.pdf) in equ...
Given a historical distribution of weekly prices and price changes for a stock, how can I estimate the the option premium for a nearly at-the-money (ATM) option, say with an expiration date 3 months in the future? We could also have the stock's historical beta and the current option premium if desired. To keep things...
I am working in the area of probability theory and for a case study I would like to make some calculations in finance. Since I am developing theory for the discrete time, I am interested in models for the stock price in the discrete time. As I remember GARCH is a good one. Could you advise me something else? It will be...
Say you have an Exponential Moving Average being continuously updated over a time series using 1-second-long time periods. What should happen if there is no value for the next second, e.g. there were no price updates? Should the function decay in some way since there are no new values? Is there a correct or accepted wa...
Say for a stock I want to do a simulation using 30 days of historical returns, and maybe generate 1000 paths, with 2 days as the forecast horizon. Say I have 100 of these 5 day blocks used for generating the distribution, matched with the actual values of the 2 days I am interested in forecasting. How would I estimate...
How does one calculate the implied liquidity of a specific option contract given a set of vanilla puts and calls with various strikes and maturities on a single underlying?
So this is a "work homework" question. As part of my job they are sending us through sort of a training course. I'm looking for advice, or a link to a site that explains how to do this with maybe some formulas or something. I am NOT looking for answers. I want to figure this stuff out myself, I just need a little guida...
As of right now, the price of Brent Crude is $\$$111.59/bbl and the price of WTI Crude is $\$$98.36/bbl. I'm well aware that futures markets don't set the spot price for oil, but actual supply/demand does. And, that I don't have access to enough refinery/supplier data to figure out the supply/demand balance for WTI...
I am wondering how UBS hedges its exposure to its ETN XVIX. Unless I am grossly overestimating the trading costs, executing the strategy they describe in their prospectus with futures would be quite expensive, especially since they would incur some slippage (back months are not super liquid). Any ideas on how they do i...
Recently I have been looking at pair trading strategies from a cointegration perspective, as described in chapter 5 of Carol Alexander's Market Risk Analysis volume 2. As most quantitative finance texts the science is well explained, but the description of applications is a bit on the light side. Theoretically it's pre...
A convertible bond denominated in USD is issued by an Indian company (with equity traded in INR). The bond will be repaid in USD and if converted into equity in the company, the conversion price will be based on a pre-determined fixed USD/INR rate. When valuing the option embedded in the bond, should we use the USD ris...
On a security by security basis, I want to be able to quantify the level of HFT activity (and later institutional & retail activity). Is it higher than it normally is? How much so? What would you say is the best way to measure? Number of quotes? # of quotes relative to volume? Relative to # of trades? Spread volatility...
The answers to this question on forecast assessment suggest that if the sequence of residuals from the forecast are not properly independent, then the model is missing something and further changes should be made to remove the correlation. That does make sense to me and it suggests that we should be able to do better t...
I think I've found an arbitrage opportunity. Right now, I can do this (first via CME, second via SAXO) : BUY CADUSD AMERICAN PUT 10200 STRIKE EXPIRING 16 MAR 2011 FOR 53 pips USD SELL USDCAD EUROPEAN CALL 0.9805 STRIKE EXPIRING 16 MAR 2011 FOR 68 pips CAD The first trade costs me 530 USD, the second one gives me 680 CA...
I was wondering what is best practice for representing elements in a time series, especially with large amounts of data. The focus/context is in a back testing engine and comparing multiple series. It seems there are two options: 1) Using an integer index, or 2) Using a date-based index At the moment I am using dates, ...
I make money selling covered calls on FX spot options, and some of my friends want to buy in to this without having to trade their own accounts. One method is for each of them to get an account, and have me trade it, but that doesn't scale well: I really don't want to be trading 10 accounts. The other method is t...
I was trying to build a options trading/optimization system. But it often gets more inaccurate as it scans through the far from ATM options because, you know, options skews. That is because I did not price in options skews, or jump premium. I am wondering if there is a popular formula that takes "degree of options ske...
This is probably not the best place to ask this question but the one that seems most appropriate on stack exchange(doesn't seem to be an economics one). Anyways, My question, a serious one and not politically motivated, is about "big oil". Does anyone know why we generally see "big oil" have record profits usually in t...
What are the standard methods to price american call/put options on illiquid underlyings?
If you have a bunch of different econometric data (e.g. indexes, FX, commodities, interest rates...) you can try to find a formula to see if there is any relationship in the data - e.g. to forecast it by this discovered pattern. What I am asking here is a little bit different: Is there another way in the sense tha...
What are the most used/mature/promising commercial solutions today which handle backtesting/ automated trading needs? I'm talking about vertical product suites like QuantFactory or Deltix which address market data capture, historical data, CEP, backtesting, trading, etc. (I would be more specifically interested about t...
Could somebody advise me on where to find good literature on the justification or motivation for using support and resistance lines - and also lines of maximums and minimums. In finance, it is sometimes difficult to find the relevant literature because even if a book does not claim to be able to make you rich, the cont...
Can anyone provide a simple example of picking from two distributions, such that the two generated time series give a specified value of Pearson's correlation coefficient? I would like to do this in a simple monte-carlo risk assessment. Ideally, the method should take two arbitrary CDFs and a correlation coefficient ...
Has anybody else out there made this switch? I'm considering it right now. What were the negatives and positives of the switch?
What is a persistent variable in the context of regression analysis? For example, dividend to price ratio (D/P) is considered to be persistent variable when used to model future returns (Stambaugh Bias literature).
I am currently doing a project involving Monte-Carlo method. I wonder if there is papers dealing with a "learning" refinement method to enhance the MC-convergence, example : Objective : estimate of $E(X)\thickapprox \sum _{i=1}^{10 000}X_i$ -> step 1 (500 simulations): $approx_1=\sum _{i=1}^{500}X_i$ (i) Defining an...
Does anyone know of a python library/source that is able to calculate the traditional mean-variance portfolio? To press my luck, any resources where the library/source also contains functions such as alternative covariance functions (etc. shrinkage), Lower partial moment portfolio optimization, etc... I have develop...
To the degree in which it's possible, I'd like to know what the community believes are the objective skills/knowledge required to run a successful Quant book. I'm not interested in strategies, obscure maths or programming languages here. I'm interested in the practical realities of successfully managing/executing a ...
What is the varswap basis? I am not completely sure what this number represents. Is it the basis between the estimated future realized volatility and the vol surface implied volatilty at a specified tenor?
CBOE has introduced credit event binary options, kind of as a retail trader's CDS. These binary options are worth $1 if there is a credit event (ie, bankruptcy) before expiration, and $0 if there is no credit event (ie, solvency) at expiration. The option's premium is quoted in pennies and indicates the chance of a ban...
Let's restrict the scope of the question a little bit: I'm interested to learn about major differences in pricing formulae for nominal government bonds. The pricing formulae for inflation-linked bonds could well make a topic of another (and more difficult) question. The question was previously asked by cletus during t...
This question is inspired by the remark due to Vladimir Piterbarg made in a related thread on Wilmott back in 2004: Not to be a party-pooper, but Malliavin calculus is essentially useless in finance. Any practical result ever obtained with Malliavin calculus can be obtained by much simpler methods by eg differentiatin...
I'm working on some financial analysis code which I'd like to test against a historical dataseries to analyze the correlations to my algorithm to some non-finance related data. Ideally, I'd like to test against a dataseries which provides a monthly float value as far back as 1997. Maybe it's the temperature somewhere...
I'm looking at doing some research drawing comparisons between various methods of approaching option pricing. I'm aware of the Monte Carlo simulation for option pricing, Black-Scholes, and that dynamic programming has been used too. Are there any key (or classical) methods that I'm missing? Any new innovations? Recomme...
I'm currently studying for my undergrad in CS, and considering to do a grad in both CS and Math. I would like to see what you guys would recommend to prepare myself for a field as a Quant. I am specifically interested in Algotrading (algorithmic quant) position. To be able to write models and software to do automate...
I was looking into the factorial function in an R package called gregmisc and came across the implementation of the gamma function, instead of a recursive or iterative process as I was expecting. The gamma function is defined as: $$ \Gamma(z)=\int_{0}^{\infty}e^{-t}t^{z-1}dt $$ A brief history of the function points to...
A recent article from Forbes seems to indicate that low volatility stocks outperform high volatility stocks over the long run. Does anyone have any supporting or contradicting evidence to this claim? The study cited studied returns for the entire stock market and the 1,000 largest stocks from 1968 to 2008. Note that th...
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 determine which intraday lags have predictive power. From my understanding when doing cross-sectional regression all var...
On a betting exchange the price (the odds that an event will happen expressed as a decimal, 1/(percentage chance event occurring) of a runner can experience a great deal of volatility before the event in question begins. Since very little about the event in question actually changes before it starts the movement in pri...
If orders are filled pro rata, is there still incentive to engage in HFT? Because pro rata nullifies the time precedence rule, my intuition is no, but I figure there could be other aspects to it I'm unaware of.
At work we were talking about currency hedging our equity index exposures but I am struggling to understand how this happens in a typical iShares ETF. If we take the Japan ETF IJPN then we see this index is against the MSCI Japan index. However it is priced in GBP and its base and benchmark currency is USD. So my quest...
Most brokers compute rollover once a day (2200 GMT), but OANDA calculates it continuously. I thought I'd cleverly found an arbitrage opportunity, but it turns out OANDA knows about this and advertises it. Quoting from http://www.oanda.com/corp/story/innovations Professional traders can exploit this flexibility by...
Can someone explain to me the rationale for why the market may be moving towards OIS discounting for fully collateralized derivatives?
Does anyone know of any research or data on US corporate bankruptcy rates as a function of standard valuation ratios, such as P/B, P/E, etc.? I'm trying to adjust the results of backtests to account for survivorship bias. My first thought was to put an upper bound on the impact of survivorship bias by assuming a certa...
I've only recently begun exploring and learning R (especially since Dirk recommended RStudio and a lot of people in here speak highly of R). I'm rather C(++) oriented, so it got me thinking - what are the limitations of R, in particular in terms of performance? I'm trying to weigh the C++/Python/R alternatives for rese...
I try to implemente the LSM method with this algorithm but my price is always too low. By example for an American put option with the following parameters: S0 = 36, Strike = 40, rate = 6%, T = 1 year, discrete path = 50, volatility = 20% I got 4 dollars, but the Longstaff and Schwartz article lists 4.7 dollars. With ...