instruction
stringlengths
15
26.1k
Apparently, CBOE was founded in 1973 and opened on 1st January that year (source = Google), to start trading listed options. The famous Black-Scholes paper was published also in 1973. I am wondering if there is any direct link there? When I first saw this, my initial thoughts were that the paper was published...
Is publication of Black-Scholes in 1973 and founding of CBEO in 1973 coincidental?
I want to understand why this holds: $argmax_w ( \frac{\mu^T w}{\sqrt{w^T\Sigma w}})=\Sigma^{-1}\mu $ I just found this post: https://quant.stackexchange.com/questions/8594/derivation-of-the-tangency-maximum-sharpe-ratio-portfolio-in-markowitz-portfol?newreg=c13bb555d09944e3affd6babe48702dc In the process...
In Shreve's Finance and Stochastic calculus, definitions are: > Forward Price: The $T$-forward price $For_S(t,T)$ of this asset at time $t$, where $0\leq t\leq T$, is the value of $K$ that makes the forward contract have no-arbitrage price zero at time $t$. ($K$ is the striking price) > Futures price: The futures...
Is there any particular reason you are looking at Shreve? [Euan Sinclair](https://www.risk.net/static/euan-sinclair#:~:text=Euan%20Sinclair%20is%20an%20option,risk%20manager%20at%20Bluefin%20Trading.) for example mentions in all his books that "Traders really do not need to know stochastic calculus or to be able to rig...
### Data cleaning is important for many large institutions: *"It's a well-known fact that several hedge funds have a handful of PhDs just doing data cleansing"*. Be aware that many large institutions using vast amount of data for their internal models (banks, pension- and hedge-funds, insurance etc.) usually have th...
Based on the question, I am assuming you do not trade this as a market maker. I suppose you will have some 3rd party pricer/vendor like Bloomberg / Eikon? E.g. Bloomberg would simply do the job for you, and have comprehensive white papers discussing the implementation. Commodity markets are difficult, not in terms o...
i am writing a single asset montecarlo (numerical integration) based on a market implied distribution. i want to see the affect of changing the vol smile slope on pricing. i am using linear normal vol smile. (i know that normal vols are arbitrageable). when i make slope more than 0.5 (change in vol per 1bp change i...
how do i mathematically prove that montecarlo price over an implied distribution = market price of that option?
Yes, this has been done by Hackethal, Meyer and Jakusch. If you have a single traded asset or a set of trades from traders, you could use those stated decisions to infer the form of the utility functions first and then find the risk parameters once you identified the utility function. There is a bunch of papers ...
As stated by [eruiz](https://quant.stackexchange.com/a/61641/56820) in his answer you cannot assume that an AR(1) model can fit your data. Nevertheless, if you are interested in a OU process it might be useful to look at this paper: [Cheng Yong Tang and Song Xi Chen. Parameter estimation and bias correction for diff...
I'm currently trying to understand risk-neutral valuation and transforming real-world stochastic processes to their risk-neutral version. If I understood it correctly, the main point of risk-neutral valuation is to not have to deal with real-world drifts which are very difficult to estimate, but instead it requires to ...
Goodday. May i know how can i estimate those fixing rate in the yellow cell, with the curve given on the right? Would my step below work 1.perform linear interpolation to find the rate e.g. the fixing rate on fixing date of 29/7/2021 would be somewhere between 0.03 to 0.04 due to linear interpolation 2. then ...
I have an American option on a credit prepayment, i.e. the holder of the option can prepay the remaining credit if the interest rate falls below the initial strike. The pricing of this option was done on a discrete lattice (binomial tree) assuming that a risk-free part of the interest rate follows the one-factor Vasice...
Why Vasicek model on a tree is a bad choice for pricing American option on credit prepayment?
I think this might be a very trivial question, but since I am pretty unfamiliar with C, this is a bit of a problem for me. I have created IborIndex somewhere (it is correctly working): ``` mspr = ql.IborIndex('Mosprime', ql.Period('3M'), 2, ql.RUBCurrency(), ql.Russia(), ql.Following, True, ql.ActualActual() ...
i am writing a single asset montecarlo (numerical integration) based on a market implied distribution. i want to see the affect of changing the vol smile slope on pricing. i am using linear normal vol smile. (i know that normal vols are arbitrageable). when i make slope more than 0.5 (change in vol per 1bp change i...
is the below equation true irrespective of if that 2nd derivative turns out to be negative or >1 , (ie even if theres an arbitrage) ? i am writing a single asset montecarlo (numerical integration) based on a market implied distribution. i want to see the affect of changing the vol smile slope on pricing. i am usin...
I am interested in estimating funding costs from forward/futures data. The standard forward pricing formula is given by $$F=Sexp(rT).$$ From this we can solve the funding cost as $$r=\frac{1}{T}\log(F/S).$$ Now the issue is that the formula assumes no dividends and in the case of commodities, no convenienc...
I am interested in estimating riskless rates from forward/futures data. The standard forward pricing formula is given by $$F=Sexp(rT).$$ From this we can solve the interest rate used in pricing as $$r=\frac{1}{T}\log(F/S).$$ Now the issue is that the formula assumes no dividends and in the case of commodit...
is the below equation true irrespective of if that 2nd derivative turns out to be negative or >1 , (ie even if theres an arbitrage) ? the reason i ask is that i am writing a single asset montecarlo (numerical integration) based on a market implied distribution. i want to see the affect of changing the vol smile slo...
I am interested in estimating riskless rates from forward/futures data. The standard forward pricing formula is given by $$F=S\exp(rT).$$ From this we can solve the interest rate used in pricing as a function of the spot and forward prices: $$r=\frac{1}{T}\log(F/S).$$ Now the issue is that the formula assu...
Operating Leverage is the ratio of Contribution margin and operating income(proxy of profit). So, Operating Leverage = [Sales-Variable Cost]/[Profit] = Quantity*(Price-AVC)/Profit Many literature including investopedia, CFA curriculum suggests that if operating leverage is k, then if sales go up by a%, the profit...
I am new to QuantLib on Python, but as far as I understand, there are different types of piecewise yield term structures which exist on QuantLib which are bootstrapped on a number of interest rate instruments to create the zero curve. I refer to the following link: https://quantlib-python-docs.readthedocs.io/en/la...
I am trying to price an option with Monte-Carlo simulation, where the payoff depends on some constants and a time-series (trading volume) which I model to follow a GBM. Now if I understood it correctly, since my goal is to price an option, I have to work with risk-neutral valuation. However it is not clear to me how I ...
I'm trying to solve the following problem as a part of the [Interest Rate Models][1] course [![enter image description here][2]][2] [1]: https://www.coursera.org/learn/interest-rate-models [2]: https://i.stack.imgur.com/pwBHF.png The algorithm that I'm following is - derive simple rates from the giv...
Operating leverage $k$: $$k=\frac{Quantity*(Price-AVC)}{Profit}$$ but profit (actually operating profit) is: $$Profit=Quantity*(Price-AVC)-FixOpCosts$$ If quantity sold increases by $a\%$ then our new profit is: $$Profit_{new}=Quantity*(Price-AVC)(1+a)-FixOpCosts$$ Percentage change in Profit is: $$Profit_{new}/...
I'm trying to solve the following problem as a part of the [Interest Rate Models][1] course [![enter image description here][2]][2] [1]: https://www.coursera.org/learn/interest-rate-models [2]: https://i.stack.imgur.com/pwBHF.png The algorithm that I'm following is - derive simple rates from the giv...
Given a mixture model of two local volatility models, the price for an option is given by: $$V(K,T) = p V_{loc1}(K,T) + (1-p) V_{loc2}(K,T)$$ where $V_{loc}(K,T)$ is the price of the option given a dupire local volatility function and $p$ a weight. Is there a way to retrieve the implied density for a path depe...
To value an IRS, you require a spot/zero curve. If I am correct this zero curve will be the USD-LIBOR curve. However, if you have e.g. a 10-year swap that you are trying to value 2 months into the contract, you need the spot rates, beyond 12 months (LIBOR only goes up until 12 months), in order to value the cashflows. ...
USD_LIBOR rates are only published up to 12 months. how would you approach constructing the curve to at least a 30-year tenor, to price for example an interest rate swap. I have heard that swaps can be used, however, I am not sure how this would be done. Nowhere are there real live examples. Most websites just m...
Indeed, cash instruments go out to 12 months. Beyond 12 months, you can use swap rates, as you said, but up to 5 years you're better off using quotes for exchange-traded futures whose underlying is 3mo libor; and use swap rates after 5 years. As of this writing, USD swap rates are quotes for swaps where one leg is f...
Goodday. May i know how can i estimate those fixing rate in the yellow cell, with the curve given on the left? Would my step below work 1.perform linear interpolation to find the rate e.g. the fixing rate on fixing date of 29/7/2021 would be somewhere between 0.03 to 0.04 due to linear interpolation 2. then j...
A vanilla IRS on USD libor is fixed float with the float variable being 3m Libor. As @KevinT wrote, there is no spread in market quotes. The fixed leg coupon is quoted in a way that the IRS is "fair" at par rate - which means zero cost at initiation. As of now (before [libor cessation](https://www.fca.org.uk/news/p...
I have access to daily vol quotes for EURUSD options from 2006 to today. I was playing around with them and constructed a "daily rolled backtest" for various options constructs, like straddle, 25 delta risk reversal and 25 delta butterfly. This means I am buying, say a 1M straddle today, hold it for one trading day and...
FX options: is convexity usually heavily overpriced?
Sometimes a sell limit order is not filled in a period even when the highest transaction price is higher than the limit order price. I don't understand why this could occur. The fact that the transaction of the higher price occurs even when there is sell limit order price with a lower price means that somebody want ...
Why the highest transaction price of stock in a time period can be higher than a sell limit order price, but the order is not filled?
Each option book states that the delta, considered as the hedge ratio and not the probability to have the option exercised, is 50% for ATM options. Anyway, empirically speaking I see it is more than this as the maturity of the option is longer. Can you please clarify this?
Why a long-dated option has delta > 0.5?
I am learning about Fundamental Law of Active Management, and there seems to be two different Information Coefficient (IC) formulae presented. Though I myself am not a CFA candidate, these appear to be presented especially in CFA curriculums. I am very confused about the difference of the two, which one is the ...
I am learning about Fundamental Law of Active Management, and there seems to be two different Information Coefficient (IC) formulae presented. Though I myself am not a CFA candidate, these appear to be presented especially in CFA curriculums. I am very confused about the difference of the two, which one is the ...
I think Piterbarg's "Mixture of Models: A Simple Recipe for a … Hangover?" article would interest you (including Appendix A. Can Barrier Options be Valued with the “Weighted Average” Formula?). I inserted its abstract below. >The idea of using a weighted average of derivative security prices computed using diff...
**This post is Quant Stack Exchange's master list of data sources.** Please append your links to other data sources to the list below. ## Economic Data ## See [What are the most useful sources of economics data?][1] on Cross Validated SE. **World** - <https://macrovar.com/macrovar-database/> includes free...
I am learning about Fundamental Law of Active Management, and there seems to be two different Information Coefficient (IC) formulae presented. Though I myself am not a CFA candidate, these appear to be presented especially in CFA curriculums. I am very confused about the difference of the two, as to which one i...
I have used QuantLib Python to price a fixed rate bond. My codes are as follows: ```python import QuantLib as ql valuationDate = ql.Date(30, 6, 2020) ql.Settings.instance().evaluationDate = valuationDate compounding = ql.Continuous calendar = ql.UnitedStates() coupon = 0.05 couponFrequency = ql.Annual i...
Is there a difference between JPY TONA and JPY TONAR?
I have tried to price a fixed rate bond using Python QuantLib and I verified my answer using a DCF model. Below are my codes for the pricing of the fixed rate bond using Python QuantLib: ```python import QuantLib as ql valuationDate = ql.Date(30, 6, 2020) ql.Settings.instance().evaluationDate = valuationDate...
I have tried to price a fixed rate bond using Python QuantLib and I verified my answer using a DCF model. Below are my codes for the pricing of the fixed rate bond using Python QuantLib: ```python import QuantLib as ql valuationDate = ql.Date(30, 6, 2020) ql.Settings.instance().evaluationDate = valuationDate...
Goodday. May i know how can i estimate those fixing rate in the yellow cell, with the curve given on the left? Would my step below work 1.perform linear interpolation to find the rate e.g. the fixing rate on fixing date of 29/7/2021 would be somewhere between 0.03 to 0.04 due to linear interpolation 2. then j...
As @AKdemy said, the two accrued amounts are the same within the precision of floating-point math. The `NPV` and `dirtyPrice` methods return two slightly different quantities: `NPV` discounts the cashflows to the reference date of the discount curve (in your case, the valuation date) while `dirtyPrice` discounts to ...
Where can I get fundamental data on US public stocks in original form?
I have got this interview question twice. Does anyone know from which interview question book or another source this question comes from? It may be some well known source as two different interviewers asked the same question, but unfortunately I don't know the source. Here is what I did during the interviews: App...
I have noticed that there is a cross currency basis swap rate helper added to the Quantlib new release. However, I could not find the instrument cross currency basis swap. I assume the helper is added to bootstrap a cross currency basis curve, but what about pricing the instrument itself? is there a way to do this?
Realized volatility is a long-memory process and so I fitted an ARFIMA(0,d,0) to log(RV15) where RV15 is realized volatility calculated from 15-min bars. I proceeded to examine how changing the bar size from which RV is constructed impacts the $d$ parameter in ARFIMA(0,d,0). Below are the plots. It seems that the param...
I'm using the timeSeries and fportfolio package in R to minimize the CVaR with different constraints for a given portfolio. Everything is working out so far. However, I can't manage to set a fixed mean return. When I use `setTargetReturn(cvar_spec) <- 0.04` , as in the code below, the further code ignores it and calcul...
How to set a fixed return for mean-CVaR portfolio optimization?
I'm using the timeSeries and fportfolio package in R to minimize the CVaR with different constraints for a given portfolio. Everything is working out so far. However, I can't manage to set a fixed mean return. When I use `setTargetReturn(cvar_spec) <- 0.04` , as in the code below, the further code ignores it and calcul...
I spent some time trying to design some parts of the system, going over the information I found. At the top-level, the system looks like this 1. A "real-time" module that receives market data, processes it, creates a local limit order books and some additional information, there are some "bots" that implement vario...
Are there any best practices for designing high frequency trading systems?
Suppose that the data has been generated by a GARCH(1,1) model, i.e. \begin{align} y_t &= h_t \epsilon_t, \; \epsilon_t \sim N(0,1) \\ h_t &= \alpha_0 + \alpha_1 \epsilon_{t-1}^2 + \beta_1 h_{t-1}. \end{align} If we estimate the parameters $(\alpha_0, \alpha_1, \beta_1)$ by maximum likelihood and make some...
how to interpret Sign bias test in GARCH (1,1) and in GJR GARCH?
The market price of risk just a name for a process arising from mathematics of changing a measure. So in that regard, I think you have missed the main point of risk neutral valuation. It is not entirely clearly to me what you refer by "variable" in this context. A stock price perhaps? Your main question is about ...
I'm working on a coding problem that I was given for simulating a stock market simulator. I don't really know anything about the stock market, but the instructions state that stock market domain knowledge isn't necessary to complete this coding problem. I'm still a bit confused however, and was hoping someone here coul...
How to interpret Sign bias test in GARCH (1,1) and in GJR-GARCH?
If the spread on each individual asset in a portfolio is known (and the duration and market value of these assets is also known), is there a relationship that can be used to deduce the spread on the overall portfolio containing these assets?
Is there a mathematical relationship between the spread on a collection of individual assets and the spread of a portfolio?
Can someone please tell if there is a difference between CS01 and Risky PV01 of CDX or CDX Index Options ? Someone told me that they are technically equal only when Par Spread is equal to Standard Coupon, is that correct.
I have got this interview question twice. Does anyone know from which interview question book or another source this question comes from? It may be some well known source as two different interviewers asked the same question, but unfortunately I don't know the source. Here is what I did during the interviews: App...
I have tried the above the code to scrape Bursa Malaysia stock exchange. Bursa Malaysia has about 968 stocks but the code below only scrape 40 of it. Any amendment to the code? import requests import json import time BASE_URL = "https://in.finance.yahoo.com/screener/unsaved/4a033d87-0423-46a6-9b83-5565629ef366?...
Here is the code to scrape all symbols present in that yahoo-finance screener. You can simply create a screener [here](https://finance.yahoo.com/screener) I have modified the code a little bit because yahoo-finance was returning an empty 404 response when working with the python requests module. Similar to this [iss...
I am analysing the price movement of a U.S. stock in conjunction with its open interest on calls vs puts. If within a month, the call open interest drastically declines (even relative to put open interest), could this lead to a drop in the price of the underlying? My reasoning goes as follows. Investors buy calls in...
Can a decrease in call open interest drive the stock price down?
How to identify between Analytical, Numerical and ML Model based option pricing?
I have a question regarding the use of alternative vega sensitivities (bank system sensitivities) in the context of the Vega Risk Charge of the SBM. The article 325t.6 of the CRR allows banks to calculate vega sensitivities on the basis of a linear transformation of alternative definitions of sensitivities in the calc...
Market Risk FRTB - How to demonstrate that the linear transformation of the alternative definition of Vega reflects the actual vega risk?
An (forex) Order Book (OB) for a trading (forex) pair (e.g. XBT-USD) has ASK and BID rows. Each row has PRICE and VOLUME (at least). Each row represents an offer for selling or buying a maximum of VOLUME amount at PRICE. Starting with a START-AMOUNT in BASE currency, how can I calculate exactly how many rows, starti...
1. This question is unclear to me, what is your goal? 2. It's in BTC 3. Both BTC 4. You can increase your BTC position and decrease your USD position by buying the pair and decrease your BTC position and increase your USD position by selling the pair. You can just multiply by the number of decimals to get ints?
Consider the Cramér–Lundberg model $$\hspace{8em}R(t)=u+c\,t-\sum_{j=1}^{N(t)}V_{j}\,,\hspace{8em}(1)$$ where $c$ and $u$ are positive constants, $N(t)$ is a Poisson process with a rate $\lambda$ (in other words, $N(t_{2})-N(t_{1})$ is Poisson-distributed with a mean $(t_{2}-t_{1})\lambda$), and the $V_{j}$'s are ind...
Consider the Cramér–Lundberg model $$\hspace{8em}R(t)=u+c\,t-\sum_{j=1}^{N(t)}V_{j}\,,\hspace{8em}(1)$$ where $c$ and $u$ are positive constants, $N(t)$ is a Poisson process with a rate $\lambda$ (in other words, $N(t_{2})-N(t_{1})$ is Poisson-distributed with a mean $(t_{2}-t_{1})\lambda$), and the $V_{j}$'s are ind...
Say I want to do arbitrage between Exchange A and Exchange B on USD/AAPL. This requires that I hold equal parts USD and AAPL. I don't want exposure to the movement in AAPL. How do I hedge my AAPL inventory so that I remain market neutral?
How do you hedge your inventory when doing arbitrage?
Consider the Cramér–Lundberg model $$\hspace{8em}R(t)=u+c\,t-\sum_{j=1}^{N(t)}V_{j}\,,\hspace{8em}(1)$$ where $c$ and $u$ are positive constants, $N(t)$ is a Poisson process with a rate $\lambda$ (in other words, $N(t_{2})-N(t_{1})$ is Poisson-distributed with a mean $(t_{2}-t_{1})\lambda$), and the $V_{j}$'s are ind...
Consider the Cramér–Lundberg model $$\hspace{8em}R(t)=u+c\,t-\sum_{j=1}^{N(t)}V_{j}\,,\hspace{8em}(1)$$ where $c$ and $u$ are positive constants, $N(t)$ is a Poisson process with a rate $\lambda$ (in other words, $N(t_{2})-N(t_{1})$ is Poisson-distributed with a mean $(t_{2}-t_{1})\lambda$), and the $V_{j}$'s are ind...
Too long for a comment - so I add this here as an answer. Not sure what delta hedging arbitrage is but I think you define delta as a difference in price? While cross listing is not uncommon, I think AAPL is actually [Nasdaq only](https://investor.apple.com/faq/default.aspx) as opposed to say IBM which is [cross-lis...
From [this discussion][1], I know when to use the log, but now I am wondering **how to guess the trends of log graph of accumulative data based on linear accumulative data graph**? For example, this table is linear data of the cumulative number of deaths per capita [![enter image description here][2]][2] And ...
What is the relation between the trend of log and linear in accumulative data?
As per this article, "the mathematically intuitive way to expose gamma is through the square of the underlying price": https://llllvvuu.dev/blog/unbundling-gamma Can someone explain this? Thank you!
Why is gamma exposed through the square of spot prices?
I am trying to price an Interest Rate Swap using QuantLib Python, and everything seems to be fine. However, I can't seem to understand where I can specify the number of fixing days. Below are my codes. Kindly note that the curve used for discounting and for the US Libor is hypothetical, and only for illustration pur...
Too long for a comment - so I add this here as an answer. Not sure what delta hedging arbitrage is but I think you define delta as a difference in price? While cross listing is not uncommon, I think AAPL is actually [Nasdaq only](https://investor.apple.com/faq/default.aspx) as opposed to say IBM which is [cross-lis...
I was searching on the products issued by the banks to retail investors, and saw some of the Dual Range Accruals having underlying as USD CMS 30Y - 2Y, and USD CMS 10Y, each having low barrier and high barrier respectively. I understand it is quite obvious that we could think about the correlation and volatility si...
Rationale for the CMS Spread and CMS Rate as being underlying for Dual Range Accrual?
Consider the Cramér–Lundberg model $$\hspace{8em}R(t)=u+c\,t-\sum_{j=1}^{N(t)}V_{j}\,,\hspace{8em}(1)$$ where $c$ and $u$ are positive constants, $N(t)$ is a Poisson process with a rate $\lambda$ (in other words, $N(t_{2})-N(t_{1})$ is Poisson-distributed with a mean $(t_{2}-t_{1})\lambda$), and the $V_{j}$'s are ind...
Assume that we have an arbitrage-free and complete market. The well known formula for the arbitrage-free price of an attainable derivative $X$ at time $0 \leq t \leq T$ is given by: \begin{align*} V(t)=e^{-r(T-t)}E_Q(X \vert {\cal F}_t) \end{align*} Where $r$ is the risk-free interest rate and $E_Q$ is the expected...
My answer on MSE has details on the computations of $\mathbb{E}(v_s \, | \, \mathcal{F}_t)$ and $\mathbb{E}(v_s \, | \, \mathcal{v}_t)$, which answers why the rough Bergomi model is not Markovian. See [here][1]. However, on this post you have an extra question: why do we rip out $C_H$ in our definition of $\tilde{W}...
Consider the Cramér–Lundberg model $$\hspace{8em}R(t)=u+c\,t-\sum_{j=1}^{N(t)}V_{j}\,,\hspace{8em}(1)$$ where $c$ and $u$ are positive constants, $N(t)$ is a Poisson process with a rate $\lambda$ (in other words, $N(t_{2})-N(t_{1})$ is Poisson-distributed with a mean $(t_{2}-t_{1})\lambda$), and the $V_{j}$'s are ind...
Consider the [Cramér–Lundberg model](https://en.wikipedia.org/wiki/Ruin_theory#Classical_model) $$\hspace{8em}R(t)=u+c\,t-\sum_{j=1}^{N(t)}V_{j}\,,\hspace{8em}(1)$$ where $c$ and $u$ are positive constants, $N(t)$ is a Poisson process with a rate $\lambda$ (in other words, $N(t_{2})-N(t_{1})$ is Poisson-distributed w...
Consider the [Cramér–Lundberg model](https://en.wikipedia.org/wiki/Ruin_theory#Classical_model) $$\hspace{8em}R(t)=u+c\,t-\sum_{j=1}^{N(t)}V_{j}\,,\hspace{8em}(1)$$ where $c$ and $u$ are positive constants, $N(t)$ is a Poisson process with a rate $\lambda$ (in other words, $N(t_{2})-N(t_{1})$ is Poisson-distributed w...
This strategy is inspired by the Dual Momentum strategy, but instead of comparing US stocks, ex-US stocks and bonds, it expands to all ETFs and takes into account the relative momentum between asset classes, regions, sectors, and leveraged ETFs. The idea is, that this strategy would take advantage of momentum's indu...