Posted by Ben Perry on February 20, 2001 at 11:30:02:
In Reply to: Re: problem solved posted by hpguo on February 19, 2001 at 22:03:09:
Could you verfiy the correctness of these numbers?
Here is the following probabilities for Alarm after instantiating Node 12 to 1 and Node 16 to 3:
ChanceBlock: 27
P(2) = 0.9055278025919438
P(1) = 0.09447219740805628
ChanceBlock: 4
P(3) = 0.4303877432905256
P(2) = 0.4658195513009422
P(1) = 0.10379270540853233
ChanceBlock: 11
P(3) = 0.728974053638248
P(2) = 0.0918038890069486
P(1) = 0.17922205735480362
ChanceBlock: 6
P(3) = 0.2653801275945198
P(2) = 0.13913285563015046
P(1) = 0.5954870167753299
ChanceBlock: 33
P(3) = 0.4903749440695206
P(1) = 0.2726750805872227
P(2) = 0.23694997534325693
ChanceBlock: 20
P(2) = 0.8604488020656136
P(1) = 0.13955119793438697
ChanceBlock: 35
P(4) = 0.07164974817558811
P(1) = 0.0711708810110917
P(2) = 0.6996172822119681
P(3) = 0.15756208860135232
ChanceBlock: 14
P(4) = 0.11376405033856933
P(2) = 0.48929286187270915
P(3) = 0.27006676411165237
P(1) = 0.12687632367706927
ChanceBlock: 34
P(4) = 0.015994106514707576
P(1) = 0.005492182636290544
P(2) = 0.2840931213059985
P(3) = 0.6944205895430037
ChanceBlock: 31
P(2) = 0.3850759480272378
P(1) = 0.6149240519727621
ChanceBlock: 32
P(3) = 0.01263037634902438
P(1) = 0.6888708557660546
P(2) = 0.2984987678849217
ChanceBlock: 22
P(3) = 3.502550108182226E-7
P(1) = 0.9999995909212922
P(2) = 5.882369721395998E-8
ChanceBlock: 15
P(4) = 0.016512056191233748
P(1) = 0.5097826471452713
P(2) = 0.08543546443681573
P(3) = 0.3882698322266792
ChanceBlock: 36
P(4) = 0.7609393689452308
P(2) = 0.1373011612414015
P(1) = 0.024178892473120703
P(3) = 0.07758057734024694
ChanceBlock: 23
P(2) = 0.9975879461195648
P(1) = 0.0024120538804347368
ChanceBlock: 13
P(4) = 0.289908205917774
P(1) = 0.1543045092495186
P(2) = 0.3153366407806697
P(3) = 0.24045064405203778
ChanceBlock: 37
P(4) = 0.9031409523384233
P(3) = 0.02700030046911008
P(1) = 0.014253773550276499
P(2) = 0.055604973642190095
ChanceBlock: 24
P(2) = 0.9824851523799274
P(1) = 0.017514847620072646
ChanceBlock: 21
P(2) = 0.9998042140954323
P(1) = 1.9578590456781643E-4
ChanceBlock: 10
P(3) = 0.26858927682042194
P(2) = 0.2648309445058537
P(1) = 0.4665797786737245
ChanceBlock: 19
P(2) = 0.9792022482017072
P(1) = 0.020797751798293088
ChanceBlock: 29
P(3) = 0.06410302877175318
P(2) = 0.012865187150490119
P(1) = 0.9230317840777569
ChanceBlock: 26
P(3) = 0.014756015108335397
P(2) = 0.28712950046730756
P(1) = 0.6981144844243571
ChanceBlock: 18
P(2) = 0.9999923471060601
P(1) = 7.652893939937127E-6
ChanceBlock: 17
P(2) = 0.9989677102328238
P(1) = 0.0010322897671762286
ChanceBlock: 25
P(3) = 0.03236658801863079
P(2) = 0.11106315905963113
P(1) = 0.8565702529217382
ChanceBlock: 2
P(3) = 0.05065794875510086
P(2) = 0.13443045726532876
P(1) = 0.8149115939795705
ChanceBlock: 1
P(3) = 0.06973928696471936
P(2) = 0.11399907985617982
P(1) = 0.816261633179101
ChanceBlock: 3
P(2) = 0.8855510071430729
P(1) = 0.11444899285692714
ChanceBlock: 30
P(2) = 0.9980948793248209
P(1) = 0.0019051206751789953
ChanceBlock: 9
P(3) = 0.6053406642857533
P(1) = 0.21575887853318265
P(2) = 0.1789004571810639
ChanceBlock: 8
P(3) = 0.6114281009281096
P(1) = 0.23189676536888787
P(2) = 0.15667513370300237
ChanceBlock: 7
P(3) = 0.47409357783262857
P(1) = 0.13704541349379648
P(2) = 0.38886100867357476
ChanceBlock: 28
P(2) = 0.9874106281260265
P(1) = 0.012589371873973139
: Good! Does that mean it works well on alarm network?
: Please let me have the most recent version of all your code. Thanks!
: -hpguo
:
: : I have solved the problem; it was a very easy fix and was probably just overlooked in Laura's code; in CreateCliqueTree.java, I changed a line that says "if (pass)" to "if (passall)"
: : -Ben