Publications by Abdelmalek Hajjam

Assignment 4 Data605

23.02.2020

Problem Set 1 In this problem, we’ll verify using R that SVD and Eigenvalues are related as worked out in the weekly module. Given a \(3 x 2\) matrix \(\textbf{A}\) \[ A = \begin{bmatrix} 1 && 2 && 3 \\ -1 && 0 && 4 \end{bmatrix} \] write code in R to compute \(X = AA^{T}\) and \(Y = A^{T}A\). Then, compute the eigenvalues and eigenvectors...

2361 sym R (5598 sym/60 pcs)

Assignment-3-605

17.02.2020

Problem Set 1 One A <- matrix(c(1,2,3,4,-1,0,1,3,0,1,-2,1,5,4,-2,-3), nrow=4, byrow=TRUE) # Consider matrix A A ## [,1] [,2] [,3] [,4] ## [1,] 1 2 3 4 ## [2,] -1 0 1 3 ## [3,] 0 1 -2 1 ## [4,] 5 4 -2 -3 # RREF of A library(pracma) rref(A) ## [,1] [,2] [,3] [,4] ## [1,] 1 0 0...

2884 sym R (1193 sym/20 pcs)

Assignment1-608

09.02.2020

Principles of Data Visualization and Introduction to ggplot2 library(tidyverse) library(dplyr) library(ggplot2) library(scales) I have provided you with data about the 5,000 fastest growing companies in the US, as compiled by Inc. magazine. lets read this in: inc <- read.csv("https://raw.githubusercontent.com/charleyferrari/CUNY_DATA_608/mast...

2258 sym R (7113 sym/39 pcs) 5 img

Data605 Assignment2

09.02.2020

Problem Set 1 Part 1 Show that \(A^TA \neq AA^T\) in general. (Proof and demonstration.) Proof by contradiction: Assume \(A^T A = A A^T\) Consider matrix \(A_{m\times n}\) where \(m \ne n\). So \(A^T\) will be the size of \(n \times m\). Also \(AA^T\) will be a matrix of size \(m\times m\) and \(A^TA\) will be a matrix of size \(n \times n\). Si...

2811 sym R (2195 sym/41 pcs)

605 Discussion 1

05.02.2020

Problem Set 1: Please notice that I will not be using any external library to do linear algebra for me. Everything I will use is in R Base and it’s well documented in R documentation. Also notice that I show 2 diffeent ways to run an answer. I comment one and I use the other. But both of them will work. Example - dot product of u and v, accord...

971 sym R (1120 sym/13 pcs)

Data 606 Final Project

12.12.2019

library(DT) library(tidyverse) library(dplyr) library(stringr) library(ggplot2) library(gmodels) library(kableExtra) # load data mydata <- "https://raw.githubusercontent.com/theoracley/Data606/master/security_breaches.csv" cyber_sb <- read.csv(mydata, header=TRUE, stringsAsFactors = FALSE) Part 1 - Introduction In recent years, many ...

5888 sym R (16663 sym/49 pcs) 15 img 3 tbl

TidyVerse

01.12.2019

Where did the Data come from? I’m using a dataset from here: https://github.com/fivethirtyeight/data/tree/master/ncaa-womens-basketball-tournament This folder contains the data behind the story ‘The Rise And Fall Of Women’s NCAA Tournament Dynasties’. NCAA Women’s Basketball Tournament data contains information for every team that has p...

1585 sym R (2883 sym/15 pcs) 1 img

Data606 - Homework 9

23.11.2019

Baby weights, Part I. (9.1, p. 350) The Child Health and Development Studies investigate a range of topics. One study considered all pregnancies between 1960 and 1967 among women in the Kaiser Foundation Health Plan in the San Francisco East Bay area. Here, we study the relationship between smoking and weight of the baby. The variable smoke is c...

8409 sym R (1136 sym/18 pcs) 3 img

Data607 noSQL Migration

26.11.2019

I will be using the famous Microsoft database Northwind as my relational database to show my case for migrating MySQL rational database to noSQL database, which in my case will be Neo4j. So, we will start with this schema stricted database where the entities are related: to a noSQL database, in my case it’s graph database with nodes and their ...

5535 sym R (1623 sym/4 pcs) 3 img

Data607 Final Project

11.12.2019

Introduction In this project, we are going to see if Americans support President Trump’s impeachment inquiry or not. For that purpose, we have taken the data from three different sources i.e. Washington post was scraped to see the road to impeachment, getting data from five thirty eight.com and then tweets were taken from twitter. Reason behin...

5696 sym R (20453 sym/70 pcs) 12 img 3 tbl