R Studio
and run command
hist(rnorm(10000), breaks=100)
Welcome R - demo.ipynb
and try submitting a few commandsSimulate proportion of heads in a coin flip. Create a vector with random zeros (tail) and ones (head) with length 1000 and plot its cumulative proportion as a line plot. Your plot should be similat to the one below.
Hints: help, runif, cumsum, plot(..., type='l', xlab='...', ylab='...')
rexp
) and plot histogram of those values with 100 bins.Hints: rexp, for(i in 1:n){...}, rep(0, n), hist(..., breaks=100)