instruction
stringlengths
35
27.7k
Given 3MLibor vs 12MLibor USD basis swap the 3M Libor is exchanged at 12MLibor+1%. How to calculate the cash flow
I am doing a Quantitative Finance PhD and would like some insight on data collection. I'm looking for open market share repurchase data (UK) over the past 2-3 decades. Simultaneously, their bid-ask spread around the repurchase date. I understand that I can calculate liquidity using trading volume method(s) but would in...
We know that some markets exhibit marginals well approximated by Student t distributions. But what is the dependence structure? Is the multivariate density really elliptical (as we all wish for) or are the marginals i.i.d, or something inbetween? Or does one of the other multivariate t models better apply? Leading to ...
Let's say you want to find the fair price of a call option. One way is to use the black scholes formula. This assumes you can delta-hedge the underlying asset and the option to eliminate risk, and hence come up with a fair price such that there are theoretically no arbitrage opportunities. However, what if you were NO...
I wonder if I first filter out AR(1) (autoregressive model with lag 1) effects from univariate time series and then fit stochastic volatility model does above procedure introduce any bias at first or second step (first step - fitting AR(1), second step - fitting SV model) ? I'm especially interested in potential bias i...
What value do you use for annual dividend yield? It does not apply in case of FX.
In modern portfolio theory, one famous problem is the Markowitz mean variance optimal portfolio, defined by solving $$\underset{\mathbf{w}}{\mbox{min}\,\,}\mathbf{w}^{T}\boldsymbol{\Sigma}\mathbf{w}$$ subject to $\mathbf{w}^{T}\mathbf{1}=1$ and $\mathbf{w}^{T}\boldsymbol{\mu}=\eta$. Another example that I've seen in le...
For Fama-French model we need SMB (small[market cap] minus big) and HML (high[book-to-market-ratio] minis low). I want to calculate daily alpha in real time, but the problem is how to get these values. Is there any benchmark for this values or I have to know entire market and calculate these values manually? Does Bloom...
I am going to be backtesting a Long/Short equity strategy and need some guidance on how best to deal with the short book. I was thinking that for each portfolio I would go long 50 equities and go short 50 equities. I plan on doing this test in excel by the way. I am trying to wrap my brain around how to appropriately h...
I'm setting up some Euribor 6M and Euribor 3M curves. So far i have all the data and quotes i need, but i'm having trouble defining the firsts points of the curve. I'm currently using 6M Euribor and 3M Euribor OIS as the first point. My question is, how correct is it if i use O/N Euribor or 1M Euribor on both curves, k...
Conditional Value at Risk (CVaR) is given as: $$CVaR_\alpha(X)=\frac{1}{\alpha}\int_{0}^{\alpha}VaR_\beta(X)d\beta=-E(X|X\leq-VaR_\alpha(X))=-\frac{1}{\alpha}\int_{-\infty}^{-VaR_\alpha(X)}x \cdot f(x)\,dx$$ I am not sure if the last term is correct regarding multiplication with $1/\alpha$? The average is already only ...
I was reading an article by David Stockman from (http://davidstockmanscontracorner.com/take-cover-now-they-dont-ring-a-bell-at-the-top/). He uses the word "short" in a way I'm unfamiliar with. If you read the paragraph below, he says "there are no shorts left." What does that mean? I understood it that when you short t...
I am very rusty on stochastic calculus, and I am having trouble integrating the following simple term from a yield curve model: $$z(t)=\int_0^t\exp(-k(t-s))dW(s)$$ Any suggestions appreciated.
For the following exercise: Give optimal upper and lower bounds on the price today for a product that pays a function of the spot price, $S$, of a non-dividend paying stock one year from now, there are no interest rates and the spot is $100$, when the pay-off is $0$ below $80$, increases linearly from $0$ at $80$ to $2...
I am currently using BlackProcess to price options and I have a doubt related to the $x_{0}$ argument of the constructor: I've figured out it should be the forward price of the security, because Black's model uses that to take into account e.g. implied dividend yield and in the end it uses risk free term structure to d...
Let x, y > 0. Defint eh first passage time of a Brownian motion $W_t$ as $\tau_a$ = min{t $\ge$ 0: $W_t$ = a}. I need to show that E[$e^{-u\tau_x}$$1_{\tau_x < \tau_{-y}}$] = $\frac{sinh(y\sqrt{2u})}{sinh((x + y)\sqrt{2u}}$. My method, and the only method that I will be able to understand, is to use the optional sampl...
I am looking to store equity price data in a hdf5 table. The use will be purely as a historical archive, not as day-to-day data source. Options One option would be to store base10 significand and exponent separately as e.g. uint64 and uint8. The downside is that it is fairly awkward to handle especially as int do not ...
The asset-or-nothing European option pays at t = T the value of the stock when at time T that value exceeds or is equal to the exercise price E, and nothing if the value of the stock is below E. So, in mathematical terms: $$V(S,T) = \left\{ \begin{array}{lr} S & \text{if}\quad S \ge E,\\ 0 & \text{if}\quad S ...
Where can I get/buy the TAQ NYSE OpenBook for specific stocks on specific days? I don't need a whole year of all stocks. I just want to enter a day and a stock, so I can download the order book data of that day.
I'm currently reading Iain Clark's book Foreign Exchange Option Pricing and I got stuck at one sentence in the beginning of Section 3.3 that I feel is important to understand. He writes: FX volatility smiles are characterized by providing volatilities, not as a function of strike, but as a function of delta. The cho...
For a portfolio containing FX options, would the sum of P&L for each option be the portfolio value?
I'm given cap prices and swap rates, and i'm trying to calibrate the Hull-White model to them. I then want to use the model in order to price a swaption. I know that the model can be calibrated from implied volatilities but, how do you do so with prices? Is there a way to find the volatilities from the cap prices?
What are the various ways to choose bonds for a butterfly strategy? For eg., I already know the most common one i.e., choosing short and long term for the wings (barbell) and the medium term for the body (Bullet).
In the book "Financial Modelling with jump processes" by Cont and Tankov there is a chapter that explains martingale pricing principles. It is not extremely formal, but gives the idea underlying the method. There he shows that any linear positive pricing rule can be associated with a probability measure (or expectation...
The risk-free rate is 4%, and the expected return on the market portfolio is 12%. Using the Capital Asset Pricing Model: a. What is the risk premium on the market? b. what is the required return on an investment with a beta of 1.5? c. if the expected return on stock X is 11.2%, what is its beta, according to the capit...
In option pricing, volatility naturally appeared through the Black-Scholes (BS) model where it was a coefficient for the linear diffusion term $\sigma S\,\mathrm dW_t$, and as such represented the time-scaled Standard Deviation (SD) of log-returns: $$ \mathrm{Var}[\log S_t] = \mathrm{Var}[\sigma W_t] = (\sigma \sqrt t)...
Does delta neutral portfolio mean you add up deltas of all positions and the sum should be zero? Is this true? Also, in a FX portfolio consisting of FX calls puts and Fwds, if FWD delta is given for each how do you make the portfolio delta neutral? Do you just add up the fwd deltas for all and depending on the sum, bu...
Why does implied volatility usually fall when underlying rises and rises when underlying falls? Implied volatility is a length of one standard deviation. From this definition, is it possible without using BSM model to intuit why IV shares an inverse relationship with underlying
I am trying to build a test for a long/short portfolio. I am aiming for market neutral and have put together a long portfolio as well as a short portfolio (see below). However, I am not sure if I am doing this correctly. The specific questions I have are: Will betas be negative for the short book? How would I calculat...
I would like to calculate a daily total return index for the EURIBOR 3M. • Should I freeze at the beginning of each qurter die rate? (With this methology the developing of the index depends on the start point) • Or should I take the everyday the actual rate? • How would you partion the 3 month rate. Rate/365 or (...
It is known that the price of an European call of maturity $T^*$ on zero-coupon of maturity $T$ is given by $$p(0,T)= B(0,T^*)\mathbb E ^{\mathbb Q_{T^*}}\left[ (B(T^*,T)-K)^+\right]$$ where $B(0,T)$ is the zero-coupon value at time $0 $ of maturity $T$ and $\mathbb Q_{T^*}$ is forward risk neutral measure. It's also ...
how do I calculate ZSpread for a govt. bond in a multiple curve framework? I have not come across the exact details anywhere so I want to verify if I'm right. Below is my understanding, please correct me if I'm wrong: Specify a discounting curve and a forecasting curve. Using the above two curves, calculate the Zero C...
I cant seem to find a straight answer anywhere on Google for this. I would like to create a master list of all known mutual funds and their ticker symbol. Is it possible to get this data from Edgar's FTP? Is there a particular form that registered investment companies have to file that would have this information tha...
The exercise is to show $C(K_1) \geq C(K_2)$ where C(K) denotes the value of a call option on a stock price S with strike price K. We assume the expiry is the same for both. I have proved this by assuming the contrary ($C(K_2) > C(K_1)$) and then shown it creates an arbitrage opportunity. My argument is similar to the ...
Interest rate time series seems to be non-stationary whenever test is performed But covariance or correlation matrix is derived from term structure time series which are non stationary and later PCA is performed on that covariance or correlation matrix. Is it appropriate to derive Covariance or correlation matrix from...
I am currently studying the Libor forward market model, and although I get the mechanics behind the main arguments, I still do not have an intuitive idea of what's exactly the objective behind changing the numeraire to obtain the desired dynamics. Why do we need to do this so that the dynamics of the forward rate make ...
are there any existing python modules that can calculate Modified and/or Macauley Duration of a bond.
My understanding of VaR model back testing is thus: ~~ t: Calculate daily VaR using look back data over n past days t+1: Compare daily return against VaR, record breach if one occurred, repeat Apply conditional and unconditional tests to back test the VaR model. ~~ My question is the danger of VaR look back periods ove...
Assuming the dynamics of the exchange rate between two currencies at time $t$ is given by: $$ dX_t=\Delta r X_t dt+ σ X_t dW_t$$ Is the FX Reverse process $\frac{1}{X_t}$ a brownian motion? How can Ito's Lemma be applied to prove that?
I would like to download (from Google) the most recent prices for a series of stocks. I have created a portfolio at Google and I can click on "Download to Spreadsheet". That works. But I would like to automate the process so that I can obtain the spreadsheet using R. I did this previously from Yahoo with the code: ...
Why is the gamma for an at the money option less when volatility increases. Intuitively ,I thought that increasing volatility means more uncertainty,hence the option price will be more sensitive to the underlying price. Hence more volTility in my mind would mean a higher gamma for ATM option. But the reverse is true. W...
CUSIP is a 9 character long identifier. The last digit is a check sum checking the first 8 previous characters. This seems to me that it is not possible for two securities to have the same 8 characters and different check sum. I know this is not exactly quantitative, but I haven't found a forum where I could ask. Sourc...
What topics in statistics and mathematics do I need to understand thoroughly before I can start to dabble with stochastic volatility models and volatility arbitrage?
$$ (1) \ \ d\left(\frac{1}{S_t}\right) =\frac{1}{S_t}\left(\sigma^2-r\right)dt +\frac{1}{S_t}\sigma dW_t $$ and $$ (2) \ \ dS_t = S_t rdt + \sigma S_t dW_t $$ How can you prove that?
Let us say I want to pursue a pair trading strategy between stock A(long) and stock B(short). Can I replace this stocks with their synthetic option equivalents and have the same risk reward profile as if I had bought and shorted the actual underlying? i.e Is the synthetic equivalent exactly equal to the underlying posi...
I'm working through Shreve II, and on question 4.6, you are asked to compute $d(S_t^p)$ where $S_t$ = $S_0e^{\sigma W_t + (\alpha - \frac{1}{2}\sigma^2)t}$ I get the answer $pS_t^p[\sigma dW_t + (\alpha + \frac{1}{2}\sigma^2p - \sigma^2)dt]$ whereas the online solutions manual gets $pS_t^p[\sigma dW_t + (\alpha + \fra...
I'm trying to calculate implied volatility for the FTSE 100 for the last few years. I have all the end of day data from LIFFE for the last few years. I have combined the data by weighting the implied volatilities for each strike by their volume traded and distance from the underlying close price. I then took the mean ...
My book assumes many times that $log(1+R)$ is normally distributed, so R is log-normal. But does this also mean that the value process is log-normal? Since $V=V_0(1+R)\rightarrow V/V_0=1+R$, and since $1+R$ is log-normal, $V/V_0$ is log-normal, so $log(V/V_0)=log(V)-log(V_0)$ is normal, and hence V is also log-normally...
what volatility do we calculate using GARCH model, Historical vol or Implied vol or Future Vol or Actual vol.
Both Black-Scholes and binomial model assume that there's no risk-free arbitrage in the market. But that sounds like a very weak condition. If a trading scheme makes you gain 100 dollars with 99% probability and lose 5 dollars with 1% probability (starting from 0), this is not risk free but it will be surprising if suc...
What is the reason that the vertical volatility skew graph(decreasing IV as the strikes increase) is the same for the puts and calls? The loose explanation is because of put call parity, but I am not able to find any more details. I am looking for an explanation that makes sense intuitively.
Let the portfolio be given by: $$X=X_1+X_2$$ $(X_1,X_2)$ are dependent through a Copula function $C(u_1,u_2)$, such that the joint distribution is given by: $$F(x_1,x_2)=C(F(x_1),F(x_2))$$ What is the VaR of this portfolio? Usually VaR is the inverse quantile: $VaR_\alpha=F^{-1}_X(\alpha)$. I am not sure how to determi...
We have index for stock market, like S&P500, Nikkei 225, etc. I wonder if we have any index for hedge funds, private equity or venture capital?
Consider jump diffusion model proposed by Merton and Kou. As far as i know, most paper only dealt the valuation of option under the jump diffusion model. As i expected, because of the incompleteness of model, implication of the Greeks is somewhat different from that of continuous model. Am i right? Why does not the ...
Here is how I am interpreting results of a Johansen Cointegration Test and Engel-Granger Test for A and B. The results:(Using matlab) jcitest(Y) ans = r0 r1 t1 false false [h,pValue,stat,cValue] = egcitest(Y,'test',{'t1','t2'}) Warning: Sample size of the data is more than the maximum size 100...
I have a list of all S&P500 tickers, e.g. AAPL, GOOG, JPM. I would like to get their market cap on 1.7.2013 (I don't have Bloomberg, only free internet). Is there an excel addin or other tool/page where I can obtain historic market cap? The page https://www.quandl.com/ seems to provide financial information, but I did ...
I have some decent knowledge of probability, stochastic processes and option theory, however I do not have a proper background in statistics. Now I am working quite a lot with data, and trying methods from here and there such as linear/logistic regression, PCA etc. Yet, I would be comfortable if I had a couple of books...
I am simulating the path of three indices to price a 1 year basket option. All the indices are domestic, so there is no currency component. At each time step I am using the local volatility determined using Dupire model, the forward interest rate and the forward dividend yield. For now, I am OK resimulating paths to c...
What is state price vector?. Please explain me in detail is difficult to understand for me.
In the context of Option pricing model. Is there a difference between the Dupire Model and the Local volatility model ? Thanks Achal
Given: Consider a two-asset, continuous time model (B,S) where $$dB_t = B_t r dt, \quad dS_t = S_t ( \mu dt + \sigma dW_t)$$ Clearly, the martingale deflator is: $$Y_t = e^{(-r - \frac{\lambda^2}{2})t - \lambda W_t}$$ There is a theorem that states the following: For a claim with payout $\xi_T$, $T>0$, if $\xi_T>0$, ...
Given: Consider a two-asset, continuous time model (B,S) where \begin{equation} dB_t = B_t r dt, \quad dS_t = \mu dt + \sigma dW_t. \end{equation} The question is: Show that there exists a trading strategy which replicates the payout of a European call with strike K and maturity T. Show that the number of shares of...
How can I modify the formula in this answer so that the frequency of payment growth is also a variable? For example, instead of payments growing by 2% each year I would like them to grow 2% every two years.
Looking at futures data I am trying to calculate/estimate the number of "day trades", i.e. positions that were initiated and closed during the same day, as distinct from those positions that were initiated and held for one (overnight) or more days. I'm not sure this is possible but my instinct is that this can be done...
A certain complicated option pricing formula results in products of Black Scholes $N$ components like this: $-p_1N(d_1)N(d_6)+p_sN(d_2)N(d_5)>?0$ where $p_s>p_1$ Trying to find a simple way to prove if this identity is true or not without having to use differential geometry on a multi variable function. Taylor series ...
I am wondering whether anyone can share experiences and longer term average probabilities of fills when quoting inside the spread at various fx ECNs. I need to make an assumption of the probability of getting filled as a function of fx ECN venue, how aggressive I bid and offer inside the spread (in terms of how far awa...
Historically stocks have a higher likelihood to increase in price than to fall in price. As such would it make sense to split a stocks volatility measurement into upward and downward components? For example if the above strategy was to be used in options pricing one would need to re-work the Black-Scholes equation to a...
I have to find nominal and effective forward interest rate for 3M-9M term, knowing that current interest rates are: 3M - 2.05% 6M - 2.04% 9M - 2.03% 12M - 2.02% For a nominal interest rate I just solve for $r$ the following equation: $$(1+\frac{2.05\%}{4})(1+\frac{r}{2})=(1+2.03\%\cdot\frac{3}{4})$$ I will have some...
I'm trying to estimate CVA of one of my derivatives by valuing a credit default swap (CDS) of my counterparty. However, I don't know how to set up the CDS deal (notional amount, maturity, etc.). Thanks!
For a research project, I would like to work with some intraday asset prices. I have already successfully exported the corresponding data at daily frequency, using the Excel API, but somehow this doesn't seem to be possible for intraday data. Again, the export works perfectly using the Excel API for any frequency excep...
I have been trying to resolve this problem for some time but I cannot get the correct answer. The problem is the following one. Compute the initial value of a forward-starting swap that begins at $t=1$, with maturity $T=10$ and a fixed rate of 4.5%. (The first payment then takes place at $t=2$ and the final paymen...
The setting is simple, i.e. formula for demand of service/product is linear $$ d = \alpha - \beta p $$ where $ \alpha $ is maximum demand, $ \beta $ is some coefficient, and $ p $ is price. There are two firms, with different prices $p_1$ and $ p_2 $, and the prices are fixed, so there is no competition. The fraction...
I am looking at the quantitative model our team is using for analyzing the performance of a portfolio of stocks. However I don't understand what the model is trying to achieve. The model is supposed to do a simple job: evaluate the performance of a portfolio against the market history. The basic idea is, say, I have a...
I was asked this question in an interview and despite thinking about it for a while, I haven't been able to come up with a good answer. Suppose you have a strategy you are running where at certain points your orders are a significant percentage of the order book (e.g., perhaps because you are trading a very thin market...
The government par yield curve shows a marginally lower yield than the Government zero coupon curve. What is the reason for this in general.
Really struggling in this question: Consider a market with two assets $(B,S)$ whose price dynamics satisfy \begin{equation} dB_t = B_t r dt \end{equation} \begin{equation} \quad \quad \quad \quad \, \, \, \, \, \, \, dS_t = S_t ( r dt + \sqrt{v_t} dW_t) \end{equation} \begin{equation} \quad \quad \quad \quad \quad \...
Book suggests that "asset returns are assumed to be serially independent, so wealth is a single state connecting one period to the next". I understand path dependency is lost in case of serial independence but how do all states at a stage collapse to a single state?
Why people say that volatility is a coherent risk measure? I don't see it clearly because what happen if the two assets are correlated positively? subadditivity would not be preserved. That affirmation is in some papers online or even in this question
Suppose that $W_{t}$ is a Wiener process. Assume $W_{0}=0.$ Is it true that $\int_{t=0}^{T}dW_{t}=W_{T}$? If so, why? Is one preferred to the other?
I am reading the Madoff case. One of the issue is BMIS Firm (Bernie Madoff Investment Securities) were acting as a Asset Management Firm, broker as well as Custodian. Why is it an issue? What sort of conflicts of interest did it create?
Given the limitation Bloomberg imposes in terms of the number of days you can go into the past when retrieving historical intraday data, what are similarly reliable alternative solutions? I require some data for a one-time research project, so I would ideally want to download or purchase the data just once, without a s...
I want to estimate an empirical pricing kernel for an index. Hence, I need to estimate a physical and risk neutral density. For estimating the physical density, only the index data in an observed time interval is needed. Moreover, I know for estimating the risk neutral density I can use option prices with different str...
Futures have fixed lot sizes in my exchange, but cash do not. When I am spread trading the cash - future pair, what should I do if I am unable to get enough fill on the cash side.
The law of one price (i.e. for assets $S^{(i)}$ and $S^{(j)}$, $S^{(i)}_T = S^{(j)}_T $ almost surely implies that $S^{(i)}_t = S^{(j)}_t $ almost surely for all $ 0 \leq t \leq T$) is known to hold in discrete time when there is no arbitrage. However, my lecturer claims that this statement might not hold in continu...
I went through The Black-Litterman Approach: Original Model and Extensions - see also. The BL approeach starts with a prior on the expected returns vector derived from the hypothesis that the market is in equilibrium. Then we take a bunch of views and get a posterior model with a new mean vector and covariance matrix. ...
I know that Black Scholes and the Greeks are important in market risk. In what other areas are they used?
It is known that in an arbitrage-free continuous time market, the price of every asset is evaluated as the corresponding price in the replicating strategy using risk-neutral valuation. I want to know is the converse true? There is actually a question that asks to show that for a Black-Scholes model with a bank accoun...
If market participants are certain a stock will suffer a huge decline, the shares will become hard to borrow and an interest fee will be applied to borrow the stock. This interest fee eliminates the arbitrage opportunity from having ATM puts being more expensive than calls. In The context of options pricing, what happe...
I am finance grad student, and working to create a financial statement database. My objective is to download an income statement, balance sheet, and statement of cash flows for every publicly traded company that has filed with the SEC in the past 3-years. Could this be done with a FTP connection to the SEC's directory...
I am so stuck on this question: Consider a two-asset model where asset 0 is cash, so that the price of asset 0 is $B_t=1$ for all $t \geq0$. Asset 1 has prices given by $dS_t = a(S_t) dW_t$, where the given function $a$ is positive and smooth, and such $a$ and its derivative $a'$ is bounded. Let $\xi_t$ be the time-$t$...
Here is the full question, even though ive broken it down to the mini question above. Suppose you have bought a July ITM call and sold an August ATM put. What would be your delta in this position? Once you hedged out your delta what are the following Greeks: -Gamma -Vega -Rho -Theta I already solved for delta. Re...
I am looking at the historical treasury interest rates and am uncertain which rates would be best to use for options pricing. Should I use 1 month, 6 month, 2 year? See: http://www.treasury.gov/resource-center/data-chart-center/interest-rates/Pages/Historic-LongTerm-Rate-Data-Visualization.aspx
How can I use the Heston Model to calculate the probability of a stock being above or below a certain value on a given date in the future?
I am trying to prove that the Absence of arbitrage statement (AOA) does not necessarily imply the law of one price (LOP). For the definitions of these concepts I am using Cochrane's book "Asset pricing". By definition a payoff space $X$ and a pricing function $p(x)$ leave no arbitrage opportunities if for any $x\geq0$ ...
PEGY ratio is calculated as PE ratio/(Earnings Growth Rate + Dividend Yield). Putting aside the discussion of whether forward or trailing P/E ratio should be used, isn't adding dividend yield over estimating the growth rate. After all common stock dividends are paid from net income.
How do I derive credit migration/transition matrices or spreads from default probability? May you please provide references, or do you know what type of articles or authors to find?
I have a algo which is trading a certain power contract. For calculating the Sharpe ration what would be a suitable benchmark to use?
How do I artificially generate intraday ticks data from a given input (Open,High,Low,Close,Volume) using Brownian Bridge method? https://en.wikipedia.org/wiki/Brownian_bridge P.S: Brownian Bridge can generate ticks only with 2 nodes. (with some modification to existing brownian bridge, I think it can be extended to 4 n...
I have trouble understanding Girsanov's theorem. The Radon Nikodym process $Z$ is defined by: $$Z(t)=\exp\left(-\int_0^t\phi(u) \, \mathrm dW(u) - \int_0^t\frac{\phi^2(u)}{2} \, \mathrm du\right)$$ Now $\hat P$ is a new probability measure. The trouble is I am not understanding how to go from old $P$ to the new one. Th...
Hi I am writing a program to Bootstrap a EURO zero swap-curve for tenor 3M and 6M with given bid and ask. When I run the program , I get a negative zero rate and discount factor from 5Y till 30Y for both Swap 3m and 6m. Is it normal or am I doing something wrong in calculation? For swap part, I use this formula to calc...