CS340: Machine Learning Modelling discrete data with Bernoulli and multinomial distributions Kevin Murphy
1
CS340: Machine Learning Modelling discrete data with Bernoulli and - - PowerPoint PPT Presentation
CS340: Machine Learning Modelling discrete data with Bernoulli and multinomial distributions Kevin Murphy 1 Modeling discrete data Some data is discrete/ symbolic, e.g., words, DNA sequences, etc. We want to build probabilistic models
1
2
3
4
5
6
7
8
0.5 1 1 2 3 4 a=0.10, b=0.10 0.5 1 0.5 1 1.5 2 a=1.00, b=1.00 0.5 1 0.5 1 1.5 2 a=2.00, b=3.00 0.5 1 1 2 3 a=8.00, b=4.00
9
10
0.5 1 0.5 1 1.5 2 p(θ)=Be(2,2) 0.5 1 0.5 1 1.5 2 p(x=1|θ) 0.5 1 0.5 1 1.5 2 p(θ|x=1)=Be(3,2)
11
0.5 1 0.5 1 1.5 2 p(θ)=Be(2,2) 0.5 1 0.5 1 1.5 2 p(x=1|θ) 0.5 1 0.5 1 1.5 2 p(θ|x=1)=Be(3,2) 0.5 1 0.5 1 1.5 2 p(θ)=Be(3,2) 0.5 1 0.5 1 1.5 2 p(x=1|θ) 0.5 1 0.5 1 1.5 2 p(θ|x=1)=Be(4,2) 0.5 1 0.5 1 1.5 2 p(θ)=Be(4,2) 0.5 1 0.5 1 1.5 2 p(x=1|θ) 0.5 1 0.5 1 1.5 2 p(θ|x=1)=Be(5,2) 0.5 1 0.5 1 1.5 2 p(θ)=Be(2,2) 0.5 1 0.5 1 1.5 2 p(D=1,1,1|θ) 0.5 1 0.5 1 1.5 2 p(θ|D=1,1,1)=Be(5,2)
12
13
14
15
16
17
18
0.2 0.4 0.6 0.8 1 0.5 1 1.5 2 2.5 3 3.5 a=0.10, b=0.10 0.2 0.4 0.6 0.8 1 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 a=1.00, b=1.00
19
20
21
22
23
24
25
26
27