Martingale

Definition

Process X is a martingale if for all n:

E[X_{n+1}|F_n] = X_n

Where

  • Fn is the history of Xn (called filtration)

Which means, on the n+1 step, the expectation of X shall be the same as any step before.

A martingale may be thought of as a “fair game”, because given the information in current and previous plays (Fn), you don't expect to change your total winning (X).

Example

Here are two practical example to help you understand it.

Partial sum process

A simple coin game, in i turn we bet Xi, and Sn is our winning money after n turn.

Let Xi be independent, define the partial sum process:

\begin{aligned} S_0 &= 0, \\ S_n &= \sum_{ i=1 }^n X_i, n=1, 2,... \end{aligned}

Sn is a martingale iff:

E(X_i) = 0

Proof

With Xi being independent, and E(Xi) = 0, we have:

\begin{aligned} E[S_{n+1}|X_1,...X_n] &= E[S_n + X_{n+1} | X_1,...X_n] \\ &= S_n + E[X_{n+1} | X_1,...X_n] \\ &= S_n + E[X_{n+1}] \\ &= S_n \end{aligned}

Gambler's Ruin Problem

A classic problem on martingale.

Consider a gambler who starts with an initial fortune of $1 and then on each successive gamble either wins $1 or loses $1 independent of the past with probabilities p and q = 1?p respectively. Let Rn denote the total fortune after the n th gamble. The gambler’s objective is to reach a total fortune of $N, without first getting ruined (running out of money). If the gambler succeeds, then the gambler is said to win the game.

Let Pi denote the probability that the gambler wins when the initial money R_0 = i, we have:

P_i = pP_{i+1} + qP_{i-1}

This is because P_i can only lead to two states:

  • Winning $1 with probability p to state P_{i+1}
  • Losing $1 with probability q to state P_{i-1}

Subtract P_{i-1} from both sides of the equation, we get:

P_i = (p + q) P_i = pP_{i+1} + qP_{i-1}

i.e.,

{P_{i+1} - P_i}= \frac{ q }{ p }(P_i - P_{i-1})

Thus

\begin{aligned} P_{i+1} - P_1 &= \sum_{k=1}^i (P_{k+1} - P_k) \\ &= \sum_{k=1}^i (\frac{q}{p})^k P_1 \end{aligned}

We have

P_{i+1}= \begin{cases} P_1 \frac{1-(q/p)^{i+1}}{1-(q/p)} &, p \neq q\\ P_1 (i+1) &, p=q \end{cases}

To solve P_1, pick i = N-1 and use the fact that P_N = 1

P_1= \begin{cases} \frac{1-(q/p)}{1-(q/p)^N} &, p \neq q\\ 1/N &, p=q \end{cases}

Substitute P_1 and we have:

P_i= \begin{cases} \frac{ 1-(q/p)^i}{ 1-(q/p)^N } &, p \neq q \\ i/N &, p=q \end{cases}

Reference

  1. martingales.dvi (rice.edu)
  2. 4700-07-Notes-GR.pdf (columbia.edu)
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末易阳,一起剝皮案震驚了整個濱河市棒厘,隨后出現(xiàn)的幾起案子抡秆,更是在濱河造成了極大的恐慌,老刑警劉巖进统,帶你破解...
    沈念sama閱讀 218,525評論 6 507
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異誉券,居然都是意外死亡瓶摆,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,203評論 3 395
  • 文/潘曉璐 我一進店門馍驯,熙熙樓的掌柜王于貴愁眉苦臉地迎上來阁危,“玉大人玛痊,你說我怎么就攤上這事】翊颍” “怎么了擂煞?”我有些...
    開封第一講書人閱讀 164,862評論 0 354
  • 文/不壞的土叔 我叫張陵,是天一觀的道長菱父。 經(jīng)常有香客問我颈娜,道長剑逃,這世上最難降的妖魔是什么浙宜? 我笑而不...
    開封第一講書人閱讀 58,728評論 1 294
  • 正文 為了忘掉前任,我火速辦了婚禮蛹磺,結(jié)果婚禮上粟瞬,老公的妹妹穿的比我還像新娘。我一直安慰自己萤捆,他們只是感情好裙品,可當(dāng)我...
    茶點故事閱讀 67,743評論 6 392
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著俗或,像睡著了一般市怎。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上辛慰,一...
    開封第一講書人閱讀 51,590評論 1 305
  • 那天区匠,我揣著相機與錄音,去河邊找鬼帅腌。 笑死驰弄,一個胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的速客。 我是一名探鬼主播戚篙,決...
    沈念sama閱讀 40,330評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼溺职!你這毒婦竟也來了岔擂?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 39,244評論 0 276
  • 序言:老撾萬榮一對情侶失蹤浪耘,失蹤者是張志新(化名)和其女友劉穎智亮,沒想到半個月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體点待,經(jīng)...
    沈念sama閱讀 45,693評論 1 314
  • 正文 獨居荒郊野嶺守林人離奇死亡阔蛉,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,885評論 3 336
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了癞埠。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片状原。...
    茶點故事閱讀 40,001評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡聋呢,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出颠区,到底是詐尸還是另有隱情削锰,我是刑警寧澤,帶...
    沈念sama閱讀 35,723評論 5 346
  • 正文 年R本政府宣布毕莱,位于F島的核電站器贩,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏朋截。R本人自食惡果不足惜蛹稍,卻給世界環(huán)境...
    茶點故事閱讀 41,343評論 3 330
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望部服。 院中可真熱鬧唆姐,春花似錦、人聲如沸廓八。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,919評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽剧蹂。三九已至声功,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間宠叼,已是汗流浹背先巴。 一陣腳步聲響...
    開封第一講書人閱讀 33,042評論 1 270
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留车吹,地道東北人筹裕。 一個月前我還...
    沈念sama閱讀 48,191評論 3 370
  • 正文 我出身青樓,卻偏偏與公主長得像窄驹,于是被迫代替她去往敵國和親朝卒。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 44,955評論 2 355