2015-01-01から1年間の記事一覧

デルタとガンマによるVaR

最近オプションの元になる資産の値動きの敏感性を調べています。I reviewed my calculations and cannot determine the reason why the VaR I obtain of about 7.2 deviates substantially from the RiskLatte solution of 13.3. My assumption was that the…

クリクエットオプションの値

最近複数のオプションの累計によってペイオフを決めるエキゾチック°オプションを学んでいます。株価指数などオプションの代わりに使用される事があるらしいです。This paper is rife with problems, as it relies on a characteristic function representati…

計算幾何学の混乱

最近トップコーダーのアルゴリズム問題で以外に時間を消費しました。kmjpさんの説明のおかげで理解が出来たけど最初に使った検索方法が失敗でした。The key insight to finding the maximal number of points which can be placed on the axes via a series …

凸状性とCMS

The convexity adjustment is essentially a perturbation of the forward interest rate to account for an unnatural timing of the cash flows. It is often applied to LIBOR in arrears payments. The timing adjustment is used to adjust the yield w…

母分散の計算

最近変動性の計算式の由来を考えていました。特に標本の変動性と母分散の関係を見直しています。自分の推測は(1/n)sigma(i=1 to n)*1sigma(i=1 to n)*2*sigmas^2 , where sigmas^2 is the sample variance. *1:xi-mu)^2) ですが教科書には 「(1/(n-1 *2:xi-m…

ルックバック・オプションの値

最近エキゾチック・オプションの一種を勉強しています。Two forms of lookback options exist, which interestingly have payoffs based on opposite extrema of the underlying price. The pricing formula for a fixed-strike lookback call is the same a…

ニューメレールの使い方

I fail to understand the reasoning behind the change of numeraire in the derivation of the Libor Market Model forward rate process, nor do I see where the v(m)-v(k) factor arises from. やっぱり先物の利子と債券の割引因数の関係がニューメレー…

債券値の微分方程式

最近再びヒース・ジャロー・モートン枠組を考えています。The Heath-Jarrow-Morton framework first formulates a diffusion process for the zero-coupon bond price increment dP and then expresses a process for the forward rate increment df. The Hu…

グラフ理論と動的計画法

最近トップコーダーの問題で苦しんでいます。The problem combines combinatorics, graph theory, and dynamic programming with a nonstandard bitmap usage. グラフの数が2^((n)(n-1)/2)でブログラムで述べるのが不可能です。While it is possible to enum…

エクセル上に動く金融模型

最近マクロの役割を再び考えました。言語の小派に書かれてインタープリターで処理されるプログラムです。やっぱり普通の計算式(合算など)で管理するデータをもっと複雑なアルゴリズムで分析する場合に大切な道具です。速さがやっぱり問題です。Nが八千行ぐ…

ハル・ホワイトの三項木

Deriving the alpha variable where alpha=R-R* is non-trivial. Here, R* is the rate where the long-term mean, theta/a, is 0. The differential equation derived for alpha by subtracting dR* from dR is: d(alpha) = (theta-a*alpha)dt Theta is der…

債券オプションの値段計算式

最近ヴァシチェックの利子模型を学びながらオプションの値を計算する方法に目を通した。ブラック・ショールズに似ているところもあるし違うところもあります。Interestingly, the formula was derived by Jamshidian. He begins with a term-structure equat…

CIR利子計算の理論

ヴァシチェックの計算式を理解してからコックス、ロス、ルビンスタインの方法をかんがえはじめた。While the derivation of the time derivatives Bt and At follow from the term structure, the solutions A and B obtained from the Riccati equations re…

レーベンバーグ・マーカート法の大切さ

最近LMAの由来を考えています。in the case of minimizing the sum of squared errors of an approximation to a function over a training set, a step delta is made for the parameter vector, where delta is a vector. Apparently, the direction of de…

三つな道を最適に選ぶ問題

最近トップコーダーの代表的な動的計画法問題を解こうとしています。 皮肉的な事で動的計画法を使わない方が良さそうです。 The problem involves finding a sequence of three traversals between the upper left and lower right corners of a grid such t…

伊藤積分と利子の計算式

最近伊藤の定理と確率的の微分積分に関して悩んでいます。The solution to the stochastic differential equation for the Vasicek interest rate process, although it apparently conforms to Ito's Lemma, seems arbitrary. Basically, given dr=a(b-r)dt…

利子の計算式の分類

最近ハル教授のオプション教科書の問題別冊の利率の微分方程式に関する問題を解こうとししています。 分類項目は因子の数と均衡か無裁定の選択です。Examples of a one-factor model include: Ho-Lee, Vasicek, and Rendleman-Bartter. The move in the shor…

ゲーム理論のアルゴリズム

最近トップコーダーオープン問題に苦しんでいる。深さ優先探索の複雑性がを抜けるためにグリーデイ方法を使ったけど間違いの所が出ました。 An attempt was made for a simple greedy strategy by playing the game in reverse using the max card in either…

凸状調整とタイミング調整の由来

最近債券と利子の派生証券の値段に影響する凸状とタイミング調整にかんして学んでいます。 The convexity adjustment can be derived from either the Taylor Series about the forward rate(Hull, Bond price in terms of yt about y0, then taking expecta…

ちょっと変わっている動的計画法あるごり

最近トップコーダー・オープンのアルゴリズムで苦しんでいる。エムケーさんの答えが面白い動的計画法の実施だった。The key insight was that the totalnumber of bit flips after bits up to the jth position are decided depends on only the position j,…

凸状調整

最近利子による派生証券の値を計算しながら悩んだ。なぜLIBORとスワップレートに関係がある物にconvexity adjustmentが必要でしょうか。It seems that the yield calculation varies with the relative timing of the rate observation and payoff. For a 3-…

深さ優先探索と最短の道

最近回帰アルゴリズムでこんな問題を解いたけど時間的に遅かった。やっぱり探査優先探索ではなくて動的計画法を使った方が有利です。I opted to utilize the Floyd-Warshall graph shortest path algorithm, but Dijkstra's Akgorithm can also be employed.

剰余を足すアルゴリズム

最近トップコーダーの問を解こうとしたが最適の回答が簡単ではない。The brute force solution to the problem of solving the sum of f(i) where i iterates from 1 to R, where f(i) involves taking i mod m1 mod m2...mod mn for a given sequence m, is…

配当と市場のリスク価格

最近ハルの教科書の問題を解こうとしています。The formula for df is df = mu*dt+sigma*dz given that mu=r+lambda*sigma, where lambda is the mkt price of risk, df = (r+lambda*sigma)f*dt+sigma*f*dz In a traditional risk neutral world, lambda*sig…

住宅担保証券の利子敏感性と債券の値

最近住宅担保証券のデュレーションに関する論文を読んでいます。 一つの問題点はsigmaとsigmaYの違いです。

画像意識用の項目出力

最近スタンフォードとミシガン大学の研究者が行った機会学習実験について学んでいます。The point is to extract a feature set (set of coordinates that are functions of the input data). What is interesting is that the feature extraction is carrie…

動画的企画法と確率の広がり

最近トップコーダーのオープン試合の中級問題に挑戦しています。 更新。やっぱり確率ではなくて否定な確率が鍵になります。finding the positive probability at each node is nearly impossible, due to the possibility of multiple nodes' preceding the …

ホップフィルド・機械とボルツマン・ネットワーク

最近回帰神経回路網の二種類を比較しています。Both the Boltzmann machine and the Hopfield Network are Recurrent Neural Networks whose units have on and off states. However the Boltzmann machine is stochastic, as the unit's state depends on a…

証券価格に関わる微分

最近Radon-Nikodym derivativeを学んでいます。実測度から中立測度に変換するための微分です。Basically, the risk-neutral probability density is the derivative of the induced measure with respect to the base measure. How the "induced measure" is…

回帰神経回路の使用

最近自然言語処理(NLP)にかんする論文を読んでいます。 Some models the author had not seen before, namely Maximum Entropy Markov Models and Conditional Random Fields, were encountered. マルコフ過程は次の状態は現在の状態だけに頼ります。 RNNの…