<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aidiary</author_name>
  <author_url>https://blog.hatena.ne.jp/aidiary/</author_url>
  <blog_title>人工知能に関する断創録</blog_title>
  <blog_url>https://aidiary.hatenablog.com/</blog_url>
  <categories>
    <anon>機械学習</anon>
    <anon>PRML</anon>
  </categories>
  <description>Pythonによるモンテカルロ法入門（2014/6/20）の受理・棄却法（2014/7/12）の2回目。前回は、提案分布に一様分布を使ったためサンプリングの効率が悪かった。今回は、より効率のよい提案分布gとしてベータ分布を使ってみよう。目標分布fは前回と同じベータ分布。下の図を見ればわかるように提案分布では目標分布を覆えていない。すっぽり覆えるように提案分布をM倍する必要がある。Mを求めるには前回と同様にscipy.optimizeを使った。 # f(x)/g(x)を最大化するxoptを求める xopt = scipy.optimize.fmin(lambda x: - f(x) / g(x)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faidiary.hatenablog.com%2Fentry%2F20140713%2F1405255289&quot; title=&quot;受理・棄却法 (2) - 人工知能に関する断創録&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>http://cdn-ak.f.st-hatena.com/images/fotolife/a/aidiary/20140713/20140713213838.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-07-13 21:41:29</published>
  <title>受理・棄却法 (2)</title>
  <type>rich</type>
  <url>https://aidiary.hatenablog.com/entry/20140713/1405255289</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
