开始使用免费开始使用

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.

本练习是课程的一部分

Practicing Statistics Interview Questions in R

查看课程

动手互动练习

通过我们的互动练习之一,将理论转化为实践

开始练习