Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A.1.5 の mu_N を求めるコードに関して #1

Closed
yohpapa opened this issue Jul 9, 2023 · 3 comments
Closed

A.1.5 の mu_N を求めるコードに関して #1

yohpapa opened this issue Jul 9, 2023 · 3 comments

Comments

@yohpapa
Copy link

yohpapa commented Jul 9, 2023

上田先生、はじめまして。
大変分かりやすくて楽しい書籍、ありがとうございます。先生の生徒さんがうらやましいです!

gauss_gamma.ipynb に関して質問させて下さい。

mu_N = 1.0/(N+beta_0)*sum(samples) + beta_0/(N+beta_0)*mu_0

書籍の内容からすると

mu_N = 1.0/(N+zeta_0)*sum(samples) + zeta_0/(N+zeta_0)*mu_0

が正しいように見えるのですが、いかがでしょうか?結果がさほど変わらないのであまり自信がなく、ご質問させて頂きました。

オリジナルの結果: mu_N == 207.14285714285714
修正の結果: mu_N == 208.33333333333331

@yohpapa yohpapa closed this as completed Jul 9, 2023
@yohpapa yohpapa reopened this Jul 9, 2023
@ryuichiueda
Copy link
Owner

お、ありがとうございます。すぐ手はつけられんのですが数日以内には検証します!

@ryuichiueda
Copy link
Owner

確認しました。ご指摘のとおりですー。これから訂正ページへの記載とコードの修正をします!

ありがとうございます

@ryuichiueda
Copy link
Owner

完了しました。ありがとうございました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants