forked from amit-sharma/causal-inference-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcausal_diagram_mlds_tutorial.gv
30 lines (30 loc) · 1 KB
/
causal_diagram_mlds_tutorial.gv
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
digraph G {
#rankdir=LR
Ux [label=<U<SUB>X</SUB>>];
Uy [label=<U<SUB>Y</SUB>>];
Up [label=<U<SUB>P</SUB>>];
PriceX [label=<Price<SUB>X</SUB>>, style=filled];
CategoryX [label=<Category<SUB>X</SUB>>, style=filled];
PriceY [label=<Price<SUB>Y</SUB>>, style=filled];
CategoryY [label=<Category<SUB>Y</SUB>>, style=filled];
Sex [label=<Sex<SUB>P</SUB>>, style=filled];
Location [label=<Location<SUB>P</SUB>>, style=filled];
UserHistory [label=<History<SUB>P</SUB>>, style=filled];
UserProfile [label=<Profile<SUB>P</SUB>>, style=filled];
X [label=<Visit<SUB>X,P</SUB>>, style=filled];
Yr [label=<RecVisit<SUB>Y,P</SUB>>, style=filled];
{
rank=min
Ux -> Uy [style=dotted,dir="both"]
}
Ux -> X
Uy -> Yr
Up -> UserProfile
{rank=same Sex Location UserHistory} -> UserProfile
UserProfile -> {X Yr}
{rank=same PriceX CategoryX} -> X
{rank=same PriceY CategoryY} -> Yr
{ rank=same
X -> Yr [label="Causal effect"]
}
}