Publications by Shoshana Farber
DATA 607 - Project 1
Loading the Text File raw <- readLines(url("https://raw.githubusercontent.com/ShanaFarber/cuny-sps/master/DATA_607/project1/player_stats.txt")) ## Warning in ## readLines(url("https://raw.githubusercontent.com/ShanaFarber/cuny-sps/master/DATA_607/project1/player_stats.txt")): ## incomplete final line found on ## 'https://raw.githubusercontent.co...
1401 sym Python (5164 sym/15 pcs) 1 tbl
DATA 605 - Homework 1
Example - Building H x=c(rep(0,500),seq(0,1,length.out=1000), rep(1,500)) y=c(seq(-1,1,length.out=500),rep(0,1000), seq(-1,1,length.out=500)) z=rbind(x,y) plot(y~x, xlim=c(-3,3), ylim=c(-3,3)) Building my initials using plots in R I modified the code for building an H in order to build my initials. x <- c(rep(-2,500), seq(-2,-1,length.out=1000...
974 sym 6 img
DATA 605 - Homework 2
Problem Set 1 Show that \(A^{T}A \neq AA^{T}\) in general. Matrix multiplication is not commutative. The order in which we multiply matrices matters, and for this reason \(A^{T}A \neq AA^{T}\) generally, since \(A^{T} \neq A\). \[A = \begin{bmatrix}a_{11} & a_{12} & \cdots & a_{1n}\\ a_{21} & a_{22} & & a_{2n}\\ \vdots & & \ddots & \vdots\\...
2941 sym
DATA 607 - Assignment 3
Problem 1 Using the 173 majors listed in fivethirtyeight.com’s College Majors dataset, provide code that identifies the majors that contain either “DATA” or “STATISTICS” majors <- read_csv(url("https://raw.githubusercontent.com/fivethirtyeight/data/master/college-majors/majors-list.csv"), show_col_types = FALSE) data_or_stat <- majors...
1172 sym 1 tbl
DATA 607 - Assignment 2
Connecting to PostgreSQL Database my_pass <- read_file("C:/Users/Shoshana/Documents/pass.txt") con <- dbConnect( Postgres(), host = "localhost", port = 5432, user = "postgres", password = my_pass, dbname = "cuny-sps" ) Loading the Databases movie_ratings <- dbGetQuery(con, "SELECT * FROM movie_ratings") raters <- dbGetQuer...
1275 sym Python (4496 sym/22 pcs) 1 img
DATA 607 - Assignment 1
The Article This assignment is based on the article According To Super Bowl Ads, Americans Love America, Animals And Sex by FiveThirtyEight.com. This article categorizes Super Bowl commercials based on combinations of defining characteristics, such as whether there is a celebrity appearance, how patriotic the commercial is, etc. The authors ...
5075 sym Python (14238 sym/32 pcs) 2 img 2 tbl
DATA 607 - Assignment 1
The Article This assignment is based on the article According To Super Bowl Ads, Americans Love America, Animals And Sex by FiveThirtyEight.com. This article categorizes Super Bowl commercials based on combinations of defining characteristics, such as whether there is a celebrity appearance, how patriotic the commercial is, etc. The authors ...
5075 sym Python (14238 sym/32 pcs) 2 img 2 tbl