• 沒有找到結果。

動態系統的貝氏分析

N/A
N/A
Protected

Academic year: 2021

Share "動態系統的貝氏分析"

Copied!
11
0
0

加載中.... (立即查看全文)

全文

(1)

科技部補助專題研究計畫成果報告

期末報告

動態系統的貝氏分析(第 2 年)

計 畫 類 別 : 個別型計畫

計 畫 編 號 : MOST 102-2118-M-004-003-MY2

執 行 期 間 : 103 年 08 月 01 日至 104 年 08 月 31 日

執 行 單 位 : 國立政治大學統計學系

計 畫 主 持 人 : 翁久幸

計畫參與人員: 碩士班研究生-兼任助理人員:林冠謀

碩士班研究生-兼任助理人員:楊智博

碩士班研究生-兼任助理人員:陳弘叡

報 告 附 件 : 出席國際會議研究心得報告及發表論文

處 理 方 式 :

1.公開資訊:本計畫可公開查詢

2.「本研究」是否已有嚴重損及公共利益之發現:否

3.「本報告」是否建議提供政府單位施政參考:否

中 華 民 國 104 年 09 月 08 日

(2)

中 文 摘 要 : 在過去數年,我們已經相當程度探索 Woodroofe-Stein 等式

及其在序貫分析和貝式統計之應用。本計畫著重在動態模型

之應用及其與卡爾曼 fileter 之關聯 。我們得到一種新的方

法來推導卡爾曼增益(Kalman gain)。本計畫之副產品是將目

前 Woodroofe-Stein 等式進一步推展, 得到多元的

Gram-Charlier 級數。

中文關鍵詞: 貝氏分析, 動態系統, 卡爾曼濾波, Woodroofe-Stein 等式

英 文 摘 要 : In the past years we have explored Woodroofe-Stein`s

identity and its applications to sequential analysis

and Bayesian statistics. This project focused on its

application to dynamic models and relation to Kalman

fileter. We provide a new approach to obtain the

Kalman gain. A by-product of this project is to take

the present Woodroofe-Stein`s identity one step

further to obtain the multivariate Gram-Charlier

series.

英文關鍵詞: Bayesian inference, dynamic systems, Kalman filter,

