forked from vsimkus/pmr2024-pgm-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
heckermans-car-extended-BayesNet.bif
86 lines (79 loc) · 1.91 KB
/
heckermans-car-extended-BayesNet.bif
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
network unknown {
}
variable Battery {
type discrete [ 2 ] { Bad, Good };
}
variable Fuel {
type discrete [ 2 ] { Empty, Not_empty };
}
variable Gauge {
type discrete [ 2 ] { Empty, Not_empty };
}
variable Start1 {
type discrete [ 2 ] { No, Yes };
}
variable Start2 {
type discrete [ 2 ] { No, Yes };
}
variable Start3 {
type discrete [ 2 ] { No, Yes };
}
variable TurnOver1 {
type discrete [ 2 ] { No, Yes };
}
variable TurnOver2 {
type discrete [ 2 ] { No, Yes };
}
variable TurnOver3 {
type discrete [ 2 ] { No, Yes };
}
probability ( Battery ) {
table 0.02, 0.98 ;
}
probability ( Fuel ) {
table 0.05, 0.95 ;
}
probability ( Gauge | Battery, Fuel ) {
( Bad, Empty ) 0.99, 0.01;
( Bad, Not_empty ) 0.1, 0.9;
( Good, Empty ) 0.97, 0.03;
( Good, Not_empty ) 0.04, 0.96;
}
probability ( Start1 | TurnOver1, Fuel ) {
( No, Empty ) 1.0, 0.0;
( No, Not_empty ) 1.0, 0.0;
( Yes, Empty ) 0.92, 0.08;
( Yes, Not_empty ) 0.01, 0.99;
}
probability ( Start2 | TurnOver2, Fuel, Start1 ) {
( No, Empty, No ) 1.0, 0.0;
( No, Empty, Yes ) 0.0, 1.0;
( No, Not_empty, No ) 1.0, 0.0;
( No, Not_empty, Yes ) 0.0, 1.0;
( Yes, Empty, No ) 0.92, 0.08;
( Yes, Empty, Yes ) 0.0, 1.0;
( Yes, Not_empty, No ) 0.01, 0.99;
( Yes, Not_empty, Yes ) 0.0, 1.0;
}
probability ( Start3 | TurnOver3, Fuel, Start2 ) {
( No, Empty, No ) 1.0, 0.0;
( No, Empty, Yes ) 0.0, 1.0;
( No, Not_empty, No ) 1.0, 0.0;
( No, Not_empty, Yes ) 0.0, 1.0;
( Yes, Empty, No ) 0.92, 0.08;
( Yes, Empty, Yes ) 0.0, 1.0;
( Yes, Not_empty, No ) 0.01, 0.99;
( Yes, Not_empty, Yes ) 0.0, 1.0;
}
probability ( TurnOver1 | Battery ) {
( Bad ) 0.98, 0.02;
( Good ) 0.03, 0.97;
}
probability ( TurnOver2 | Battery ) {
( Bad ) 0.98, 0.02;
( Good ) 0.03, 0.97;
}
probability ( TurnOver3 | Battery ) {
( Bad ) 0.98, 0.02;
( Good ) 0.03, 0.97;
}