Matrix inequalities and their applications to statistics