Skip to Content
Think Bayes ―プログラマのためのベイズ統計入門
book

Think Bayes ―プログラマのためのベイズ統計入門

by Allen B. Downey, 黒川 利明
September 2014
Intermediate to advanced
236 pages
4h 17m
Japanese
O'Reilly Japan, Inc.
Content preview from Think Bayes ―プログラマのためのベイズ統計入門
15.6
 階層を畳む
187
未知族の個数だけである。したがって、本当は、
n
個のディリクレオブジェクトを
必要としない。階層最上位にパラメータを保持できる。
Species2
は、この最適化
を実装している。
Species2
は、すべての仮説について同じランダム値集合を使ってもいる。これ
は、ランダム値を生成する時間を節約するが、より重要なことがわかるという利
点もある。すべての仮説にサンプル空間から同じ選択をすることで、仮説間の比
較をより公正にできるので、収束するまでの繰り返し回数が少なくなる。
これらの変更を施しても、性能上の大きな問題が残っている。観察した種の個
数が増えるにつれて、ランダム占有率の配列が大きくなり、近似的に正しい配列
を選ぶ機会が小さくなる。したがって、繰り返しのほとんど大半が小さな尤度し
か持たず、全体にあまり寄与せず、仮説間の差異も明らかにしない。解は、一
度に
1
つずつ種を更新することである。
Species4
はこの戦略の単純な実装で、
Dirichlet
オブジェクトを使って下位仮説を表している。
最後に、
Species5
が下位仮説を組み合わせて最上位にして、
numpy
配列演算を使っ
て速度を速める。
詳細に興味がなければ、おへそのデータからの結果を示した「15.9 おへそデータ」
の節まで飛ばしても構わない。
15.6
 階層を畳む
最下位ディリクレ分布のすべては、同じデータで更新されるので、すべてについて
最初の
m
個のパラメータは同じである。それらを取り除いて、パラメー ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Think Stats 第2版 ―プログラマのための統計入門

Think Stats 第2版 ―プログラマのための統計入門

Allen B. Downey, 黒川 利明, 黒川 洋

Publisher Resources

ISBN: 9784873116945Other