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
810
Other Decks in Technology
See All in Technology
Amazon Athenaから利用時のGlueのIcebergテーブルのメンテナンスについて
nayuts
0
110
開発組織を進化させる!AWSで実践するチームトポロジー
iwamot
2
540
RaspberryPi CM4(CM5も)面白いぞ!
nonnoise
0
110
AI自体のOps 〜LLMアプリの運用、AWSサービスとOSSの使い分け〜
minorun365
PRO
9
1.1k
開発者体験を定量的に把握する手法と活用事例
ham0215
0
130
"TEAM"を導入したら最高のエンジニア"Team"を実現できた / Deploying "TEAM" and Building the Best Engineering "Team"
yuj1osm
1
240
x86-64 Assembly Essentials
latte72
3
420
クラウド関連のインシデントケースを収集して見えてきたもの
lhazy
9
1.9k
アジャイルな開発チームでテスト戦略の話は誰がする? / Who Talks About Test Strategy?
ak1210
1
830
事業モメンタムを生み出すプロダクト開発
macchiitaka
0
110
IAMのマニアックな話2025
nrinetcom
PRO
6
1.4k
20250304_赤煉瓦倉庫_DeepSeek_Deep_Dive
hiouchiy
2
130
Featured
See All Featured
Producing Creativity
orderedlist
PRO
344
40k
Facilitating Awesome Meetings
lara
53
6.3k
The Cult of Friendly URLs
andyhume
78
6.2k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
13
1k
Reflections from 52 weeks, 52 projects
jeffersonlam
348
20k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.3k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Thoughts on Productivity
jonyablonski
69
4.5k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Building a Scalable Design System with Sketch
lauravandoore
461
33k
Testing 201, or: Great Expectations
jmmastey
42
7.2k
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