{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fstatmodeling.hatenablog.com%2Fentry%2Fcalc-waic-wbic\" title=\"WAIC\u3068WBIC\u3092\u4e8b\u5f8c\u5206\u5e03\u304b\u3089\u8a08\u7b97\u3059\u308b - StatModeling Memorandum\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u524d\u56de\u306e\u7406\u8ad6\u7684\u306a\u307e\u3068\u3081\u3092\u8e0f\u307e\u3048\u3066Stan\u3067WAIC\u3068WBIC\u3092\u8a08\u7b97\u3057\u3066\u307f\u307e\u3059\u3002 \u4eca\u56de\u306f\u4f8b\u984c\u3068\u3057\u3066\u6df7\u5408\u6b63\u898f\u5206\u5e03\u304b\u3089\u767a\u751f\u3055\u305b\u305f\u30c7\u30fc\u30bf100\u500b\u3092\u7528\u3044\u3066\u30012\u7a2e\u985e\u306e\u30e2\u30c7\u30eb\u3067\u63a8\u5b9a\u3092\u884c\u3044\u3001\u305d\u308c\u305e\u308c\u306b\u5bfe\u3057\u3066WAIC\u3068WBIC\u3092\u6c42\u3081\u3066\u307f\u307e\u3059\u3002\u307e\u305a\u306f\u30c7\u30fc\u30bf\u751f\u6210\u90e8\u5206\u306eR\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u3067\u3059\u3002 N <- 100 a_true <- 0.4 mean1 <- 0 mean2 <- 3 sd1 <- 1 sd2 <- 1 set.seed(1) Y <- c(rnorm((1-a_true)*N, mean1, sd1), rnorm(a_true*N, mean2, sd2)) \u6b21\u306b\u30e2\u30c7\u30eb\u305d\u306e1\u306e\u8aac\u660e\u3067\u3059\u3002\u3053\u3053\u3067\u306f2\u3064\u306e\u6b63\u898f\u2026","author_url":"https://blog.hatena.ne.jp/StatModeling/","title":"WAIC\u3068WBIC\u3092\u4e8b\u5f8c\u5206\u5e03\u304b\u3089\u8a08\u7b97\u3059\u308b","type":"rich","provider_name":"Hatena Blog","categories":["Stan","R"],"version":"1.0","blog_url":"https://statmodeling.hatenablog.com/","width":"100%","author_name":"StatModeling","image_url":"https://blog.st-hatena.com/images/theme/og-image-1500.png","provider_url":"https://hatena.blog","url":"https://statmodeling.hatenablog.com/entry/calc-waic-wbic","blog_title":"StatModeling Memorandum","published":"2015-09-12 00:00:00","height":"190"}