Text this: Theory of Optimal Experiments