instruction
stringlengths
35
27.7k
I am relatively new to repos and I am trying to find out whether there is a standard practice for calculating balance sheet value of a repo. Are there any regulations that prescribe how banks shall calculate balance sheet value of a repo? Would the following approach make sense for a fixed rate term repo? $$V(t) = N\le...
I have a long-standing confusion around the truncation range of the COS method proposed by Fang and Oosterlee because I find that the results are highly volatile given the different truncation ranges. To be more specific, given the following three truncation ranges (which I am aware is merely a rule of thumb): $$ [a_{2...
I thought I read/heard somewhere that annualized volatility, using monthly returns vs daily returns is usually lower. With that said, I can't seem to find any papers on this. Does anyone have any studies that looks at annualized volatility using different return calculation time frames? I'm tempted to use daily return...
I am trying to price a call option on a zero coupon under the Vasicek Model using Monte Carlo method: $$C_0 = B(0,\theta) \ \mathbb{E}^{\mathbb{Q}_T}[(B(\theta,T)-K)^{+}]$$ The problem is that the code I have written for this is yielding a price too different from the expected answer which is 0.095 based on the closed ...
How can I estimate volatility with historical data for Monetary Policy Rate (MPR) to use in a short rate model? I could use regular techniques like simple standard deviation or max likelihood, but the problem is the data: MPRs usually have 0 variation over months, even years and then big discrete jumps.
Let $v(t)$ be the instantaneous variance of an underlying stock or index at time $t\in[0,1]$ between the open at $t=0$ and close at $t=1$ of an exchange. Usually $v(t)$ achieves local maxima at $t\in\{0,1\}$. For example, $$v(t)\propto f(t)= a+bt+c\cos(2\pi t), \, c>0,$$ where $\int_0^1 f(t)dt=1$. I can see $\int_{T_1}...
Every time I search calibration methods in short-rate models such as Hull-White, I always find information on how to do it with swaptions market data. Yet, I can't find anything about how to do it in markets without swaptions. How can I calibrate Hull-White short rate model in a market without options? It is an overnig...
All of my API sources have gone down/gone premium/don't provide sufficient data. Does anyone know any sources (paid or free) where I can extract extensive income statements, balance sheets, etc. for large/small/value/growth stocks. Cheers!
In an internal document in my company, the convexity adjustment for Futures is defined as: where and P(0,T+D) is the ZC bond maturity at T+D. I don't understand why is not equal to 1 as I thought they were the same except B has a positive sign in the integral while P has a negative sign.
I have estimated GARCH and GJR-GARCH with several exogenous variables. Some of the exogenous variables have negative coefficients that are statistically significant. For instance, I can write my GJR-GARCH estimate as: $h_t = 0.213 + 0.011 u_{t-1}^2 + 0.847 h_{t-1} + 0.196 u^2_{t-1}I_{t-1<0} - 0.026 X_{t-1} $ Where $u_{...
I seem to remember the implied volatility skew of European options decreases as the expiry increases. It is true for the Heston model under some approximation. What are the good references that prove this property in general, or at least asymptotically?
I am doing the Fama Macbeth regression analysis for finding the relation between Idiosyncratic volatility and Expected stock return. Stock return is dependent variable and independent variables are: idiovol, beta, size, bm, strev, illiq, max, coskew and idioskew. I have run different models and I get the following resu...
In page 34 of "Treasury Bond Basis" (Third Edition) by Burghardt et al, it says: If the yield curve has a positive slope, carry for someone who is long bonds and short futures is positive. Every day that goes by is money in the bank. The implied repo rates simply confirm this. Why is this the case? Up to that point i...
I believe I understand the following (from the accepted answer to the Quantitative Finance question called "volatility of a mid curve option"): A swaption in which the underlying swap starts at a date materially after the expiration date is called a midcurve swaption. The implied volatilities of these can not be obtai...
I was wondering if there is any free resources where I can see/ download total FX long/short positions (size or at least number of contracts) in the market currently?
In Grinold & Kahn (2000), the authors emphasized the separation of stock selection and benchmark timing in active portfolio management. So if we avoid benchmark timing, the optimal portfolio's beta should be 1 and we need to add this constraint to our portfolio optimization problem: where h_P is the vector of portfoli...
I read somewhere that autocorrelation prevents someone from annualizing variance. But how does it bias it? Let's say you have daily returns. If autocorrelation is high, should that overstate or understate annualized variance when you multiply by 252. What about if you have negative autocorrelation? Thanks!
The "diversification return" of a portfolio is the difference between the geometric average (compound) return of a rebalanced portfolio and the weighted sum of the geometric average returns of the assets. My understanding is this diversification return is always nonnegative in a portfolio with positive asset weights (...
Reference request for any research that aims to "scale" the implied volatility by time to expiry so that the scaled IV data has minimal dependence on the time to expiry. I tried removing the effects by running a linear regression of IV on tte and subtracting the slope*tte. I'd assume there would be better methods. I do...
I am currently running some Fama French regressions for a number of specified portfolios, consisting of US stocks (for a university level course). The regressions are conducted in R, using the lm funtion. The models look like this: 3F <- lm(ExcessReturn ~ MKT + SMB + HML, data = df) 4F <- lm(ExcessReturn ~ MKT + SMB + ...
I have a question regarding the business day convention. Suppose I have a bond that matures on the 17th of September 2023 and pays an annual coupon of $1%$. It has a $30/360$ day-count convention and a forward business day adjustment. Now the 17th of September 2021 is a Friday. The 17th of September 2022 is a Saturday ...
I know EViews is used for mixed-data sampling (MIDAS). Can someone pls help me identify a program I can use for reverse MIDAS? Thank you.
I have a series of price returns of an asset (4 days worth of data). They are relatively high-frequency. My ultimate goal is to calculate realized volatility, but using a student's t-distribution. I have fit a two-scale realized volatility (TSRV) model to the returns, then scaled that by sqrt(252) to annualized volatil...
import QuantLib as ql import datetime today = ql.Date(10,5,2020) ql.Settings.instance().evaluationDate = today issueDate = ql.Date(10,5,2020) maturityDate = ql.Date(9, 7, 2021) tenor = ql.Period(ql.Monthly) dayCount = ql.Actual365Fixed() bussinessConvention = ql.Unadjusted dateGeneration = ql.DateGeneration.Forward m...
I am writing a code in python that streams real-time data from the Coinbase Exchange. def on_open(ws): print('opened connection') subscribe_message ={ "type": "subscribe", "channels": [ { "name": "ticker", "product_ids": [ "BTC-USD" ] ...
I didn't find the ILS Telbor class in QuantLib website and also reference online. Please let me know if we can value such swaps using QuantLib. For example ql.Euribor6M(), ql.GBPLibor(ql.Period('1M')), etc.
I have a final round with a market making firm coming up and will be asked to play several market making games. I wanted to ask for advice on how to approach these games, especially with an information imbalance. Here is my general strategy: quote evenly around the EV toward the beginning when uncertainty is highest, ...
Say I have a FRN. If rates go up, then my cashflows are discounted more, but my coupons also go up, so in the end, my bond may be worth the same. However, if rates go up, then since my price is unchanged but my coupons are higher, my YTM has also gone up. This doesn't really make sense to me: why is my YTM higher despi...
I was going through the proof about the equality of forward and futures price (assuming constant interest rate) in a book. Somewhere, the authors used the fact that suppose we start with two capitals - say A and B and we end up with the same final capital S, then A=B otherwise there will be arbitrage opportunity. Why a...
I work at an accountancy firm and we use Black-Scholes to value equity in private companies that has option like features. The equity we typically value is akin to deeply out of the money European call options and we source volatility using historical share price volatilities of quoted comparable volatilities. It's a v...
I’m running a simulation in which I want to calculate the NPV of 100 swaps over 1000 (or even much more) different interest rate curves. It looks like Quantlib is not really fast in performing these calculations or my code is just not optimal. Script does the following (for all curves): Create Quantlib curve objects (...
I see in BBG that the beta of XSPS (an inverse SP500 ETF) to SPX Index is -1.05 and the adjusted beta is -0.37. I get that -1.05 * 2/3 + 0.33 matches the adjusted beta. However, does this adjusted beta make sense for short positions? Should it not be -1.05 * 2/3 - 0.33 instead?
Can somebody point me to any notes on how to "back out" what's the implied term premium after we have calibrated an affine term structure model? I was able to calibrate to the yields cov matrix as well as the yield curve (Q-measure). I came across in some book that they were also able to work out the P-measure yield cu...
I'm reading Ledoit&Wolf's paper "Honey, I shrunk the sample covariance matrix" and it is mentioned a lot of time, but I don't understand what it means. I thought that probably referred to estimation instability, but I'm not sure. Help.
The optimal entry/exit thresholds for mean reversion trading (assuming an underlying Ornstein-Uhlenbeck (OU) process) is derived in the paper "Optimal Mean Reversion Trading with Transaction Costs and Stop-Loss Exit" by Tim Leung and Xin Li, and these results are also included in the book "Optimal Mean Reversion Tradin...
What is the market value of an (index) futures? I guess the market value is either: quantity * contract size * price zero, if the daily unrealized PnL is disregarded The contract is entered at zero cost, so should the market value also be considered zero? I can see arguments for both alternatives. Is there a common c...
Consider two different pairs of currencies traded in the same exchange. We will call these pairs A/B and A/C. Each market comes with its own orderbook and minimum order size. Let's make some assumptions: The minimum order size for the currency A is the same in both markets, e.g. we can trade at lease 0.1A. There are n...
I want to understand the difference between the real and financial assets. By definition, real assets are structures, equipment, inventories of goods, and land. Financial assets are bank accounts, corporate stocks, or bonds. Here are five examples I want to understand: patent, lease obligations, customer goodwill, a co...
In the book Warren Buffett and the interpretation of the financial statements, Mary Buffett explained companies that have enough earning power to be able to pay off their long-term debt in three or four years are good candidates in our search for exceptional companies with a sustainable competitive advantage. Question...
I'm attempting to write a tool that will automatically calculate the expected value of arbitrary options positions, and I need to clarify my understanding. I am neither a statistician nor a professional quant so please permit me a bit of (perhaps unnecessary) exposition: Scenario Suppose I am interested in ticker $\\\...
I'm new to Quantlib in Python and I'm running into a quite awkward situation. I have a vol surface from the market on the SPX index. Not all strikes/maturities are populated. In addition, there could potentially be arbitrages in short maturities since we have lots of daily options and I am not correcting yet for arbitr...
In Stigum's money market book, in the chapter on repo, he talks about 'reversing in a security'. Then later on he quotes a portfolio manager sayin 'I reverse out securities to dealers, but I never refer to it around the company as 'lending out' our valuable securities.' I feel like there is an abuse of language here, b...
Based on the definitions of A, B, C, and D in "An Analytic Derivation Of The Efficient Portfolio Frontier" by Robert Merton (1972), how can I prove the following in a line-by-line derivation? $cov({x}_{p},{x}_{q}) = {x}_{p} \Omega {x}_{q} = \frac{C}{D}\left [E({R}_{p}) - \frac{A}{C} \right ]\left [E({R}_{q}) - \frac{A...
I have developed a fully automated crypto trading strategy for which has been showing promising results and I am now looking to raise money to expand and hopefully trade to its full capacity in the future. My analysis on the backtest results shows there is a small possibility of of 40-50% drawdown (probably once a year...
By no-arbitrage, the price of a vanilla European call with $K=0$ should be that of the underlying stock (as selling the call is perfectly hedged by buying the stock). However, is this true in practice? More concretely, if you ran an options desk and I called you asking me to make me a market on $50M worth of 0-strike c...
My understanding of the traditional Markowitz portfolio optimization process is as follows: Let’s say I have data from year 1 to year 10. At the end of year 10 (having information about year 10), I want to optimize the portfolio weights for the year 11. I derive my optimal portfolio weights conditional on some utility ...
I need to price a USD bond using yield-to-maturity from the yield curve (YC). The bond is issued by a German company. My question is what yield curve should I use: the US Treasury YC or the EUR YC of Germany? Thank you.
maybe this is a question considered too basic for all of you but im new so please excuse: I wanted to buid a simulation in excel using the usual suspect(STANDNORMINV(RAND()) and i tried to calculate the mean for an arithmetic and geometricx brownian motion. However, i noted that this doesn't seem to work. I separated d...
I am trying to value an american call option with a lookback feature. So the holder can choose to exercise either based on a fixed strike (K) or a floating strike equal to 10-day moving average (MA). I tried to build a tree model but results look weird and I couldn't figure out where the problem is. What I did is to co...
When comparing performance of equities (for example S&P 500) versus credit indices (for example US HY) people often adjust equity returns by its beta relative to credit. Can someone please explain what’s the reason? For example, if you do invest in both securities your overall return will be return on equity investment...
When modelling stocks we specify the model in terms of the dynamics of the stock itself (e.g. in Black-Scholes, Heston and SABR - often denoted $S$). However, as I am reading about Term Structure Models many sources start with the dynamics of the short rate (often denoted $r$) or state price vector (often denoted $X$)....
I have been reading the book "RiskMetrics —Technical Document" by Longerstaey (J.P.Morgan) and Spencer (Reuters) (4th Edition, 1996). I am wondering what the effective days of the exponentially weighted moving average model (EWMA) mentioned in the book would be if I use a 2-day percentage change as also explained below...
I'm using QuantLib (python version) for options pricing, and am trying to figure out how to handle non integer dates. If you try and price an option at 9:30 AM and at 4 PM, you should get different prices, but I don't know what the best way to handle this in QuantLib would be. You could perhaps try running it with that...
Let's say that we have a discrete probability distribution, where $$ x_i $$ represents each of the possible outcomes (discrete set of possible outcomes), and $$ L $$ represents the expected value we want to achieve, by manipulating the original probability distribution (keeping the same values of x_i, but adjusting the...
According to the accepted answer to a question in this site on the interpolation in the term structure of volatility surface: A simple linear interpolation on implied variance along iso-moneyness lines is enough to guarantee that there is no arbitrage between maturities as long as the inputted market data is arbitrage...
Suppose I have a large factor model for security returns, i.e. I have a vector $\mathbf{Y}(t) \in \mathbb{R}^{P}$, with factor loadings $\mathbf{\beta} \in \mathbb{R}^{P \times K}$ over a set of $K$ factors denoted by $\mathbf{X}$. Thus, we can describe the asset returns as \begin{align} \mathbf{Y}(t) = \mathbf{\beta} ...
I would like to understand the fundamental difference between yield and discount yield, specifically relating it to zero coupon treasury bills. Please see image below: For those who are terminal users, the image shows YAS_BOND_YLD vs YLD_YTM_BID. The convention for US treasuries is discount yield, which is easily comp...
I am not able to find loss function (scoring function) extreme CVaR (CVaR from extreme value theory) which is a conditionally elicitable statistical mapping (conditioned on VaR). In this regard, can someone help me!! Where I should look for it.
Is there an easy way to add weekends to a BespokeCalendar calendar instance?
First of all, I am aware of the highly related question What is an efficient data structure to model order book?, but my question is a bit different here. I want to save the order book states after the arrival of each message, which includes add, cancel and trades. For example, assume we're using a B-Tree with double-l...
Let us look at options, which are cash settled, but instead of receiving cash, you receive the proportion from underlying asset with the same value as cash. Moreover, you can pay for these options in underlying asset only. Example: ETH option expired with strike price \$1000 and the current value of ETH is \$2000. The ...
Regarding the industry portfolio as created by Kennth R. French like here: https://mba.tuck.dartmouth.edu/pages/faculty/ken.french/Data_Library/det_17_ind_port.html I was wondering how I could do this for other markets. They specifically use SIC codes but for other countries I can't find a comparable classification whi...
I am trying to value the open-ended constant leverage certificates like Bull DAX 20x. As the certificates are reset daily with the movements of the underlying asset, how could they be modeled for pricing? The paper "The Price-setting Behavior of Banks: An Analysis of Open-end Leverage Certificates on the German Market"...
It is said on page 26 of the book "Trading Volatility: Trading Volatility, Correlation, Term Structure and Skew" by Bennett (2014) that: A rule of thumb is that the value of the OTM put sold should be approximately one-third the value of the long put (if it were significantly less, the cost saving in moving from a put...
Suppose I am long equity borrow rates, but I don't know exactly when borrow will increase. What is the most effective way to trade this? The naive strategy of borrowing the stock now and then lending it out once rates jump (assuming the structure/regulations of the securities lending market even allow that) is suboptim...
Suppose I lend you an equity security for ten years, interest-free, and you have to return it to me at the end of term (which means little-to-no risk-taking). What is the maximum (near-)riskless yield that can be "extracted" from holding the stock, in the absence of alpha? (I distinguish "yield" from "gains in the stoc...
I am looking for approaches to transform a more complicated stochastic volatility model such as the one shown in Section 2.2 of Smile Dynamics II to a single-factor model such as the one shown in Section 2.1 of the same paper or some kind of version of Heston. I am interested in this question because I want to do a Mon...
Long story cut short: I am asking why the Local Volatility function can be thought of as a function of the underlying, when in fact it appears to be a function of the strike. Additionally, I wonder how the local vol process for the underlying, being a single unique process, achieves to generate the same option prices a...
My question is the following. If the correlation between the log-returns of X and Y is rho, what would be the correlation between the log returns of 1/X and Y ? Thanks for your answers.
You probably have home across recent events in the UK bond markets. The Financial Times article "The reason the BoE is buying long gilts: an LDI blow-up" from Sep. 28, 2022 goes through why the BOE decided to intervene. I was curious if someone familiar with liability-driven investing (LDI) could explain the details be...
I'm trying to calculate the variance $\mathrm{var}\left(\log\frac{S\left(t\right)}{S\left(0\right)}\right)$, where the dynamics of the stock $S$ follows a jump-diffusion process given by $$\frac{dS\left(t\right)}{S\left(t-\right)} = \left(\alpha-\lambda \kappa\right)dt+\sigma dZ\left(t\right)+\left(Y\left(t\right)-1\ri...
In continuous-time asset pricing, the price of a defaultable perpetual coupon bond is given by $$P(V) = \frac{c}{r}\left[ 1- \left(\frac{V}{V_b}\right)^{-\gamma}\right] + (1-\alpha)V_b \left(\frac{V}{V_b}\right)^{-\gamma}$$ where $c$ is the coupon rate, $r$ is the interest rate, $V$ is the underlying asset (distributed...
Consider the fundamental asset pricing equation for a perpetual coupon bond: $$rP = c + \mu P' + \sigma^2/2 P''$$ with standard boundary conditions $P(\bar x) = \bar x$ and $\underset{x\rightarrow \infty}{\lim} P(x) = c/r$. $r$ is the interest rate and $c$ is the coupon rate, the other parameters are drift and volatili...
If a company has a default in one of its bonds, but not the reference obligation referenced in the CDS, does that constitute a default? Also, if there is settlement via physical delivery, does the ref obligation have to be delivered or can another bond be delivered? Or is physical delivery not done anymore and its jus...
Consider the one-dimensional diffusion process $dX_t = \mu_tdt + \sigma_tdB_t$ and function $f : \mathbb{R} \to \mathbb{R}$, which is twice differentiable. Here we have another SDE by using Itô lemma as follows; $$ d f\left(t, X_t\right)=\left(\frac{\partial f}{\partial t}+\mu_t \frac{\partial f}{\partial x}+\frac{\si...
I'm in search of a way to calibrate a very simple Hull-White model with a constant volatility and a constant mean-reversion speed, purely based on historical zero rates. $$dr(t) = (\theta(t) - \alpha r(t))dt + \sigma dW(t)$$ My intuition tells me that I can use the relationship between historical 1Y zero rate- and 10Y ...
I'm interested in deriving the par rate of an interest rate swap priced under the single curve framework. Let's follow the corresponding Wikipedia article for the sake of notation simplicity. The present value of the fixed leg can be calculated as $$PV_{fixed} = NR\sum_{i=1}^{n_1}d_i x_i,$$ where $N$ is the notional, $...
I have a very strong interest in the use of GPUs in quantitative finance, and am in search of algorithms/simulations/models that can have their runtime heavily reduced by GPU computation. What models, or segments of models, do you think might be interesting to explore with regards to runtime and parallelization? Some t...
Before Google Finance changed its service, I remember I used to be able to see news or technical events on historical charts. It was beneficial for me as I was able to see the impact of the news event on the price. AFAIK, Google Finance does not provide the feature anymore. Is there any alternative option that provide...
How should you price Quanto option, where domestic = underlying? Example: Let's say I want to price Quanto option in EUR on EUR/USD pair, but the option is settled in EUR. Should I use normal Quanto option formula with $-1$ correlation and same sigma? (Due to the fact that the USD/EUR is $-1$ correlated to EUR/USD)
In a backtest I did, I'm selling a call option and buying a delta amount of the underlying (calculated using implied vol). Now I know in the limit case of continuous hedging I end up paying a PnL which is a gamma weighted integral of volatility differences, but in discrete hedging (daily) backtest, I'm getting slightly...
I'm reading the paper "The Power of (Non-)Linear Shrinking: A Review and Guide to Covariance Matrix Estimation" by Ledoit and Wolf (2020). When a function that is used to transform the sample eigenvalues to the diagonal entries of a matrix is being discussed on page 19, it is stated that it converges to a "non-stochast...
All I noticed that in the pair trading, some measure the spread on pricing and some measure the spread on return. Both methods make sense, it is intuitve to model price, but convergence of return means long stronger return and short weaker return which also leads to profit. Has anyone compared the benefit of pair tradi...
I'm studying a draft of the paper “Dealing with the Inventory Risk: A solution to the market making problem” by Guéant et al from July 2012. According to the paper, the closed form solution to the optimal control problem is: $ \delta_{\infty}^{b *}(q) \simeq\frac{1}{\gamma} \ln \left(1+\frac{\gamma}{k}\right)+\frac{2 q...
I am a complete novice with a background in physics, currently self-studying derivatives. My primary reading resources are John Hull's book and "Introduction to the Economics and Mathematics of Financial Markets" by Jvaska Cvitanic. I have a confusion regarding marking-to-market. Suppose $A$ takes a long position on a ...
I was listening to some traders talk amongst themselves. One emphasized the importance treasury implied Vol as a useful indicator for forex vol/trading. I don't totally see the connection. I have a vague idea how this maybe true, but was hoping to hear an answer that can explain a clear connection why this maybe true. ...
Consider a standard geometric Brownian motion $V_t$ with drift $\mu<r$ and standard deviation $1$. It holds that the discounted expectation is $$E\left[\int_t^\infty e^{-r(s-t)} V_s ds | V_t \right] = \frac{V_t}{r-\mu}$$ provided that $r > \mu$ and diverges for $r < \mu$. Does a similar result hold for any $\mathbb{C}^...
First of all, I realise this question might border on `meta-finance', so I'd be totally OK if it gets closed. Having said that, the question itself: Given a stock $S$, in the absence of default it is quite clear that the probability the stock price at time $T$ takes values in $(0,\infty)$ is $1$ for all $T$. In the pre...
I am building a model to simulate people's wealth in the next years. Say Mr X has a portfolio with an expected return of 3% (annual). From this I can simulate the return of his portfolio in the next 40 years using Geometric Brownian Motion. I also want him to be able to add inflows/outflows (e.g. Mr X expects a salary ...
Consider the following premiums of calls option with different strikes. C90 = 57.35 C95 = 52.55 C100 = 47.3 C105 = 42.9 C110 = 38.25 In this case, the butterfly 90-100-110 cost 1 and the 95-100-105 cost 0.85. I expected them to be very different. By drawing the payoff curve, I expected the payoff to be at least 4 times...
One of the measures to quantify credit risk is to calculate the Expected loss, which is typically quantifies as $EL = EAD \times PD \times LGD$ However, I have come across a somewhat strange calculation which goes as below. Let say we have a exposure of $ \\\$1 $. Calculation time is today at $T_0$, and we are interest...
I'm reading De Nard et al. paper "Portfolio Selection in Large Dimensions" and the authors talk about these two models, but I don't have any background on these topics from university. Can you help?
Items 21.19 to 21.24 from FRTB's documentation define delta risk sensitivities for each risk class. For instance, delta equity risk $s_{k}$ is defined as: $$ s_{k} = \frac{V_{i}(1.01EQ_{k})-V_{i}(EQ_{k})}{0.01} $$ where: $k$ is the asset $EQ_{k}$ is the market value of equity $k$ $V_{i}$ is the market value of the inst...
I came across the Vola Dynamics page about the W-shaped vol before an event: https://voladynamics.com/marketEquityUS_AMZN.html I'm a bit confused by "this term does not have any butterfly arbitrage". I thought butterfly arbitrage suggests that price against strike is convex, i.e., $\partial^2 C/\partial K^2 > 0$. But t...
Let $X$ be any random variable with any distribution. Given that we know $\mathbb{E}[X]$, $\mathbb{E}[\max(0,X)]$, and $\mathbb{E}[\min(0,X)]$, can you write a formula for $\mathbb{E}[f(X)]$ where $f$ is any twice differentiable function? I am guessing the solution might have something to do with the arbitrage free pri...
I work for an oil trading company. We sell petroleum products indexed on the Brent and hedge our fixed price sales using futures to offset price fluctuations. We do not engage in speculation. I was wondering if there was any advantage to engaging in delta hedging (or delta-gamma hedging) with oil options? I could not t...
I am trying to calibrate SABR but I do not fit the given volatility. import QuantLib as ql import matplotlib.pyplot as plt import numpy as np from scipy.optimize import minimize from scipy.optimize import differential_evolution moneyness=np.array([ 120.00, 115.00, 114.00, 113.00, 112.00, 111.00 , ...
Where can I get free options implied volatility and realized volatility data? I used to use Quandl, but they were acquired by NASDAQ and now offer this data under a premium paywall. For reference, I am using this for individual purposes only. Thanks in advance for your help!
I wanted to ask, suppose I have a portfolio of futures of gasoline and other oil products eg ULSD (Ultra Low Sulphur Diesel), WTI (West Texas Intermediate) for different months. I want to compute the MonteCarlo value at risk for the positions in the portfolio. To calibrate the MonteCarlo simulations, should I use the t...
I have been reading about the RiskMetrics methodology. I read that RiskMetrics recommend a lambda of 0.94 for daily data and 0.97 for monthly data. I would like to convert these numbers to half-lives. I have the formula $Halflife=\frac{log(0.5)}{log(\lambda)}$. I have 3 questions: with the recommended decay factor of ...