Essays in econometrics and random matrix theory