Fundamentals of statistics