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
260
ベイズで単回帰モデルを考える /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
720
Other Decks in Technology
See All in Technology
インフラとバックエンドとフロントエンドをくまなく調べて遅いアプリを早くした件
tubone24
1
430
Lambda10周年!Lambdaは何をもたらしたか
smt7174
2
110
Engineer Career Talk
lycorp_recruit_jp
0
160
iOS/Androidで同じUI体験をネ イティブで作成する際に気をつ けたい落とし穴
fumiyasac0921
1
110
リンクアンドモチベーション ソフトウェアエンジニア向け紹介資料 / Introduction to Link and Motivation for Software Engineers
lmi
4
300k
Making your applications cross-environment - OSCG 2024 NA
salaboy
0
190
信頼性に挑む中で拡張できる・得られる1人のスキルセットとは?
ken5scal
2
530
New Relicを活用したSREの最初のステップ / NRUG OKINAWA VOL.3
isaoshimizu
2
590
Can We Measure Developer Productivity?
ewolff
1
150
Why does continuous profiling matter to developers? #appdevelopercon
salaboy
0
190
Why App Signing Matters for Your Android Apps - Android Bangkok Conference 2024
akexorcist
0
130
マルチプロダクトな開発組織で 「開発生産性」に向き合うために試みたこと / Improving Multi-Product Dev Productivity
sugamasao
1
300
Featured
See All Featured
A better future with KSS
kneath
238
17k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
Automating Front-end Workflow
addyosmani
1366
200k
What's in a price? How to price your products and services
michaelherold
243
12k
Rails Girls Zürich Keynote
gr2m
94
13k
Adopting Sorbet at Scale
ufuk
73
9.1k
Side Projects
sachag
452
42k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
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