instruction
stringlengths
15
26.1k
I understand the formula of an asset return for an obligor i is given by the following: $$A_i = \sqrt{w_i}*Z + \sqrt{1-w_i}*\epsilon_i $$ My question is - How do I calculate $w_i$? I have the PD, LGD and EAD data for each obligor, as well as the covariance matrix for the asset class of each obligor (I have about 5...
How do I estimate the factor sensitivity in a Vasicek Single Factor Model?
Although Math SE might be a bit more suited for this one, I wanted to give this one a try. <hr> ### Problem summary Given a draw $x_{n-1}$ from the unit interval $[0,1]$, we accept the draw $x_n$ if $x_n>x_{n-1}$, else we stop at draw $N=n$, i.e. $N$ is a stopping time. We are looking for some properties of the...
I've been wondering, if there exists a zero-cost arbitrage trading strategy in some market, does that also mean that there also has to be a negative-cost arbitrage trading strategy in the same market? I did a small experiment with a simple market of two assets, the riskless one and a risky one, in a binomial tree se...
Does zero cost arbitrage imply the existence of negative cost arbitrage?
Although Math SE might be a bit more suited for this one, I wanted to give this one a try. <hr> ### Problem summary Given a draw $x_{n-1}$ from the unit interval $[0,1]$, we accept the draw $x_n$ if $x_n>x_{n-1}$, else we stop at draw $N=n$, i.e. $N$ is a stopping time. We are looking for some properties of the...
Consider the random process where you keep drawing samples from [0,1] uniformly at random as long as the current sample is larger than the previous sample. What are the Expected value and the Variance of the number of samples you draw? I have tried to think of a discrete case with Wald's Equality with step of 0.1. S...
Assume that the stock price is currently trading at $S_0$. It is known that the stock price **follows a binomial tree**, such that its price will be either $S_0e^{\theta_u}$ or $S_0e^{−\theta_d}$ over the next month. The monthly risk-free rate is $r$ and is continuously compounded. Let's say that I have the simulated m...
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**)?
What is the probability of touching point A first?
There is a well known approach to annualize volatility of log-returns for a given frequency. Let $P(t)$ a price process and define a log return $r_l(t)$ as $$r_l(t) = \ln \left( \frac{P(t)}{P(t-1)} \right).$$ An aggregate return over $n$ periods is $$ \begin{equation} \begin{aligned} r_l^A(t) &= \ln \left( \fra...
Each libor contract is 500,000 gbp. Can I hedge it by going short 8 gbp/usd futures per libor to hedge out currency risk considering each gbp/usd futures is 62,500 British pounds?
There is a well known approach to annualize volatility of log-returns for a given frequency. Let $P(t)$ a price process and define a log return $r_l(t)$ as $$r_l(t) = \ln \left( \frac{P(t)}{P(t-1)} \right).$$ An aggregate return over $n$ periods is $$ \begin{equation} \begin{aligned} r_l^A(t) &= \ln \left( \fra...
Is there a name for an option whose value is determined by a time difference? I mean a derivative whose contract reads something like, "If stock $X$ goes below $Y$ at time $T_1$, and $T_1$ is before $T_0$, pay out $c\times(T_0-T_1)$". The exposure is similar to that of an annuity, but different enough that I wond...
* All the excerpts are from the book [investment][1], written by Bodie. At the bottom of this post, I attached pages of the the book that show a related part of my question. # Question **1. Why the variance of term $E(r_{i}) = 0$?** > We can always decompose the return on any security into the sum of its expect...
Why additivity assumption holds in CAPM and factor models? (Screenshot of a textbook included)
Norgate Data offers US stock data inclusive of delisted stocks. Whilst we don't provide all of the information you require, we do provide a time series indicator (back to 2000) called Major Exchange Listed which provides a daily true/false indication of whether the stock was listed on a major exchange (NYSE, NYSE ...
Because I can fit e.g. ~25 distributions via ECDF (empirical cumulative distribution fitting) to correlated data, and then simulate the original data based on correlation (covariance) using the best fitting distributions for each feature, I am planning on the following MC approach: **PROPOSED MONTE CARLO APPROACH** ...
Because I can fit e.g. ~25 distributions via ECDF (empirical cumulative distribution fitting) to correlated data (including stable dist.), and then simulate the original data based on correlation (covariance) using the best fitting distributions for each feature, I am planning on the following three approaches regardin...
Because I can fit e.g. ~25 distributions via empirical cumulative distribution fitting to correlated data (including stable dist.), and then simulate the original data based on correlation (covariance) using the best fitting distribution for each feature, I am planning on the following three approaches regarding MC and...
Because I can fit e.g. ~25 distributions via empirical cumulative distribution fitting to correlated data (including stable dist.), and then simulate the original data based on correlation (covariance) using the best fitting distribution for each feature, I am planning on the following three approaches regarding MC and...
Because I can fit e.g. ~25 distributions via empirical cumulative distribution fitting to correlated data (including stable dist.), and then simulate the original data based on correlation (covariance) using the best fitting distribution for each feature, I am planning on the following three approaches regarding MC and...
Why would you need to hedge the full notional? Your currency exposure is via the margin (if you post in GBP) and the PNL, neither of which are anywhere near as much as the notional.
I calculated the distribution of the stock price changes (diffs). The diffs are multiplicative, $d_t=p_{t} / p_{t-1}$. As far as I know the distribution should look like Power law distribution (Pareto distribution). With CDF being a line on log-log plot. But the **actual CDF is not looking like a line on log-log...
Why stock prices changes don't follow Pareto Distribution?
As I understand the FED considers the employment and inflation expectation when defining the monetary policy. I wonder what is the quantitative indicator or traded instrument FED uses to derive this expectation of inflation? I don't believe the Break Even Inflation is a good explanation, because this inflation expectat...
How does FED quatify inflation expectation?
*"How does FED qua[n]tify inflation expectation?"* NY Fed survey, UoM survey, Philly Fed SPF, proprietary adjustments to breaks for various risk premia, etc. But overall, this question should probably be in economics stack exchange.
Can I combine a **one touch option**(barrier lower than current price) and **no touch option**(barrier higher than current price), so that I get a payout immediately **only if** the one touch barrier is breached **first** before the no touch **“May be”** breached later? Can a bank, market maker, issuer e.t.c price s...
Can I combine the exotics for a payout?
Should I include zeros in downside beta calculation?
As I understand the FED considers the employment and inflation expectation when defining the monetary policy. I wonder what is the quantitative indicator or traded instrument FED uses to derive this expectation of inflation? I don't believe the Break Even Inflation is a good explanation, because this inflation expectat...
How does FED quantify inflation expectation?
I am trying to reduce the Monte Carlo variance with *Control Variates* technique. In practice, I am able to reduce it with a generic European Call option, with the following formulas: $$ Z_{CV} = \frac{1}{n} \sum^n_{i=1}(\bar{Z}-c(\bar{ X }-E[X])) \\ V[Z_{CV}] = \frac{1}{n} ( \sigma^2_z+c^2\sigma^2_x-2c\rho_{xz}\s...
with control variates you are trying to reduce the variance of your Monte Carlo estimate. That is true, but you have to be careful, and properly understand what you are doing. Consider a random variable X and a sequence of i.i.d random variables $X_i$ having same distribution of $X$. Then we have the following Monte...
Coming back to my question after I replicated the paper for my thesis, where I found that my resulting SDF is always strictly positive and hovering around the value 1, just as expected given the formulation. Then, I also looked at their data and code and realized that this formulation is maybe just one way to "enforce"...
*"How does FED qua[n]tify inflation expectation?"* NY Fed survey, UoM survey, Philly Fed SPF, proprietary adjustments to breaks for various risk premia, etc. But overall, this question should probably be in economics stack exchange. [NY Fed survey][1] [UoM survey][2] [Philly Fed SPF][3] [1]: https://...
Context: I'm actually asking this in the context of this [maths education se question][1] I have. --- I have a pedagogical question to ask. https://quant.stackexchange.com/questions/22228/pricing-when-arbitrage-is-possible-through-negative-probabilities-or-something-e --> in a stochastic calculus exam I took f...
Is it fair in an introductory stochastic calculus/derivatives pricing class to ask for the price when absence of arbitrage is violated?
**Edit re close votes**: I believe this is a fair kind of opinion-based question because it's like those ethics questions in academia se or workplace se or because it's pedagogical?. --- Context: I'm actually asking this in the context of this [maths education se question][1] I have. --- I have a pedagogica...
Also now asked about here: https://quant.stackexchange.com/questions/68038/is-it-fair-in-an-introductory-stochastic-calculus-derivatives-pricing-class-to-a --- Assume that we have a general one-period market model consisting of $d+1$ assets and $N$ states. Using a replicating portfolio $\phi$, determine $\Pi(0...
**AGAIN, Edit re close votes**: I believe this is a fair kind of opinion-based question because it's like those ethics questions in academia se or workplace se or because it's pedagogical?. --- Context: I'm actually asking this in the context of this [maths education se question][1] I have. --- I have a ped...
**AGAIN, Edit re close votes**: I believe this is a fair kind of opinion-based question because it's like those ethics questions in academia se or workplace se or because it's [pedagogical][1]. --- Context: I'm actually asking this in the context of this [maths education se question][2] I have. --- I have a...
>Dumb question: is risk-neutral pricing taking conditional expectation? $\tag{1}$ In trying to recall intuition for risk-neutral pricing, I think I read that we should **price derivatives risk-neutrally because the risk is already incorporated in the stock** or something. I also think I remember NNT/[Nero][1] (Nassi...
I have a simple replication pricing implementation for 1st gen exotics (digitals, single and double barriers, etc.). In order to effectively test strategies I want to price "like" strikes across securities and products. Where "like" just infers that I've normalized the likelihood of touch for each security, product, et...
Is there an analogous strikeFromDelta implementation for 1st gen barrier options?
First of all, I would re-order your approches this way 1. Monte-Carlo of daily returns 2. Bootstrap of daily returns 3. Block Bootstrap of 20 days Second I would like to comment on *what you want to do with the data?* It seems to me that you target to implement a "*sliding (20 days) robust Markowitz portfoli...
I have a simple replication pricing implementation for 1st gen exotics (digitals, single and double barriers, etc.). In order to effectively test strategies I want to price "like" strikes across securities and products. Where "like" just infers that I've normalized the likelihood of touch for each security, product, et...
I am looking at the different ways in which FX options (say EUR/USD option) are quoted in interbank markets. Is it quoted using the option chain? I also saw a piece where it is said that it is quoted based on implied volatilities. I am a bit confused here. Is option chain only quoted to retail investors and not in th...
What is higher order moment of firms?
I am interested in estimating the price of a European Call Option using the Montecarlo simulation, to get a good approximation of the analytical Black Scholes formula, so a very simple task. Performing the simulation, I have noticed one thing: **if I change the seed for the random numbers, I get different results. Is t...
I am currently trying to simulate correlated GBM paths and I found the Cholesky Composition for it. From my understanding, the Cholesky Decomposition can be used to create correlated random variables from uncorrelated random variables. However, it does not take into account the drift, which is exactly where I am strugg...
**Question:** Imagine it is a Monday. Company A (stock you are following) has an upcoming dividend payment on Wednesday and an earnings announcement on Thursday. Company A stock is currently trading at \$10; dividend will be \$5. The implied volatility of the call option (strike = 10, expiration = Friday end of day) is...
Volatility basics: what happens to implied volatility of stock in week of earnings and dividend payment?
I am interested in estimating the price of a European Call Option using the Montecarlo simulation, to get a good approximation of the analytical Black Scholes formula, so a very simple task. Performing the simulation, I have noticed one thing: **if I change the seed for the random numbers, I get different results. Is t...
RUBUSD - how many RUB per USD TRYUSD - how many TRY per USD RUBTRY - how many RUB per TRY RUBUSD/TRYUSD = RUBTRY 64.42/4.48 = 14.3795 which is less RUB per TRY compared to the direct RUBTRY quote. Use your USD to get TRY - gives 4.48M Use TRY to get RUB - gives 64.4672M Use RUB to buy USD - give...
My question is about the size breakpoint of Fama French portfolios. Anyone knows why in US market data they used the median as a size breakpoint to construct the six portfolios, but when they used the developed and emerging markets data they used 90%/10% as a size breakpoint?
RUBUSD - how many RUB per USD TRYUSD - how many TRY per USD RUBTRY - how many RUB per TRY RUBUSD/TRYUSD = RUBTRY 64.42/4.48 = 14.3795 which is less RUB per TRY compared to the direct RUBTRY quote. Use your USD to get TRY - gives 4.48M Use TRY to get RUB - gives 64.4672M Use RUB to buy USD - give...
Just for education purpose. Assuming I have some trading ideas that involves the use of **OTC derivatives** but I may not be able to put them into practice due to *regulatory issues* and *huge minimum capital requirements*. Can I get the pricing(*i.e the max return and max risk payoff*) of a custom made derivative(...
Requesting for price?
I am trying to self-study and came across this question, I am not sure how to answer this? > The table below shows retail prices of a single product in three countries. Use the cross-rate table and state which country’s currency is relatively (i) under-valued, and (ii) over-valued. [![enter image description her...
I am trying to self-study and came across this question, I am not sure how to answer this. I think I should transform all of the product's quoted prices to USD then compare them, is that correct? > The table below shows retail prices of a single product in three countries. Use the cross-rate table and state whic...
If you need this for educational purposes only, you can basically get all you need from reading papers. For example, Asian options are [not always cheaper](https://www.researchgate.net/profile/George-Ye/publication/240315692_Asian_Options_Can_be_More_Valuable_than_Plain_Vanilla_Counterparts/links/55f4d42708ae6a34f66092...
I have collected monthly stock returns (in %) denominated in EUR and exchange rate USD/EUR. I am trying to adjust the monthly stock returns denominated in EUR to monthly stock returns denominated in USD. How do I calculate the currency adjusted returns?
CURRENCY ADJUSTED RETURNS: How to adjust stock returns in foreign currency (e.g., EUR) to local currency (USD)?
If you need this for educational purposes only, you can basically get all you need from reading papers. For example, Asian options are [not always cheaper](https://www.researchgate.net/profile/George-Ye/publication/240315692_Asian_Options_Can_be_More_Valuable_than_Plain_Vanilla_Counterparts/links/55f4d42708ae6a34f66092...
I have collected monthly stock returns (in %) denominated in EUR and exchange rate EUR/USD. I am trying to adjust the monthly stock returns denominated in EUR to monthly stock returns denominated in USD. How do I calculate the currency adjusted returns? So far I have calculated the monthly change in the exch...
If the [link](https://quant.stackexchange.com/questions/33702/converting-international-equity-returns-to-usd/33709#33709) is insufficient, does [this](https://www.investmentfrontier.com/2017/06/19/calculate-currency-adjusted-returns/) work? [![enter image description here][1]][1] [1]: https://i.stack.imgu...
We're building a multi-factor model for climate risk by adding an additional factor for carbon risk on top of a Fama and French 3 factor model. This is open source at https://github.com/opentaps/open-climate-investing We've tested the additional carbon risk factor and found that it increases the R2 of the regressio...
How do we know if an additional factor has improved the predictive power of a Fama French 3 factor equity model?
I read about stochastic volatility models (e.g. https://en.wikipedia.org/wiki/Stochastic_volatility) and those models are quite simple, but the most important feature is that parameters are quite empirical and I can not clearly see how the paramaters of stochastic differential equations are connected with the fundament...
Stochastic (volatility) models with the elements of fundamental analysis - are there such models and why not?
Hi I am considering a question: Give you have a global portfolio, consisting of U.S stocks, Euro Stocks or even Japan stocks and you have to rebalance daily according to my calculated trading signals. After the signals are calculated, what should i do to rebalance the whole portfolio by countries according to the tim...
I have been reading *Advances in Financial Machine Learning* by *Marcos López de Prado* and came across different Bar types, and simulating **Volume Bars** from execution data myself. My understanding of **Volume Bars** is that they are based on a **given number of shares traded (volume)**. Each bar represents trade...
[![enter image description here][1]][1] [![enter image description here][2]][2] I'm currently self-studying to be quant and have been thoroughly enjoying PW's book. I have some questions regarding his derivation of Ito's lemma. Specifically, I can see that the first line in his expansion comes from $$ \begi...
With respect to size in the U.S., Fama and French calculate breakpoints from the NYSE sample only, but apply the breakpoints to the whole sample of NYSE, AMEX, and NASDAQ stocks. You can find this definition on Kenneth R. French's website [here]( https://mba.tuck.dartmouth.edu/pages/faculty/ken.french/Data_Library/t...
Background: I am conducting some research on equity returns across Denmark, Finland, Norway and Sweden. The analysis is seen from a Danish investor’s point of view, and therefore I have currency adjusted all return data into DKK. All data is retreived from Thomson Reuters Eikon. Question: Right now I am try...
Yes. [Size, value, and momentum in international stock returns](https://www.google.com/url?sa=t&source=web&rct=j&url=https://citeseerx.ist.psu.edu/viewdoc/download%3Fdoi%3D10.1.1.409.2911%26rep%3Drep1%26type%3Dpdf&ved=2ahUKEwjV5Jr26ZrzAhX1g_0HHXtyCtkQFnoECBMQAQ&usg=AOvVaw2Mn3sMX6jwBCvaMecdfXv5&cshid=1632597305065) b...
Background: I am conducting some research on equity returns across Denmark, Finland, Norway and Sweden. The analysis is seen from a Danish investor’s point of view, and therefore I have currency adjusted all return data into DKK. All data is retreived from Thomson Reuters Eikon. Question: Right now I am try...
With respect to size in the U.S., Fama and French calculate breakpoints from the NYSE sample only, but apply the breakpoints to the whole sample of NYSE, AMEX, and NASDAQ stocks. You can find this definition on Kenneth R. French's website [here]( https://mba.tuck.dartmouth.edu/pages/faculty/ken.french/Data_Library/t...
Yes. [Size, value, and momentum in international stock returns](https://www.google.com/url?sa=t&source=web&rct=j&url=https://citeseerx.ist.psu.edu/viewdoc/download%3Fdoi%3D10.1.1.409.2911%26rep%3Drep1%26type%3Dpdf&ved=2ahUKEwjV5Jr26ZrzAhX1g_0HHXtyCtkQFnoECBMQAQ&usg=AOvVaw2Mn3sMX6jwBCvaMecdfXv5&cshid=1632597305065) b...
I have daily quotes for the new york and london fixings of fx options on EURUSD. I can choose between two sources: BGN and CMPN. Apparently these are based on slightly different methods of aggregating the OTC quotes. I found that there are some pretty significant differences even though these two sources are meant to c...
I've been following this Udemy course on finance and valuation basics ([Link][1]). I am particularly confused when it comes to the cash flow statement part, specifically on how to get Operating Cash Flow (Net Cash from Operating Activities) using line items on the Balance Sheet and Income Statement. Below is a snapshot...
Are Accounts Receivable and Accounts Payable already included in revenue?
In the book *"Python for Algorithmic Trading"* by Yves Hilpisch, it calculates the logarithmic return by summing up all the log values. When calculates the profit for **long** position: log(current_price/past_price) When calculates the profit for **short** position: -1*log(current_price/past_price) And summ...
Is it possible to calculate logarithmic return for short position?
Suppose that $\mathcal{I}=(X,\sigma^{\mathcal{X}},\mu)$ is an information strucutre, which is a probability space, where 1. $X=X^1\times X^2$ is the cartesian product of the individual finite sets of signals $X^1$ and $X^2$ 2. $X^1=(s^1=v_1+e_1,\sum_{i=1}^{2}k_i^1\times s^i)$, $X^2=(s^2=v_2+e_2, \sum_{i=1}^{2}k_...
A question in information strucutres and probability measures - How are they connected?
In the book *"Python for Algorithmic Trading"* by Yves Hilpisch, it calculates the logarithmic return by summing up all the log values. When calculates the profit for **long** position: log(current_price/past_price) When calculates the profit for **short** position: -1*log(current_price/past_price) And summ...
I am trying to understand how to calculate FHS VaR for a portofolio of vanilla swaps. I think I understand the main ideas behind FHS VaR and how to implement it for other assets such as equities. I have the historical underlying yield curves for the look-back period and I was thinking to reprice the swaps for each hist...
Did you try the differences? You can check out logarithmic properties in [this answer](https://quant.stackexchange.com/a/64041/54838). Specifically, > Reason 2: The log difference is independent of the direction of change If you code it, you see that the logarithmic return for $$ -1*log(p_1/p_0) = log(p_0/p_...
Did you try the differences? You can check out logarithmic properties in [this answer](https://quant.stackexchange.com/a/64041/54838). Specifically, > Reason 2: The log difference is independent of the direction of change If you code it, you see that the logarithmic return for $$ -1*log(p_1/p_0) = log(p_0/p_...
In the book *"Python for Algorithmic Trading"* by Yves Hilpisch, it calculates the logarithmic return by summing up all the log values. When calculates the profit for **long** position: log(current_price/past_price) When calculates the profit for **short** position: -1*log(current_price/past_price) And summ...
Is there an "analytical" method to price American options (approximated as daily Bermudans) in the Black-Scholes model using backward induction? $$V_T(S) = \max(K-S, 0)$$ $$V_{T-\Delta t}(S) = \max(K-S, \operatorname{BS}(S, K, \Delta t, \sigma,r, q))$$ Then you could find the exercise boundary point (probably nu...
Let us suppose for concreteness that the 10y swap rate is 0.5% today and was 7% a year and and 6.5% a "year minus a day" ago... >reprice the swaps for each historical scenario and calculate returns as the difference between the swaps PV from each scenario and the today's PV This won't help you at all, really. Tak...
which instruments are used to strip the SOFR curve for the short term of the curve(below 1 y) ? there are no swaps with maturity under 1 year, right? thanks
which market instruments are used to strip the SOFR curve under 1 year?
## A simple model of the firm Consider a firm with the following properties - The firm is a monopolist. - The firm is fully equity-financed. - The firm owns production assets which the firm can switch on or off, depending on the level of an exogenous process $X$ (that may be the productivity of the assets, d...
Downloaded all historical data for Oslo Stock Exchange from Yahoo Finance (yfinance), and picked a random stock to check if the data corresponds with what I see on different newssites. If I look at NAS.OL from Yahoo at 2015-10-21, the close price is about 19911 with a volume of 4232. But if I look at the data fro...
Big differences in Yahoo stock data contra Euronext, why?