Fundamentals of social statistics