instruction
stringlengths
35
27.7k
What's an example of fx/ois spread , lets say I am looking at BOE , what spread would I be looking at to see the funding stress or to see if year end turns is trading at a premium or now . I am on bloomberg.
In fixed income markets there seem to be two prevailing term structure modelling approaches: Market Models HJM Framework In Market Models, such as the LIBOR Market Model (LMM) and SABR it is common to model market observables such as the Simple Forward Rates (LIBOR rates) or swap rates at different maturities. In the...
I have a pricing formula that is 300x the speed of the QuantLib's Heston pricing class. Is it incredibly slow? For context, on a slow 1.6 GHz Dual-Core Intel Core i5 processor, my method can reliably price 1000 different options in 0.005 seconds whilst it takes the QuantLib's 1.5 seconds. And what method/integration ar...
I'm using quantlib via the quantlib-python or open-source-risk-engine both on pypi. The question relates whether it's possible to extend QuantLib term structure base classes in python rather than C++. My guess is you can't, but wanted to double check. Background: I've hit a limitation whereby the available BlackVaria...
So I am writing my bachelor thesis about the naive portfolio vs mean-variance portfolio and I am currently a bit stuck at the part about describing the mean-variance portfolio. I know that if there are only constraints in the form of equalities, you can use the Lagrangian method in order to find a closed form solution ...
In models where the underlying is not modeled directly - such as in the HJM framework or short rate models - how does one then compute the Greeks, i.e. sensitivites wrt. market variables. As an example, let's say that I've used a calibrated short rate model and Monte Carlo simulation to find the value of an European Pa...
How to prove that market with one risky asset $S_t$ and interest rate $r = 0$ is incomplete: $$dS_t = S_t (\mu dt + \sigma_t dW_t^{1}), \quad S_0 = 1,$$ $$\sigma_t = 1 + |W_t^{2}|,$$ $W_t^{1}$ and $W_t^{2}$ are independent Wiener processes.
Why is such a proof for futures not suitable for a forward? For futures we have: $V_{t}$ is self-financing portfolio: $V_t = \frac{V_t}{B_t}B_t$, where $B_t$ is a riskless asset Suppose $H_t$ - number of futures in portfolio, then $dV_t = H_t df_t + \frac{V_t}{B_t} dB_t = H_t df_t + V_t r dt$, where $f_t$ - futures pri...
I am using QuantLib OIS Rate Helpers, and traced schedule creation back to the following function, and noticed that the business convention is hard coded as MF. Is the biz day convention hard coded because OIS is always MF. Or anyway I can create schedule by argument? MakeOIS::operator ext::shared_ptr<OvernightIndexedS...
I have a Neural Network model that provides predictions for the future returns of a portfolio comprising stocks and cryptocurrencies. The original model operates on standard time bars and generates daily predictions at a specific time, utilising processed OHLC (Open, High, Low, Close) candlestick data as input. My ques...
Consider a Black Scholes model with $r \geq 0$. Show that the price of an American Put Option with maturity $T > 0$ is bounded by $\frac{K}{1 + \alpha} {(\frac{\alpha K}{1 + \alpha})}^{\alpha}{S_{0}^{-\alpha}}$. Hint: find $\alpha > 0$ such that $e^{-rt}S_{t}^{-\alpha}$ is a martingale. I am trying to work through the ...
I am looking into pricing FX options using the Vanna Volga method. I am aware of the commonly referenced shortcomings of this approach and the superiority of SLV, still it is something I want to do. All of the sources I have come across on the Vanna-Volga indicate that the VV adjustment is based on three strikes: 25d P...
I am trying to refresh my knowledge of portfolio risk calculation but would like to get a second opinion on the best approach. I have a set of 10 assets that together make up the benchmark and I have the benchmark weights available. I also have a lot of historical data so I would be able to estimate a predicted covaria...
I am trying to compute optimized weights (minimum-variance portfolio) for a cumulative return over a period (weekly or fortnightly). In a daily return setting, it is quite simple, I just compute a daily covariance matrix over the past 21 days (yes I used a monthly historical rolling window for the calibration in this c...
I'd hereby would like to ask if any of you know whether I should use common equity or the total equity value, when computing monthly BM ratio's as done by Lewellen is his 2015 paper on a cross section of expected stock returns. Full reference; Lewellen, J. (2015). The cross-section of expected stock returns. Critical F...
If one imposes a form $r(t) = \text{...}$ on the cc. short rate, and aims to fit the short end of a SOFR (or another modern RFR) using futures, how would one best go about this within a "curve-fitting" paradigm e.g. least-squares on fitting error a la fitting a bond curve by minimizing error of $\sum_b (\sum_i c_{i,b} ...
The idea is to choose a strike base on the premium and historical data to have maximum profit. For example a selling a (European) call. $$Profit = Premium_K - (S(t) -K)^+$$ Replacing $(S(t) -K)^+$ for the Cdf $$Profit = Premium_K - (1- \Phi(K)) K$$ I know that it is a naive approach, but is there any merit on it? Secon...
I am trying to price European call and put options on a stock using the Monte Carlo method, given some dynamics for the underlying that may or may not have a closed-form solution (e.g. Black-Scholes, local volatility, Heston). Interest rates, dividends, etc. can be assumed to be zero at present. The standard approach o...
I am wondering if it is, in theory, correct to assume the ISD as the risk-neutral measure of the volatility of the underlying asset and if it is appropriate to price derivatives on the ISD.
Im working on the implementation of the Queue Reactive Model by Lehalle (https://arxiv.org/pdf/1312.0563.pdf), but I have encountered some implementation problems for my specific assets. First, the average spread in them is between 15 up to 70 bps, a lot larger than tick size. In the paper, the reference price is upda...
I am dealing with financial data which is available on a Monthly basis. I am planning to apply machine learning techniques like LSTM but issue here is that overall I have very limited training dataset as even if I take 10 years of data, I have only 120 data points. It may lead to overfitting, could you please suggest a...
Suppose these two assets satisfy a 1-factor model: $$ R_1= E(R_1) + F + ε_1 \\ R_2= E(R_2) - F + ε_2 \\ $$ where: $$ E(F)=E(ε_1)=E(ε_2)=0 \\ Var(F)=1, Cov(F,ε_1)=Cov(F,ε_2)=Cov(ε_1,ε_2)=0 \\ Var(ε_1)=Var(ε_2)=\sigma^2 \\ $$ If: $$ S_1=R_1 \\ S_2= \psi R_1 + (1-\psi)R_2 \\ \psi= 1/(2+\sigma^2) $$ How can I show that $S_...
I have a lot (>50) of back tested (and naively "validated") trading strategies. They trade different ETFs, mostly equities, but also others (like GLD, USO, ...). These are all strategies developed on daily time frame (daily bars) with entries/exit on open on next trading day. Mostly duration of the trades is a couple o...
Can someone please tell me the relationship between LQD and IG cash spreads. what's the movement (widen/tighten) of the spreads can tell me about the market, supply and demand
I recently used a R package CovTools in R with the command CovEst.2003LW(X), where X is your sample covariance matrix as an input, to compute the shrunk covariance matrix (an estimate that is closest to the true covariance matrix). For reference, the package resides here: https://search.r-project.org/CRAN/refmans/CovTo...
I'm an early-stage researcher in Machine Learning for Finance. I was wondering if there are mailing lists where people post calls for papers, summer schools, conferences, open positions, and so on. For example, I've just found https://dbworld.sigmod.org/browse.html, which deals with Deep Learning topics. If you know so...
I recently learnt about the Girsanov-Cameron-Martin theorem, which basically says, that if $(\tilde{B}(t),t\in[0,T])$ is some Brownian motion with a (possibly stochastic) drift $\theta(t)$ defined on $(\Omega,\mathcal{F},\mathbb{P})$, then we can construct a new probability measure $\mathbb{\tilde{P}}$, that is, assign...
I have come across the following result in my book on stochastic finance and I have trouble understanding the proof. On a filtered probability space with filtration $(\mathcal{F}_t)_{t \in \mathbb{R}^+}$, any integrable stochastic process $(X_t)_{t \in \mathbb{R}^+}$ with centred and independent increments is a marting...
There a 2 stocks called A and B. We take a look at the daily chart of both stocks over the last 1 year. On 90% of the days A and B both trended or at least one of A or B trended. On 10% of days both A and B ranged. What term is used to describe a pair of stocks(or any asset) that exhibit the characteristics I describ...
If a trader assumes that the VIX follows a mean-reverting process like the Orstein-Uhlenbeck process, how would they price this non-martingale asset? My intuition tells me a trader would use doob-decomposition to find the other process to hedge with and replicate the VIX option that way, but am not sure
I created a Short Iron condor on Nifty 50 index European option for 9 Nov weekly expiry on 1 Nov morning 10.30 AM (live market). It's payoff is showing always positive curve. Why ? However when same strategy with same strike price on same instrument I created after 1 hour at 11.30 AM ( live market) that is showing regu...
By non-arbitrage, you buy the stock and hold it to the delivery date of the forward, only cost of funding (of cash) and equity dividend would be involved in the equity forward calculation. Where does cost of borrow come into play?
In his textbook Asset management Andrew Ang uses the following CML formula (chapter 6) E(rm) - rf = y * σ^2 Where y is risk aversion factor What is the source of square? When I look at CML graph there is a straight line of E(rm) versus σ so I would expect equation to be E(rm) - rf = y * σ
I coded the Black formula (1976) to price a call where the underlying is a forward. I tested it against other sources and it works fine. I then calculated the delta which, from my derivation and what I find online should be: Delta = exp(-rT) * N(d1) However if I calculate the delta using finite difference like this: D...
Does CME provide any mechanism to freely download historical futures quotes for different futures traded there e.g. Henry hub NG? I am looking for EoD data.
I came across the CBOE white paper Cboe S&P 500 Dispersion Index Methodology. The formula in Subsection Index Construction/Outline of the Dispersion Index Methodology on page 4 that defines the dispersion index DSPX uses a sum $\sum_{i=1}^L w_i\hat\sigma_{i,30}^2$ where $w_i$ is the market capitalization weight of cons...
I understand how to think about the switch option and wild card option in Treasury futures. I know how to model them and get a fair value separately. However, I do not think you can simply just add the two values together to get the option value. Then if you layer in timing option, I imagine this will get fairly compli...
I have daily returns data and I predict the variance for the next day using GARCH(1,1) as follows model = arch_model(df['return'], p = 1, q = 1, mean = 'constant', vol = 'GARCH', dist = 'normal') model_fit = garch_model.fit(disp='off') variance_prediction = model_fit.forecast(horizon = 1).variance[-1:] How then do I g...
GBPUSD is usually more volatile than USDCAD. However during U.S related news releases like the NFP, is it possible for the USDCAD to experience significantly more volatility than the GBPUSD?
Some assets are know(or at-least assumed)to trend more than others. Is the probability of an asset trending equal to the probability of that same asset ranging(i.e 50-50)? Is there a mathematical formula or theory to describe or calculate the probability of an asset to trend or range?
I am investigating the performance of Cover universal portfolios cf. https://en.wikipedia.org/wiki/Universal_portfolio_algorithm (and references therein). I would like to know if there are any benchmarks to test such algorithms. In particular are any 'classical' examples where the Cover U.P. is better than the simple n...
Good morning, I would like to solve the maximization problem that you can find at pag 23 of this source (http://faculty.washington.edu/ezivot/econ424/portfolioTheoryMatrix.pdf) in order to find the tangency portfolio. Unfortunately the algebra steps after the derivations of the first order conditions are not shown and ...
In the paper Bastien Baldacci, Dylan Possamaï, Mathieu Rosenbaum, Optimal make take fees in a multi market maker environment(https://arxiv.org/pdf/1907.11053.pdf), the total spread is increased to about 9 ticks when there are 5 market makers as shown in Fig 13. Though the paper gives a mathematical derivation, is there...
I first simulated the short rate in the Vasicek model using the following code, which is equivalent to simulating the following normal distribution $r_{t} \sim N\left(r_{0}e^{-at} + b\left(1-e^{-at}\right), \dfrac{\sigma^{2}}{2a}\left(1-e^{-2at}\right)\right)$ (code retrieved from https://github.com/open-source-modelli...
I'm trying to build up a US treasury curves using Bills and bonds with the FixedRateBond class, however when I compared the ParYield from .bondYield() and zero_rate from yield curve instance. The yield has large monthly jump in very front end (<1Y), but the zero rate looks smooth.. I check that curve.zeroRate(ql.Date(2...
When I look into different Futures quotes of commodities in CME, all of them are based on Expiry month e.g. Dec-2024 etc. However on the other hand, for fixed income e.g. Swaps, Swaption etc rates are quoted as time to expiry i.e. one month, one week, 20 years. My question is why such different practices are followed?
we all know that swaption price = annuity * black price. The question is that when calculating risks, should we treat annuity as a constant. i.e. is it correct that swaption delta = annuity * black delta? Or we need to take annuity into account? In theory, swap rate changes would impact annuity. In particular, for thet...
The ATMF straddle approximation formula, given by $V_\text{Str}(S, T) \approx \sqrt{\frac{2}{\pi}} S_0 \sigma \sqrt{T}$ where $S_0$ is the current underlying spot price, $T$ is the time remaining until expiration, and $\sigma$ is the volatility of log returns. The derivation using the Black-Scholes formula and Taylor e...
Suppose you have some stock X, and its price can be considered a time series. You believe that real-world number Y, like industry or government statistics, which is also time series, influences stock price. How such kinds of influences be formalized and validated? Suppose you believe that you can somehow predict Y ahea...
I have been trying to get my head around these concepts but what I have found online has caused more confusion: specifically why a sticky delta model might lead to a higher delta or no. of contracts than a sticky strike model. I get they are different models but not sure why sticky delta would be higher. I was looking ...
I've been looking into rate curve interpolation methods and focussing on two basic ones - linear interpolation, and constant forward rate interpolation. In the first one, given a rate curve consisting of pairs of $(t, r)$, one linearly interpolates the $r$ values to achieve the desired rate at any arbitrary $t$ value t...
I need to solve the question mentioned above. For an asset with a worse payoff than another, I need to determine a variance for which the minimum-variance portfolio only consists of this asset. There are only two assets and a short-selling constraint. My first guess would be that this asset would need to be risk-free f...
I am trying to implement the Levenberg-Marquardt algorithm similarly to Cui et al. Full and fast calibration of the Heston stochastic volatility model, 2017 here (although using a different method to pricing the option under Heston dynamics). They have their damping factor set to be $\mu_0$ and an initial $\nu_0=2$. Ev...
There have been some talks regarding the potential threat arising from Hedgefunds w.r.t. to their leveraged Treasury Basis Trade positions. Besides some basics, I never fully grasped the mechanics of such a trade with all its nuances (margin calls, repo leverage etc.) Could someone provide an example involving all thos...
I'm devising a methodology to transform par yield to spot rates, I'd like to stick with pure python as much as possible so not really after Quantlib (or other libraries) examples. In particular I want to consume the US Treasury par yield curves. From the website I understand that these are curves based on securities th...
I saw some threads about reducing dimensionality of IR risk strips, e.g. PCA and risk bucketing. However, I did not find a satisfying answer to that yet. Therefore, I decided to formulate a similar problem: Suppose I have an IR par risk strip S with N buckets and want to find a smaller subset P of S such that the corre...
I know that it is not possible to back out an IV for a stock, because the concept of IV is based on a model with underlying assumptions applied to pricing an option. I was thinking of why IV is forward looking, and I realised that it was because the price of the option reflects all the current available information tha...
I am trying to calculate the trade signal outlined in Avellaneda & Lee paper "Statistical Arbitrage in the US Equities Market". They describe their approach in appendix. Here is my attempt on simulated data: # Simulate returns window = 60 np.random.seed(42) stock_returns = np.random.normal(0.0005, 0.01, window) etf_ret...
For my high school national trading competition (organised by the national stock exchange, officially starting in a week) I gathered a team of 3 friends and developed a simple pairs trading strategy. One of them fetched historical data of every stock in the exchange and the remaining two friends plugged the data to an ...
I know this is kind of a very open ended question but I am struggling with the following problem: I have a futures trading system (operating on very liquid markets) that generates a prediction every hour. My current execution strategy starts with placing a limit order on the best bid or ask (depending on direction) and...
In the paper Equivalent Black Volatilities, an peturbative solution is derived for the equivalent Black volatility of a vanilla call option under the dynamics $dF_t = a(t) A(F_t) dW_t$ by Taylor expanding $A$ about $K$. We get that the appropriate integrated volatility is $$\sqrt{\tau^*} = A(K) \sqrt{\tau} [1 + \frac{\...
I am currently reading this paper (link) on fitting arbitrage free parameters for SABR using stochastic collocation. Are there any publicly available github repos that implement solutions that are described in this paper? Links would be strongly appreciated, thank you!
I'm trying to price a CZK swap via Quantlib with BBG data, so far nothing complicated but I can't seem to match the floating leg cashflows, and NPV, when I price my swaps, even if I find the right Par rate. I am trying to bootstrap CZK curve by creating iborindex and then Depo / FRA / Swap RateHelper so first I create ...
Can someone assist me in replicating the code and results from page 11, Figure 3 of the paper 'Lognormal-mixture dynamics and calibration to market volatility smiles' by Damiano Brigo, Fabio Mercurio, and Francesco Rapisarda, available at https://www.ma.imperial.ac.uk/~dbrigo/lognsmile.pdf? I have posted my code attemp...
When european stock options have very little time until expiration (less than 2-3 hours), they can exhibit extreme sensitivity to changes in the underlying asset's price. This behavior leads to extremely high volatility values and potentially absurd Greek values. This phenomenon occurs because option pricing models (li...
I am studying historical data of futures contract prices. I found there are price data after the settlement date of the contract. For example, for Hang Seng Futures with expiry date of Jun, there are still price data records in investing.com: I know there could be some roll over, but isn't that being price reocord of ...
Suppose I am trading cointegrated pairs $A_1A_2, A_2A_3, \ldots A_{k-1}A_k, A_kA_1$ and I got a signal to long $A_1$, short $A_2$; long $A_2$, short $A_3$; $\cdots$ long $A_k$, short $A_1$. How likely is that scenario to happen? Is it perhaps self-contradictory? Does it mean e.g. I would have a reasonable signal to...
The book "Interest Rate Modeling" by Andersen and Piterbarg is an extermely fascinating book on interest rate derivatives. Recently, I have encoutered some issues while reading this book. How to convert the parameters of multi-factors cheyette model from tenors to factors while keeping the variance of $S(t,T)$(Swap Ra...
Do any readers know of a good data source for trading volumes for fixed income assets (corporates [by rating, if possible], Treasuries, MBS and ABS) that provides historical data (back to 2008)? FINRA provides data from 2017 forward, but I require data from previous years as well.
Super basic question here! Suppose I start with $100 and invest in an asset with known mean (arithmetic) return and standard deviation of returns. I'm interested in plotting the distribution of my ending wealth over varying time frames in Excel. My understanding is that the distribution will be lognormal. For example, ...
I am trying to bootstrap a GBP zero curve off of a GBP swap (par) curve inclusive of xccy basis (vs USD). Say I have my two curves (swap and basis) - would I sum these and then bootstrap to get zeros, or bootstrap just the swap curve first and then add the basis component to the gbp zero curve? TIA
Testing a model against its extension as in Fama & MacBeth (1973) Fama & MacBeth (1973) tested the CAPM against an alternative that the dependence between the expected excess return $E(r_{i,t}^∗)$ and the relative systematic risk $\beta_$ is nonlinear (namely, quadratic) and that the idiosyncratic risk $\sigma_i$ comma...
I have a dataset with 10Y benchmark government bond volatilities of two countries. So, my data looks like this: Date, Volatility5day_A, Volatility5day_B The volatility measure itself is from Bloomberg with the following definition: "Measure of risk of price moves for a security calculated from the standard deviation of...
It is usually stated that the implied volatility is statistically generally --- not always --- greater than the realized volatility. It seems this statement is made with regard to the implied volatility at the money or when the strike is equal to the future of the underlying. Is this statement statistically generally t...
I am trying to understand how to build an implied-to-realised Vanna trade using a risk reversal, as shown in the Hull's paper: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3968542 I have some difficulties understanding how to get exposure to realized Vanna (equivalent of realized spot/Vol correl I presume?). If ...
If I calibrate the Vasicek's yield curve to the Nelson-Siegel's (NS) yield curve, can I assume that $r_V(0) = r_{NS}(0) = \beta_0 + \beta_1$ or not? NS short rate: $r_{NS}(S) = β_0 + β_1 e^{-S/\tau} + β_2 \frac{S}{\tau} e^{-S/\tau}$ $r_{NS}(0) = β_0 + β_1$ The today's zero coupon bond price under Vasicek and Hull-Whit...
I am building a CZK swap pricer on quantlib, and I am trying to understand my differences with Bloomberg pricing. I believe the way I set up my FRA is wrong, the reason is because even though I match perfectly Bloomberg's pay leg after the FRA periods, I don't match bloomberg at all on one date that should be interpola...
The Trade is: You have USD 100m funding Swap USD for YEN equivalent at today's spot, agree to swap back in 12 months at the USD/JPY forward rate With the YEN buy a 12 months Japanese Government bond In 12 months, the JGB matures, get the YEN proceeds from the principal repayment, give the YEN back to the FX swap count...
A bond has a "holders" list, available on Bloomberg. I can see "held amount" of each party in USD, but what is the meaning of "position"? Is it a USD value (if you consider it in 1,000s)? What is its definition? Here is a screenshot which shows held amount in USD, and position, for some of the holders.
I'm trying to price an Euribor 6M Swap and comparing this to Bloomberg's swap manager. However, I'm having some doubts on my implementation of getting the reset rate for the floating leg. In Bloomberg I see that the Reset Date is determined 2 days before the accrual start of a period. For the first accrual period this ...
I'm curious if there is any consensus 'leader' in terms of vendors selling (via data feed) fundamental data on global, publicly traded equities. Am curious for any thoughts on Worldscope Fundamentals (by LSEG/Refinitiv) and S&P Premium Financials (by S&P Global).
I'm reading Hagan's 2002 paper Managing Smile Risk originally published on the WILMOTT magazine, and got something confusing. The set up: Consider a European call option on an asset $A$ with exercise date $t_{ex}$ , and strike $K$. If the holder exercises the option on $t_{ex}$, then on the settlement date t_set he rec...
I am trying to obtain a complete list of US stock tickers using the Alpha Vantage API. I have obtained an API key from Alpha Vantage, but I am unsure of how to properly make the request to get the full list. Which endpoints should I use, and what parameters should I include in the request to get a comprehensive list of...
We are attempting to calibrate the parameters of the Heston model via EMM on historical stock price returns. However, we are first trying a simple stochastic volatility model using EMM. We have come across an example of the EMM procedure in SAS, which corresponds to one of the models in the paper by Anderson. Link to A...
I have used other data sources like CIQ, CRSP / Compustat, and Refinitiv. While each has issues, the data were sufficiently high quality that reasonably reliable backtests could be run. I may need to use Bloomberg for the same purpose. In particular, I need to use a mix of market data and financial data to run predicti...
I'm mostly interested in knowing what banks are doing in Ireland and other Western European countries. I know, from Google searches, that banks are currently doing climate risk stress-testing, but I'm finding it difficult to find any website that really explains what kind of modelling is involved. I have also been unab...
If we consider quarterly (or serial, or mid-curve) SOFR options, traded on CME. Are those options subject to margining? It is clear to me that their underlying (say, 3M SOFR futures) is margined as well as those options are of American style. The margining style is not clearly specified in option contract specification...
I'm reading Hagan's 2002 paper Managing Smile Risk originally published on the WILMOTT magazine, and got something confusing on his comment on Dupire's local volatility model. The set up: Consider a European call option on an asset $A$ with exercise date $t_{ex}$ , and strike $K$. If the holder exercises the option on ...
I am attempting to estimate prediction betting market efficiency for a project, and I am hoping for assistance with a couple of questions. The prediction market makers add a commission to the betting odds offered, and I am trying to work out the true implied odds based on the odds offered. Odds format: The odds are the...
I need to calibrate Vasicek's model $dr_{t} = a(\theta - r_{t})dt + \sigma dW_{t}$ in a market with no swaptions. I was thinking in estimating $\sigma$ with historic data, but I'm in the doubt with calibration for the rest of the parameters (to term structure). I thought of two ways: Minimize $\sum_{i}(P^{market}(t, T...
When calibrating the Heston model, the gradient of the price of the call/cost function wrt $\rho$ (correlation between $S$ and $V$), is a lot less than the other parameters like $v_0$ and $\bar{v}$. As a result, any algorithm that uses the gradient, will over-adjust $\rho$ straight to the boundary because it requires a...
This is a really simple question but I can’t figure it out. I was given this definition for trades in an order book. “A bid and an offer whose prices are the same or cross will pair, resulting in a trade. We consider bid and offer prices to cross when the bid price is higher than the offer price; in those cases, a trad...
I looked up ChatGPT and they stated that the (equity) risk premium should be zero for a risk-neutral world. The definition of a risk-neutral investor is that one is indifferent between additional or less risk, but instead focuses only on the expected return when considering investments. Therefore, since the investor on...
I am trying to predict whether companies belong to a universe considered by an index provider for a particular thematic index using natural language processing techniques. In this particular example, I am looking at a universe of c. 5000 chinese stocks. I want to predict whether those stocks may fit the sector classifi...
I'm trying to calculate the expected annual geometric return, given that I'm provided with an annual Sharpe ratio (0.5), the yield on a 3-month T-Bill (5%) (using this yield as a proxy for the risk-free return), and the annualized volatility (10%). At first blush, I think that the expected annual return is 10% by simpl...
In the paper Partial Differential Equation Representation of Derivatives with Bilateral Counterparty Risk and Funding Costs by Burgard and Kjaer, they say we may formally apply the Feynman-Kac theorem to equation 29 which gives equation 30. Equation 29 in the article is: $\delta_{t} U + A_tU - rU = (1-R_{B})\lambda_B \...
I'm trying to calculate things like dv01 for OIS interest rate swaps by shifting the swap curve (by 100bp say) and revaluing swaps on the shifted curve. However, I noticed that the swap rate (QuantLib's .fairRate() method in OISSwap) does not move 1:1 with the size of the shift. It moves by less. The effect seems to be...
Dear Stack community, I hereby would like to ask what the correct calculation is for calculating Ex Post Sharp Ratio's. If I am correct, I already know that I am supposed to divide the average excess return by the standard deviation of the excess returns. For my data I am using monthly return series, and I am using one...
I am trying to compute the the tail of a future roll using the ratio of forward dv01, per the link CME: Calendar Spreads with Tails : I am trying to compute the the tail of a future roll using the ratio of forward dv01 There are multiple ways to construct this Using the fwd dv01, But that fwd date can be back future da...
I'm working on an unassessed course problem, Consider the following risky investments \begin{matrix} \text{name} & \text{expected return} & \text{standard deviation of return} \\ A & 9\% & 21\% \\ B & 5\% & 7\% \\ C & 15\% & 36\% \\ D & 12\% & 15\% \end{matrix} Suppose there is a risk-free return $R$ and you are told ...