Woodroofe-Stein`s identity

(3)

Final report for project: Bayesian inference for some

dynamic systems

1

Introduction

The present project explored Woodroofe-Stein’s identity and its applications to dynamic systems. First, it is shown that the current version of Woodroofe-Stein’s identity can be taken one-step further to a series, from which a Gram-Charlier type expansion for multivari-ate densities can be obtained. This result has appeared [3]. Secondly, for the applications to dynamic systems, it is shown that this identity can give a novel derivation to the Kalman gain. The details are given in next section.

2

Kalman filter revisited

The Kalman filter [2] is a recursive method that estimate the latent state of a linear dynamic system. Consider the following linear dynamic model:

Xt = AXt−1+ Wt−1 (1)

Yt = HXt+ Vt (2)

where Xt is unobserved state variable and Yt the measurement variable, both at time t.

Suppose that Xtand Wtare n-dimensional vectors, Ytand Vt are m-dimensional vectors, A

is an n×n matrix, H is an m×n matrix, Wt∼ N (0, Q), Vt∼ N (0, R), Q is n×n, R is m×m,

and both Wt and Vt are independent of Xt, A, H, Q, R are known. Let Dt = {Y1, ..., Yt},

the collection of data up to time t. The state of the system can be represented by the conditional mean and conditional covariance. Before observing the measurement Yt, the a

priori estimate of Xt and the error covariance matrix are defined as

ˆ

Xt− = E(Xt|Dt−1)

Pt− = E[(Xt− ˆXt−)(Xt− ˆXt−) T|D

t−1]. (3)

Given knowledge of Yt, the a posteriori state estimate and the a posteriori estimate error

covariance are

ˆ

Xt= E(Xt|Dt) (4)

(4)

Prediction step ˆ Xt−= A ˆXt−1 Pt−= APt−1AT + Q Update step Kt= Pt−HT HP − t HT + R −1 ˆ Xt= ˆXt−+ Kt(Yt− H ˆXt−) Pt= (In− KtH)Pt−

Table 1: Kalman filter

The Kalman filter propagates the state variable from time t − 1 to time t. The filter consists of two steps: the prediction step and the update step. The prediction step infers from ( ˆXt−1, Pt−1) to ( ˆXt−, P

t ), and the update step from ( ˆX − t , P

t ) to ( ˆXt, Pt). The prediction

and update equations are given in Table 1. The n × m matrix Ktin the update step is called

the Kalman gain. From the state equation (1) and the prior knowledge ( ˆXt−1, Pt−1) on Xt−1,

the prediction equations can be easily obtained. The derivation of update equations are more complicated. It can be derived by first applying Bayes rule to the posterior density of Xt given Dt, expanding the numerator and denominator in the expression, rearranging

all the terms, and employing the Matrix Inversion Lemma. Another approach starts by writing the a posteriori state estimate ˆXt as a linear combination of the a priori estimate

ˆ

Xt− and the difference between the actual measurement Yt and its prediction H ˆXt−,

ˆ

Xt= ˆXt−+ Kt(Yt− H ˆXt−), (6)

and then determining the n × m matrix Kt by minimizing the mean-squared error

E((Xt− ˆXt)T(Xt− ˆXt)|Dt).

The minimization involves substituting (6) into (5), differentiating the trace of Pt with

respect to Kt, and setting the derivative equal to zero to solve Kt. The resulting Kt is

Kt= Pt−HT HP −

t HT + R

−1

. (7)

With the Kalman gain Kt, the posterior covariance matrix can be derived rather

straight-forwardly. To begin, write

Pt= E[(Xt− ˆXt)(Xt− ˆXt)T|Dt]

= E{[(Xt− ˆXt−) − Kt(HXt+ Vt− H ˆXt−)][(Xt− ˆXt−) − Kt(HXt+ Vt− H ˆXt−)]T|Dt}

= Pt−− Pt−HTKtT − KtHPt−+ Kt(HPt−HT + R)KtT, (8)

where the last line follows from (3) and the independence of Xt and Vt. Then, substituting

(7) into (8) gives the update of the error covariance estimate Pt= (I − KtH)Pt−.

(5)

For details of this approach, see Brown and Hwang [1].

Now we show how to derive the update step by Stein’s equation. First, write the posterior density of Xt given Dt as

p(xt|Dt) = p(xt|yt, Dt−1) ∝ p(xt|Dt−1)p(yt|xt, Dt−1)

= prior × likelihood ∝ φ(xt; ˆx−t, P

t )p(yt|xt).

Next, let Σt satisfy (Pt−)−1 = ΣTtΣt and define

Zt= Σt(Xt− ˆXt−). (9)

So, Zt∼ N (0, In), where In is the n × n identity matrix. The posterior density of Zt given

Dt is p(zt|Dt) ∝ f (zt)φn(zt) (10) where f (zt) = e− 1 2(yt−HΣ −1 t zt−H ˆx−t)TR−1(yt−HΣ−1t zt−H ˆx−t). (11)

The density (10) is of the form for Stein’s equation. Therefore, E(Zt|Dt) = E  ∇ztf (Zt) f (Zt) Dt  = E(Σ−1t )THTR−1(Yt− HΣ−1t Zt− H ˆXt−)|Dt  ; and collecting terms involving E(Zt|Dt) yields

1 + (Σ−1t )THTR−1HΣ−1t  E(Zt|Dt) = (Σ−1t )THTR −1(Y

t− H ˆXt−). (12)

Now, from (4), (9), (12), and the property (ABC)−1= C−1B−1A−1, we obtain ˆ Xt = E(Xt|Dt) = ˆXt−+ Σ −1 t E(Zt|Dt) = Xˆt−+ Σ−1t 1 + (Σ−1t )THTR−1HΣt−1−1(Σ−1t )THTR−1(Yt− H ˆXt−) = Xˆt−+ (Pt−)−1+ HTR−1H−1 HTR−1(Yt− H ˆXt−),

which is of the form as (6). Then, the desired expression of the a posteriori state estimate can be derived by an application of the Matrix Inversion Lemma,

(Pt−)−1+ HTR−1H−1

HTR−1 = Pt−HT HPt−HT + R−1 ≡ Kt.

Once Ktis available, the posterior covariance matrix can be derived as shown in the previous

(6)

3

Discussions

The result in the previous section is a joint work with Dr. Coad. It gives a new derivation for the Kalman gain. It will be combined with further findings and submitted later.

References

[1] R. G. Brown and P. Y. C. Hwang. Introduction to Random Signals and Applied Kalman Filtering. John Wiley & Sons, Inc., New York, 3rd edition, 1997.

[2] R. E. Kalman. A new approach to linear filtering and prediction problems. Journal of Basic Engineering, 82(1):35–45, 1960.

[3] R. C. Weng. Expansions for multivariate densities. Journal of Statistical Planning and Inference, 167:174–181, 2015.

(7)

Report on attending The Joint Statistical Meeting, August 8 - 13, 2015, Seattle, Washington.

The Joint Statistical Meetings (JSM) is the largest statistical meeting held in North America. The JSM 2015 was held August 8-13, at the Washington State Con-vention Center. It was jointly held by organizations including American Statistical Association, Institute of Mathematical Statistics, International Chinese Statistical Association, International Society for Bayesian Analysis, Royal Statistical Society, etc. The conference puts together short courses, keynote lectures, scientific sessions, poster session, expositions, social events etc, and provides opportunities for partici-pants to engage and network, and get inspirations to develop new ideas. This year it attracted over 6,000 participants.

This year I was invited by Professor X. Wang in Department of Statistics at University of Connecticut to the topic-contributed session sponsored by Bayesian Statistical Science. My talk title is “Real-time Bayesian inference for latent ability models.” It is about Bayesian online inference for models such as paired-comparison models, item response theory models. I got a good chance to present my work and communicate with many people about my research. I also attended two professional short courses. One of them is “Applied text mining”, which is a hands-on workshop with R code and packages for the practical application of text mining to real-world applications, including data from survey comments, websites, etc. The other one is “Software Engineering for Statisticians”, which provides basics of computer architec-ture, revision control tools, code readability, etc. These materials are taught in a computer science curriculum, but seldom part of a statistics degree; however, they have become increasingly important tools for statisticians.

During these days, I met many old and new friends from industries and academics. Having chats with them inspired me and encouraged me to keep on moving. I have brought course materials from the two workshops. It was really a fruitful trip.

(8)

科技部補助計畫衍生研發成果推廣資料表

日期:2015/09/08

科技部補助計畫

計畫名稱: 動態系統的貝氏分析 計畫主持人: 翁久幸 計畫編號: 102-2118-M-004-003-MY2 學門領域: 數理統計與機率

無研發成果推廣資料

(9)

102 年度專題研究計畫研究成果彙整表

計畫主持人:

翁久幸

計畫編號:

102-2118-M-004-003-MY2

計畫名稱:

動態系統的貝氏分析

量化

成果項目

實際已達成 數(被接受 或已發表) 預期總達成 數(含實際已 達成數)

本計畫實

際貢獻百

分比

單位

備 註

質 化 說

明:如 數 個 計 畫

共 同 成 果、成 果

列 為 該 期 刊 之

封 面 故 事 ...

期刊論文

1

1

100%

研究報告/技術報告

0

0

100%

研討會論文

1

1

100%

論文著作

專書

0

0

100%

申請中件數

0

0

100%

專利

已獲得件數

0

0

100%

件數

0

0

100%

技術移轉

權利金

0

0

100%

千元

碩士生

3

0

100%

博士生

0

0

100%

博士後研究員

0

0

100%

國內

參與計畫人力

(本國籍)

專任助理

0

0

100%

人次

期刊論文

1

1

100%

研究報告/技術報告

0

0

100%

研討會論文

2

2

100%

論文著作

專書

0

0

100%

章/本

申請中件數

0

0

100%

專利

已獲得件數

0

0

100%

件數

0

0

100%

技術移轉

權利金

0

0

100%

千元

碩士生

0

0

100%

博士生

0

0

100%

博士後研究員

0

0

100%

國外

參與計畫人力

(外國籍)

人次

(10)

其他成果

(

無法以量化表達之成

果如辦理學術活動、獲

得獎項、重要國際合

作、研究成果國際影響

力及其他協助產業技

術發展之具體效益事

項等,請以文字敘述填

列。)

成果項目 量化 名稱或內容性質簡述 測驗工具(含質性與量性)

0

課程/模組

0

電腦及網路系統或工具

0

教材

0

舉辦之活動/競賽

0

研討會/工作坊

0

電子報、網站

0

目 計畫成果推廣之參與(閱聽)人數

0

(11)

科技部補助專題研究計畫成果報告自評表

請就研究內容與原計畫相符程度、達成預期目標情況、研究成果之學術或應用價

值(簡要敘述成果所代表之意義、價值、影響或進一步發展之可能性)

、是否適

合在學術期刊發表或申請專利、主要發現或其他有關價值等,作一綜合評估。

1. 請就研究內容與原計畫相符程度、達成預期目標情況作一綜合評估

■達成目標

□未達成目標(請說明,以 100 字為限)

□實驗失敗

□因故實驗中斷

□其他原因

說明:

2. 研究成果在學術期刊發表或申請專利等情形:

論文:□已發表 ■未發表之文稿 □撰寫中 □無

專利:□已獲得 □申請中 ■無

技轉:□已技轉 □洽談中 ■無

其他:(以 100 字為限)

3. 請依學術成就、技術創新、社會影響等方面,評估研究成果之學術或應用價

值(簡要敘述成果所代表之意義、價值、影響或進一步發展之可能性)(以

500 字為限)

動態系統與線上學習方法適用於資料量大且新資料不斷地增加的情況, 當資

料被使用之後,基於儲存等考量,可能不做保留,於當今資料爆炸的年代, 這類

方法更形重要.

本研究探討 Woodroofe-Stein 等式在這個領域之應用, 已用此等式重新導出

如卡爾曼濾波中的 Kalman gain; 並訓練學生對動態羅吉斯模型之認識與應

用.

數據

Table 1: Kalman filter

參考文獻

相關文件

Annular Bearing Engineers Committee American Gear Manufactures’ Association attitude and heading reference systems American Iron and Steel Institute arithmetic logic unit2.

(1. International arts organization: A foundation, association, company, group, or unit whose mission is geared toward culture or the arts. Examples include the American Theatre

Srikant, Fast Algorithms for Mining Association Rules in Large Database, Proceedings of the 20 th International Conference on Very Large Data Bases, 1994, 487-499. Swami,

On the other hand Chandra and Taniguchi (2001) constructed the optimal estimating function esti- mator (G estimator) for ARCH model based on Godambes optimal estimating function

The 2010/11 Statistical Project Competition (SPC) for Secondary School Students, which is organised by the Hong Kong Statistical Society, co-organised by the

AASHTO 分類 (American Association of State Highway and Transportation Officials) UCS 分類(Unified Classification System)5.

American Association of School Librarians, Association for Educational Communications and Technology.. Information power: Building partnerships

mathematical statistics, statistical methods, regression, survival data analysis, categorical data analysis, multivariate statistical methods, experimental design.