
Running Simulations using R
For my class assignment, I created multiple simulations with historical or real-life context. They include:
1) When 3 dices are rolled, does a sum of 9 or 10 appear more often?
2) What is the probability that I will win a racquetball game, given certain conditions?
3) Based on the price of one share of a fictional stock over 30 days of trading, simulate the specified situations.
R:
Advanced Models
Based on the diamonds data set that comes with R, we used linear models, regression trees, and randomForest to determine whether there are other variables that can be used to predict the prices of diamonds no bigger than 2.5 carats. The data was split into a training and test set to determine the accuracy of the models' predictions.
We used randomForest to determine the most important variables in determining price and used rmse to see which of our models predicted the price best.





















