00:01
This question asks you to take 100 samples of size 5 from the uniform distribution of the digits.
00:08
Now you can see i'm not on the whiteboard.
00:10
Instead, i'm using a computer to do this like the problem says i can.
00:14
And i have chosen to use the programming language r, which is a statistical programming language.
00:20
So i start by initializing a list, and then i will take 100 samples.
00:26
I'll just iterate through 100 times.
00:29
Every time it does this, it's going to do this sample function.
00:34
The sample function takes the first argument, which is a vector of all the digits, zero through nine, and it will sample five times.
00:45
So it will take five elements of that population, at a uniform probability, like the problem says.
00:51
And i've had this argument replace equals true so that i can have duplicates...