疎な転置推移確率行列

Similar documents
マルコフ連鎖の時間発展の数値計算

ランダムウォークの確率の漸化式と初期条件

ランダムウォークの境界条件・偏微分方程式の数値計算

独立性の検定・ピボットテーブル

カテゴリ変数と独立性の検定

データの分布

時系列解析と自己回帰モデル

2変量データの共分散・相関係数・回帰分析

関数のグラフを描こう

II III I ~ 2 ~

中堅中小企業向け秘密保持マニュアル



PR映画-1

- 2 -


1 (1) (2)

Makefile, TCPソケットサーバ, コマンドライン引数

I L01( Wed) : Time-stamp: Wed 07:38 JST hig e, ( ) L01 I(2017) 1 / 19

曲面のパラメタ表示と接線ベクトル

provider_020524_2.PDF

データの分布と代表値

土木工事の

広報なんと10月号

エラー処理・分割コンパイル・コマンドライン引数

時系列解析

How2Gmail

分散分析・2次元正規分布


27

…J…−†[†E…n…‘†[…hfi¯„^‚ΛžfiüŒå

統計的仮説検定とExcelによるt検定

I II III 28 29

生活設計レジメ

44 4 I (1) ( ) (10 15 ) ( 17 ) ( 3 1 ) (2)

Taro13-第6章(まとめ).PDF


untitled

Ax001_P001_目次-1.ai

HG M-PRO 110pt 38mm HG M-PRO 110pt 38mm HG M-PRO 2


untitled

untitled



Exif Viewer, DPOF Editor 使用説明書


01



Made for Life Report 2008

Microsoft Outlook 2013

koji07-02.dvi

IP L09( Tue) : Time-stamp: Tue 14:52 JST hig TCP/IP. IP,,,. ( ) L09 IP (2017) 1 / 28

untitled

コンバートスター15シリーズ 製品パンフレット

- 2 -


key

5-1_a-kanaoka_JPNICSecSemi_Phish_Tech_ _3.PDF


「東京こどもネット・ケータイヘルプデスク(こたエール)」平成22年度相談実績の概要


(個別のテーマ) 薬剤に関連した医療事故

(個別のテーマ) 医療機器の使用に関連した医療事故

(個別のテーマ) 医療処置に関連した医療事故

(個別のテーマ) 放射線検査に関連した医療事故

訪問看護ステーションにおける安全性及び安定的なサービス提供の確保に関する調査研究事業報告書



- - i

untitled


29




喀痰吸引

平成18年度「商品先物取引に関する実態調査」報告書


表紙.PDF

untitled



新築_PDF用

表紙a


AFASパンフ表.ai

.....w...j...[.X55..

cover_jinzai_21

fukushi-yotsukaido113

untitled

URL :




電力技術研究所

untitled

農林金融2015年5月号

untitled

Transcription:

B E05(2019-05-15 Tue) : Time-stamp: 2019-05-17 Fri 16:18 JST hig http://hig3.net ( ) E05 B(2019) 1 / 11

x = 0,..., m 1 m. p(t), p(x, t) 1 double p [m] = { 1. 0, 0. 0,...., 0. 0 } ; /. m. / 2 / {p ( 0, t ), p ( 1, t ), p ( 2, t ),..., p (m 1, t )} / M = ( p 00 p 01 p 10 p 11 ) = ( 0.1 0.3 0.9 0.7 ) 1 double M[ ] [ m]= { { 0. 1, 0. 3 }, 2 { 0. 9, 0. 7 } } ; / 2 / {{p 00, p 01 }, {p 10, p 11 }} q = M p q x = y M xy p y. 1 p [ ] p ( x, 0 ) ; 2 p ; 3 f o r ( t ){ 4 pn=m p ; / / 5 p=pn ; 6 p ; 7 } https://www.data.math.ryukoku.ac.jp/course/ compscib_2019/p/markov01/src/markov01sample.c ( ) E05 B(2019) 2 / 11

1 / 2 3 Time stamp : 2019 05 10 F r i 0 9 : 1 8 JST h i g 4 / 5 #d e f i n e CRT SECURE NO WARNINGS / V i s u a l C++ 6 #i n c l u d e <s t d i o. h> 7 8 / m / 9 #d e f i n e NS 3 10 11 i n t m u l t i p l y t r a n s ( double pn [ ], double p [ ] ) ; 12 i n t p r i n t d i s t ( double p [ ], i n t t, i n t m) ; 13 14 i n t main ( ) { 15 i n t t, tmax ; 16 i n t x ; 17 double p [ NS ] ; / p ( t ) / 18 double pn [ NS ] ; / p ( t +1) / 19 i n t m=ns ; / / 20 21 22 s c a n f ( %d, &tmax ) ; 23 p r i n t f ( #T=%d\n, tmax ) ; ( ) E05 B(2019) 3 / 11

24 25 / / 26 t =0; p [ 0 ] = 1. 0 ; p [ 1 ] = 0. 0 ; p [ 2 ] = 0. 0 ; 27 p r i n t d i s t ( p, t,m) ; 28 29 f o r ( t =0; t<tmax ; t++){ 30 m u l t i p l y t r a n s ( pn, p ) ; / / 31 f o r ( x =0;x<m; x++){ 32 p [ x]=pn [ x ] ; / / 33 } 34 p r i n t d i s t ( p, t +1,m) ; 35 } 36 r e t u r n 0 ; 37 } 38 39 / p M M p q. / 40 i n t m u l t i p l y t r a n s ( double q [ ], double p [ ] ) { 41 i n t x, y ; 42 i n t m=ns ; 43 / / 44 double M[ ] [ NS] = {{0.5, 0. 5, 0. 0 }, 45 { 0. 5, 0. 5, 0. 0 }, 46 { 0. 0, 0. 0, 1. 0 } } ; 47 f o r ( x =0;x<m; x++){ ( ) E05 B(2019) 4 / 11

48 q [ x ]=0; 49 f o r ( y =0;y<m; y++){ 50 q [ x]+=m[ x ] [ y ] p [ y ] ; 51 } 52 } 53 r e t u r n 1 ; 54 } 55 56 / t p 1 / 57 i n t p r i n t d i s t ( double p [ ], i n t t, i n t m){ 58 i n t x ; 59 p r i n t f ( %d,, t ) ; 60 f o r ( x =0;x<m; x++){ 61 p r i n t f ( %f,, p [ x ] ) ; 62 } 63 p r i n t f ( \n ) ; 64 r e t u r n 0 ; 65 } ( ) E05 B(2019) 5 / 11

Quiz( ) m = 3, S = {x} = {0, 1, 2}. ) t = 0, 1, 2,... p(t) =. ( p(0,t) p(1,t) p(2,t), ( ) double p[3]. 1 p[], E[(X(t) + 1) 2 ] double expect(double p[], int m). 2 p[], X(t) > 0 double ratio(double p[], int m). ( ) E05 B(2019) 6 / 11

( B) I 2 3 ( )..,.,... Gmail t000000@mail.ryukoku.ac.jp. ( )PC 1.. Driver Windows,. Navigator,. ( ) E05 B(2019) 7 / 11

( B) II,..,, TA.,,,,. : Gmail. Google Drive.. Moodle,. ( ) E05 B(2019) 8 / 11

( B) III Moodle 1:,, Moodle. Windows, Moodle /. Moodle 2:..,,. ( ) E05 B(2019) 9 / 11

PC Visual Studio Visual Studio Community Edition. https://visualstudio.microsoft.com/ja/downloads/ https: //www.data.math.ryukoku.ac.jp/guide/vs2017/install.php ( ) E05 B(2019) 10 / 11

+ Learn Math Moodle https://learn.math. ryukoku.ac.jp/moodle Moodle App for ios/android URL https: //learn.math.ryukoku.ac. jp/moodle. (PC ). 2019-04-18 5 1-534 Math 1-614 5(1-507/1-542) ( ) E05 B(2019) 11 / 11