<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>syou6162</author_name>
  <author_url>https://blog.hatena.ne.jp/syou6162/</author_url>
  <blog_title>yasuhisa's blog</blog_title>
  <blog_url>https://www.yasuhisay.info/</blog_url>
  <categories>
    <anon>R</anon>
    <anon>MCMC</anon>
  </categories>
  <description>もちろんRで。 2変数正規分布 2変数の正規分布からのサンプリングはここのをそのまままねすると B &lt;- 2000 x1 &lt;- rep(NA,B+1) x2 &lt;- rep(NA,B+1) x1[1] &lt;- -2 x2[1] &lt;- 1 for (i in 1:B){ x1[i+1] &lt;- rnorm(1,1+0.7*(x2[i]-2),sqrt(1-0.7^2)) x2[i+1] &lt;- rnorm(1,2+0.7*(x1[i+1]-1),sqrt(1-0.7^2)) } 相関係数もこんな感じになって、 &gt; cor(x1,x2) [1] 0.712666 散布図もこんな感じ。うまくいってますね。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yasuhisay.info%2Fentry%2F20090115%2F1231965900&quot; title=&quot;Gibbs Sampler Algorithmによって多変量正規分布からのサンプル抽出を行なう - yasuhisa&amp;#39;s blog&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://cdn-ak.f.st-hatena.com/images/fotolife/s/syou6162/20161010/20161010132957.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-01-15 05:45:00</published>
  <title>Gibbs Sampler Algorithmによって多変量正規分布からのサンプル抽出を行なう</title>
  <type>rich</type>
  <url>https://www.yasuhisay.info/entry/20090115/1231965900</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
