Publications by Anjal Hussan

DATA624HW4

13.03.2023

Do problems 3.1 and 3.2 in the Kuhn and Johnson book Applied Predictive Modeling load libraries library(mlbench) library(ggplot2) library(reshape2) library(Amelia) library(inspectdf) library(naniar) 3.1 3.1. The UC Irvine Machine Learning Repository6 contains a data set related to glass identification. The data consist of 214 glass samples labele...

1968 sym R (4633 sym/10 pcs) 5 img

DATA 624 HW3

09.03.2023

Do exercises 5.1, 5.2, 5.3, 5.4 and 5.7 in the Hyndman book. Please submit your Rpubs link as well as your .rmd file with your code. Load required library library("fpp3") library('fabletools') 5.1 Produce forecasts for the following series using whichever of NAIVE(y), SNAIVE(y) or RW(y ~ drift()) is more appropriate in each case: Australian Popula...

1796 sym R (2946 sym/16 pcs) 13 img

DATA 624 HW2

07.03.2023

Week 2 HW Problems Exercises 3.1, 3.2, 3.3, 3.4, 3.5, 3.7, 3.8 and 3.9 from the online Hyndman book library("fma") library("xts") library("ggplot2") library("forecast") library("fpp3") library('lubridate') library('tsibble') library('readr') library('readxl') 3.1 Consider the GDP information in global_economy. Plot the GDP per capita for each coun...

2001 sym R (6373 sym/31 pcs) 13 img

DATA_624_HW1

06.03.2023

Week 1 HW Problems Exercises 2.1, 2.2, 2.3, 2.4, 2.5 and 2.8 from the Hyndman online Forecasting book. 2.1 Use the help function to explore what the series gafa_stock, PBS, vic_elec and pelt represent. Use autoplot() to plot some of the series in these data sets. What is the time interval of each series? library("fma") library("xts") library("gg...

1113 sym R (2365 sym/21 pcs) 8 img

DATA 608 - HW1

06.09.2020

Principles of Data Visualization and Introduction to ggplot2 Environment setup if (!require('dplyr')) install.packages('dplyr') if (!require('ggplot2')) install.packages('ggplot2') if (!require('scales')) install.packages('scales') Data loading Read the data about the 5,000 fastest growing companies in the US, as compiled by Inc. magazine. let...

1488 sym R (4835 sym/17 pcs) 3 img

Data605_HW1

08.02.2021

R Markdown This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com. When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within t...

491 sym R (211 sym/1 pcs) 86 img

DATA605HW2

07.02.2021

library(knitr) knitr::opts_chunk$set(echo = FALSE) knitr::opts_knit$set(root.dir= normalizePath('..')) knitr::opts_chunk$set(error = FALSE) Problem Set 1 1. Show that A^T.A NOT EQUAL TO A.A^T in general. Solution: Let \(M = \begin{bmatrix}a & b\\ c & d\end{bmatrix}.\) Then \(M^T = \begin{bmatrix}a & c\\ b & d\end{bmatrix}\). The product of \(M...

1318 sym R (1441 sym/21 pcs)

DATA_605_HW3

14.02.2021

Problme set 1 (1) What is the rank of the matrix A? \[A = \begin{bmatrix} 1 & 2 & 3 & 4\\ -1 & 0 & 1 & 3\\ 0 & 1 & -2 & 1 \\ 5 & 4 & -2 & -3 \end{bmatrix}\] Solution: The rank of a matrix is defined as the maximum number of linearly independent vectors in rows or columns. If we...

2401 sym R (1347 sym/18 pcs)

Simple Linear regression using R

08.04.2021

Read Data #Data source: https://www.kaggle.com/farhankarim1/usa-house-prices housing_db = read.csv(file = '/Users/anjalibm.com/Documents/DataScience/DATA_605/Simple_Linear_regression/USA_Housing.csv') head(housing_db) ## Avg..Area.Income Avg..Area.House.Age Avg..Area.Number.of.Rooms ## 1 79545.46 5.682861 7.0...

1911 sym R (4270 sym/12 pcs) 7 img

DATA 605 HW_12 - Regression

25.04.2021

library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.0 ── ## ✓ ggplot2 3.3.3 ✓ purrr 0.3.4 ## ✓ tibble 3.0.6 ✓ dplyr 1.0.4 ## ✓ tidyr 1.1.2 ✓ stringr 1.4.0 ## ✓ readr 1.4.0 ✓ f...

3229 sym R (5755 sym/28 pcs) 13 img