NagoyaStat #12 で使用した資料です(公開に当たって当日ホワイトボードに書いた内容等を補完したものになります)。
「StanとRでベイズ統計モデリング」の第9章前半になります。
第9章のテーマは行列やベクトルを使った演算の高速化です。
---
The title of textbook is "Bayesian statistical modeling with Stan and R", and that of Chapter 9 in textbook is "advanced grammar" in English.
NagoyaStat #12 で使用した資料です(公開に当たって当日ホワイトボードに書いた内容等を補完したものになります)。
「StanとRでベイズ統計モデリング」の第9章前半になります。
第9章のテーマは行列やベクトルを使った演算の高速化です。
---
The title of textbook is "Bayesian statistical modeling with Stan and R", and that of Chapter 9 in textbook is "advanced grammar" in English.
42. lpdfとlpmf
• _lpdf
– 対数確率密度関数
• log probability density function
– 連続分布の場合に,分布名の後につける
• normal_lpdf()
• _lpmf
– 対数確率質量関数
• log probability mass function
– 離散分布の場合に,分布名の後につける
• poisson_lpmf()