{"image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/m/misos/20181013/20181013164603.png","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpaper.hatenadiary.jp%2Fentry%2F2018%2F10%2F13%2F164539\" title=\"python\u3067KL\u8ddd\u96e2(KL\u30c0\u30a4\u30d0\u30fc\u30b8\u30a7\u30f3\u30b9) - \u3081\u3082\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","author_name":"misos","url":"https://paper.hatenadiary.jp/entry/2018/10/13/164539","title":"python\u3067KL\u8ddd\u96e2(KL\u30c0\u30a4\u30d0\u30fc\u30b8\u30a7\u30f3\u30b9)","author_url":"https://blog.hatena.ne.jp/misos/","provider_name":"Hatena Blog","type":"rich","blog_url":"https://paper.hatenadiary.jp/","categories":["python"],"blog_title":"\u3081\u3082","height":"190","published":"2018-10-13 16:45:39","width":"100%","version":"1.0","description":"\u30c7\u30fc\u30bf\u3092\u751f\u6210 KL-divergence \u5b9f\u884c\u7d50\u679c \u53c2\u8003\u6587\u732e \u30c7\u30fc\u30bf\u3092\u751f\u6210 N=10000\u500b\u3060\u3051\u6b63\u898f\u5206\u5e03\u3001\u30d1\u30ec\u30fc\u30c8\u5206\u5e03\uff08\u81ea\u7531\u5ea610\uff09\u3001\u3079\u304d\u5206\u5e03\u304b\u3089\u30b5\u30f3\u30d7\u30eb\u3092\u751f\u6210\u3002 import matplotlib.pyplot as plt import numpy as np # \u30b5\u30f3\u30d7\u30eb\u6570 N=10000 # \u5404\u5206\u5e03\u304b\u3089\u30b5\u30f3\u30d7\u30eb\u3092N\u500b\u751f\u6210 x = np.random.normal(size=N) x2 = np.random.normal(size=N) y = np.random.pareto(10, size=N) y2 = np.random.pareto(10, size=N) z = np.r\u2026"}