<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>StatModeling</author_name>
  <author_url>https://blog.hatena.ne.jp/StatModeling/</author_url>
  <blog_title>StatModeling Memorandum</blog_title>
  <blog_url>https://statmodeling.hatenablog.com/</blog_url>
  <categories>
    <anon>Stan</anon>
    <anon>R</anon>
  </categories>
  <description>前回の理論的なまとめを踏まえてStanでWAICとWBICを計算してみます。 今回は例題として混合正規分布から発生させたデータ100個を用いて、2種類のモデルで推定を行い、それぞれに対してWAICとWBICを求めてみます。まずはデータ生成部分のRコードは以下です。 N &lt;- 100 a_true &lt;- 0.4 mean1 &lt;- 0 mean2 &lt;- 3 sd1 &lt;- 1 sd2 &lt;- 1 set.seed(1) Y &lt;- c(rnorm((1-a_true)*N, mean1, sd1), rnorm(a_true*N, mean2, sd2)) 次にモデルその1の説明です。ここでは2つの正規…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fstatmodeling.hatenablog.com%2Fentry%2Fcalc-waic-wbic&quot; title=&quot;WAICとWBICを事後分布から計算する - StatModeling Memorandum&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-09-12 00:00:00</published>
  <title>WAICとWBICを事後分布から計算する</title>
  <type>rich</type>
  <url>https://statmodeling.hatenablog.com/entry/calc-waic-wbic</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
