<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryamada22</author_name>
  <author_url>https://blog.hatena.ne.jp/ryamada22/</author_url>
  <blog_title>ryamadaの遺伝学・遺伝統計学メモ</blog_title>
  <blog_url>https://ryamada22.hatenablog.jp/</blog_url>
  <categories>
    <anon>R</anon>
    <anon>Dirichlet</anon>
    <anon>Java</anon>
  </categories>
  <description>ディリクレ分布については、Wikipediaの記事がこちら。 このWikipedia記事の図は、３つの独立事象について、 をの場合について、の範囲での範囲について計算し、その結果を、x1,x2の軸についてプロットしたものである。 これをエクセルで計算するとこんな感じ Rで、関数にするとこんな感じ(確率の対数を返す。xには、総和が1となるようなベクトルを与えること) pdirichletLN&lt;-function(x,a){ b=0 for(i in 1:length(a)) b=b+log(gamma(a[i])) c=0 for(i in 1:length(a)) c=c+a[i] d=log…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryamada22.hatenablog.jp%2Fentry%2F20081112%2F1226485182&quot; title=&quot;確率計算 - ryamadaの遺伝学・遺伝統計学メモ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-11-12 19:19:42</published>
  <title>確率計算</title>
  <type>rich</type>
  <url>https://ryamada22.hatenablog.jp/entry/20081112/1226485182</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
