{"author_name":"ryamada22","url":"https://ryamada22.hatenablog.jp/entry/20110704/1309655122","height":"190","blog_url":"https://ryamada22.hatenablog.jp/","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/ryamada22/","type":"rich","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/r/ryamada22/20110703/20110703102442.jpg","description":"N1<-100 N2<-150 p1<-p2<-0.3 Niter<-10000 p.out<-rep(0,Niter) v1<-c(rep(1,N1),rep(2,N2)) for(i in 1:Niter){ v2<-sample(c(1,2),N1+N2,replace=TRUE,prob=c(p1,1-p1)) #print(table(v1,v2)) #p.out[i]<-chisq.test(c(rep(1,N1),rep(2,N2)),c(v1,v2))$p.value p.out[i]<-chisq.test(table(v1,v2),correct=FALSE)$p.valu\u2026","categories":["R"],"title":"(2) \u5e30\u7121\u4eee\u8aac\u304b\u3089\u306e\uff12\uff58\uff12\u8868\u30e9\u30f3\u30c0\u30e0\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryamada22.hatenablog.jp%2Fentry%2F20110704%2F1309655122\" title=\"(2) \u5e30\u7121\u4eee\u8aac\u304b\u3089\u306e\uff12\uff58\uff12\u8868\u30e9\u30f3\u30c0\u30e0\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0 - 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>","published":"2011-07-04 10:05:22","blog_title":"ryamada\u306e\u907a\u4f1d\u5b66\u30fb\u907a\u4f1d\u7d71\u8a08\u5b66\u30e1\u30e2","width":"100%","version":"1.0"}