Publications by PK O’Flaherty

DATA607 WK5 Assignment

07.03.2022

Israel by Landscape Photographer, Noam Chen, from blogs.timesofisrael.com Overview We are addressing the following questions using a chart of August 2021 data for Israeli COVID hospitalization rates for people, 50 and under, and over 50, for both un-vaccinated and fully vaccinated populations: Do you have enough information to calculate the tot...

6155 sym R (1981 sym/13 pcs) 1 img

DATA606 WK3 Lab

18.02.2022

Getting Started Load packages We’re programming within the tidyverse and using data from the openintro library. library(tidyverse) library(openintro) Data The data represents shots attempted by Kobe Bryant where baskets are called “hits”. glimpse(kobe_basket) ## Rows: 133 ## Columns: 6 ## $ vs <fct> ORL, ORL, ORL, ORL, ORL, ORL, ...

4105 sym R (1333 sym/12 pcs) 2 img

DATA607 WK2 Assignment

14.02.2022

Overview Below is the assignment description. I extended the assignment by applying a likert graph, and will discuss avenues for improvement. Choose six recent popular movies. Ask at least five people that you know (friends, family, classmates, imaginary friends if necessary) to rate each of these movies that they have seen on a scale of 1 to 5...

3958 sym R (2803 sym/14 pcs) 1 img

DATA606 WK2 Lab

12.02.2022

Load packages library(tidyverse) library(openintro) Load data data(nycflights) Exercise 1 Look carefully at these three histograms. How do they compare? Are features revealed in one that are obscured in another? ggplot(data = nycflights, aes(x = dep_delay)) + geom_histogram(binwidth = 150) ggplot(data = nycflights, aes(x = dep_delay)) + ge...

4235 sym R (3546 sym/25 pcs) 8 img

DATA607 WK3 Assignment

20.02.2022

Picture of the salal berries mentioned in Exercise 2, from www.diys.com/salal-plant/salal-berries Exercise 1 Using the 173 majors listed in fivethirtyeight.com’s College Majors dataset [https://fivethirtyeight.com/features/the-economic-guide-to-picking-a-college-major/], provide code that identifies the majors that contain either “DATA” or...

3881 sym R (5448 sym/36 pcs) 1 img

DATA607 Project 1

21.02.2022

Magnes Carlsen playing chess, from www.npr.org/alltechconsidered Overview Below is the assignment description. In this project, you’re given a text file with chess tournament results where the information has some structure. Your job is to create an R Markdown file that generates a .CSV file (that could for example be imported into a SQL data...

2367 sym R (2719 sym/11 pcs) 1 img

DATA606 WK4 Lab

27.02.2022

The Normal Distribution Getting Started Load packages We’re programming within the tidyverse and using data from the openintro library. library(tidyverse) library(openintro) The data This data set from the openintro library contains data on 515 menu items from some of the most popular fast food restaurants worldwide. data("fastfood", package...

3725 sym R (3828 sym/32 pcs) 17 img

DATA607 WK2 Extra Credit

28.02.2022

Overview The data set used here is from the article “The (Very) Long Tail of Hurricane Recovery”. https://projects.fivethirtyeight.com/sandy-311/ The article discussed how nearly 5 years after Sandy, 311 was still getting calls from New Yorkers asking for information. The data is pulled from NYC Open Data, and is structured with a row for eac...

2804 sym R (2350 sym/9 pcs) 1 img

DATA606 WK5b Lab

12.03.2022

Foundations for statistical inference - Confidence intervals Getting Started Load packages We are operating in the tidyverse. # Load packages ---------------------------------------------------------------- library(tidyverse) library(openintro) library(infer) # Needed for resampling library(shiny) # Needed for the shiny app # Set image dimen...

6466 sym R (1954 sym/13 pcs) 4 img

DATA606 WK7 Lab

26.03.2022

Inference for numerical data Getting Started Load packages In this lab, we will explore and visualize the data using the tidyverse suite of packages, and perform statistical inference using infer. The data can be found in the companion package for OpenIntro resources, openintro. Let’s load the packages. library(tidyverse) library(openintro) l...

10963 sym R (6426 sym/45 pcs) 3 img