instruction
stringlengths
15
26.1k
How to trade on whether one asset will be higher than another?
First time posting at Quantitative Finance, hope the question is well suited in this stack section. I was wandering, where does big companies like Bloomberg or Reuters takes theyr data? Since now, in my aplication I scrape data directly from Reuters (for foundamental analysis), I'd like to bypass this problem and g...
Where does big companies get data?
Assuming we're talking about US, the companies report their quarterly numbers via 10-K/Q forms available on EDGAR, e.g. https://www.sec.gov/ix?doc=/Archives/edgar/data/0000034088/000003408821000051/xom-20210630.htm For the sell side estimates/consensus numbers they typically get them directly from the analysts. ...
First time posting at Quantitative Finance, hope the question is well suited in this stack section. I was wondering, where does big companies like Bloomberg or Reuters get their data? Since now, in my application I scrape data directly from Reuters (for fundamental analysis). I'd like to bypass this problem and get...
Where do big data companies get data?
If you shop [Eurex][1] for 1-minute bars, it's actually fairly cheap: comes down to 37 euro for month of data for DAX futures. [![enter image description here][2]][2] [1]: https://datashop.deutsche-boerse.com/tick-data?q=FDAX [2]: https://i.stack.imgur.com/D1Qqk.png
*Question 1:* I know website’s like: https://optioncreator.com/ display the pricing and payoff graphs of regular plain vanilla puts and calls. I would like to know if there is any website that displays the payoff graph and pricing of digital options(a.k.a binary calls or put)? ***Purpose:*** Read a post on quant: h...
I know it is a pretty basic question and I can get this result with BS, however I don't understand it conceptually. As the time approaches maturity, it is less likely to end out of the money, so I would say that the option value should be higher (positive theta), as it is almost sure that you will exercise it. Coul...
Why doesn't the value of an in-the-money option increase approaching expiration?
There is no difference in real world settings. Market practitioners usually always price a digital as a tight call spread to capture skewness. For example, setting strikes at $$± = ±1/2,$$ in the limit of $ → 0$, the payoff approaches that of a digital. The reason is that a tight call spread, by using two vanilla ...
When building a P&L attribution system for options, what is the market convention for attributing daily P&L between delta, gamma, vega, and theta Greeks? I'm particularly interested in how the "cross-effects"* between delta and gamma are handled and would love to see a simple numerical example if that's possible. Than...
Public and private warrants of a SPAC post merger (Initial Business Combination or IBC) are often very similar. Notable differences are 1) cashless exercise of the private warrants and 2) redemption feature of the private warrants. 1) Cashless exercise: The warrants can be exercise in either cash (pay strike of 11.5...
An old question, but I'd like to add to the answer by Kiwiakos that it is not only correlation that results in skew (defined as the slope of the ATM implied volatility), but actually the product of correlation and the "vol of vol", which explains why/how skew exists when volatility is stochastic. (Of course there could...
An old question, but I'd like to add to the answer by Kiwiakos that it is not only correlation that results in skew (defined as the slope of the ATM implied volatility), but actually the product of correlation and the "vol of vol", which explains why/how skew exists when volatility is stochastic. (Of course there could...
An old question, but I'd like to add to the answer by Kiwiakos that it is not only correlation that results in skew (defined as the slope of the ATM implied volatility), but actually the product of correlation and the "vol of vol", which explains why/how skew exists and its magnitude when volatility is stochastic. (Of ...
An old question, but I'd like to add to the answer by Kiwiakos that it is not only correlation that results in skew (defined as the slope of the ATM implied volatility), but actually the product of correlation and the "vol of vol", which explains why/how skew exists and its magnitude when volatility is stochastic. (Of ...
I have just started studying finance and stochastic calculus so apologies if this question is too naive. I was first introduced to stocks and bonds as risk and riskless investment assets. Then a new idea is introduced, that of a call option. At first sight, this seems like a new independent investment product, and t...
Why are options studied separately from a portfolio of stocks and bonds?
"But at the same time, it has left me confused. If I could achieve such a portfolio using stocks/bonds then why are call options studied separately?" Good question! The short answer: because it turns out options cannot be synthesized using stocks and bonds only, except in the highly idealized case of Black-Scholes w...
"But at the same time, it has left me confused. If I could achieve such a portfolio using stocks/bonds then why are call options studied separately?" Good question! The short answer: because it turns out options cannot be synthesized using stocks and bonds only, except in the highly idealized case of Black-Scholes w...
Yes, conceptually, you can replicate options with stocks and bonds, but why would you when options are readily available? Put another way, you can replicate a Coke with the right amount of sugar, water, flavorings, etc., but why would you do that when you can just buy a bottle. How easy are those ingredients to get ...
Following is a part of the text from Steven Shreve Stochastic Calculus for Finance II, for pricing the European Option in Black Scholes model. [![European Option Pricing in Black-Scholes model][1]][1] The argument is that today I start by selling a European call option at price $c(0,S(0))$ and build a portfolio v...
Why is call option value same as portfolio value at all times in Black Scholes model?
Following is a part of the text from Steven Shreve Stochastic Calculus for Finance II, for pricing the European Option in Black Scholes model. [![European Option Pricing in Black-Scholes model][1]][1] The argument is that today I start by selling a European call option at price $c(0,S(0))$ and build a portfolio v...
Following is a part of the text from Steven Shreve Stochastic Calculus for Finance II, for pricing the European Option in Black Scholes model. [![European Option Pricing in Black-Scholes model][1]][1] The argument is that today I start by selling a European call option at price $c(0,S(0))$ and build a portfolio v...
Following is a part of the text from Steven Shreve Stochastic Calculus for Finance II, for pricing the European Option in Black Scholes model. [![European Option Pricing in Black-Scholes model][1]][1] The argument is that today I start by selling a European call option at price $c(0,S(0))$ and build a portfolio v...
I stumbled across an expression and I wonder how to evaluate this: $-\int_ {0} ^ {+\infty} {v(x)} dw^{+} (1-p(x))$ where $v(x)$ is some utility function and $w(p(x)) $ is a decision weighting function, dependent on some cumulative probability $p(x)$? Perhaps it's obvious but I am too blind to see it. Thanks a lot for...
Public and private warrants of a SPAC post merger (Initial Business Combination or IBC) are often very similar. Notable differences are 1) cashless exercise of the private warrants and 2) redemption feature of the private warrants. 1) Cashless exercise: The warrants can be exercise in either cash (pay strike of 11.5...
Public and private warrants of a SPAC post merger (Initial Business Combination or IBC) are often very similar. Notable differences are 1) cashless exercise of the private warrants and 2) redemption feature of the private warrants. 1) Cashless exercise: The warrants can be exercise in either cash (pay strike of 11.5...
The Federal Funds rate has exhibited regular drops at month ends since beginning of 2015. [![enter image description here][1]][1] (Source: FRED https://fred.stlouisfed.org/series/EFFR) Some studies (e.g., https://www.mdpi.com/1911-8074/14/5/204/pdf) have pointed to window dressing by banks to boost their LCR i...
Why did the month-end (ir)regularities in Effective Federal Funds Rate (EFFR) disappear in 2018?
I was able to fit HMM Model in Python on stocks data. I have completed the training and testing part. The overall fit looks good. However, I have a question, I am not able to predict the next "t+1" move. Can someone help me with how can we predict the next move based on a fitted model? I have read through multiple arti...
I'm trying to understand the relationships between return, standard deviation and mean absolute deviation. I saw someone mention: $daily return * 16 \approx annualized volatility$ $weekly return * 7.2 \approx annualized volatility$ $monthly return * 3.5 \approx annualized volatility$ So he assumes the re...
How would one calculate the correct value of the outstanding diluted shares for the fourth (last) financial quarter of a company? When using the SEC 10-Q and 10-K forms: The 10-Q forms contain the number of outstanding shares that are specific to the quarter (Q1 to Q3). The 10-K form contains the number of outstandi...
I'm trying to understand the relationships between return, standard deviation and mean absolute deviation. I saw someone mention: $daily return * 16 \approx annualized volatility$ $weekly return * 7.2 \approx annualized volatility$ $monthly return * 3.5 \approx annualized volatility$ So he assumes the re...
If we're investing money into a stock $S$ at a continuous rate, $C$, what is the probability distribution of the amount we have invested? For example, modelling a stock as GBM without contributions, $ \mathrm d S = \mu S \mathrm d t + \sigma S \mathrm d B $, gives us a lognormal distribution, $\mathrm{Lognormal(\mu ...
I have been thinking about this for a while and am at my wits end. Now assume I am pricing a call at implied vol $s$, whereas the realized volatility is $σ$. Let $C$ be the incorrect pricing function. Let me first write how this function is born. The hedged portfolio is: $dC-C_{S}dS=C_{t}dt+0.5C_{SS}s^2dt=r(C-SC_...
I have been thinking about this for a while and am at my wits end. Now assume I am pricing a call at implied vol $s$, whereas the realized volatility is $σ$. Let $C$ be the incorrect pricing function. Let me first write how this function is born. The hedged portfolio is: $dC-C_{S}dS=C_{t}dt+0.5C_{SS}s^2dt=r(C-SC_...
I have been thinking about this for a while and am at my wits end. Now assume I am pricing a call at implied vol $s$, whereas the realized volatility is $σ$. Let $C$ be the incorrect pricing function. Let me first write how this function is born. The hedged portfolio is: $dC-C_{S}dS=C_{t}dt+0.5C_{SS}s^2dt=r(C-SC_...
Hey what is the validation of XVA models (CVA, FVA etc)? As we know XVA calculation is rather complex problem (simulation, Valuation, aggregation) so what steps should be taken to check if the model can be used? Could someone briefly describe such a model validation process?
This recent paper https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3891120 (highly recommended in its entirety) has its entire section 5 devoted to XVA model validation. You may also find these ORE slides insightful https://www.opensourcerisk.org/wp-content/uploads/2018/12/ore_user_meeting_2018_patrick_buechel.pd...
I have been thinking about this for a while and am at my wits end. Now assume I am pricing a call at implied vol $s$, whereas the realized volatility is $σ$. Let $C$ be the incorrect pricing function. Let me first write how this function is born. The hedged portfolio is: $dC-C_{S}dS=C_{t}dt+0.5C_{SS}s^2dt=r(C-SC_...
Here is what I know (and correct me if I summarize incorrectly): - There are 4+ main Indexes -- S&P 500, Russell 2000, NASDAQ, and DOW Jones (among others?) - There are 11 sectors called "SPDRs" or "spiders" that have names like XLC, XRI, XLRE, etc. - [based on what this site shows,][1] it seems like these 11 sec...
I’m working on a model which creates a portfolio of options. The model has an alpha from an options trade for 1 period. Would Mean Variance optimization still apply in this situation?
I’m working on a model which creates a portfolio of options. The model has an alpha from an options trade for 1 period using several different underlying stocks. Would Mean Variance optimization still apply in this situation?
I am working on the Bachelier Model with r not equal to 0 as described in the first and most upvoted answer in following link: https://quant.stackexchange.com/questions/32863/bachelier-model-call-option-pricing-formula This is fairly easy to code and to derive delta, vega and gamma. I want to derive however other...
I'm new to credit and I'm trying to wrap my head around the following idea. I understand that the par spread $s$ is the value of the fixed coupon payment at which the fixed and floating legs are equal in present value. Therefore, for a given CDS with coupon $c$, I should expect a price of $c-s$. Therefore, if I plot th...
I tried to find the P/E ratio of a stock index. Should I calculate the weighted harmonic mean of all constituents OR select the weighted median P/E ratio as the index's P/E? many thanks!
I have read up about the discount curve that is being used to value securities. The multi-curve methodology for valuing derivatives was mainly adopted because LIBOR was no longer seen as a proxy for risk-free yield (and hence the OIS curve is now used). What I am trying to understand is **why should the discount cur...
Why should the Discount Curve be risk-free?
I have been looking at the onboarding of some derivative products, and the subject of our internal stress framework. I suspect like similar businesses, we have a set of stress scenarios, mostly based on historical events but given ad hoc tweaks, augmentations etc. at the discretion of the risk group. These are circula...
Your process of calculating the impact of market stress scenarios sounds more manual / less automated than best industry practices. The disadvantages of having manual processes incclude: * it's expensive, so you're reluctant to add new scenarios to your portfolio of scenarios. (You can't just click a button and add ...
Randomly pick a (long only) portfolio from all possible portfolios over the S&P 500. The expected performance of this portfolio should equal the actual performance of the S&P 500. In contrast, consider investing in the S&P 500 as a zero sum game, where a zero outcome means that a portfolio provides the return of the...
Does random outperform naïve investment?
If we're investing money into a stock $S$ at a continuous rate, $C$, what is the probability distribution of the amount we have invested? For example, modelling a stock as GBM without contributions, $ \mathrm d S = \mu S \mathrm d t + \sigma S \mathrm d B $, gives us a lognormal distribution, $\mathrm{Lognormal(\mu ...
Not sure try to fit $\phi(X,f)$ makes sense: **how would you define $X$?** For a linear model $X$ is naturally defined as the beta of a linear regression. Probably you would rather need to go "one layer deeper in the definition of factors", i.e. to use characteristics of the stock (like its market cap, P/E, dividen...
On page 369 of *Quantitative Risk Management (2015)* by McNeil, Frey, and Embrechts, there is an interesting example that I do not quite understand. Suppose A makes a floating interest rate payment to B, and B pays a fixed interest to A, but now A defaults. The book says: > If interest rates have risen relative to ...
What causes the benefit of defaulted counterparty risk asymmetric in an interest swap?
What makes the benefit of defaulted counterparty risk asymmetric in an interest swap?
As for the pricing of stock, we can use the DCF method. For the pricing of bonds, we can also use the DCF method. As i understand, for the pricing of stocks and bonds, to use the DCF method, we must know the "risk premium" in order to discount the future cashflows. I am wondering what difference between stocks/bond...
In a few options positions I'm currently holding I noticed delta values of ~0.6 while gamma is ~1.0 which surprised me as I thought delta can never be greater than 1 - meaning for every 1\$ move in the underlying security, option price moves for 1\$ (x100) as well. According to [this][1] delta **can** be greater than 1...
What is the greatest theoretical delta value?
Not sure what you mean by pricing this trade since the price of a future is given by the exchange. You can get bond futures data for free from [CME][1] (TU is the symbol for the 2y and WN for the 30y). I’ll assume you’re asking about weighting the legs. There are many ways to do it but here are some common ones: 1) **...
Not sure what you mean by pricing this trade since the price of a future is given by the exchange. You can get bond futures data for free from [CME][1] (TU is the symbol for the 2y and WN for the 30y). I’ll assume you’re asking about weighting the legs. There are many ways to do it but here are some common ones: 1) ...
Not sure what you mean by pricing this trade since the price of a future is given by the exchange. You can get bond futures data for free from [CME][1] (TU is the symbol for the 2y and WN for the 30y). I’ll assume you’re asking about weighting the legs. There are many ways to do it but here are some common ones: 1) ...
I'm hearing more and more about OLOs Bonds or Linear bonds, Can someone please explain the difference between this and classic bond ?
I have a currency pair usdinr put option with strike price at 73.5 INR, risk free rate 0, underlying price of 75.4025, days to expiry is 15 and iv is 5.9%. Delta of this option is -0.019 and gamma is 0.051. So I am interpreting gamma as change in delta with 1% change in underlying. So by this logic if I increase the un...
Can gamma of an option be greater than its delta?
I understand that implied volatility is the expected volatility of an underlying contract in the Black option pricing model. This is easy to interpret for assets delivered at a point in time. But how about those delivered over a period of time, such as power? Is the IV the expected volatility of the monthly average pri...
According to the definition, for a Brownian motion it holds that $W_0 = 0$,\ and\ $W_t - W_s \in N(0, t-s), \quad t > s$. This implies that $W_t \in N(0, t)$, for all $t \geq 0$. Hence, the definition gives us the distribution of every single value in the process, if I'm not misunderstanding something. Wouldn't...
How can there be Brownian motions under different measures?
In addition to the good answer given below: think of options with almost no maturity left (i.e. 1-day before expiry): for these options, the time value of the option is almost zero, so the option value as a function of the underlying has almost fully converged to the "step-function" of the pay-off at maturity (i.e. the...
In addition to the good answer given below: think of options with almost no maturity left (i.e. 1-day before expiry): for these options, the time value of the option is almost zero, so the option value as a function of the underlying has almost fully converged to the "step-function" of the pay-off at maturity (i.e. the...
I am looking to understand more how once you have a factor (or signal) how you would go about testing this for alpha, I assume you could see if it has low correlation with other factors but how would you go about testing how "good" the factor is?
Just a few points to consider #### Performance evaluation Classics like Sharpe ratio, but also tail risks (e.g., momentum) #### Alpha Regress portfolios returns against some well-known factor models. Do you really capture something new ($\to$ look for the statistical and economic magnitude of the intercept)...
The probability of a stock touching a point A which is below the current spot price is 35%, and the probability of the stock touching a point B which is above the current spot price is 20%. How can I calculate the probability of the stock touching point A(**but B must not have been touched before A is touched**)? ...
The probability of a stock touching a point A which is below the current spot price is 35%, and the probability of the stock touching a point B which is above the current spot price is 20%. How can I calculate the probability of the stock touching point A(**but B must not have been touched before A is touched**)? ...
The probability of a stock touching a point A which is below the current spot price is 35%, and the probability of the stock touching a point B which is above the current spot price is 20%. How can I calculate the probability of the stock touching point A(**but B must not have been touched before A is touched**)? ...
The probability of a stock touching a point A which is below the current spot price is 35%, and the probability of the stock touching a point B which is above the current spot price is 20%. How can I calculate the probability of the stock touching point A(**but B must not have been touched before A is touched**)? ...
The probability of a stock touching a point A which is below the current spot price is 35%, and the probability of the stock touching a point B which is above the current spot price is 20%. How can I calculate the probability of the stock touching point A(**but B must not have been touched before A is touched**)? ...
I am working on the Bachelier Model with r not equal to 0 as described in the first and most upvoted answer in following link: https://quant.stackexchange.com/questions/32863/bachelier-model-call-option-pricing-formula This is fairly easy to code and to derive delta, vega and gamma. I want to derive however other...
The probability of a stock touching a point A which is below the current spot price is 35%, and the probability of the stock touching a point B which is above the current spot price is 20%. How can I calculate the probability of the stock touching point A(**but B must not have been touched before A is touched**)? ...
I've read the OpenGamma paper https://quant.opengamma.io/CDS-Options-OpenGamma.pdf on **CDS Options**, and noticed a small discrepancy. So I wanted to double-check my understanding. In **Section 6.4** the option payoff is defined as [![OptionPayoff][1]][1] with the default-adjusted forward portfolio swap pr...
The probability of a stock touching a point A which is below the current spot price is 35%, and the probability of the stock touching a point B which is above the current spot price is 20%. How can I calculate the probability of the stock touching point A(**but B must not have been touched before A is touched**)?
I'm trying to wrap my head around Greeks, and I'm getting a little bit confused. For example, let's say my portfolio holds a long 5 month ATM call with strike \$20, and short 2 month call with strike \$60. Now, if my underlying rises to \$40, what happens to my $\Delta$, $\Gamma$ and $\nu$ega? I'm not exactly sure how ...
I'm trying to wrap my head around Greeks, and I'm getting a little bit confused. For example, let's say my portfolio holds a long 5 month ATM call with strike \$20, and short 2 month OTM call with strike \$60. Now, if my underlying rises to \$40, what happens to my $\Delta$, $\Gamma$ and $\nu$ega exposures? I'm not exa...
I am exploring to use the ql.FdBlackScholesAsianEngine and ql.FdBlackScholesBarrierEngine using python code. Somebody suggested that I need to adjust the volatility skew and also adjust the European or American volatility using moment matching before pricing the asian or barriers using EU/AM based implied volatility. W...
I am exploring to use the ql.FdBlackScholesAsianEngine and ql.FdBlackScholesBarrierEngine using python code to price commodity options with implied volatility from traded European or American options. Somebody suggested that I need to adjust the volatility skew and also adjust the European or American volatility using ...
I'm trying to make a payment schedule for different bonds in quantlib. For example, I made such a schedule: schedule = ql.Schedule(effective_date, maturity_date, ql.Period(ql.Semiannual), ql.India(), ql.ModifiedFollowing, ql.Actual365Fixed.Standard, ql.DateGeneration.Backward, False) However, when I am t...
Suppose that now is August 2006 and we have the following zero-coupon bonds: `Maturity: August 2007, Price: 95,53` `Maturity: August 2008, Price: 91,07` `Maturity: August 2009, Price: 86,2` `Maturity: August 2010, Price: 81,08` Would you expect the yield on a non-zero coupon bond maturing in August 2010 ...
I am trying to understand the purpose of inputs the software of my company is using. Amongst others it needs calibration instruments, a model type, initial values of the respective underylings and a yield curve. Furthermore one can input the forward price curve of the respective underlyings. The pricing of derivatives ...
Why would one need forward prices to perform derivatives pricing?
I'm currently on a mission trying to calculate option prices using the rough Heston model. I've found that this is usually done using the characteristic function of the model, but I must admit that I don't really understand which formulas that are applicable, and how they're derived. I feel quite comfortable with the m...
Suppose we have an HJB equation of the form $$ \frac{\partial v}{\partial t}+\frac{1}{2}\sigma^{2}\frac{\partial^{2}v}{\partial s^{2}}+max_{\delta^{a}}\left\{ \lambda^{a}(\delta^{a})\left[v(t,s,x+s+\delta^{a},q-1)-v(t,s,x,q)\right]\right\}+max_{\delta^{b}}\left\{ \lambda^{b}(\delta^{b})\left[v(t,s,x-s+\delta^{b},q+1)...
I am trying to understand the purpose of inputs the software of my company is using. Amongst others it needs calibration instruments, a model type, initial values of the respective underylings and a yield curve. Furthermore one can input the forward price curve of the respective underlyings. The pricing of derivatives ...
Considering each point is 2500, how can I get the volatility of the jun 24 contract? On tastyworks I'm seeing a 0.7% iv for the contract, how can I translate it to standard deviation? Ex:sp500 15%stdev, gold 20% stdev
*This was too long for a comment, so I'm writing it as an answer.* I have provided some interesting literature that will give you insight into the common pitfalls of backtesting algorithmic trading strategies. ## Marcos Lopéz de Prado on backtesting: Marcos Lopéz de Prado provides some very [good slides](https:/...
The core of my question comes down to wondering what happens in the following scenario: > Consider a situation where it turns out that USDT (Tether) is actually not backed by any assets, which would mean that its value essentially goes from \$1 to \$0. What is the impact on people with investments in cryptocurrencie...
How does the cryptocurrency market rely on USD Tether?