R comes with a set of pseuodo-random number generators that allow you to simulat
R comes with a set of pseuodo-random number generators that allow you to simulate from well-known probability distributions like the Normal, Poisson, and binomial. Explain the differences by among following functions by defining what they do mathematically and then by using an example:
rnorm
dnorm
pnorm
rpois
Simulate 100 standard Normal random numbers and then show them in the histogram:
Normal random numbers with mean 0 and standard deviation 1.
Normal random numbers with mean 20 and standard deviation 2
Create and then explain the output of the following:
Draw randomly 10 numbers from a uniform distribution of numbers from 100 to 10,000.
Do a random permutation from a sample of numbers from 1 to 200 that are uniformly distributed.
Create a sample w/replacement for numbers from 10 to 100 that are uniformly distributed.