Publications by Umer Farooq

Project 2: Tidying and transforming table Data 607

04.03.2023

Project 2 Instructions: Choose any three of the “wide” data sets identified in the Week 6 Discussion items. (You may use your own data set; please don’t use my Sample Post dataset, since that was used in your Week 6 assignment!) For each of the three chosen datasets: Create a .CSV file (or optionally, a MySQL database!) that includes all...

8313 sym Python (4544 sym/19 pcs) 5 img 11 tbl

Tidy and Transformation: Data 607 Week 5 Assignment

26.02.2023

Week 5 Assignment: Instructions: The chart below describes arrival delays for two airlines across five destinations. Your task is to: Create a .CSV file (or optionally, a MySQL database!) that includes all of the information below. You’re encouraged to use a “wide” structure similar to how the information appears below, so that you can p...

4991 sym Python (1733 sym/6 pcs) 1 img 5 tbl

Data 606: Lab 3 Probability

26.02.2023

The Hot Hand Basketball players who make several baskets in succession are described as having a hot hand. Fans and players have long believed in the hot hand phenomenon, which refutes the assumption that each shot is independent of the next. However, a 1985 paper by Gilovich, Vallone, and Tversky collected evidence that contradicted this beli...

12595 sym 3 img

Introduction to Data

19.02.2023

Some define statistics as the field that focuses on turning information into knowledge. The first step in that process is to summarize and describe the raw information – the data. In this lab we explore flights, specifically a random sample of domestic flights that departed from the three major New York City airports in 2013. We will generat...

12807 sym 10 img

Project 1: Data analysis

18.02.2023

Introduction : In this project, we were given a text file with chess tournament results where the information has some structure. Our job was to create an R Markdown file that generates a .CSV file (that could for example be imported into a SQL database) with the following information for all of the players: Player’s Name, Player’s State, T...

4465 sym R (3980 sym/20 pcs)

String manipulation with examples

15.02.2023

A. Working with Strings Regular expressions fruits <- c('Apple', 'Banana', 'Orange', 'Grape', 'Pineapple', 'Kiwi', 'Peach', 'Mango', 'Strawberry', 'Guava', 'Cherry', 'Apple', 'banana') fruits =="Banana" #exact match ## [1] FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE ## [13] FALSE which(fruits == "Banana") #use which...

1522 sym R (4237 sym/57 pcs)

Assignment 3: Data 607: Data Manipulation

12.02.2023

Setting up the environment: library(tidyverse) ## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ── ## ✔ ggplot2 3.4.0 ✔ purrr 1.0.1 ## ✔ tibble 3.1.8 ✔ dplyr 1.0.10 ## ✔ tidyr 1.3.0 ✔ stringr 1....

2306 sym R (2369 sym/22 pcs)

Assignment 1: Data 607

29.01.2023

According To Super Bowl Ads, Americans Love America, Animals And Sex Note : The data has been acquired from www.fivethirtyeight.com Introduction Introduction will try to give an overview of all the key features about the data and what this analysis is aimed at. A) About the data: This data contains a list of ads from the 10 brands that had th...

3630 sym R (8775 sym/17 pcs) 3 img

Home Work week 1

20.12.2022

Home Work week # 1 Question 1: Write a loop that calculates 12-factorial Ans: num <- 12 # Value that we will find factorial for # We can also take the input from user and find factorial for any positive integer "n" by replacing 12 with "as.integer(readline(prompt="Enter a number: "))" factorial <- 1 # In case of taking value from the user...

459 sym Python (2049 sym/13 pcs)

Hands-on week 1

20.12.2022

Hands-on Quiz Week 1 Question 1 : Create a vector that contains 20.(You may chose whatever numbers you like, but make sure there are some duplicates) Answer : vec <- c(1:7, 5:13, 12:15) vec ## [1] 1 2 3 4 5 6 7 5 6 7 8 9 10 11 12 13 12 13 14 15 Question 2 : Use R to convert the vector from question 1 into a character vector An...

1969 sym