Optimal Design For A Causal Structure