instruction stringlengths 35 27.7k |
|---|
I'm having a hard time getting my expected loss calculations to tie out with the standard recursion method when implementing the proxy distribution algorithm described by the Back To Normal CDO paper by Shelton.
Anyone have working code examples for this?
|
Do you think Walk Forward Analysis is a good method to estimate the predictability or edge of a trading system? Are there similar methods to know (estimate) how much alpha can capture an algo (in the future)?
|
I built risk models using cluster analysis in a previous life. Years ago I learned about principal component analysis and I've often wondered whether that would have been more appropriate. What are the pros and cons of using PCA as opposed to clustering to derive risk factors?
If it makes a difference, I'm using the ri... |
The nice list of free online data sources What data sources are available online? does not mention any data from ratings agencies.
Are historical time series available for sovereign credit ratings (other than as proprietary datasets)?
I realise that the ratings agencies probably would claim their ratings of sovereign... |
I am seeing a regression model which is regressing Year-on-Year stock index returns on lagged (12 months) Year-on-Year returns of the same stock index, credit spread (difference between monthly mean of risk-free bonds and corporate bond yields), YoY inflation rate and YoY index of industrial production.
It looks thus (... |
I am implementing a program in Java that needs the Bank of England base rate. Rather than the user inputting this into the system, I have heard that there is a way to get a live feed of the base rate directly from (I am guessing) the Bank of England (i.e. gets automatically updated). Has anyone heard of or used somethi... |
If one wants to smooth a time series using a window function such as Hanning, Hamming, Blackman etc. what are the considerations for favouring any one window over another?
|
Hy I posted this question first at mathflow.net they suggested me this page, which I was not aware of.
Question
Let $(X_1,X_2)$ be a multivariate normal random vector ($X_1$ and $X_2$ need not be independent). Is it possible to calculate
$$VaR_{\alpha}(e^{X_1}+e^{X_2})$$
analyticaly?
Or is it even possible to calulate ... |
There is a large literature covering volatility forecasts with high-frequency tick data. Much of this has surrounded the concept of "realized volatility", such as:
"Realized Volatility and Correlation" (Andersen, Bollerslev, Diebold, and Labys 1999)
"Modeling and Forecasting Realized Volatility" (Andersen, Bollerslev... |
Suppose I have trend following strategy(on close to close data) that is not getting acceptable returns for some time. When should I start thinking about shutting it down?
|
I am using the Mersenne twister random number generator in Java for a Monte Carlo Simulation. I need a uniform distribution of values between -1 and 1. My code is below (I am importing org.apache.commons.math.random.MersenneTwister, which is a Apache Commons library that contains the methods I am calling).
for(int i =... |
I came across this article and became curious. Can the futures market's open interest really predict market action?
|
From what I understand, Black-Scholes equation in finance is used to price options which are a contract between a potential buyer and a seller. Can I use this mathematical framework to "buy" a stock? I do not have the choice using options in the market I am dealing with -- I either buy something or I don't. So I was wo... |
I want to start a blog/newsletter and maintain a track record of
trades I recommend. I have a never-expiring demo account for this
purpose.
How do I keep this track record "honest"? Three months from now,
someone can claim I backdated everything, made up trades, etc. Is
there a well-known way to keep traders hones... |
I am putting together an Ultra-High Frequency desk and need to answer the following questions for ordering some rack servers to process about 2 GB of data per second. If anyone has worked at a HFT desk before can you help me out? What kind of software do big HFT shops run?
How many processors are required, and what cl... |
Seems like the vast majority of all the Hedging literature is dedicated to the speculative side of it. I am searching for quality papers that deal with the link between financial and physical markets and how non-financial companies can manage and control the risks of price movements of commodities and currencies in the... |
I am studying Arbitrage Pricing Theory (APT) and I have a question about calculating factor exposures.
Assume:
\begin{equation}
r = \beta_1r_1 + \beta_2r_2 + ... + \beta_kr_k + r_e
\end{equation}
Where:
$\beta_i$ is the exposure of the asset to a factor
$r$ is the return attributable to a factor
I believe that beta wi... |
I am valuing a binary FX option (european) with a defined strike and term (2Y). I'm using a closed form solution based on Black-Scholes framework. How can I derive the appropriate volatility to use from the market data I have?
Market Data (all quoted in implied volatility):
ATM
25D Risk Reversal
25D Butterfly
1... |
Let's say I am hedging an exotic instrument $E$ with $N$ liquid instruments $L_i$, each of which has an associated hedging ratio $R_i$ and a bid-ask spread $\delta_i$ (per dollar of notional). What would you recommend as a cost function to balance the completeness of the hedge and minimize the hedging cost?
|
I'm looking for a heuristic way to calculate the probabilities of being in the money at expiry for non-defined risk options combinations (listed options).
I use delta as a proxy for this probability of success for single options, which makes an implicit distributional assumption.
For spreads I use width of the spread (... |
Do you know of any papers which consider pairs trading (or statistical arbitrage) on foreign exchange?
I couldn't find any. I asked this question on several forums and got no reply. Thus, I guess this trading strategy is inapplicable due to the properties of currency markets or other fundamental reasons. However, it i... |
What are the applications of binomial trees?
|
I'm currently working on my Masters project related to accelerating Greeks computations for CVA on mixed interest rate portfolios. I would like to know about the status of technology for CVA and its Greeks computations in the industry (mainly related to speed of computation).
Example situation:
Portfolio of 100 000 in... |
I am implementing a method in Java to calculate the variance, covariance, and value at risk for a portfolio, which should be flexible for use with any number of assets in a portfolio. I am struggling with how to calculate the covariance of the assets as I can only find formulae to do so for two or three sets of values.... |
Pls explain and discuss these limitations, and explain which models can I use to overcome these limitations. Alternatively, provide examples of how to modify the original Black Scholes to overcome these limitations.
|
What's the right way to take a series of returns and convert it into a continuous index? Let's say I want to show the performance of a strategy starting from 1, and adding on returns so that I get an equity curve, should I be using cumsum(1 + returns) or cumprod(1 + returns)?
|
This is a bit DSP-related: so if you turn your non-stationary time series into a stationary process, you'll probably see that it is not periodic.. This is an issue for Fourier-based techniques because they are not local in frequency. Now, besides wavelets (some types are causal btw), which other causal techniques can y... |
In reference to the original Black Scholes model, what approach is best to test the model in a rigorous way? Is there a standard approach that can accomplish this in a reasonable amount of time?
Details I require:
number of trials,
which software to use, formulas etc.
any other information that I should be aware of... |
I was thinking about writing my own backtester and I realize I have to make some assumptions. So I was hoping I could post what I am planning on doing and hopefully some of you can give me some ideas on how to make it better (I'm sure there is a lot that can be improved).
First of all, my strategy involves holding stoc... |
Nowadays structured products (or packages) with complex payoff diagrams are omnipresent.
Do you know of any software, add-ons, apps, code whatever, that enables you to enter a payoff diagram or a cashflow profile which gives you the basic building blocks like the underlying, zero coupon bonds and esp. all the option co... |
I am substituting reasonable values in the below fomula (like r=0.12, T=20, nColumn=16, sigma=0.004)...why is probability coming out to be greater than 1? Any help? Thanks!
del_T=T./nColumn; % where n is the number of columns in binomial lattice
u=exp(sigma.*sqrt(del_T));
d=1./u;
p=(exp(r.*del_T)-d)./(u-d); % risk neut... |
I have just started applying Binomial-Lattice, however I am yet to fully understand few things. My questions are:
What is the concept of working backward (left side) from the values in terminal (farthest) nodes at the right side. Why do we need to do backward induction? I started my first node with some value S, at sa... |
Suppose I have two time series $X$ and $Y$ of stock prices. How do I measure the "similarity" of $X$ and $Y$?
(I'm being deliberately vague as I don't have a particular application, and I'm curious about different approaches in general. But I guess you can imagine that there's some stock x that I don't want to trade di... |
I am trying to get the historical price data on selected American and European style options at EUREX. I am not familiar with their system. Does any one know whether they have something like yahoo finance where I can just download market data through R? Or at least, excel files with daily prices.
Thank you
|
I have one portfolio with high beta stocks, and one with low beta stocks. Is it better to have higher expected return with high volatility, or medium expected return with medium volatility? (All from a asset allocation, efficient frontier, risk/reward prospective.)
|
One way investors analyze stocks is on a technical basis. Looking at Bollinger Banks (20 day moving average +- 2 standard deviations) is one of the most popular technical tools. Some stocks trade between their Bollinger bands and rarely break through the bands.
Research points to price changes in stocks as a random w... |
One commonly used sample estimator of volatility is the standard deviation of the log returns.
It is indeed a very good estimator (unbiased, ...) when the sample is large.
But I don't like it for small sample as it tends to overweight outliers in log returns.
Do you know if any other statistical dispersion measure that... |
I am not familiar with the concept of entropy for time series. I am looking for good reference papers and examples of use.
|
Have a good quant joke? Share it here. The principle "should be of interest to quants" trumps.
I would be particularly keen to learn jokes which involve some nontrivial finance/mathematics. I am looking for jokes which make you laugh and think at the same time.
This is a community wiki question: One quant joke or pun p... |
Are there any free c++ libraries that would have some of the functions that would be used in developing a trading strategy. For instance, calculating drawdown, Volatility Forecasting, MAE, MFE....etc.
I know I could code these but this would help me save some time and focus on the strategy and not the report generation... |
I am asked to map financial products into XML. It can be in any format. I know there is an open specification FPML. Is that worth to adopt FPML rather than my own standards? Also, how common FPML is in the industry?
|
I recently become interested in finance. Many books discuss options as simple examples of derivatives. I also read some "popular books". I read in "The Poker Face of Wall Street" that almost no farmers actually use commodity exchanges (p91), while in many places the opposite is claimed (for example, "Traders, Guns, ... |
What are the limitations of brownian motion in its applications to finance?
|
What is the role of skewness in portfolio optimization?
|
So, any European type option we can characterize with a payoff function $P(S)$ where $S$ is a price of an underlying at the maturity.
Let us consider some model $M$ such that within this model $V(S,\tau,P)$ is a price of an option with a payoff $P$ at time to maturity $\tau$ and an asset's price $S$ at time $\tau$.
Us... |
I have a MSc degree in the area of Financial Mathematics, but I am doing research now in other field of stochastics. Could you please tell me about the most important problems of (stochastic) financial mathematics nowadays?
Are they only looking for new processes for they price of an asset (and solutions of correspond... |
Mr. Soros in his books talked about principles which are not used by today's financial mathematics — namely reflexivity of all actions on the market. Simply it can be given by following: expectations of traders are based on the news and historical prices. They trade based on their expectations and hence influence price... |
I am doing some research involving black-scholes model and got stuck with dividend-paying stocks when evaluating options. What is the real-world approach on handling the situations when an underlying pays dividend?
Thank you
|
Consider $U_1(\mu,\Sigma)$ and $U_2(\mu,\Sigma)$, where $U_1(\mu, \cdot) = U_2(\mu, \cdot)$, $U_1(\cdot, \Sigma) = U_2(\cdot, \Sigma)$ such that
\begin{equation*}
arg\inf\limits_{\mu \in U_1(\mu, \cdot), \Sigma \in U_1(\cdot, \Sigma)} \left(w^T \mu – \alpha w^T \Sigma w \right)
\equiv arg\inf\limits_{\mu \in U_2(\mu, \... |
What does a CVA (Credit Valuation Adjustment) desk do, and how are its activities different from other trading desks? Can you work as a quant for a CVA desk and consider your role "front office"?
|
does anybody know a site where I can download historical data on stocks including companies that have gone bankrupt such as lehman brothers?
it appears that bankrupt companies no longer appear in the finance sites that I know...
|
Curious as to whether or not there is any sort of all time record. Any index, future, or stock will do. Volatility must be well above the average 1 year volatility for all periods.
|
Me and my friends are from Europe, we went to US. At the end of the trip they bought an item worth $USD 100$, but because they were short of money, so I paid for the item first with my own $USD 100$.
After we came back from Europe, they would have to pay me. They would like to pay me in EUR. What is the fair amount of ... |
What is the practical use for Vanna in trading?
How can it be used for a PnL attribution?
|
I have a time series with monthly data from which I compute the expected shortfall empirically, following the classical definition which can be found, for example, in wikipedia's definition.
That is, assuming I have 200 monthly returns and I am looking to compute the 10% expected shortfall, I take the worst 20 returns ... |
Does anyone know of a source of machine-readable (XML,etc) OCC Infomemos? The PDF files available below contain all the information I want, but are a pain to parse.
http://www.optionsclearing.com/market-data/infomemos/infomemos1.jsp
|
What types of neural networks are most appropriate for forecasting returns? Can neural networks be the basis for a high-frequency trading strategy?
Types of neural networks include:
Radial Basis Function Networks
Multilayer Perceptron (standard architecture)
Convolutional Neural Networks
Recurrent Neural Networks
Q-... |
ok, so I can't post more than 1 link since I'm a noobie noob, and in the course of correcting this, Stack managed to delete my post. so here's the more abbreviated, slightly irritated author version…
I'd like to calculate the fair market capitalization of the Metropolitan Transportation Authority of New York.
Facts:
A... |
Anyone can tell me what the first column and the last column in this FX tick dataset mean? The first seems like some kind of ID, and what D in the last column mean?
368412956 AUD/CAD 12/30/2007 17:00:03.000 0.8598 0.8604 D
368413005 AUD/CAD 12/30/2007 17:00:58.000 0.8599 0.8605 D
368413022... |
Yahoo Finance allows you to download tables of their daily historical stock price data.
The data includes an adjusted closing price that I thought I might use to calculate daily log returns as a first step to other kinds of analyses.
To calculate the adj. close you need to know all the splits and dividends, and ex-div ... |
As far as I understand, most investors are willing to buy options (puts and calls) in order to limit their exposure to the market in case it moves against them. This is due to the fact that they are long gamma.
Being short gamma would mean that the exposure to the underlying becomes more long as the underlying price dr... |
What would be the best approach to handle real-time intraday data storage?
For personal research I've always imported from flat files only into memory (historical EOD), so I don't have much experience with this. I'm currently working on a side project, which would require daily stock quotes updated every minute from an... |
Attempting to get a high level understanding of the role that quantitative finance plays in the financial global markets. Open to any suggestion on how to do this, but figure a starting point might be to estimate the percents of earnings and losses globally on an annual basis attributed to quantitative finance.
|
Fund managers are acting in a highly stochastic environment. What methods do you know to systematically separate skillful fund managers from those that were just lucky?
Every idea, reference, paper is welcome! Thank you!
|
I am currently working in a firm that does algo trading. We do all of our stuff in Java. And we do make money out of it. We have debates all the time whether we would have made more money with native or VHDL on network cards.
We don't do super high-frequency though we do more complicated trades. Even though we need to ... |
I'm trying to understand what caused certain price movements (aren't we all!) in per-minute data for major NYSE stocks. In particular, I'd like to determine whether a given price movement of X% in either direction was due to a single entity making a large trade (maybe their order-splitting algorithms leave traces, or m... |
I am taking a degree in macro economics, and am at a juncture where knowledge about the Keynesian Multiplier is imperative. Though I've been at the lectures, read the literature and scoured the web, I am still somewhat confused about exactly how to define the model for this multiplier. At present, I would say that the ... |
Suppose you have a trading system that is never flat, but either long or short the market. You have four years of performance. During that period, your system changed its position 10 times. So you have 10 trades from which to calculate expected return. Assume you always traded the same lot size. In a transaction-based ... |
I need to display in my system the amount of stocks that I own and the average price it took me to buy them. I am having a problem doing that when I include the selling.
Lets say I bought 4 stocks in 100 usd each.
and I sold 2 stocks for 110 usd each.
Now my position is 2 stocks for what average price ?
Option A: (4 ... |
I'm studying for an exam in financial models and came across this question:
"An agent with $C^2$ strictly increasing concave utility $U$ has wealth $w_0$ at time 0, and wishes to invest his wealth in shares and bonds so as to maximise his expected utility of wealth at time 1. Explain how the solution to his optimizatio... |
I'm working with C# and I start being bored writing optimization algorithm.
Do you know any free library containing this sort of algorithms?
In particular I'm currently working with Semidefit program.
|
As you know, the key equation of risk neutral pricing is the following:
$$\exp^{-rt} S_t = E_Q[\exp^{-rT} S_T | \mathcal{F}_t]$$
That is, discounted prices are Q-martingales.
It makes real-sense for me from an economic point of view, but is there any "proof" of that?
I'm not sure my question makes real sense, and an an... |
How should one correctly forward adjust historical prices given a time series of Open, High, Low, Close, Return?
Suppose that the data series is given below ('1' is the oldest interval; '5' is the latest one):
interval open high low close return
---------------------------------------
1 17.36 17.54 17.17 17.... |
I'm looking for an indicator which tells me if it's a good time to use mean reverting type quantitative trading strategies.
In order to do so I look at the market (the few hundred stocks I trade) and try to build a measure with previous prices, volumes etc.
It's seems difficult to have a multivariate model based appr... |
I did cointegration test on two identical time series, and the result shows that they are not cointegrated, but intuitively, I think they are.
Can anyone share some thoughts on this? Thanks!
|
Deutsche Bank’s ETF platform, db X-trackers, provides a rather remarkable ETF tracking Euro Stoxx 50 (which is the most widely used regional blue-chip index in Europe).
What makes it remarkable is its cost - the fund's TER is 0.00%. But even more surprisingly, the passively managed ETF has been consistently outperfo... |
What are the most famous/best performing absolute-return funds employing approaches based on mainstream finance theory (i.e., theory presented in Journal of Finance, AER, Econometrica, using typically factor models)? I am asking because I know certified outstanding managers using fundamental analysis (e.g., Buffett, Ro... |
Renaissance Technologies Medallion fund is one of the most successful hedge funds - ever! Yet it is very secretive.
Do you have information on the strategy used that is not yet mentioned in the Wikipedia article above?
Is there really something fundamental going on (the Holy Grail of investing) - or will this be the ne... |
One of the answers to my previous question regarding the strategy of Renaissance Technologies, there was a reference to The Quants: How a New Breed of Math Whizzes Conquered Wall Street and Nearly Destroyed It.
After doing some browsing in the book I found that it states that Renaissance Technologies obviously very suc... |
I recently read a blog entry where some statistics were generated for a common technical analysis indicator. Below is the link. My question shows up close to the bottom under the name bill_080, in the "Response" section:
http://www.portfolioprobe.com/2011/04/16/a-bit-of-analysis-of-the-dow-golden-cross/
My question h... |
Currency valuation (with respect to other currencies) is an important parameter in finance, but how is it related to the cash reserve ratio?
|
Imagine a British investor with $10-100k in her pocket. She wants to see the previous performance of various British and overseas funds to choose the one to invest. And she wants to filter out the ones which accept minimum one million investment. Is there a website to help her to make the informed choice?
|
I'm looking for a clearly articulated description of the difference between trade matching (e.g. Omgeo's CTM) and trade affirmation (e.g. Omgeo's Oasys). From what I understand, they both involve electronic matching of trade details. So, what's the difference?
(For those who are just trying to follow the conversation, ... |
I'll start this off with a rather broad question: I am trying to simulate returns of a large number of assets within a portfolio of different classes - equity and fixed income in a first step, say 100 stocks and 100 bonds. The main target is to preserve something similar to a realistic correlation structure within the ... |
The question is inspired by a short passage on the LMM in Mark Joshi's book.
The LMM cannot be truly Markovian in the underlying Brownian motions due to the presence of state-dependent drifts. Nevertheless, the drifts can be approximated 'in a Markovian way' by using predictor-corrector schemes to make the rates func... |
I'm trying to build a simple risk model for stocks using PCA. I've noticed that when my dimensions are larger than the number of observations (for example 1000 stocks but only 250 days of returns), then the resulting transformed return series (returns rotated by eigenvectors or factor returns) have non-zero correlatio... |
I have a trading system I would like to test for the S&P 500, or another very similar instrument. I'm looking to make approximately 10-15 trades per month. I know if you have a Vanguard account, you can trade their ETFs for no commission, but them limit you to 25 trades in a 12 month period. Are there any other broker... |
In what ways (and under what circumstances) are correlation and cointegration related, if at all? One difference is that one usually thinks of correlation in terms of returns and cointegration in terms of price. Another issue is the different measures of correlation (Pearson, Spearman, distance/Brownian) and cointegr... |
I know there are similar questions but I don't think there are any identical ones.
Basically, I'm looking for one of these two things.
Delayed market data feed. A tick by tick feed, but delayed by anything between 0 and 30 minutes. So at 12:30pm I'd be able to get a quote for 12:00pm, but at a tick-by-tick or millisec... |
Using total return calculations is critical in developing security selection models.
The standard way to measure total return is to develop a series of price-adjusted data. Investopedia describes the standard method here:
http://www.investopedia.com/ask/answers/06/adjustedclosingprice.asp
Essentially, capital distribut... |
I've read documents that claim that SWIFT and FIX are not competing protocols for financial transactions and messaging. And yet, I have not come across a clear articulation of when to use SWIFT versus FIX. For example, I know that FIX can be used for most trading activities, e.g. getting a quote, placing an order, canc... |
I plan to develop a neural network to trade commodities futures, but while messing around with some code, a question came up. If I understand correctly, people use various technical indicators with their networks (moving average, MACD, etc.). However, how do these come into play in a machine learning context? Should I ... |
How can I find the delta of a convertible bond to be used for hedging?
|
The algorithm is introduced in the paper, Can We Learn to Beat the Best Stock.
The obvious advantage is superior risk-adjusted returns (if you can actually achieve them). Transaction costs and sensitivity to window size seem to be potential disadvantages.
I'm hoping someone can provide more insightful advantages / dis... |
I feel like I'm missing something fundamental here, but I can't shake the feeling that these two series should be equivalent.
/edit: there is also dailyReturn(Cl(SPY)). I've seen all 3 of these methods used to calculate stock returns on various blogs, and I'm wondering which is 'correct.' They all give slightly diffe... |
Most quantitative investment strategies focus on the changing prices of a commodity or equity over time. Derivatives, however, make this more complicated. How can I apply quantitative strategies to something that is not a single product with a single price, but rather separate products for each month (each with their o... |
Would it be considered appropriate risk-management or overkill to utilize multiple brokers to manage a given trading strategy?
A couple specifics:
I'm interested in what a reasonably-sized hedge fund might typically do, not an individual day trader.
Let's assume major equities and that either broker could easily hand... |
Motivation: I am running a quantitative analysis that requires long-term, exchange rate data.
Problem: Does anyone have methods for dealing with the EURUSD exchange rate prior to the Euro's existence? Is there some "natural" weighting scheme of the various European currencies prior to the Euro that I might use? Or, is... |
I am trying to reconcile some research with some published values of 'Sharpe ratio', and would like to know the 'standard' method for computing the same:
Based on daily returns? Monthly? Weekly?
Computed based on log returns or relative returns?
How should the result be annualized (I can think of a wrong way to do it ... |
Can someone provide (or point me to) a summary of back office processing nuances specific to FX trading? For example, I know that there are several FX-specific risks that must be managed. They include transaction risk, translation risk, and short- and long-term exposure risks. GAAP and IFRS have published guidelines fo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.