orbs <- c(1:5)
orb_samples <- replicate(10, sample(orbs, 2, replace = TRUE))
X <- apply(orb_samples, 2, max)
info <- hist(X, breaks = c(0.5, 1.5, 2.5, 3.5, 4.5, 5.5))
with(info, text(mids, counts, labels = counts, pos = 1))
#The below makes a relative frequency histogram
h <- hist(X, plot = FALSE)
h$counts <- h$counts/sum(h$counts)
plot(h, freq = TRUE, ylab = “Relative Frequency”)
Datacamp courses: suggestions for snow day makeup
General programming in R:
Making Reports using R:
Probability and Statistics:
Foundations of Probability in R (starting with Chapter 2)
Statistical Modeling in R (part 1)
Financial and Marketing Applications:
Bond Valuation and Analysis in R
Introduction to Portfolio Analysis in R
Forecasting Product Demand in R