This pre-class assignment should be completed by 8:00am on 02-26-19. Once you are done, complete the survey that is available on Google Classroom.
Read about the function sample()
available in base R. Type ?sample
in your console pane to access the help. What are the four arguments? What do those arguments do?
Use sample()
to simulate 10 fair-die rolls.
Use sample()
to simulate 20 coin flips with a fair coin.
Use sample()
to generate a 6 digit number, where each digit is different.
Choose three probability distributions. Generate 10 random variables from each distribution. Click
here for a list of probability distributions in base R.