instruction
stringlengths
35
27.7k
I'm working with a multi-asset worst of model and the outputs are FV,d1,d2,g1,g2,v1,v2,cega, theta. Its easy to assign proper delta, gamma, vega to the respective asset1 & asset2, but how would fair value, cega, and theta be properly split? Is it best to weight these parameters based off the total delta? for example s...
I am trying to solve the problem: Given two assets X and Y that follow a log normal distribution with volatility $\sigma_1$ and $\sigma_2$ respectively and with correlation $\rho$, what is the volatility of X*Y ? I tried modelling X and Y as: $$dX_{t} = X_{t}(\mu dt + \sigma_{1}dW_{t}^{1})$$ $$dY_{t} = Y_{t}(\mu dt + \...
The exact problem I am trying to solve is as follows. I have a Probit specification: $$ P_t = \Phi(\beta^T x_t) $$ where $\Phi$ is a standard normal CDF and $x$ is a matrix of independent variables measured at time $t$. $P$ is the probability of success. I am trying to calculate the marginal effect of change in each $x...
I have collected data to analyse statistically certain patterns. One of them gives me quite a high certainty it will fade off all day. Visually, when I observe a graph, it's straightforward if a stock fades all day or not (even if there's some occasional gaps). A simple definition of a stock which fades all day might b...
From my understanding, I know that we can decompose a long callable bond into a long vanilla bond and short receiver swaption. However, I do not understand, how could I separate or calculate the swaption part? From what I have learnt, swaption is a option on a fixed-float swap. But a FRN is paying a index rate with a s...
Can someone provide me an intuitive explanation of how discount factors are bootstrapped for SOFR when Swaps are trading with payment delay/ lag (e.g. of 2 business days). I can intuitively derive the discount factors when the payment lag is zero e.g. Trade Date Value Date Tenor Maturity Swap Rate Pay Lag 1 Feb...
In the paper Buy Rough Sell Smooth by Glasserman and He (2018), on page 5 equation (8) they define an estimate of the volatility of volatility ν, by setting $\log(ν)= β_1/2$. I would like to understand why this should be considered volatility of volatility, as $β_1$ is simply one of the regression terms in the mo...
I've just started studying quantitative finance and have had questions closed on this forum for being too basic; if that's the case for this one please let me know a more suitable place to ask. Assume the lending and borrowing interest rates are both a fixed constant $r$; let $V_K(t,T)$ be the value at time $t$ of bein...
I’m trying to price a call option on EUR/GBP exchange rate and it expires in 1 year. Should I use GBP Libor as foreign risk free rate in order to apply BS formula? The pricing date is 02/21/2023 but in this date there is no 12m GBP Libor https://www.global-rates.com/it/tassi-di-interesse/libor/sterlina-inglese/sterli...
I am reading the article, where different approximations for the pricing of basket options are presented. I have tried to reproduce the result obtained by the Gentle's method in Python. We define the price of a basket of stocks as the weighted average of the prices of $n$ stocks at maturity $T$ $$ B(T) =\sum^n_{i=1} w_...
I am interested to know what the current market practice is around putting aside reserves around derivatives trades. If for example a trader sells a large derivative trade and the difference between the theoretical value and price sold is $1m, how much of this can be claimed as Day 1 PnL and how is the rest released to...
I'm starting to teach myself quantitative finance and I've got several questions (marked in bold) regarding the replicating portfolio of a security in the binomial model. I'm following, among others, the classical book "Stochastic Calculus for Finance I: The Binomial Asset Pricing Model". First, I'll start with some no...
Long time reader, first time asker! I am working on a portfolio optimizer where I have a universe which is much larger than potential portfolio and where I want to exclude small transaction, i.e. a thresh-hold where the absolute value needs to be larger than "theta". gamma = 1 # penalization of turnover eps = 1e-5 pro...
were wondering If anyone knows how to use rate bonds on Python Quantlib, that have an ex-coupon period. For example the link below shows the construction of such a bond in the c++ quantlib using FixedRateBond bond(settlementDays, 100.0, schedule, std::vector(1, coupon), dc, Unadjusted, 100.0, issueDate, calendar, exCou...
In JPM's note on variance swaps, on page 29, they say "... a long variance swap is also long volatility of volatility". In Bennett's book Trading Volatility, on page 115, he says "... a variance swap has no vol of vol risk". I thought Bennett is correct, that variance swaps do not have vol of vol risk, because variance...
I'm asking for the curve construction of the discount curve in the case where payment currency and collateral currency are different. If I refer to BBG, in the case of a USD swap collateralized in EUR, they use the curve N°400 (MBB EUR Coll For USD). How do they construct this curve ?
If both models fit their closed form formulas to market prices, why should I prefer a more complex model? ($\mathbb{Q}$ version has one extra parameter $\lambda$) Do valuation with dynamics work better under the $\mathbb{Q}$-measure version?
Say we have the active German government bond future, RXH3 and we wanted to calculate a series of returns for the active contract. Would we calculate returns on the daily price difference? And if so, what would happen on the roll day? Or would be calculate returns on the Cheapest to Deliver bond?
How are SOFR implied vols calculated? Are they normal or log normal? When we are pricing options with black-76 model, implied volatility must be log-normal as black model assumes log normal distribution of prices. right? Now that we have transitioned away from LIBOR, does SOFR calculates implied volatility which agrees...
Suppose I am a market maker making a market on an S&P ETF. Suppose that I have calculated a fair ETF price of $395. My market therefore is 394.90 (bid) and 395.1 (ask). After my bid is posted I got filled with 10 shares of the ETF. Now I want to hedge this exposure. Suppose that 1 outstanding ETF share consists of the ...
FIX has a few fields that do or could contain identifying information for equity option orders, the “Actionable Identifier” field in particular, although the OCC states here that “It will not be visible to the contra party to the trade or any other party.“ Is that true that this field is hidden except during the cleari...
I am preparing a financing model and in the template the EBT calculation is: EBT=EBIT - Interest Expense. However, I wonder if interest income (from keeping the money on the bank) should be added, i.e. EBT=EBIT + Interest Income - Interest Expense? Many thanks for your explanation!
I am trying to use the Vech-HAR (the mulitvariate HAR) model in order to forecast some covariances. I have been looking into the model proposed by Chiriac Modelling and forecasting multivariate realized volatility (2010) (link) that states the model as: Here $X_t = vech(P_t)$ where $P_t$ comes from the cholesky decomp...
I have two lists to describe the function y(x) that represents strikes and the relative value of the skew of a volatility surface: x_points = [22.56, 27.07, 31.58, 36.10, 40.61, 45.12, 49.63, 54.14, 58.66, 63.17, 67.68] %strikes value y_points = [97.44, 87.32, 79.73, 75.47, 73.58, 74.53, 78.61, 83.64, 88.03, 92.26, 96...
It is known that if the CAPM holds then the E(R) = CAPM predicted return and all securities lie on the SML. However, in each period, there is an error term that is non-zero in every single observation but that is 0 on average (as in any regression) In my view, if the CAPM perfectly holds and we run a regression between...
I would like to simulate a local volatility underlying $$ dS_t = S_t\sigma(t, S_t)dW_t $$ and have looked at QuantLib's LocalVolTermStructureHandle to do so. So far: today = ql.Date().todaysDate() calendar = ql.NullCalendar() dayCounter = ql.Actual365Fixed() spot = 100 rate = 0.0 initial_value = ql.QuoteHandle(ql.Simp...
How are asset prices set when investors face heterogeneous expectations? Does some form of "negotiation" take place so that the market price is set? Can investors face heterogeneous costs of capital (even under homogeneous expectations)? Would this be an explanation for differences across portfolios? For example, inv...
I'm currently using QuantLib to perform financial calculations in my application, but I'm having trouble finding a DayCount convention that supports the India financial year calendar (April 1 to March 31). I've tried using the Actual/365 (Fixed) convention, but this assumes a calendar year of January 1 to December 31. ...
Given a strategy with normal returns with mean 5% and standard deviation 10% what is the optimal leverage (up to a maximum of 2x) to maximize the expected wealth? With the same setting, if trading is discretized in 5 rounds, what is the optimal leverage? With a Monte Carlo approach, the optimal leverage seems to be the...
I'm trying to predict the one-day ahead movement of the S&P 500 with Temporal Convolutional Networks 1 to capture some "memory". I use daily close data with the loss function $\mathrm{MSE}(f(x_0, \ldots, x_T), y_T)$ where $f(x_0, \ldots, x_T) = \hat y_T := x_{T+1}$ is the output of the neural network. I've tried count...
Theta is the change of an options value with respect to time. But theta itself changes over time. Today's option theta is not the same as tomorrow's option theta. What is the greek name for this value? And where can I learn more about it? This would seem like a useful measurement in things like calendar spreads where t...
Consider an (inhomogeneous) Poisson process $N_t$ with intensity $\lambda_t$. Then I want to compute the following integral $\mathbb{E} \left(\int f(t,N_{t-}) d\tilde{N}_t\right)^2$ for some smooth enough function $f$ and $d\tilde{N}_t=dN-\lambda_t dt$ denotes the compensated process. Is it true that $$ \mathbb{E} \lef...
The following 5 year, zero coupon, structured note, issued at par (full terms of which are available at EDGAR) is linked to the S&P500, but seems to be at least as good as the underlying in all situations. I don't understand how the bank can afford to issue it. I know owners of the note forgo dividends and are exposed ...
Imagine that the underlying stock price is 110. The call option has a strike price of 100. The annualized volatility is 25% and the interest rate is 10%. Finally, the time to maturity is 0.5 years. We sell this call option and we want to hedge it. According to the Black-Scholes model, this option has a delta of 0.819, ...
With a calendar spread (buying back, selling front), max loss is defined as some variant of "maximum potential loss is the cost of opening the trade (Premium Paid − Premium Received = Total Debit)" What is the intuition/rationale behind this being the max loss? (edit: assuming that the position is closed when the short...
USDBRL 1 year forward points are at 0.32 while SELIC (Brazil central bank rate) is at 13.75% and the CDI (interbank rate) is about 11.50% vs USD swap rates at around 4%. What is the explanation behind this divergence between the forward rate implied by the interest rate differential and the actual rate.
I'm reading Merton's Optimum Consumption and Portfolio Rules in a Continuous-time Model, and don't understand the step where he goes from discrete to continuous time. Specifically, my confusion is about the snippet below. By the footnote, $P(t)$ is assumed to be right-continuous. If so, then $\lim_{h\to 0}P(t+h)=P(t)$,...
Consider the following three derivative styles and assume zero dividends for simplicity. The "american style", "european style", and "infinite" style: $$L_{A}(S,K,t,T)=f(K,S)\cdot I(t\leq T)$$ $$L_{E}(S,K,t,T)=f(K,S)\cdot I(t=T)$$ $$L_{\infty}(S,K,t,T)=f(K,S)\quad(\text{as in }L_A\text{ with }T\rightarrow \infty)$$ If...
I'm still troubled by a rather basic question, namely when is a perfect fit to the vanilla skew really necessary? I think if you are trading vanilla options and/or Europeans that can in theory be perfectly replicated by vanillas (obviously) a `perfect' fit to the vanilla skew is desirable. Other than that I'm not so su...
For normal banks, higher interests means more profits. Why is SVB Bank the opposite?
I am looking for volatility surface parametrisation model used for treasury futures bond options. I know that most popular for options on equities its SVI, on FX its Vanna-Volga, on rates its SABR. What about bond options?
I am trying to understand if there is a version of the Black–Scholes–Merton model that can use Normal volatilities instead of Lognormal volatilities while valuing interest rate caps and floors?
For simplicity, let's suppose the underlier follows a Geometric Brownian Motion $S_t\sim\text{GBM}(\mu, \sigma), t\ge 0$ with $S_0=1$. A discretely-observed binary autocall note is a derivative structure with observation dates $t_1<t_2<\cdots<t_n$ and pays the investor a high coupon $c$ on the first observation date on...
Say I have a T daily observations for the last ten years on a new predictor $x_t$ which I think is a predictor of the expected weekly return on the stock market, $r_{t,t+5} = r_{t+1}+...+r_{t+5}$, where $r_t$ is log return for that period. In this case, how can I test the null hypothesis that $x_t$ has no predictabilit...
I'm currently learning Quantlib using C++ and am following the very good instructions here: https://www.quantlib.org/slides/dima-ql-intro-2.pdf Specifically on building piecewise yieldcurves (slide 102) the example code gives the following output: Settlement Date:September 15th, 2009 Zero 3M: 0.299690 % Actual/360 simp...
I had a question about the coupon level determination for a simple reverse convertible product. Assuming risk free rates are 4% while premium on short put is 5%, typical text-books would then quote the coupon at 9%. Can't I expect a slightly higher coupon, by reinvesting the put premium received at inception at the ris...
Using QuantLib I want to price a Floating rate bond whose coupons are capped at some rate. I understand I could price the coupon caps separately and then add that to a zero-bond. However, I've noticed that in FloatingRateBond QuantLib allows to specify caps attribute for cap rates of the coupons. What I don't know is h...
am trying to simulate the SFGK model from the paper "Statistical theory of the Continuous Double Auction", Eric Smith, J. Doyne Farmer, Laszlo Gillemot and Supriya Krishnamurthy [1]. The model simulates the Limit order book for various parameter values. The arrival processes are assumed to be poisson. The simulations a...
In many market impact papers such as "Anomalous price impact and the critical nature of liquidity in financial markets" by Tóth et al (2018), there is a standard power-law relation in the form of $$MI = Y\sigma(\frac{Q}{V})^{\delta}$$ where $\sigma$ is volatility, $Q$ is volume traded, $V$ is market volume and $MI$ is ...
While valuing Interest Rate Caps/Floors in Bloomberg, I saw that we have an option for selecting both Model and Volatility. So, my question is how exactly does Bloomberg value the cap/floor, when we use model as "Black Scholes Merton" and Volatility as "Normal". Is it that Bloomberg converts Normal vol to Lognormal vol...
From Joshi's Quant Interview book: The statistics department from our bank tells you that the stock price has followed a mean reversion process for the past 10 years, with annual volatility of 10% and daily volatility 20%. You want to sell a Euro option and hedge it. Which volatility do you use? Now, I see from the ans...
I am trying to compute the YTM of the following Zero-Coupon Bond: The issue date was 13-01-2022 and the maturity date was 14-01-2023. For me, it seems strange that the price remains "almost constant" when expiration approaches, I expect to tend to 100. Also, I've manually computed the YTM using the following formula: ...
These are extension questions to Joshi's Quant Interview Book. (1) Given the choice between two different static replicating portfolios that match an option's payoff, what criteria would you use to decide between the two? -- The first things that come to my mind are the following: (i) Which replicating portfolio has ch...
I am trying speed up below code for faster speed, df = df.ewm(span=lookback).std() I wrote a numba version but it is very slow in large dataset from numba import njit @njit def ewmstd(arr, span): ''' var_pandas = df.ewm(span=N).var() std_pandas = df.ewm(span=N).std() ''' std_arr = np.empty_lik...
In Lorenzo Bergomi, Stochastic Volatility Modeling, Chapter 5 Appendix A.1, Equation (5.64), as shown below, seems to assume $\hat\sigma$ to be constant. If that is the case, why do we bother to invoke the Feynman-Kac formula? We can simply use the Black-Scholes formula.
I am trying to understand the risk exposures of vanilla options that also have a European barrier on realized volatility. For example, the option could knock out if the realized volatility over the time of the option exceeds a certain value (which could be set to be relatively low in order to cheapen the option). How w...
I am looking for historical quotes for US TIPS (treasury inflation protection security). What is a reliable source of data to get this information? Here's what I have tried: I have looked into this question: What data sources are available online?. But nothing useful on TIPS. I have looked into several academic artic...
In Sheldon Natenberg's Options Volatility & Pricing, he writes: There is an important distinction between an option position and an underlying position. The expected value for an underlying contract depends on all possible price outcomes. The expected value for an option depends only on the outcomes that result in the...
From call-put parity one can derive that $\Delta_C - \Delta_P = 1$. We also know that $\Delta_C = e^{-qt}N(d_1)$. If $e^{-qt} = 0.85$ then there is no value for $d_1$ for a $\Delta_C = 0.9$ as $ 0 <= N(d_1) <= 1 $. Therefore there is no way to get a strike with $\Delta_C = 0.9$. But from the first equation, we have tha...
I wanted to get sell, buy and recent trades of a currency in intervals of seconds but was only able to find APIs which offer a minimum interval of one minute (I checked Polygon and Alpha Advantage). Is there anything available to obtain real-time forex data in seconds, or is there nothing?
In Trading Volatility by Bennett, he says: If there is a sudden decline in equity markets, it is reasonable to assume realised volatility will jump to a level in line with the peak of realised volatility. Therefore, low-strike, near-dated implieds should be relatively constant (as they should trade near the all-time h...
In Excel, I have the monthly stock price data for the past few years for Asset A and Asset B. I have calculated the monthly returns, mean returns, variances, and standard deviations for both stocks as well as the covariance and correlation. Then I calculated the weighted portfolios of Asset A and Asset B calculating th...
I am aware that Day One Profit is something that all banks calculate and report etc. I have not managed to find a free comprehensive review of it, what is it, how it's calculated, who and why requests to calculate it, what are its implications etc. Most are either too technical or too specific considering prior knowled...
Why do we use the micro price $$p_m = \frac{B_{\text{size}} A_{\text{price}} + A_{\text{size}} B_{\text{price}}}{ A_{\text{size}} + B_{\text{size}}}$$ rather than fixing $A_{\text{size}}$ and $B_{\text{size}}$ to some constant and weighting the $A_{\text{price}}$ and $B_{\text{price}}$ to this value? Does the micro pr...
My objective is a portfolio optimization of the type: given $N$ assets with expected returns $r_i$ and a fixed portfolio size $M$, with $M < N$, find weights $w_i$ (positive or negative) maximizing $$ \max_w \sum_{i=1}^M w_i r_i $$ (simplifying the notation - this over all $M$ size subsets of weights) with a gross co...
In section 25.1, sub-section "Credit Default Swaps and Bond Yields", of "OPTIONS, FUTURES, AND OTHER DERIVATIVES", John Hull defines "CDS–bond basis = CDS spread - Bond yield spread", and claims "The effect of the CDS is to convert the corporate bond to a risk-free bond (at least approximately). [...] [This] suggests t...
I can use Black Scholes or Bjerksund Stensland to solve for delta given spot price, strike, expiration, vol, interest rate, etc. But is there a direct solution to solve for spot price given delta, strike, expiration, vol, etc? I can search for delta by plugging in different values of spot price and seeing what value ...
I have the following system of SDEs (which you can think of as 3 different stocks) $$dX_t^1 = \mu_t X_t^1 dt + \sigma_t X_t^1 dW_t^1$$ $$dX_t^2 = \mu_2 dt + \sigma_2 dW_t^2$$ $$dX_t^3 = \mu_3 dt + \sigma_3 dW_t^3$$ where $dW_t$ is a standard Brownian motion and correlated such that $dW_t^1 dW_t^2 = \rho_2 dt$ and $dW_t...
I am a student trying to price volatility and variance swaps. People who price those two products usually try to get the "fair strike", and don't seem to care about the price. However, I have a hard time understanding what fair strike means. Also, if people just want to get this value, how do they get a price out of it...
I am trying to fit kappa for a ticker. I am using 5 days of data to illustrate how this can be done, which isn't that much data but I think is sufficient to show my problem. This data however appears to have a non exponential function for the (A, k) part. I am following the method described in this post: How does one c...
I am trying to understand the Fama-French factor model, or any kind of CAPM extensions really. What is really puzzling me is the use of mimicking portfolios. Fama and French create mimicking portfolios (indices) of the SMB and HML factors, so similarly as the market risk-factor (index). My question is: why not simply u...
I took a historical dataset of ~2600 stocks and computed the 30-day returns for non-overlapping windows, for a 9 year period. For the returns, I computed the mean and variance. Then I plotted the mean vs the variance: I was rather surprised to see that there seems to be a negative correlation between return and varian...
I searched the web, but could not find OCC TIMS methodology detailed description anywhere. Any ideas? OCC TIMS
I could find any reference restricting the sign of the volatilities in the multi-factor HJM framework. Can someone please confirm if $\sigma_i(t,T)$ can assume negative values for some $i,t$ and $T$? $$ df(t,T) = \left(\sum_i \sigma_i(t,T)\int_t^T \sigma_i(t,u) du \right) dt + \sum_i \sigma_i(t,T) dW_i(t) $$
According to the saddlepoint approximation, if the cumulant generating function $K(t) = \log E[e^{tX}]$ of the distribution of the random variable $X$ exists and is known, then the density $f(x)$ of $X$ can be approximated as follows: $$ f(x) \approx \sqrt{\frac{1}{2\pi K''(\hat t(x))}} \exp\{K( \hat t(x)) - \hat t(x) ...
I am trying to prove that the Binomial tree pricing method converges towards the Black and Scholes model, but I am struggling on a specific step. I don't understand how the limit of p*(1-p) is calculated. Things I tried: I calculated $p(1-p)$: $\frac{2\cdot\exp\left(\frac{rT}{n}+\sigma\sqrt{\frac{T}{n}}\right)-\exp\le...
I have been trying to use the Heaviside Approximation for a simple basket option so that I can solve for Gammas with AAD (Adjoint Automatic Differentiation). This routine smooths the payoff function vs. a max function, so the payoff is continuous rather than discrete - it's a smooth version of the step function. I be...
I believe there are two ways to measure Confidence Intervals of Autocorrelation one assumption is assuming the Autocorrelation is following Gaussian Distribution and assuming Lags other than Lag 0 are Equal to 0 and Bartlett’s formula which assumes Moving Average Process. I want to measure the extent of the Autocorrela...
Suppose the interest rate is zero. A stock with price $S(t)$ at time $t$ pays only one dividend at time $t_1$ such that $S(s_+)=S(t_1^-)q$ where $q\in[0,1]$ is a constant. Consider a European call and an American call with the same strike $K$ and expiry $T>t_1>0$ at time $0$. Define $$C_{\text{E}}(S_t,t):=\mathbf E\big...
In the academic literature - often "momentum" and "positive feedback" traders are used interchangeably. Like "Most researchers have found that institutional investors are momentum traders (also referred to as positive feedback traders and trend followers)" Is the crucial difference - that momentum is computed as an agg...
I'm trying to price a fixed rate bond with ex-dividend date using Python QuantLib. This is a feature of UK Gilts. On regular days, I'm able to get the correct accrued interest, but on days in the ex-dividend period, I'm unable to determine the correct accrued interest. Any help is appreciated. Below is my code import Q...
I have a portfolio composed of $ N $ assets. I know the one-year beta of these assets, I also know the past (ex-post) beta ($\beta$) of my portfolio. My portfolio changes allocation every month. So I want to calculate the beta ex-ante at each rebalancing date in order to check if my allocation model chooses to increase...
It is known that a variance swap can be replicated by a strip of options. However, it is costly to trade that many OTM options and there is not enough liquidity to trade the wings in the quantity that is necessary. So I suppose banks do not actually trade the entire strip. The question is then, how do they hedge this p...
I'm looking for a way to introduce naive diversification bias in a mean variance framework and had the idea to model it as some sort of "aversion to extreme portfolio weights" of the following form: $$ (1-\delta)\omega^{'} \Sigma\omega+\delta\omega^{'}\omega \rightarrow Min!\\ s.t.1^{'}\omega=1 $$ Here, $\omega$ is th...
Earlier I asked a general question about how probabilities are derived from futures prices for derivatives related to the Bank of Canada's policy rate. I have been advised the Overnight Index Swaps (OIS) are the best vehicle to use, in this case three month CORRA futures. 3-month CORRA futures are traded on the Montrea...
I recently came to know about TAS: Trade at Settlement. In that context, as a layman, I'm tyring to make sense of why the settlement price matters in a trade. Perhaps these betray my ignorance: What's the relevance of the settlement price? I.e., as a buyer, I've already paid the price for the contract and the price th...
if you're long OTM calls, an increase in vol would increase your delta (converges to ATM) and if you're long ITM calls, increase in vol would decrease your delta (converges to ATM as well). So OTM calls have positive DdeltaDvol (Vanna) and ITM calls have negative Vannas. Following Nassim's example, if you're short OTM...
how to solve it for max Theta Curvature? i'm looking for the pure math glyph formula.. it may be related to actually 3rd deriva & curvature function..
Let us assume we have two FX rates: $ 1 EUR = S_t^{(1)} USD$ and $ 1 GBP=S_t^{(2)} USD $. Let $K_1>0, K_2>0$ be strictly positive values and a payoff at some time $ T>0 $ (called maturity) defined by: $ V_T=1_{ \{ \kappa_1\cdot S_T^{(1)}<\kappa_1\cdot K_1 \} } \cdot 1_{\{\kappa_2\cdot S_T^{(2)}<\kappa_2\cdot K_2\}} , \...
I am currently working on the implementation of classic schemes to solve the BS PDE and it seems that I make a mistake in my code because the result looks far from the result of the BS formula. Here is the maths of the implicit scheme: Substituting $\tau = T - t$ into the Black-Scholes equation and using the chain rule...
r > 0. I understand that money today is worth more than money tomorrow. So if volatility is 0, it's better to take the money today. But I don't understand how to square away the following: Time value for American Options is always nonnegative Value = Time Value + Intrinsic Value How is it ever optimal to throw away p...
Here is the result of Gamma for Variance swap. I think $S_t$ is the only variable in $\sigma^2_{Exected,t}.$ Then how could we get the presentation of Gamma: $$\dfrac{1}{S_t^2},$$ there should be some $S_t$ terms in numerator.
I want to bootstrap the yield curve of multiple currencies using 3M futures. I have it implemented in Matlab, but need to transfer to Python. I have a vector of dates and a vector of future prices. Could somebody help me finding the python equivalent to Matlab's: IRDataCurve.bootstrap('Zero', quote_date, instrument_typ...
I would like to derive the exact delta-hedging strategy in the Black-Scholes market to replicate the following non-standard endogenous payoff. The particularity is that the payoff does not only depend on the final value of the stock but on the yearly returns of the hedge porfolio. More specifically, it is given by $$ ...
I did a fama-macbeth regression and got alpha of over 2.3%. Dependent variable is monthly returns and independent variables are ln(size) and ln(book-to-market). I was just wondering what does the intercept measure?
I know it's possible to efficiently estimate bid/ask spreads from OHLC prices and there are several methods to do so. However I have a data source that contains only bids, asks and close prices, no High, Low or Open prices. Is it possible to do the inverse, estimate the Open, High and Low prices from bids, asks and clo...
I'm doing some statistics in order to evaluate the Forex market profitability. I first define what I call "regeneration of the market". For example, the following fictive order-book of EURUSD: ASK: 20M 1.10010 8M 1.10005 2M 1.10002 BID: 1M 1.99999 9M 1.99995 15M 1.99990 Spread for 10M: 0.00010 If I open a BUY p...
I've come across the notes of the 2003 lecture "Advanced Lecture on Mathematical Science and Information Science I: Optimization in Finance" by Reha H. Tutuncu. It describes on page 62 in section 5.2 a way to reformulate the tangency portfolio to the efficient frontier as a quadratic optimization problem: $$ \min_{y,\k...
lets say party A and party B are the two parties in a derivative contract. If party B posts USD cash as collateral, it would expect party A to return the collateral with interest at settlement. How about if party B posts a US treasury as collateral? would it expect to receive anything on top of the security at settleme...
I get from the time value of money that receiving \$1 today is worth more than receiving \$1 tomorrow. But what about paying money, as opposed to getting money. Do i prefer to pay \$1 tomorrow than today, because that same \$1 tomorrow would be worth <\$1 today? Or do i prefer benefits and costs today rather than tomor...