|
1 | 1 | \documentclass{standalone}
|
2 | 2 |
|
3 | 3 | \usepackage{tikz}
|
4 |
| -\usetikzlibrary{arrows,positioning,shapes,calc,fit,overlay-beamer-styles} |
5 |
| - |
| 4 | +\usetikzlibrary{arrows,positioning,shapes,calc,fit,overlay-beamer-styles, backgrounds} |
6 | 5 | \usepackage{dsfont,pifont}
|
7 | 6 | \newcommand*{\expe}{\mathds{E}}
|
8 | 7 | \usepackage{amsmath}
|
|
21 | 20 | \newcommand{\cmark}{\ding{51}}%
|
22 | 21 | \newcommand{\xmark}{\ding{55}}%
|
23 | 22 |
|
24 |
| -\begin{tikzpicture} |
25 |
| - \scriptsize |
| 23 | +\begin{tikzpicture}[background rectangle/.style={fill=black}, show background rectangle, color=white] |
26 | 24 |
|
27 | 25 | \begin{scope}[name prefix=scenario-, local bounding box=specification]
|
28 | 26 | % Causal DAG
|
29 | 27 | \begin{scope}[name prefix=dag-]
|
30 |
| - \node[node] (x1) at (0,0) {$X_2$}; |
31 |
| - \node[node] (x2) at (0,1) {$X_1$}; |
| 28 | + \node[node] (x1) at (-0.1,-0.2) {$X_1$}; |
| 29 | + \node[node] (x2) at (-0.1, 1.2) {$X_2$}; |
32 | 30 | \node[node] (i) at (0.5,0.5) {$I$};
|
33 |
| - \node[node] (y1) at (1.2,0) {$Y_1$}; |
34 |
| - \node[node] (y2) at (1.2,0.5) {$Y_2$}; |
35 |
| - \node[node] (y3) at (1.2,1) {$Y_3$}; |
| 31 | + \node[node] (y1) at (1.3,-0.2) {$Y_{1}$}; |
| 32 | + \node[node] (y2) at (1.3,0.5) {$Y_2$}; |
| 33 | + \node[node] (y3) at (1.3,1.2) {$Y_3$}; |
36 | 34 |
|
37 | 35 | \draw[edge] (x1) to (i);
|
38 | 36 | \draw[edge] (x2) to (i);
|
|
57 | 55 | \end{scope}
|
58 | 56 | \node[draw, rectangle] [fit=(scenario-scenario) (scenario-title)] {};
|
59 | 57 |
|
60 |
| - \begin{scope}[name prefix=test-, local bounding box=test-case, shift={($(specification.south)+(0, -1)$)}] |
| 58 | + \begin{scope}[name prefix=test-, local bounding box=test-case, shift={($(scenario-specification.south)+(0, -1)$)}] |
61 | 59 | \node[draw=none, rectangle, anchor=north] (title) at (0, 0) {Causal Test Case};
|
62 | 60 | \node[anchor=north] (tuple) at (title.south) {$(X=i, \Delta=\text{increase}, Y=y_1)$};
|
63 | 61 | \coordinate (left) at (scenario-scenario.east |- {(0, 0)});
|
64 | 62 | \coordinate (right) at (scenario-scenario.west |- {(0, 0)});
|
65 | 63 | \node[draw, rectangle] [fit=(title) (tuple) (left) (right)] {};
|
66 | 64 | \end{scope}
|
67 | 65 |
|
68 |
| - \begin{scope}[name prefix=estimand-, local bounding box=estimand, anchor=south, shift={($(test-case.east |- test-tuple.south) + (1, 0)$)}] |
| 66 | + \begin{scope}[name prefix=estimand-, local bounding box=estimand, anchor=south, shift={($(test-test-case.east |- test-tuple.south) + (1, 0)$)}] |
69 | 67 | \node[anchor=south west] (eqn) at (0,0) {
|
70 | 68 | $\Delta Y=\expe{[I=0 | X_1]} - \expe{[I=1 | X_1]} $
|
71 | 69 | };
|
72 | 70 | \node[draw=none, rectangle, anchor=south] (title) at (eqn.north) {Statistical Estimand};
|
73 | 71 | \node[draw, rectangle] [fit=(estimand-title) (estimand-eqn)] {};
|
74 | 72 | \end{scope}
|
75 | 73 |
|
76 |
| - \begin{scope}[name prefix=estimate-, local bounding box=estimate, shift={($(estimand.east)+(1, 0)$)}] |
| 74 | + \begin{scope}[name prefix=estimate-, local bounding box=estimate, shift={($(estimand-estimand.east)+(1, 0)$)}] |
77 | 75 | \node[draw=none, rectangle, anchor=south west] (title) at (0, 0) {Causal Estimate};
|
78 | 76 | \node[anchor=north] (table) at (title.south) {
|
79 | 77 | $\Delta Y=5$
|
|
83 | 81 | \node[draw, rectangle] [fit=(title) (table) (top) (bot)] {};
|
84 | 82 | \end{scope}
|
85 | 83 |
|
86 |
| - \begin{scope}[name prefix=data-, local bounding box=test-data, shift={($(estimate.north)+(0, 1)$)},] |
87 |
| - \node[draw=none, rectangle] (title) at (estimate |- scenario-title) {Test Data}; |
| 84 | + \begin{scope}[name prefix=data-, local bounding box=test-data, shift={($(estimate-estimate.north)+(0, 1)$)},] |
| 85 | + \node[draw=none, rectangle] (title) at (estimate-estimate |- scenario-title) {Test Data}; |
88 | 86 | \node[anchor=north] (table) at (title.south) {
|
89 | 87 | \begin{tabular}{rrrrrr}
|
90 | 88 | \toprule
|
|
99 | 97 | \node[draw, rectangle] [fit=(title) (table)] {};
|
100 | 98 | \end{scope}
|
101 | 99 |
|
102 |
| - \begin{scope}[name prefix=oracle-, local bounding box=test-oracle, shift={($(estimate.east) + (1.54, -0.4)$)}] |
| 100 | + \begin{scope}[name prefix=oracle-, local bounding box=test-oracle, shift={($(estimate-estimate.east) + (1.54, -0.4)$)}] |
103 | 101 | \begin{scope}[shift={(0,0)}, local bounding box=brain, scale=1.2]
|
104 | 102 | \begin{scope}[shift={(-7.6932,3.5256)}, local bounding box=brain]
|
105 | 103 | \path[draw,line width=0.025cm] (8.162, -2.8955) circle (0.066cm);
|
|
128 | 126 | \node[draw, rectangle] [fit=(title) (brain)] {};
|
129 | 127 | \end{scope}
|
130 | 128 |
|
131 |
| - \begin{scope}[name prefix=outcome-, local bounding box=test-outcome, shift={($(brain.east |- estimate.east) + (1, 0)$)}] |
| 129 | + \begin{scope}[name prefix=outcome-, local bounding box=test-outcome, shift={($(oracle-brain.east |- estimate-estimate.east) + (1, 0)$)}] |
132 | 130 | \node[draw=none, rectangle, anchor=south west] (title) at (0,0) {Test Outcomes};
|
133 | 131 | \node[draw=none, anchor=north] (ok) at (title.south) {\cmark ~ \xmark};
|
134 | 132 |
|
|
137 | 135 | \node[draw, rectangle] (test-outcome) [fit=(outcome-title) (outcome-ok) (top) (bot)] {};
|
138 | 136 | \end{scope}
|
139 | 137 |
|
140 |
| - \draw[edge, dashed] ($(specification.east) + (0.1, 0)$) -- (estimand.north |- specification.east) -- (estimand.north); |
141 |
| - \draw[edge, dashed] (test-case) -- (estimand); |
| 138 | + \draw[edge, dashed] ($(scenario-specification.east) + (0.15, 0)$) -- (estimand-estimand.north |- scenario-specification.east) -- (estimand-estimand.north); |
| 139 | + \draw[edge, dashed] (test-test-case) -- (estimand-estimand); |
142 | 140 |
|
143 |
| - \draw[edge, dashed] (test-data.south) -- (estimate.north); |
144 |
| - \draw[edge, dashed] (estimand) -- (estimate); |
| 141 | + \draw[edge, dashed] (data-test-data.south) -- (estimate-estimate.north); |
| 142 | + \draw[edge, dashed] (estimand-estimand) -- (estimate-estimate); |
145 | 143 |
|
146 |
| - \draw[edge, dashed] (estimate) -- (test-oracle.west |- estimate); |
147 |
| - \draw[edge, dashed] (test-oracle.east |- test-outcome) -- (test-outcome); |
| 144 | + \draw[edge, dashed] (estimate-estimate) -- (oracle-test-oracle.west |- estimate-estimate); |
| 145 | + \draw[edge, dashed] (oracle-test-oracle.east |- outcome-test-outcome) -- (outcome-test-outcome); |
148 | 146 | \end{tikzpicture}
|
149 |
| -\end{document} |
| 147 | +\end{document} |
0 commit comments