|
7 | 7 | \newcommand*{\expe}{\mathds{E}}
|
8 | 8 | \usepackage{amsmath}
|
9 | 9 | \usepackage{booktabs}
|
| 10 | + |
10 | 11 | \usepackage[default]{FiraSans}
|
| 12 | +\usepackage[mathrm=sym]{unicode-math} |
| 13 | +\setmathfont{Fira Math} |
11 | 14 |
|
12 | 15 | \begin{document}
|
13 |
| - |
14 | 16 | \tikzset{
|
15 | 17 | node/.style={circle, draw, minimum size=3ex, inner sep=0.2},
|
16 | 18 | edge/.style={->,> = latex'},
|
|
63 | 65 | \node[draw, rectangle] [fit=(title) (tuple) (left) (right)] {};
|
64 | 66 | \end{scope}
|
65 | 67 |
|
66 |
| - \begin{scope}[name prefix=data-, local bounding box=test-data, shift={($(test-case.south)+(0, -1)$)}] |
67 |
| - \node[draw=none, rectangle, anchor=north] (title) at (0, 0) {Test Data}; |
68 |
| - \node[anchor=north] (table) at (title.south) { |
69 |
| - \begin{tabular}{rrrrrr} |
70 |
| - \toprule |
71 |
| - $X_1$ & $X_2$ & $I$ & $Y_1$ & $Y_2$ & $Y_3$ \\ |
72 |
| - \midrule |
73 |
| - 1.2 & ``UK'' & 0.3 & 7.8 & 4 & 100 \\ |
74 |
| - 3.2 & ``UK'' & 0.1 & 7.6 & 8 & 95 \\ |
75 |
| - \multicolumn{6}{c}{$\vdots$} \\ |
76 |
| - \bottomrule |
77 |
| - \end{tabular} |
78 |
| - }; |
79 |
| - \coordinate (left) at (scenario-scenario.east |- {(0, 0)}); |
80 |
| - \coordinate (right) at (scenario-scenario.west |- {(0, 0)}); |
81 |
| - \node[draw, rectangle] [fit=(title) (table) (left) (right)] {}; |
82 |
| - \end{scope} |
83 |
| - |
84 | 68 | \begin{scope}[name prefix=estimand-, local bounding box=estimand, anchor=south, shift={($(test-case.east |- test-tuple.south) + (1, 0)$)}]
|
85 | 69 | \node[anchor=south west] (eqn) at (0,0) {
|
86 | 70 | $\Delta Y=\expe{[I=0 | X_1]} - \expe{[I=1 | X_1]} $
|
|
99 | 83 | \node[draw, rectangle] [fit=(title) (table) (top) (bot)] {};
|
100 | 84 | \end{scope}
|
101 | 85 |
|
102 |
| - \begin{scope}[name prefix=oracle-, local bounding box=test-oracle, shift={($(estimate.east) + (1.75, -0.2)$)}] |
| 86 | + \begin{scope}[name prefix=data-, local bounding box=test-data, shift={($(estimate.north)+(0, 1)$)},] |
| 87 | + \node[anchor=south] (table) at (0,0) { |
| 88 | + \begin{tabular}{rrrrrr} |
| 89 | + \toprule |
| 90 | + $X_1$ & $X_2$ & $I$ & $Y_1$ & $Y_2$ & $Y_3$ \\ |
| 91 | + \midrule |
| 92 | + 1.2 & ``UK'' & 0.3 & 7.8 & 4 & 100 \\ |
| 93 | + 3.2 & ``UK'' & 0.1 & 7.6 & 8 & 95 \\ |
| 94 | + \multicolumn{6}{c}{$\vdots$} \\ |
| 95 | + \bottomrule |
| 96 | + \end{tabular} |
| 97 | + }; |
| 98 | + \node[draw=none, rectangle, anchor=south] (title) at (table.north) {Test Data}; |
| 99 | + \node[draw, rectangle] [fit=(title) (table)] {}; |
| 100 | + \end{scope} |
| 101 | + |
| 102 | + \begin{scope}[name prefix=oracle-, local bounding box=test-oracle, shift={($(estimate.east) + (1.54, -0.4)$)}] |
103 | 103 | \begin{scope}[shift={(0,0)}, local bounding box=brain, scale=1.2]
|
104 |
| - \input{brain} |
| 104 | + \begin{scope}[shift={(-7.6932,3.5256)}, local bounding box=brain] |
| 105 | + \path[draw,line width=0.025cm] (8.162, -2.8955) circle (0.066cm); |
| 106 | + \path[draw,line width=0.025cm] (8.0485, -3.2243) circle (0.066cm); |
| 107 | + \path[draw,line width=0.025cm] (8.0346, -3.5296) circle (0.066cm); |
| 108 | + \path[draw,line width=0.025cm] (8.2166, -3.757) circle (0.066cm); |
| 109 | + \path[draw,line width=0.025cm] (7.6556, -3.7827) circle (0.066cm); |
| 110 | + \path[draw,line width=0.025cm] (7.6315, -3.5091) circle (0.066cm); |
| 111 | + \path[draw,line width=0.025cm] (7.4451, -3.2224) circle (0.066cm); |
| 112 | + \path[draw,line width=0.025cm] (7.6247, -2.9461) circle (0.066cm); |
| 113 | + |
| 114 | + \path[draw,line width=0.025cm,miter limit=4.0] (7.6932, -2.6331) -- (7.3637, -2.8234) -- (7.3637, -3.0567) -- (7.1749, -3.1656) -- (7.1749, -3.5256) -- (7.3341, -3.6175) -- (7.3341, -3.8517) -- (7.6883, -4.0562) -- (7.868, -3.9669) -- (8.0478, -4.0562) -- (8.4019, -3.8517) -- (8.4019, -3.6175) -- (8.5611, -3.5256) -- (8.5611, -3.1656) -- (8.3724, -3.0567) -- (8.3724, -2.8234) -- (8.0429, -2.6331) -- (7.868, -2.7341) -- cycle; |
| 115 | + \path[draw,line width=0.025cm,miter limit=4.0] (7.868, -3.9669) -- (7.868, -2.7341); |
| 116 | + \path[draw,line width=0.025cm] (7.5588, -2.9461) -- (7.3637, -2.9461); |
| 117 | + \path[draw,line width=0.025cm] (7.4451, -3.1565) -- (7.4451, -2.9461); |
| 118 | + \path[draw,line width=0.025cm] (7.6316, -3.4431) -- (7.6316, -3.2116) -- (7.868, -3.2116); |
| 119 | + \path[draw,line width=0.025cm] (7.5897, -3.7827) -- (7.4177, -3.7827) -- (7.4177, -3.523) -- (7.1749, -3.523); |
| 120 | + \path[draw,line width=0.025cm] (8.162, -2.9614) -- (8.162, -3.0534) -- (7.868, -3.0534); |
| 121 | + \path[draw,line width=0.025cm] (8.0485, -3.1584) -- (8.0485, -3.0534); |
| 122 | + \path[draw,line width=0.025cm] (8.1005, -3.5296) -- (8.313, -3.5296) -- (8.313, -3.3442) -- (8.5611, -3.3442); |
| 123 | + \path[draw,line width=0.025cm] (8.1507, -3.757) -- (8.0477, -3.757) -- (8.0477, -4.0561); |
| 124 | + \end{scope} |
105 | 125 | \end{scope}
|
106 | 126 | \node[draw=none, rectangle, anchor=south] (title) at (brain.north) {Test Oracle};
|
107 | 127 |
|
|
120 | 140 | \draw[edge, dashed] ($(specification.east) + (0.1, 0)$) -- (estimand.north |- specification.east) -- (estimand.north);
|
121 | 141 | \draw[edge, dashed] (test-case) -- (estimand);
|
122 | 142 |
|
123 |
| - \draw[edge, dashed] ($(test-data.east) + (0.1, 0)$) -- (estimate.south |- test-data.east) -- (estimate.south); |
| 143 | + \draw[edge, dashed] (test-data.south) -- (estimate.north); |
124 | 144 | \draw[edge, dashed] (estimand) -- (estimate);
|
125 | 145 |
|
126 | 146 | \draw[edge, dashed] (estimate) -- (test-oracle.west |- estimate);
|
127 | 147 | \draw[edge, dashed] (test-oracle.east |- test-outcome) -- (test-outcome);
|
128 | 148 | \end{tikzpicture}
|
129 |
| - |
130 |
| - |
131 | 149 | \end{document}
|
0 commit comments