<?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>機械学習</anon>
    <anon>R</anon>
    <anon>MCMC</anon>
  </categories>
  <description>マルコフ連鎖モンテカルロ法 (統計ライブラリー)の1.2.3を参考にしつつ。rejection samplingでは、target distributionからの乱数を間接的に取ってきているわけですが、今度はxの関数h(x)の期待値に興味があるとしましょう。で、積分が難しいので、サンプリングしてどうこうしまようというのがこのimportance sampling。ここではh(x)=xとして、普通に期待値を計算させてきましょう。g(x)はh(x)p(x)になるべく近く、サンプリング可能であるとする、ということなので、またガンマ関数から取ってこれないとして、コーシー分布から取ってくるというのをやり…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.yasuhisay.info%2Fentry%2F20081212%2F1229095581&quot; title=&quot;Example of importance sampling - 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/20161024/20161024213125.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-12-12 00:26:21</published>
  <title>Example of importance sampling</title>
  <type>rich</type>
  <url>https://www.yasuhisay.info/entry/20081212/1229095581</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
