Generate 10 random numbers from a uniform distribution on [0,10]. Use R to find the maximum and minimum values in your random data set.
Generate 100 random normal numbers with mean = 5 and standard deviation = 5 (Normal(5,5)). How many are less than 0?
Generate 100 random normal numbers with mean of 100 and standard deviation of 10. How many are 2 standard deviations from the mean (smaller than 80 or bigger than 120)?
'Toss' a fair coin (prob = 0.5) 50 times. How many heads do you have?
'Roll' a die 100 times. How many 6's did you see?
Select 6 numbers from a lottery containing 49 balls. What is the largest number? What is the smallest?
Make a histogram of 100 randomly generated exponential numbers with mean = 10. Calculate the median. Is it more or less than the mean?
Can you figure out what this R command does? rnorm(5, mean = 0, sd = 1:5)
.
Use R to pick 5 cards from a deck of 52. Did you get a pair or better? Repeat until you do. How long did it take?