{"image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/r/ryamada22/20130825/20130825044806.jpg","title":"\u30de\u30eb\u30c1\u30d7\u30eb\u30c6\u30b9\u30c6\u30a3\u30f3\u30b0\uff1aJames-Stein\u63a8\u5b9a","categories":["James-Stein","\u63a8\u5b9a","\u30d9\u30a4\u30ba"],"type":"rich","url":"https://ryamada22.hatenablog.jp/entry/20130827/1377371200","provider_url":"https://hatena.blog","description":"\u3053\u3061\u3089\u304b\u3089 my.JS.estimate <- function(x){ m <- mean(x) A1 <- (length(x)-2)/sum((x-m)^2) y <- (1-A1)*(x-m) +m return(y) } n.iter <- 1000 N <- 1000 A <-pi R.As <- R.Bs <- rep(0,n.iter) for(i in 1:n.iter){ # \u5909\u306a\u30c7\u30fc\u30bf\u3068\u3057\u3066\u3001\u6b63\u898f\u5206\u5e03\u3068\u6307\u6570\u5206\u5e03\u306e\u5408\u308f\u3055\u3063\u305f\u3082\u306e\u3092\u3064\u304f\u3063\u3066\u307f\u308b N <- 100 N2 <- 50 A <- 4 A2 <- 6 mu <- rnorm(N,3,sqrt(A)) mu2 <- r\u2026","blog_title":"ryamada\u306e\u907a\u4f1d\u5b66\u30fb\u907a\u4f1d\u7d71\u8a08\u5b66\u30e1\u30e2","published":"2013-08-27 04:06:40","version":"1.0","author_name":"ryamada22","width":"100%","provider_name":"Hatena Blog","blog_url":"https://ryamada22.hatenablog.jp/","author_url":"https://blog.hatena.ne.jp/ryamada22/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryamada22.hatenablog.jp%2Fentry%2F20130827%2F1377371200\" title=\"\u30de\u30eb\u30c1\u30d7\u30eb\u30c6\u30b9\u30c6\u30a3\u30f3\u30b0\uff1aJames-Stein\u63a8\u5b9a - ryamada\u306e\u907a\u4f1d\u5b66\u30fb\u907a\u4f1d\u7d71\u8a08\u5b66\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}