Publications by Thomas Johnson
Quiz 1
# Load packages library(tidyquant) library(tidyverse) # for count() function # Import S&P500 Stock Index SP500 <- tq_index("SP500") SP500 ## # A tibble: 505 x 8 ## symbol company identifier sedol weight sector shares_held local_currency ## <chr> <chr> <chr> <chr> <dbl> <chr> <dbl> <chr> ## 1 AAPL Appl...
1121 sym R (1701 sym/4 pcs)
Quiz 2
For this quiz, you are going to use orange juice data. This data set is originally used in a machine learning (ML) class, with the goal to predict which of the two brands of orange juices the customers bought. Of course, you are not building a ML algorithm in this quiz. I just wanted to provide you with the context of the data. The response varia...
2837 sym R (5605 sym/7 pcs) 1 img
Quiz 3
For this quiz, you are going to use orange juice data. This data set is originally used in a machine learning (ML) class, with the goal to predict which of the two brands of orange juices the customers bought. Of course, you are not building a ML algorithm in this quiz. I just wanted to provide you with the context of the data. The response varia...
3361 sym R (6118 sym/14 pcs) 2 img
Quiz 4
For this quiz, you are going to use orange juice data. This data set is originally used in a machine learning (ML) class, with the goal to predict which of the two brands of orange juices the customers bought. Of course, you are not building a ML algorithm in this quiz. I just wanted to provide you with the context of the data. The response varia...
4150 sym R (5643 sym/11 pcs) 1 img
Term Paper
Choose one of David Robinson’s tidytuesday screencasts, watch the video, and summarise. https://www.youtube.com/channel/UCeiiqmVK07qhY-wvg3IZiZQ Instructions You must follow the instructions below to get credits for this assignment. Elaborate your answer. One or two sentence answers won’t get credit. Make sure to cite what you see and hear ...
4284 sym
Quiz 6
For this quiz, you are going to use mpg (miles per galon) dataset. This dataset contains a subset of the fuel economy data that the EPA makes available on http: //fueleconomy.gov. It contains only models which had a new release every year between 1999 and 2008 - this was used as a proxy for the popularity of the car. The dataset has the following...
2505 sym R (3727 sym/26 pcs)
Quiz 5 Makeup
In this exercise, you will apply lessons you learned from Quiz3-a to a new data set, Sacramento. I recommend that you try it on your own before watching the video. Q1 Import data. Hint: The data file is posted in Moodle. See Module 5. It’s named as “gapminder.csv”. data <- read.csv("~/busStat/gapminder.csv") data ## c...
3124 sym R (137414 sym/10 pcs) 2 img