Mathematical statistics with applications