Professional Documents
Culture Documents
LEARNING
ASSIGNMENT – II
V2=52.16
Since we have initialized the 3 parameters for 2 components,
Step3:
To Compute weight W1,
G(X|M1,V1)=((1/2pi|V1|)^0.5)exp(-0.5[X-M1]^T V1^-1[X-M1])
Substitue 40 45 50 55 60 65 70 75 80 85 90 95 100
G(X|M1,V1) 0.008 0.020 0.035 0.041 0.028 0.013 0.005 0.001 0 0 0 0 0
G(X|M2,V2)=((1/2pi|V2|)^0.5)exp(-0.5[X-M2]^T V1^-1[X-M2])
Substitue 40 45 50 55 60 65 70 75 80 85 90 95 100
G(X|M1,V1) 0 0 0 0 0 0.001 0.004 0.015 0.036 0.054 0.05 0.028 0.01
There for
𝑁
1 𝑊1.𝐺1(𝑋𝑛|𝑀1,𝑉1)
W1,new = ∑
𝑁 𝑛=1 ∑𝑤𝑘.𝐺(𝑋𝑛|𝑀𝑘,𝑉𝑘)
W1,new =0.494
𝑁
1 𝑊2.𝐺2(𝑋𝑛|𝑀2,𝑉2)
W2,new = ∑
𝑁 𝑛=1 ∑𝑤𝑘.𝐺(𝑋𝑛|𝑀𝑘,𝑉𝑘)
W2,new = 0.506
𝑛
𝑊2.𝐺2(𝑋𝑛|𝑀1,𝑉1)
∑ =128.06
𝑛=0 ∑𝑤𝑘.𝐺(𝑋𝑛|𝑀𝑘,𝑉𝑘)
𝑛
𝑊2.𝐺2(𝑋𝑛|𝑀1,𝑉1)
∑ ∑𝑤𝑘.𝐺(𝑋𝑛|𝑀𝑘,𝑉𝑘) 7728.26
M1,new= 𝑛=0
𝑛 Xn = =55.45
∑
𝑊2.𝐺2(𝑋𝑛|𝑀1,𝑉1) 128.06
𝑛=0∑𝑤𝑘.𝐺(𝑋𝑛|𝑀𝑘,𝑉𝑘)
𝑛
𝑊2.𝐺2(𝑋𝑛|𝑀1, 𝑉1)
∑ (𝑋𝑛 − 𝑀1)^2=11006.97
𝑛=0 ∑𝑤𝑘.𝐺(𝑋𝑛|𝑀𝑘, 𝑉𝑘 )
𝑛
𝑊2.𝐺2(𝑋𝑛|𝑀1,𝑉1)
∑ =128.06
𝑛=0 ∑𝑤𝑘.𝐺(𝑋𝑛|𝑀𝑘,𝑉𝑘)
𝑛
𝑊2.𝐺2(𝑋𝑛|𝑀1,𝑉1)
∑ ∑𝑤𝑘.𝐺(𝑋𝑛|𝑀𝑘,𝑉𝑘) 11006.97
V1,new= 𝑛=0
𝑛 (Xn-Mk)^2= =85.95
∑
𝑊2.𝐺2(𝑋𝑛|𝑀1,𝑉1) 128.06
𝑛=0∑𝑤𝑘.𝐺(𝑋𝑛|𝑀𝑘,𝑉𝑘)
Step 4:
The threshold can be found when the following requirement is fulfills
W1. G(X|M1,V1) = W2. G(X|M2,V2)
By solving the above equations we get
[V2-V1]X^2+2[V1M1-V2M2]+V2M1^2-V1M2^2-
2V1V2log[(W1(V2)^0.5)/ (W2(V1)^0.5)] = 0
By solving by quadratic equation formula we get
X=72.76 or 222.4
Hence X= 72.72 is within the range
So, any student with exam score less than 73 will be for regular class.