1. Learn
  2. /
  3. Courses
  4. /
  5. Practicing Statistics Interview Questions in R

Exercise

Law of large numbers

In this exercise, you will simulate rolling a standard die numbered 1 through 6.

Simulation of die rolling can be performed using the sample() function.

If you take a sample whose size is bigger than the number of possible values, you need to set the replace parameter of the sample() function to TRUE.

The law of large numbers states that the average of the results obtained from trials will tend to become closer to the expected value as more trials are performed.

Instructions 1/2

undefined XP
    1
    2

Question

What is the expected value for a die roll?

Possible answers