instruction
stringlengths
35
27.7k
This is an FX question. I want to track short term (overnight or next best thing) rates for major/em ccys. What's the best way of doing this? Is there an index I can follow? Preferably something published for free somewhere. :)
This can either be a silly question or a question with no sure rigorous answer but defined with some convention. Any way, here it is. What is the (industrial recognized) definition of the return of a long-short portfolio? Normally, return is defined as profit/initial investment. The initial portfolio may be predominant...
Let $X_t$ be a Levy Process and $e^{X_t}$ the corresponding exponential Levy process. Using the Esscher transform for a change of measure for which the Radon-Nykodym derivative is $$\frac{d\mathbb{Q}}{d\mathbb{P}} = \frac{e^{\theta X_T}}{E[e^{\theta X_T}]},$$ I am looking to find the Esscher parameter $\theta$ such th...
Given that $B=Ce^{-y} + Ce^{-2y}+ (100+C)e^{-3y}$ where B is the bond price, C is the coupon. and It is a 3 years annual coupon bond. I want to find $\frac{dD}{dC}$ where $D$ is the modified duration. My steps: 1.modified duration = D $D = \frac{-1}{B} * \frac{dB}{dy}$ $D = \frac{-1}{B} (-Ce^{-y} - 2Ce^{-2y} - 3Ce^{-...
I am preparing a study about Volatility and Variance Swaps. Does anyone know where I can found historical public data regarding this instruments? Thanks!
I'm working with a heterogenous basket of instruments (in volatility terms). Risk parity allocation seems to be useful for the portfolio( * 1/Volatility). However, there are times when the volatility of a couple of instruments drops down significantly compared to the rest of the universe. Risk parity asset allocation ...
Given that $e^{r\Delta t}(u+d)-ud-e^{2r\Delta t} = \sigma^2\Delta t$ I would like to show that $u=e^{\sigma\sqrt{\Delta t}}$ I know I must somehow use Taylor's approximation $e^x = 1 + x + \frac{x^2}{2}+...$ and ignore terms of $\Delta t$ higher than 1, but I can't seem to get to the value of $u$. Can someone show me ...
I had been working on algorithm which uses the Hurst Exponent. Once i random walk simulation on matlab, x = cumsum(randm(1000,1)), I was able to get a hurst value close to 0.5. To analyze the use of Hurst Exponent in mean aversion or mean reversion, may i know what are the equation models that i can used to run Monte C...
It is said that the time series has a stochastic trend if the first autocorrelation coefficient will be near 1. Q1) What does it mean by the above statement? Q2) How do we calculate the first autocorrelation of a time series? Any comments on the matter will be well-appreciated.
If the convertible bond has dividend-protection, how can we cater it in the binomial model? If there is dividend protection at or above 1%, can we impose input of dividend yield of 1% in the binomial model/Monte-Carlo simulation? If so, is there any reference to explain such method? Thanks.
The way I understand it is that there are three main parameters to a convertible debt investment. An investment amount A discount rate A trigger event Now under most of the examples I have seen, a trigger event for a given investment will occur, a post money valuation will be made based of the subsequent investment...
I am looking for methods to select points in time when delta hedging plain vanilla European options under trading costs. It is easy to come up with ad hoc ideas such as Time-based: for example at fixed time intervals. Price-based: hedge when the price has moved a more than a given percentage. Delta-based: hedge when ...
"Consider a credit rating system consisting of four states, A,B,and D(default) with the following annual credit transition probability: A= [ 0.7, 0.2, 0.1; 0.2, 0.5,0.3; 0,0,1] For a company rated B, calculate the value of a 100 dollar bond with maturity three years from now and an annual coupon of $5." Here's my think...
Given call option price, what is the simplest formula to get the volatility value ? Test Data: Stock price : $60 Option strike: $65 Call option price: $1.766 Duration (in year) : 0.25 (equivalent to 63 trading days) Interest rate: 0.25% Result: Volatility: 30% I am especially looking for a formula that can be prog...
I'd like to calculate a probability distribution for prices given the option prices for that stock? Any ideas how to do this? My desire is to do this daily and then see how the price PD changes over time and see if that can give any insight to the market's evolving view. I couldn't find any prior art on the later, any ...
I am trying to bootstrap the Optionlet volatility surface from a Cap/Floor volatility surface using QuantLibXL. To be specific, the data is from ICAP: STK ATM 0 0.25 0.5 [...] 1Y 0.31 77.95 81.9 71.8 18M 0.34 83.08 89.2 76.6 2Y 0.37 86.03 96.2 80.1 [...] Now, I can set up without errors qlCapFl...
I want to write a quantitative stock trading program based on fundamental analysis. It would crunch through prices, financial reports to look for value stocks. It can support backtesting of strategy with historical data to maximize annual return and sharpe ratio. All the studies, libraries or codes on quantitative trad...
I am working on a ratings transition matrix and I wondered how people scale it down to shorter time periods (although one should more or less stick to the estimation period i know). It is clear that one can scale it to a longer time period by repeatedly multiplying the matrix with itself. How would you scale the matrix...
How is the MA model useful in modeling financial data, for example the stock indices? For example, from what i understand in the AR (auto-regressive) model portion, we can use the ADF test to check for the stationarity of the time series. If it is stationary, it is likely that the new trend will follow the old trend. ...
I would like to evaluate the performance of a portfolio mananger. I know his trades, and the initial portfolio holdings. I do not know, however the amount held on his cash account. That is, I cannot know whether stocks are bought with cash from previous sales (by completely selling a stock bought before), or with new...
P - price that the asset was purchased. Q - price that it was sold P = Q/(1+r+B(R_m - r)) What is the financial meaning of denominator. Thanks for help.
According to Ito's Lemma there is no restriction on the continuity of the stochastic process. The restrictions are on the continuity of the pay-off so that second derivatives with respect to underlying exists. What are the list of financial instruments where their evolution (derivative) cannot be explained by Ito's Lem...
I know there are some sites for practicing equity investing. But could you provide me with suggestions concerning options trading etc. I read Natenbergs book on Options and want to test things like delta and gamma hedging in real life, without risking money yet.
Views on timeframes for backtesting vary considerably. Curious on what timeframe/trade size leads to a statistically significant result. For example, what backtest period is reasonable for a system that trades roundtrip once per day and results in ~250 trades per year? Two years, five years, ten years? Intuitively ...
Quick question: is there a difference between credit VaR and VaR or are they the same thing?
I recently have started to look at some data from CRSP, and they have a metric called Value Weighted Return (two versions with and without distributions). When I looked it up, it seemed that this metric was not used anywhere else, and the explanation on the site did not help (quoted below): VWRETD indices contain eith...
Can we interchangeably use Cholesky decomposition of covariance and correlation matrix to generate simulations? If not, in which situations do we use one or the other and why? Thanks in advance.
Somehow I can't find the explicit definition of when two processes are supposed to be orthogonal or independent anywhere. I think orthogonality and independence should mean the same thing in this context. Up to now I always assumed independence/orthogonality of two wiener processes meant $ dW_i(t) dW_j(t) = \delta_{i...
A Geometric Brownian motion satisfying the SDE $dS_t = rS_t dt+\sigma S_t dW_t$ has the analytic solution $$S_t = S_0\exp\left\{\left(r-\frac{\sigma^2}{2}\right)t\right\}\exp\{\sigma W_t\}$$ Recently in an interview I was asked the following (I am paraphrasing): The magnitude of uncertainty of the movement of $S_t$ is...
I am considering the option between using direct exchange connections vs using a vendor like Bloomberg for market data. I am interested in daily data and potentially tick by tickdata. Initially I am fine with delayed (tick data) but with the option to have realtime data in the future. Other than not having to develop m...
The Baye's rule for conditional expectations states $$ E^Q[X|\mathcal{F}]E^P[f|\mathcal{F}]=E^P[Xf|\mathcal{F}] $$ With $f=dQ/dP$ - thus being the Radon-Nikodyn derivative and $X$ being some random variable and $\mathcal{F}$ being some sigma-algebrad. For I wasn't able to find the proof in any of the books that I u...
When perturbing a key rate in order to assess sensitivity of portfolio value, what sort of interpolation is standard? A book I am looking at says linear, but this seems pretty unrealistic to me--and of real significance for longer durated portfolios or shorter term perturbations. Anyone familiar with literature on the ...
Recently I've read some books about quantative approach to fundamental investing: - What works on Wall Street - James O'Shaughnessy - Quantitative Value - Wesley Gray, Tobias Carlisle - Quantitative Strategies - Richard Tortoriello Basically, their research methodology, can be summarized as, we have a set of indicators...
Assume that a trader trades in several stocks with different volatilities. The return of the trader's portfolio would be the weighted average of returns and the risk would be a function of the the underlying assets' volatilities and correlation as stated by the Modern Portfolio Theory. Assume also that the total wealth...
My understanding is that forward rates are calculated by comparing interbank interest rates of the 2 currencies for a currency pair, with the points being the difference between spot and the forward rate. If that's the case, then forward points would update quite often (with fluctuations in the spot rate), but within ...
There is a plethora of pseudo-random-generators out there. Some of them are definetly better and some of them severily underperform. My standard tool is Mersenne Twister - when I need to generate some decent pseudo randoms. Still I never actually explicitly tested how the random-generator-choice affects the prices of ...
Or simply: why do we call equivalent martingale measures as risk-neutral measures? In the utility or game theory, when we consider a person's preferences to certain outcomes, we often deal with the utility functions. For example, if we consider an investor with a utility function $U$ whose return on a portfolio $\Pi$ i...
Doing some research modeling/estimating volatility in the bitcoin market. There is quite a bit of scope for arbitrage within crypto-currency markets. Wonder if this has any impact on my volatility estimates? does it impact statistical significance or out of sample estimation accuracy?
Say I know the price probability distribution, e.g., lognormal(p,s), of a stock X at a future time T that is perhaps one or two years into the future. p is price and s is a standard deviation. What should I trade to maximize my expected total return at time T? Should I for example roll over short-term stock options, lo...
Consider a credit rating system consisting of three credit states, A, B and D (default) with the following annual credit transition probability: T = [0.7 0.2 0.1;0.2 0.5 0.3; 0 0 1]. For a company rated B, calculate: a) The credit spread, calculated semi-annually, ten years into the future. The semi-annually is throwin...
Bloomberg provides PX_BID and PX_ASK on a daily basis, but it's not clear exactly where these numbers come from. Are they closing bid and ask prices, or are they averaged over the entire day? For stocks, are they pulled directly from Nasdaq/NYSE dealers/specialists? Also, if anybody knows, were they pulled from the exc...
I think I understand the fact that when marginal utilities of the same function are equal (a consequence of the actuarially fair insurance), the independent variables in it must be equal -- right? But what it is the reason in this for a consumer being risk averse? What a $u''<0$ changes in comparison to a $u">0$ condit...
In a paper I encountered the following notation $$P(Z\leq z,u\leq Y\leq v)=C(F_{Z}(z),F_{Y}(v)-F_{Y}(u))$$ However I don't see why this holds in relation to uniform random variables. Usually $$P(Z\leq,Y\leq v)=P(F_{Z}(Z)\leq F_{Z}(z),F_{Y}(Y)\leq F_{Y}(v))=P(U_{1}\leq F_{Z}(z), U_{2}\leq F_{Y}(v))=C(F_{Z}(z),F_{Y}(v))$...
Do options where the strike itself is a stochastic process exist? If they do - what are the motivations for such a product and where is it used ? Example: Call-Option with stochastic strike: $$(S_T(\omega) - K_T(\omega))^+$$ where $K_t$ is a stochastic process. $K_T$ could for example be of the form $K_T=f(X_T)$ where...
Actuaries (at least in Europe) are frequently severily lacking in quant finance topics. At best they are familiar with B&S model. People going into quant finane or striving to become a quant on the other hand are often not aware that their knowledge could also be applied in an insurance context. Classic quant-work-re...
I'm trying to understand the derivation of a ML-estimator and more specifically the rewriting of the covariance matrix Sigma. In this rewriting a lemma is used to show that $$ (1) \hspace{1.4 cm}\Omega=\sigma^2_{c}\boldsymbol{1}\boldsymbol{1'} + \sigma^2_{\varepsilon}I_T=(\sigma^2_{\varepsilon}+T\sigma^2_{c})\boldsymb...
I'm trying to compute the implied volatility of a binary option but I cannot get some of the strikes to reach a convergent solution using either a Monte Carlo pricing model or an analytical Black Scholes model, minimizing using Newton's method. Since binaries are essentially the derivative of a vanilla call wrt the str...
I have recently started to look up algorithmic trading but I am finding it hard to find references related to this field.I am math major with a sound knowledge in Statistics, various programming paradigms, Graph Algorithms and a bit of randomized algorithms. The references may be in form of books,online resources anyth...
I'm a physicist who's research has lead him into the theory of stochastic differential equations. If this question is not appropriate for this forum, please feel free to delete it. So I've been following through Bernt Oksendal's Stochastic Differential Equations: An Introduction with Applications (5th edition). In...
I am confused on the following: When we price swaption, the market convention is to use Black's Model which assumes forward swap rate is following Black's model under the Q(t) measure. When we tries to use SABR, the forward swap rate is again model depending on the value of Beta. If we were to calibrate SABR for Swapti...
Assume that we want to calculate the time $t=0$ price of a bond: $B(0,T) = E_P[\exp(-\int_0^T r_s ds)]$, where $r$ is the interest rate following the SDE $dr_t=k(\theta-r_t)dt+\sigma dB_t=b(r_t)dt+\sigma dB_t$. I was shown that one could write the price as $B(0,T) = E_{\hat{P}}[\exp(-\int_0^TB^{*}_sds)\exp(\int_0^Tb(B^...
I would like to generalize Paul Teetor's A Better Hedge Ratio, which uses prcomp() to determine a ratio between two legs. I am hoping to extend this to multiple legs, but am having trouble finding accurate results. Any suggestions?
I am somewhat confused when it comes to modern portfolio theory, mean-variance portfolio optimization and its quadratic programming formulation. Issue 1: Formulation of mean-variance portfolio optimization I learned that the mean-variance portfolio is given by the problem: Minimize with respect to $\mathbf{x}$: $\mathb...
I'm trying to understand Numéraire concept so am reading the wiki page: I couldn't understand the last formula's 2nd equation: $$ E_{Q}\left[\left.\frac{M(0)}{M(T)}\frac{N(T)}{N(0)}\frac{S(T)}{N(T)}\right| \mathcal{F}(t)\right]/ E_Q\left[\left.\frac{M(0)}{M(T)}\frac{N(T)}{N(0)}\right| \mathcal{F}(t)\right] = \frac{M(...
1) Suppose S is the stock price, how to hedge a derivative that pays $1/S_t$ at time $t$? 2) Suppose there will be a dividend of amount $d$ between $t$ and $T$, how to hedge a derivative that pays $100 $*$ S_T/S_t$ at time $T$? The person who asked me the question said we don't need to assume the distribution of S here...
I was reading the papers co-authored by Harrison, Kreps and Pliska, that initiated the formal research on the connection between pricing, martingale measures, arbitrage and completeness. I have some issues relating some of the ideas, though, and would be happy if somebody could help me. In a more or less abstract setti...
I understand that quasi-random numbers have much better convergence, but are there any reasons for me to use pseudo-random numbers instead?
I am considering extending a multi-factor fixed income stochastic model (e.g. LIBOR-Market) to use stochastic correlation matrices instead of determinstic ones. For pricing instruments with short maturities stochastic correlation would not really make sense - for the correlation structure is in general much more stabl...
I am trying to figure out the following, for me unfamiliar type of question: Given is a single asset portfolio: the Delta of the portfolio is 15, the value of the asset is 10 and the daily volatility is 2.2%. From this, I have to calculate the one-day 98% VaR of the portfolio. I have not encountered a situation where t...
I am looking for either a review paper or individual papers on portfolio selection using robust statistics or regularization (e.g. LASSO, Ridge, etc.) I.e. a review on methods along the lines of: M Carrasco, N Noumon, Optimal portfolio selection using regularization, 2011 http://www.admissions.american.edu/cas/economic...
what is the good way to pricing american option on bond future? From bonk fixed income securities 3rd by Tuckman, I understand how to pricing European option on bond future, but I still have no clue how to pricing american option.
First I'll describe the way I understood things so far from the literature, feel free to correct me here, and then I formulate some questions. I'd search through QSE, but haven't found so far similar question. The BS model assumes the stock to follow an SDE with a linear diffusion term, hence constant volatility: $$ ...
I need to compute the delta of an option for which I know a) the time to maturity, b) the price of the option, c) the price of the underlying asset. what is the formula to get this delta It seems that the volatility is a parameter of this formula (yes, I have some clue of the answer of the first question ;). What is t...
Path-dependent options in BS framework is intuitive to price with monte-carlo under risk-neutral measure, however it appears that several kinds can be priced with PDEs. I understand how does the story goes for Asian options: the payoff depends on more than just asset price and time, so we introduce a new variable, our ...
Let an implied volatility curve/surface is made up by optionlets or swaptions Black's implied volatility. If you wanted to price, say, a FRN with cap and/or floor, a CMS et cetera you would input the array/matrix filled by that IV curve/surface in you pricing model: regardless of the model, it's very likely it takes as...
I am trying to reproduce a method presented in a scientific paper. They used the following dataset: daily closing prices of S&P500 stocks (the first 100, alphabetically by ticker, with a full year of data from Jan 9, 1998 to Jan 8, 1999) Any idea of how to go about getting these data? I have two problems: What were th...
I read the Euan Sinclair's book (Volatility trading) in which he suggests different volatility estimators (Close-to-close, Parkinson, Garman-Klass, ...). I am inquiring about what is the best stock volatility measure to explain, let's say, the stock price returns. Let's suppose that I want to test the effect of stock m...
Why is there systematic negative divergence between the VIX index and the VXX ETF meant to track it? http://finance.yahoo.com/q/bc?s=%5EVIX&t=5y&l=on&z=l&q=l&c=vxx
I am looking for efficient numerical approaches for pricing American options when two or more sources of noise are involved (the simplest case coming to mind would be the Heston Model) Eventhough I am familiar with lattice methods I don't see how this could work in a "poly-noise" setting. A solution might present itsel...
R that originated as a purely statistical tool has meanwhile blossomed into a comprehensive workbench for different tasks. I am familiar with Mathematica and don't like how it forces a license on you. Also the handling of big data and outputting of tables ins quite cumbersome in my opinion. Meanwhile R offers (beside ...
By using http://finance.yahoo.com/d/quotes.csv?s=STOCKNAME&f=I am able to download a CSV file, does anyone know what the symbol for beta is? It should go after &f= e.g. the symbol for the stock name is n and it goes in as such: http://finance.yahoo.com/d/quotes.csv?s=STOCKNAME&f=n Thanks in advance for your help!
Obviously, when ownership of some security is transferred from party A to party B, both parties' balances must be updated and recorded in an atomic transaction. Call this "an execution". So in an exchange, what conditions dictate the moment a trade is actually executed? Specifically, are there a fixed number of "tradin...
How do i test the significance of Sharpe ratio of a strategy whether it is any different from another strategy ?? How do i get a p-value out of it ? What should be the H0 in the hypothesis testing ? I was hinted by my professor that i would require bootstrap
Given sales and profitability data for two time periods, how would I go about calculating the impact of price, cost, volume and mix margin % (bps)? I can do the analysis as a gross margin $ bridge, but I'm unable to convert that to margin %. I'd like to create something like this: http://www.pwc.com/en_GX/gx/technology...
Is there a way to find the Producer price index for a commodity during two different years by using the NAICS code of the commodity. For example, I know the NAICS code for cast iron steel bearings as 332991P and I want to find the PPI for it in 2002 and 2014. I tried to use the Bureau of Labor Statistics Websites but ...
when I using Bloomberg excel plugins to retrieve the ticks and compare with Reuter RDF data, for some UK equity stocks in same days, the number of ticks and sum of total value is difference, why will that happen?
We have a stock at price 1 dollar which pays no dividend. Also we assume zero interest rate. When the price hits $H$ dollars for the first time where $H>1$, we can exercise the option and receive 1 dollar. What is the price of the option? I can price this option assuming the stock price follows a geometric brownian mot...
This question is a bit confused, but please bear with me. Now and then I see people use the terminology "price volatility" and "yield volatility" in connection with bond options. I understand the concept of implied volatility for equity options, and I know that option prices are often quoted in terms of their implied v...
I am reading a paper that very briefly talks about some volatility arbitrage strategies. It's so brief that I do not exactly understand how it works. It says one of the strategy is based on "short spot index volatility, long on implied volatility" on the premise that IV > realized volatility. I know how one can trade i...
Seeing how very few actually read the Quant Finance meta I intentionally post it here on the main site. To the more powerful admins: could you leave it here for a day or two and move it to meta afterwards? (please) On Area51 I was told to post the question on Meta - perhaps we can raise awareness of the Quant SE staf...
This it taken from "Heard on the Street", Section B. Consider a market with $0$ risk-free rate, no transactions costs etc. The IBM stock costs \$75 and does not pay dividends. Design a security which pays \$1 if IBM stock reaches \$100. What does it cost? The answer is \$.75 which can be proved by no-arbitrary cons...
I'd like to evaluate 3-4 instruments on one price chart. For example: Stock A: 90,05 90,15 90,25 90,09 Stock B: 0,0045 0,0049 0,0039 0,0040 Stock C: 1998,1 1998,7 1998,8 1997 I try to use: Ln(close) - too different values, to put them on one chart, same results with Close(0)-Average(10) returns Close(0)-Close(-1),...
I have the following likelihood function: I'm given this information about the $\Omega$ matrix ($\boldsymbol{1}$ is a $T \times 1$ vector of ones): I would like to be able to show that the likelihood function can be rewritten to this: I think there is a misprint in the article, hence the screen images from the artic...
I would appreciate some help with the math in this paper : High Frequency Trading in a Limit Order Book Specifically, I would like to understand how the authors calculated the expected value of price at terminal time T at current time t. What substitution was made to arrive at equation (3) on page 2 (from the value fun...
Consider first the simple convergent strategy to invest some amount $X$ in a game, if you win you simply take the winnings and keep playing a subsequent game. In the case of a loss, you believe in your belief and doubles up in the same game until finally you win. This strategy would mostly experience small winnings up ...
Many papers in the microstructure literature assume an order arrival rate of the form $\lambda^a(\delta) = \lambda^b(\delta) = Ae^{-k\delta}$ That is, an order that's placed $\delta$ away from the mid-price is likely to be executed with probability $Ae^{-k\delta}$. How would you choose k and A given data from a real co...
In many books and derivations of the Black-Scholes PDE one sees that $$\Pi=V-\Delta F \Rightarrow d\Pi=dV-\Delta dF$$ which implicitly assumes that $d\Delta=0$. Somewhere down the road one then deduces that $$\Delta=\frac{\partial V}{\partial F}$$ to simplify the equation. Doesn't this contradict the initial assumptio...
Taking a class in financial derivatives (book we use is Tomas Björk's Arbitrage theory in continuous time) but can't understand the exact meaning of how the Wiener process is defined. In the book one can read: "the Wiener process will be a continuous function of time which is non-differentiable at every point. This a t...
I failed to evaluate the integral of $\frac{e^{ax}}{x\sinh(bx)}$ with respect to $x$ from negative infinite to positive infinite. What techniques can I use to evaluate the integrals of such kind for the Meixner Levy process for the purpose of numerical analysis?
Are power contracts traded on any stock markets ? What about OTC markets ? I ask about the derivatives where payoff is some exponential function of difference between strike and spot price.
Suppose we have a stock $X$ at which trades at 100 dollars. We suppose the stock follows a geometric brownian motion. We know that the interest rate is zero and annual volatility is 10 percent. How can we hedge the risk?
So I was reading Robert McDonald's "Derivatives Markets" and it says Eurodollar futures price can be used to obtain a strip of forward interest rates. We can then use this to obtain the implied forward LIBOR term structure and build the interest rate swap curve. The book also provides a concrete example to illustrate i...
I'm constructing money-neutral spread by this formula: Spread = log(P1) - log(P2), where P1 and P2 is prices of two instruments But sometimes spread can get into negative zone, when log(P1) < log(P2). How to avoid this and make spread always positive?
The standard Libor-Forward-Market-Models provides a way of modelling the evolution of forward rates in time. However the model does not seem to be well suited for the modelling of zero-bonds. But rather it seems to have been primarily developed to price swaptions and caps of different levels of complexity. Assuming no...
I know about zipline and ultrafinance, but as far as I know, they don't support fx trading. Which libraries do?
It is said that Edward O. Thorp was able to harness small correlations for reliable financial gain. I've seen some strategies based on strong correlations which did not seem particularly reliable. Does anyone have an idea or a paper to how the small correlation exploitation could work? I can only think of some kind of ...
What determines whether an investment should be made using debt vs. equity? For example, startups are often financed with equity, while mortgages are always financed using debt. What characteristics about the investment (like risk, uncertainty, information, duration, etc) inform whether one or the other type of instrum...
Suppose we have an asset $A$, and we have modelled the cashflows for this asset to be $\{C_{1},\ldots C_{k}\}$ which occur at time $\{T_{1},\ldots T_{k}\}$. Now the present value of the asset can be obtained by discounting each cashflow -- that is the present value of the asset/instrument, assuming that the time now is...
So far I have just theoretical knowledge of risk measure and never used them in application. Therefore I have some basic question how risk measures are used in reality and how they are implemented in R. Let's assume you are managing a portfolio containing some assets. In particular I'm interested in VaR and CVaR. VaR...
I'm trying to simulate a 3-factor HJM model. I got the algorithms from Glasserman book. In my case, I have $3$ maturity:$ 0.25y, 0.5y, 0.75y$. So my time grid is: $t_0=0,t_1=0.25,t_2=0.5,t_3=0.75$. I'm trying to price the zero-coupon bonds with: $B(0,t_j)=\exp(-\sum_{i=0}^{j-1}r(t_i)h_i),\quad \text{where}\quad h_i=t...