Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ベイズで単回帰モデルを考える /bayes-simple-linear-regression
Search
Thimblee
November 09, 2022
Technology
0
270
ベイズで単回帰モデルを考える /bayes-simple-linear-regression
Thimblee
November 09, 2022
Tweet
Share
More Decks by Thimblee
See All by Thimblee
巡回セールスマン問題での貪欲法の精度 / accuracy of greedy method in TSP
thimblee
0
750
Other Decks in Technology
See All in Technology
React Routerで実現する型安全なSPAルーティング
sansantech
PRO
2
340
ISUCON、今年も参加してみた / ISUCON, I challenged it again this year.
dero1to
0
110
Storage Browser for Amazon S3
miu_crescent
1
310
12 Days of OpenAIから読み解く、生成AI 2025年のトレンド
shunsukeono_am
0
670
【re:Invent 2024 アプデ】 Prompt Routing の紹介
champ
1
280
Yahoo! ズバトクにおけるフロントエンド開発
lycorptech_jp
PRO
0
110
Qiita埋め込み用スライド
naoki_0531
0
5.4k
LINEスキマニにおけるフロントエンド開発
lycorptech_jp
PRO
0
360
サーバーなしでWordPress運用、できますよ。
sogaoh
PRO
0
140
Working as a Server-side Engineer at LY Corporation
lycorp_recruit_jp
0
450
AWS re:Invent 2024 ふりかえり勉強会
yhana
0
620
「完全に理解したTalk」完全に理解した
segavvy
1
210
Featured
See All Featured
Adopting Sorbet at Scale
ufuk
74
9.1k
Practical Orchestrator
shlominoach
186
10k
Docker and Python
trallard
43
3.2k
A Tale of Four Properties
chriscoyier
157
23k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.3k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
230
52k
Music & Morning Musume
bryan
46
6.2k
Product Roadmaps are Hard
iamctodd
PRO
50
11k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.5k
Producing Creativity
orderedlist
PRO
342
39k
Transcript
ϕΠζͰ୯ճؼϞσϧΛߟ͑Δ 5IJNCMFF 1
ઃఆ ܇࿅σʔλͷઆ໌ม ͱతม ͔ΒҎԼͷ ༧ଌΛٻΊΔ ҎԼͷ୯ճؼϞσϧΛ༻͢Δ x = (x1
, x2 , ⋯, xN )T t = (t1 , t2 , ⋯, tN )T p(t* |x* , t, x) p(t* |x* , w, β) = 𝒩 (t* |w0 + w1 x* , β−1) 2
۩ମతʹ ͜͏͍͏σʔλʹର͍͍ͯ͠ײ͡ʹύϥϝʔλ Λௐͯ͠ɺઢ ΛҾ͖͍ͨɻ͜ͷσʔλେମ ͱͳ͍ͬͯΔɻ w = (w0 , w1
)T y = w0 + w1 x t = − 2 + 2x 3
ϕΠζͷఆཧ p(A|B) = p(A)p(B|A) p(B) 4
ࣄޙ QPTUFSJPS ύϥϝʔλɺ σʔλ ࣄޙΛ༻͍ͨύϥϝʔλͷਪఆ͕ϕΠζਪఆͰ͢ɻ w t p(w|t)
= p(w)p(t|w) p(t) ∝ p(w)p(t|w) (posterior) ∝ (prior)(likelihood) 5
ࣄલ QSJPS p(w) = 𝒩 (w|0, α−1I), α =
0.25 6
ؔ MJLFMJIPPE L(w) = p(t|w) = 𝒩 (t|m, β−1I)
where m = (w0 + w1 x1 , w0 + w1 x2 , ⋯, w0 + w1 xN )T, β = 2.0 7
ؔͷྫ ͜ͷΑ͏ͳ͍͍ײ͡ͷઢͩͱͱ͍͏େ͖͍ΛͱΔ L((−2.1,2.2)T) = 0.39 8
ؔͷྫ ͜ͷΑ͏ͳઢͩͱͱ͍͏ΛͱΔ L((−1.0,0.0)T) = 0.29 9
ؔͷྫ ͜ͷΑ͏ͳѱ͍ઢͩͱͱ͍͏খ͍͞ΛͱΔ L((1.0, − 3.0)T) = 0.18 10
ࣄલͱؔʢ࠶ܝʣ ؔ MJLFMJIPPE ࣄલ QSJPS 11
ࣄલͱؔͷੵ 12
ٻΊΒΕͨઢ ࣄޙ ͷ࣌ʹ࠷େʹͳΔ w = (−1.08,0.38) L((−1.08,0.38)T) = 0.31
13
͚ؔͩʢ࠷ਪఆʣͰ͍͍ͷͰ ϕΠζʢࣄޙʣͩͱσʔλΛ͏·͘දݱͰ͖͍ͯͳ͍ ࣮ࡍɺ͜ͷσʔλΛ୯ճؼϞσϧͰֶश͢ΔࡍʹϕΠζඞཁͳ͍ ʢ୯ճؼϞσϧ͕ཧղ͍͔͢͠Β༻͍ͨʣ ͔͠͠ɺҰൠʹϕΠζͰߟ͑ΔϝϦοτ͕ଟ͍ 14
ϕΠζͷಛ w ύϥϝʔλʢ୯ճؼϞσϧͳΒ ʣʹ͍ͭͯ֬Λߟ͑ΒΕΔ w ࣄલʹʢσʔλҎ֎ͷʣطͷใΛөͤ͞ΒΕΔ w ֬ͷஞ࣍ߋ৽͕Ͱ͖Δ w աֶशΛ͛Δʢਖ਼ଇԽʣ
w ʢଞʹ৭ʑ͋Δͱࢥ͍·͢ʣ w 15
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ 16