Publications by Jacob Martin

DS 1870: Homework 4.1 Solutions - Spring 2024

02.04.2024

If a question asks for any calculations (means, medians, tables, proportions, etc…) or graphs, make sure they appear in the knitted document The final document should not show any warnings Data Description The video game data set (vg) has 11 variables on over 64000 video games. The important variables are: title: the name of the game genre: ...

2207 sym Python (3741 sym/5 pcs) 1 img

DS 2870: Gradient Descent

28.03.2024

Minimizing a second level polynomial We’ll start by minimizing a simple function: \[f(x) = (x - 2)^2\] Since the whole term is squared, the minimum value of \(f(x)\) is 0, which occurs when \(x = 2\) We can also graph it: # Function to be optimized second_order_poly <- function(x){(x - 2)^2} # Creating the function for values of -5 to 5 tibbl...

7347 sym 10 img 1 tbl

STAT 5230: Chapter 8 - Discriminant Analysis for NBA data

26.03.2024

Set Up Your Project and Load Libraries knitr::opts_chunk$set(echo = TRUE) options(digits = 3) ## Load the libraries we will be using pacman::p_load(tidyverse, magrittr, GGally, MVN) ## Changing the default theme to black white theme_set(theme_bw()) theme_update( axis.title = element_text(size = 12), axis.text = element_text(size = 1...

3285 sym Python (13906 sym/55 pcs) 10 img 3 tbl

DS 1870: Module 4.2 Homework Results - Sp 24

26.03.2024

Question 1 Blackjack is a card game where the player goes up against the dealer (not other players). A round of blackjack can end in one of three ways: “player” wins, “dealer” wins, or a “push” (tie). The goal of blackjack is to try to get as close of a point total of 21 as possible without going over (called a bust). If the player i...

6345 sym 2 img

STAT 5230: Chapter 6 - Oney-way RCBD MANOVA

21.03.2024

Set Up Your Project and Load Libraries knitr::opts_chunk$set(echo = TRUE) options(digits = 3) ## Load the libraries we will be using pacman::p_load(tidyverse, Rfast, heplots, GGally, MVN, car, rstatix) ## Changing the default theme to black white theme_set(theme_bw()) theme_update( axis.title = element_text(size = 10),...

2529 sym Python (12015 sym/42 pcs) 1 img 3 tbl

DS 1870 - Module 3.2 Homework - Spring 2024

20.03.2024

If a question asks for any calculations (means, medians, tables, proportions, etc…) or graphs, make sure they appear in the knitted document The final document should not show any warnings Question 1: Bones Data set See Brightspace for a description of the data. It’s the same data set as the homework for module 3 homework part 1. Part 1a: ...

2122 sym 6 img

STAT 5230: Chapter 6 - One Way MANOVA

19.03.2024

Set Up Your Project and Load Libraries knitr::opts_chunk$set(echo = TRUE) options(digits = 3) ## Load the libraries we will be using pacman::p_load(tidyverse, Rfast, heplots, GGally, MVN, car, rstatix) ## Changing the default theme to black white theme_set(theme_bw()) theme_update( axis.title = element_text(size = 10),...

5684 sym Python (10371 sym/41 pcs) 6 img 3 tbl

DS 1870: Module 4 - Dumbbell Plot for Burlington Election

08.03.2024

Data Description The bton_elec data set has the results of the 2024 election for Burlington mayor and the 8 city councilors by ward (wards 1 - 8). Residents all get to vote for the mayor, but only gets to vote for their respective city councilor. Joan Shannon (D) ended up losing the election despite five of the city councilors being in the same...

2703 sym 2 img

DS 1870 - Module 3 Practice - Solutions

04.03.2024

Setup knitr::opts_chunk$set(echo = T, fig.align = "center") # Load the tidyverse library(tidyverse) The diamonds data We’ll start by using the diamonds data frame, stored in ggplot2. Take a look at it: diamonds <- diamonds tibble(diamonds) ## # A tibble: 53,940 × 10 ## carat cut color clarity depth table ...

3336 sym R (5881 sym/35 pcs) 15 img

STAT 5230 - Homework 3 - Spring 2023

01.03.2024

Question 1: K-means Part a) Determine the number of clusters Use 3 different methods to determine the number of clusters to use in k-means clustering. For each method, describe how many clusters it recommends. Biplot: First 2 PCs wine2 |> prcomp() |> fviz_pca_ind(geom = "point") From the biplot, there appears to be 2 or three groups E...

4479 sym Python (7029 sym/21 pcs) 14 img 2 tbl