instruction
stringlengths
35
27.7k
I'm thinking about taking a course on Linear and Convex Programming, but I don't know how useful it is in the real world finance. Which areas in finance is mathematical programming used?
I am trying to read up on "Wholesale credit risk ", but I can't find any useful references. Why is the emphasis on wholesale?
Given two time series data. I remember there is one statistics that tells you one is the leading factor while the other is the lagging factor. However, i do not remember the exact details. correlation is part of its name. I wonder if any one here could help me out. Thanks.
To give you a brief background, I'm valuing a fixed-for-float Interest Rate Swap (IRS) using Bloomberg. I put in a notional amount in (USD) and a assigned 6MO USD LIBOR as the reference index for the floating leg. I want to know how Bloomberg computed for the floating rates it used to compute for the floating cash flow...
I was wondering how the yield curve for US treasuries are constructed (ex. USGG10Y, USGG5Y, etc.). How to compute for it exactly (what deals/quotes are included in it, what financial institutions are involved, etc.)? Thank you.
I'm trying to determine which of my portfolio simulations/backtests if any are good enough to put some money into. I outline an approach below and I'm interested in knowing: What problems are there with my approach if any? How big are these problems? Could you recommend a better approach, and explain it with sufficient...
Using the 3-mon eurodollar interest rate futures, I construct a yield curve each year for 2015-2021 using sampling date from the end of the month. If you graphed this out, you would see that the curve is shifted down each year. What I guess that is saying is that as time goes on, the market expectation for the intere...
Can someone give an overview or literature on Intraday Data Stylized Facts? In particular for equity market returns or exchange rates.
Consider a American floating strike put option with maturity $T$, written on a non-dividend paying stock $S_t$. The strike of this option at time $t\leq T$ is $Ke^{-r (T-t )}$, where $r$ is the constant interest rate. Assume the volatility of the underlying stock is constant. What is the price of this option?
I've been trying to implement a bivariate tree for pricing american options with the heston model in R using the paper of Beliaeva and Nawalkha (http://papers.ssrn.com/sol3/papers.cfm?abstract_id=1107934). However I am obtaining negative transition probabilities for the middle node change of the stock price. I am prett...
Factor models with factors that are not returns are usually estimated and tested by cross-sectional regressions. However, there is a way to use time-series regression to estimate and test the model. The time-series regression is given by: $$R_t^{ei} = a_i + \beta_i f_t + \varepsilon_t^i \ \ ; \ \ t = 1, 2, \cdots, T \...
Are there any practical articles, blogs or books that describe common practices in market making and how to calculate and use common measures? The majority of the information I found are research papers. For example, the links in the following question: academic papers about market making Are there any articles on how ...
I would like to first know the precise definition of each one of those 3 ratios as well as there differences. On the web there is bit of a mess on the explanations. I could not find a simple and clear systematic presentation of those 3 without mixing the terms and others synonyms. That let me even more lost. Besides th...
I have an optimisation problem. I wish to maximise a function subject to a constraint. It is the constraint that is causing me problems. I am using an addin in Matlab which does the optimisation however the constraints that I have used before have been in the format of the line below. b_l <= Ax <= b_u The constraint...
I'm not sure of the answer but I think it's possible. What I don't get is what characteristics this asset would need to have and why it would mean that an investor would accept a return less than the risk free rate when there is uncertainty about the asset's future payoffs.
I'm trying to find/create a variable that measures liquidity in financial markets in order to assess, for instance whether credit conditions tightened? Does anyone know any relevant literature concerning this subject?
Is there a data provider that has historical daily settlement prices for download? I'm interested in a provider that spans multiple exchanges.
I am having some difficulty grasping the concept of using DTS to measure credit risk. In the equity world, one typical measure of risk is beta, which is quite well-defined as the exposure to a common market factor, say S&P 500. But in credit market, it's not clear to me what the analogous common market factor would be....
I posted this question before on MSE I need to use it in a small step in the middle of a simulation and I think I'm not getting correct results to this probabilities and so for my all subsequent simulation. Could someone please check my results and my proof below? I would like to obtain the law of the firs...
I just want to check that I am interpreting the ACF and PACF plots correctly: The data corresponds to the errors generated between the actual data points and the estimates generated using an AR(1) model. I've looked at the answer here: https://stats.stackexchange.com/questions/106038/estimate-arma-coefficients-throug...
I have discussion with my colleague on why a general assumption $$ud=1$$ in binomial tree option pricing model would be necessary? I take it a simplification of the problem, otherwise, there will be more intermediate nodes in the tree, which will be hard to compute. While my colleague insists that since the underlying ...
I have a table of cumulative probabilities of default of industrial bonds, in time and credit rating. It is similar to S&P whitepaper here. Basically, it looks like this (sample numbers): Years | AAA | AA | A | ... | C 1 | 0.01% | 0.04% | 0.09 | ... ... 30 | 1% | 5% | 8% | ... This data has ga...
In Robert Merton's derivation of the efficient frontier of a portfolio, he minimizes $\frac{1}{2}\sigma^2 $ over the investment weights in each asset, where $\sigma^2$ represents portfolio variance. I am confused why the function he minimizes is half the variance, instead of just the variance. It doesn't make a differ...
I am using MATLAB to do an optimisation. The QP minimisation problem is set up in the standard form shown below. The optimisation is used to calculate the weights (x vector in the equation below) of a portfolio. Min 0.5 (x'Fx) + c'x x st x_low <= x <= x_up b_low <= Ax <= b_up where c is a n x 1 vector in the ...
I'm a finance professor and I am looking for someone with actual trading and risk management knowledge within the energy sector who can tell me about pricing and hedging energy (especially electricity and natural gas) risk. I am writing a book and looking for real world examples. My question is which tools actually ge...
I have been playing around with some equities historical market data and I understand that different exchanges have different definitions of what Level II (Limit Order Book) data means. What I'm interested in knowing is when/how often is the data updated. In fact, I see that some exchanges (like NYSE with their OpenBo...
I need to calculate WACC for copany operating in the coutry with islamic finance system. I used build-up method to calculate cost of equity. But still searching for cost of debt in the economy. Has anybody faced the same problem? Any ideas how cost of debt can be determined for the economy with financial system based o...
I recalled reading a academic paper that studied how long a market exploitation took to get priced into the market. I am trying to find that article. I remember it stating that the market priced in the exploitation on average around 30 days.
I have a few bonds and OAS and Duration for each. I had a Linear programming type of problem where I had to maximize OAS and keep duration <= constraint. There are few other constraints. I could easily model them using linprog in MATLAB. Unfortunately the portfolio turnover is too high. I want to put a constraint on t...
I am struggling trying to find out where they get the $8$% interest rate for the loan you make to purchase the Sterling Bond in the following strategy: Problem: Suppose that $A(0)$ = $100$ and $A(1)$ = $105$ dollars, the present price of pound sterling is $S(0)$ = $1.6$ dollars, and the forward price is $F = 1.50$ doll...
I am trying a basic statistical arbitrage strategy as follows: Perform PCA on a log return series of a basket of stocks Regress returns against top principal components identified Calculate the residuals of regression for each stock Fit a OU process on the residuals To fit an OU process, calculated the sum of residua...
I am trying to map shocks from VAR to discount-rate and cash-flows news following the paper of Campbell and Vuolteenaho (2004). It is said that news are a linear combination of shocks from VAR at (t+1) (see the formula on the picture). However, that means that both news will be perfectly correlated just by construction...
I got 1.3636 for beta for the problem below(165/121). But I became so unsure about the answer when I solved (c) because then the market risk becomes larger than the variance of Stock A. Beta^2*σ(M)^2=224.98> σ(A)^2=220 Am I making a mistake? Or if my solution is correct,how do I interpret this result?(all the variance ...
Would you please give me some information about application of "Game theory" and "Optimisation" in Finance and Mathematical Finance? which is more important to know and learn? How about "multi-criteria decision making" and "non-linear programming"? Any suggestions and advice are welcome. Thank you in advance. Seer
I have a list of French traded warrants identified by their ISINs. I do not know, however, to which stock they refer and what is their strike/maturity. Which datasets allow me to retrieve this information? Many thanks!
Given prob space $(\Omega, \mathscr{F}, P)$ and a Wiener process $(W_t)_{t \geq 0}$, define filtration $\mathscr{F}_t = \sigma(W_u : u \leq t)$ Let 0 < p < q < r. Determine $E[W_p W_q W_r]$. My attempt: $0 = E[(W_r-W_q)(W_q-W_p)(W_p)]$ $\to E[W_p W_q W_r] = E[W_r W_p^2 + W_pW_q^2 + W_qW_p^2]$ $\to E[W_p W_q W_r] = E[(W...
Given prob space $(\Omega, \mathscr{F}, P)$ and a Wiener process $(W_t)_{t \geq 0}$, define filtration $\mathscr{F}_t = \sigma(W_u : u \leq t)$ Let $(B_t)_{t \geq 0}$ where $B_t = W_t^3 - 3tW_t$. Show that $E[B_t|\mathscr{F}_s] = B_s$ whenever $s < t$. I think this all comes down to manipulation since there are marting...
I am reading a report which talks about seasonality. There is a chart showing the average returns for each month of the year. In the chart it appears the last 3 months of the year tend to be negative. Then they say 'to check if this is due to the timing of various crises or bubbles we have fitted a generalized additive...
Given a covariance matrix that was calculated from the returns of a number of risky assets. Is there a way to "add" a risk-free asset to the covariance matrix without calculating its covariance with all the other assets? I thought about simply adding a column and row filled with zeros that seems wrong as there should b...
I have 19 currency pairs like USD.AUD, USD.CAD, etc. Also 82 cross currency pairs like AUD.CAD, EUR.AUD,EUR.CAD etc. When I look to their graphs, most look similar, so I want to reduce number of pair and choose a few that represents the whole group. I calculate returns and create time series. I applied PCA but I am not...
If I've been looking at graphs correctly, there is a strong positive correlation between stock prices (or P/B values) and interest rates over time, i.e. P/B values tend to be high when interest rates are high. Why is this? Does this not contradict the following two cornerstones: 1) Asset prices are formed by discountin...
What kind of technology are people using these days for decoding FAST? Can FPGA be used in that area?
how are we supposed to price an European option given the fact that the daily return of the underlying is limited within -X% to X%? For example, if X = 5, the price of the underlying cannot go up 8% on any given day.
I have a year long stock data sampled at 5 min frequency and would like to estimate monthly volatility using it. I am thinking using GARCH or TGARCH for volatility estimation. However, I am not sure if at frequency I should estimating volatility. After that should I scale volatility by square root of appropriate period...
this should not be here because it shouldn't be here forever and eve
I read that CVaR (Conditional Value-at-Risk, also Expected Shortfall), satisfies coherence, but not Elicitability. On the other hand, VaR satisfies Elicitability, but not coherence. What is Elicitability?
Suppose you are only talking about a single currency pair, say EUR/USD. Throughout some period of time, you engage in trades with various other parties, sometimes buying, sometimes selling. The rates will be different for each trade, as the rates change in response to market conditions. An example sequence of trades mi...
I would like to calculate implied forward volatility skew. I have stochastic volatility monte carlo. What kind of payoff do I need to price and how to use Black() formula to calculate the implied volatility.
Given that I have fundamental data such as GDP growth rate for G10 countries .Now I want to build a currency pairs portfolio of G10 currencies vs USD .How can I translate country scores to currency pair allocations ?
You are considering an investment in the stock. In the stock market, there are two risky stocks (A and B) and a risk free claim, C (you can think of it as the t-bill). The covariances and returns of these three stocks are described in the following table: Assume that you have a mean-variance utility function with risk...
It is claimed that the credit default swap (CDS) spread should approximate the risky par bond yield or coupon rate spread from the riskless bond on the same entity. This comes about when we assume discount factor $B(t)=e^{-rt}$ with constant riskless interest rate $r$ together with infinitesimal coupon period. However,...
I intend to calculate the daily return on my investment in forex. Assume a trader invests $\$$40 at a leverage of 100:1, so in total he is trading $\$$4000 worth of currency, and assume the position is open from Dec 4 to Dec 6. Also the trader has enough money to cover potential drawdowns. In order to calculate the dai...
If I understand right, Itô's lemma tells us that for any process $X$ that can be adapted to an underlying standard normal Wiener measure $\mathrm dB_t$, and any twice continuously differentiable function $f$, $$\mathrm df(X_t) = f'(X_t)\mathrm dX_t + \frac 1 2 f''(X_t)\mathrm d[X_t] ,$$ where $$[X_t]=\lim_{\|\Pi\|\righ...
I just saw the question How to calculate the most realistic historical option prices with additional publicly available parameters and I am interested in the step before that. How can I calculate historical ATM option prices for the SP500 using VIX prices and other publicly available data? Can I just use VIX as implied...
I am trying to get my hands on Entropy Pooling which was introduced by Meucci in this paper. As an example, assume I want to construct a portfolio with five stocks and I have my view on CVaR. How can I use Entropy-Pooling method to manage my portfolio?
If Libor is found to be fraudulently fixed, are any of the derivative contracts with a floating libor leg still valid?
I'm looking at automating the calculation of margin requirements for a portfolio of Eurex markets. Eurex describe the margin calculations in this document. However, the only tool I can find is a Windows only, UI driven application. I can go ahead and implement the algorithm as described, but are there other tools used ...
I have looked at the Variance Swap Papers published by GS-VarSwap and JPM-VarSWap where they talk about approximation to VarSwap strike using ATMF vol and Skew (slope of the volatility skew for 90-110 strikes). But, I have also come across another 'skew measure' which is defined as $$ \mathrm{skew} = \frac{\sqrt{T}(\si...
I am trying to use fundamental factors such as PE, BV, & CFO in a multivariate linear regression with the response variable being the rolling 1 month returns. But this approach seems flawed as the autocorrelation of the residuals is to high and the Durbin Watson test points also to such flaws. What is the best what to ...
Pricing an IR swap doesn't require any stochastic model but calculation of the PFE for an IR swap would require the Hull White Model or any other stochastic short rate or forward rate model. Is this statement correct and if so, why?
In this portfolio optimization utility (and others), mean return, standard deviation and correlation among assets are required inputs. http://finance.wharton.upenn.edu/~stambaugh/portopt.html At the same time, I've seen other portfolio optimizers that start with historical price data and a covariance matrix is calcula...
I am looking to get a better understanding of an output from a trading strategy. Basically I have a daily equity curve lets call it $Y_t$. I have defined a bunch of independent variables $X_{it}$ that I think can explain the movement in the daily PnL. The independent variables are not used in trading signal generation ...
Does anyone know how to connect IQFeeds with Matlab. It seems the datafeed toolbox only accepts Reuters, Bloomberg, Yahoo and one or two more. I've been looking all over the place for a Matlab toobox or some code because I'm using IQFeeds. It's weird because on here I've read many posts of people talking about their IQ...
After years of mathematical finance I am still not satisfied with the idea of a risk premium in the case of stocks. I agree that (often) there is a premium for long dated bonds, illiquid bonds or bonds with credit risk (which in fact they all have). I can explain this to my grandmother. My question is very much in th...
I'm currently working with historical index data from Yahoo Finance and would like to plot the GARCH(1,1) volatility of these indexes. I'm working with the Datafeed and Finance Tollboxes in Matlab right now, and I'm able to get the data and plot the indexes. However I'm having some difficulty understanding the followin...
I was asked yesterday by a colleague why we are doing asset allocation using optimizers which target, for a minimum expected return: the portfolio with the minimum variance or the portfolio with the minimum expected shortfall and why nobody uses drawdown optimizations. I do know that the list above is not exhaustiv...
I am new to corporate finance and I ask myself why an investor is interested in being short an option? He can only can win a premium but he can lose much more. I understand with being a short, I cap the profits on a stock like this: I think this is a quite theoretical case, right? I'd like to understand the possible ...
A common and oft repeated belief regarding options volatility is that implied volatility increases due to people bidding up a contract, usually related to anticipation of the outcome of an expected event. After the event, volatility drops because more people are selling the contracts. But I have noticed contracts with ...
I'd like to calculate portfolio allocation beta on a portfolio that has different asset classes. The portfolio may be made up of: Short term bond fund (with beta tied to Barclays U.S. Aggregate Bond Index) Sector fund 1 (with beta tied to DOW) SP500 fund (with beta tied to SP500 index) I understand how to calculate p...
Are there any methods/techniques that cover distributing cash into a specific percent of a portfolio asset class while gaining the best average price? As a simple example, a portfolio starts with 100k cash. It eventually disburses its cash into four asset classes. This means 25k goes to purchase assets in each class....
I am developing a market-data engine that receives market-data from different futures exchanges. So I need a general format to deal with sources from different exchanges. Protocols like FIX only specifies the transportation but not the format itself. Like which fields should be included, how many fields are there in a ...
I often hear that column-oriented databases are the best choice method for storing time series data in finance applications. Especially by people selling expensive column-oriented databases. Yet, at first glance it seems a poor choice. You want to append new ticks, or new bars, at the end (and you need to do this a lot...
This may not be the most appropriate SE site to ask this question, but I can't seem to find a better place to ask, so here goes: Do Puttable Bonds' put dates always fall on Coupon Dates? When they do, are the bonds puttable before or after the coupon? Coupon Schedule. How are coupon payment dates usually calculated? S...
Is there any common trading system that is implemented by hedge fund, especially for equity or forex automated trading? I know some big names like Sungard and Bloomberg. Is there any other choices which the including API?
how would you estimate your order in the exchange order book? The order of order events and acks is not deterministic or guaranteed. How could you write an algo to estimate accurately your position in the order queue? Note that when we send an order to exchange, we get acknowledgement back from exchange, followed by ma...
What is an efficient data structure to model order book of prices and quantities to ensure: constant look up iteration in order of prices retrieving best bid and ask in constant time fast quantity updates
I'm working on backtesting a number of stock trading strategies and need to estimate how much the execution price will likely deviate from the historical close price for that asset using daily data; which would be used to calculate an optimal position size and estimate probable slippage. Ideal would be a rough equation...
This may seem like a strange question, but for my particular application we need to actually add synthetic microstructure noise to real time charts. The signal should still be representative of the aggregate market direction. I expect that a good technique would be something related to signal processing in electronics ...
I know what the NBBO is but I've seen mention of ABBO and I'm not sure what it means?
Is a risk-neutral probability a special case of an invariant measure?
I am curious why a lot of market hours are something like 9 to 3 or 9 to 4 pm when there is such demand and so many prop shops and more out there. I know certain markets are continuous trading but a lot of very large famous ones seem to stick to this incredibly short schedule. Why would they do that?
Can one deem an FX float-to-float swap and a FX forward equivalent on dates immediately after repricing? The reason I am asking, I am hedging something that can be modeled via an FX forward, I was given an FX basis swap to hedge it. I want to safe myself some work and claim that they are equivalent on repricing days (o...
During our daily jobs as quants, we tend to be willing to develop all the quantitative libraries ourselves. While I know that we need to develop specific algorithms which are the foundations of our strategies, I believe there are 2 major disadvantages in implementing quantitative libraries (including statistics such as...
I have it in mind to build a Multilayer Perceptron for predicting financial time series. I understand the algorithm concepts (linear combiner, activation function, etc). But while trying to build the input, hidden and output layers, I'm running into some questions about the basics. A) I'm confused about the input vs. ...
I'm trying to create a risk-parity portfolio in C# using the Extreme Optimization routines. I'm mostly trying them out to see if I like them or not before I buy them (I'm a student so money is tight). My idea was to implement this new kind of portfolio optimization called risk-parity. It basically says that in order to...
Let $X_t$ be an american style financial derivative with random exercise time $T$ where $t$ and $T$ belongs to some finite set $A$. Buying this derivative requires the buyer to pay $p_t$ up to time $T$. Let $\Omega$ be the sample space of $X_t$, $p=(p_t)_{t \in A}$ the price process and $B={\left(C^A \right)}^\Omega$ t...
An observation in capital markets is that the connection between return and risk (measured as volatility) is not that straightforward (at least not as modern portfolio theory assumes). One interesting instance is the so called low-volatility anomaly: It turns out empirically that stocks that exhibit low volatility show...
I have been confused about many things concerning the princing of securities with collateral. We can prove that today's price of a security( fully collateralized and within the same currency) is the expectation under the risk neutral measure of the discounted(with the collateral rate) payoff. This first application of...
What is the relationship between the axioms of Artzner et al (1999) for coherent risk measures and the axioms of von Neumann-Morgenstern (1944) for the expected utility theory?
I apologise for being brief, but I don't understand how is Euler equation used in the Ramsey growth model. I am reading a textbook "Dynamic General Equilibrium Modeling" and there is mentioned about it. I am modeling the Ramsey model using the Kuhn-Tucker theorem, and I have a set of first-order conditions. I think thi...
A new Danish hedge fund has received quite a large amount of attention in the last month or so. They are launching a new investment fund that uses proprietary AI to select stocks to invest in. They claim to on the forefront of this. However, looking a bit on what research exists, it seems as if it is not as cutting-edg...
I'm doing some work for a company and one of my tasks is to research credit default swaps on banks and to write a page about them explaining what they are and how they're used to evaluate the banks' credit-worthiness. After doing a bit of research on them I have a few questions: What are the terms of a standard CDS co...
Maybe more of a programming question, Is there a Ruby gem to facilitate conversion of an option symbol notation from one form to another? For example, one source provides TZA1220J18 but an API for a brokerage strictly goes by TZA^^^121020C00018000 whose description is TZA Oct12 18 Call If I figure out how to do this i...
Assuming that I performed a multivariate regression and I found a set of $k$ coefficients $\alpha_1, ..., \alpha_k$ for each of the factors $F_1, ... F_k$. I have then computed the following relationship: $$y_t = \sum_{i=1}^k \alpha_i F_{i,t} + \epsilon_t$$ So far, I only looked at this equation to understand where the...
Say I have a limited sample, a month of daily returns, and I want to estimate the 99.5th percentile of the distribution of absolute daily returns. Because the estimate will require extrapolation, I will need to make a distributional assumption. Is there a standard approach to take here if I want to include the higher k...
Currently, the federal reserve interest rate is 0-0.25%, and the inflation is 2-3%. Does this contradict the no-arbitrage principle? (The arbitrage being: borrow money at 0.25% and invest it in the "basket of goods" or other non-inflating assets). Essentially, the borrower gets paid to hold assets. Why?
I am looking to evaluate the hypothetical advantage one trading system has over another in terms of the possible returns given their latency. Irene Aldridge wrote a piece (How Profitable Are High-Frequency Trading Strategies?) which describes how to relate holding time to Sharpe ratio, although her approach seems somew...
I would like to get and idea of how people use GPUs in finance. I can find some specific papers or books on the subject. GPUs in binomial model, finite difference, monte carlo,... But I couldn't find any recent survey papers. Do you know some recent survey paper? Or any kind of reference which try to gives a birdview o...
I am following an article by Mohamed Elsaiid (MFTA) about Volatility-Based Envelopes - a quite new technical indicator he has introduced, that is being used by Bloomberg. My goal is to get a simple and accurate formula to use. I have encountered a few issues while trying to formalize the ideas presented in the article....
Possible Duplicate: How much data is needed to validate a short-horizon trading strategy? Suppose I have daily returns for a trading strategy against one month of data. Before starting trading on small quantities or buying further data, I would like to understand the worth of any such action. I am basically looking ...