Publications by Carol Campbell

Data 606 Lab 4 Distributions

03.10.2023

In this lab, you’ll investigate the probability distribution that is most central to statistics: the normal distribution. If you are confident that your data are nearly normal, that opens the door to many powerful statistical methods. Here we’ll use the graphical tools of R to assess the normality of our data and also learn how to generate ...

10068 sym R (9112 sym/45 pcs) 13 img

Data 607 Project 1 Chess Scores2

02.10.2023

library(tidyverse) library(stringr) library(ggplot2) library(readr) library(kableExtra) chess_tbl = readLines("https://raw.githubusercontent.com/carolc57/Data607-Fall23/main/chess_scores.txt") ## Warning in ## readLines("https://raw.githubusercontent.com/carolc57/Data607-Fall23/main/chess_scores.txt"): ## incomplete final line found on ## 'h...

411 sym R (11457 sym/25 pcs) 1 tbl

Data 607 Project 1 Chess Scores2

02.10.2023

In this project, we’re given a text file with chess tournament results where the information has some structure. Our job is 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, Total Number of P...

1202 sym R (11457 sym/25 pcs) 1 tbl

Data 607 Assignment 3

23.09.2023

library(tidyverse) ## -- Attaching core tidyverse packages ------------------------ tidyverse 2.0.0 -- ## v dplyr 1.1.0 v readr 2.1.4 ## v forcats 1.0.0 v stringr 1.5.0 ## v ggplot2 3.4.3 v tibble 3.1.8 ## v lubridate 1.9.2 v tidyr 1.3.0 ## v purrr 1.0.2 ## -- Conflicts ---------------------------...

1692 sym R (4177 sym/25 pcs)

RBridge HW 3

02.08.2023

It’s wedding season. Again. Even though approximately 45% of married couples eventually divorce (it was closer to 50% in the 1980s), couples are still tying the knot, secretly hoping that their marriage will be the one that endures/beats the odds, thus debunking the stats. There have been more studies than not on this topic, with each one off...

2623 sym R (15001 sym/35 pcs) 3 img

Carol Campbell R Bridge assignment 2

22.07.2023

One of the challenges in working with data is wrangling. In this assignment we will use R to perform this task. Use the summary function to gain an overview of the data set. Then display the mean and median for at least two attributes of your data. # import file, set header = FALSE to get row name header channing <- read.csv (file = 'C:\\User...

1423 sym Python (7523 sym/31 pcs)

Carol Campbell R Bridge Week 1 Assignment

16.07.2023

Write a loop that calculates 12-factorial print (paste("This calculates the factorial of the number 12")) ## [1] "This calculates the factorial of the number 12" num <- 1 my_factorial <- 1 while (num <= 12) { my_factorial <- my_factorial * num num <- num + 1 #increments num by 1 } print (paste("The factorial of 12 is", my_fac...

1006 sym

Data 607 - Week 3 Character Manipulation

13.02.2023

Please deliver links to an R Markdown file (in GitHub and rpubs.com) with solutions to the problems below. You may work in a small group, but please submit separately with names of all group participants in your submission. 1 a. Using the 173 majors listed in fivethirtyeight.com’s College Majors dataset [https://fivethirtyeight.com/features/...

1642 sym Python (3323 sym/14 pcs)

Data 606: Lab 1: Intro to R

06.02.2023

library(tidyverse) library(openintro) load/look at data #load data data('arbuthnot', package = 'openintro') #peak at data head (arbuthnot) ## # A tibble: 6 x 3 ## year boys girls ## <int> <int> <int> ## 1 1629 5218 4683 ## 2 1630 4858 4457 ## 3 1631 4422 4102 ## 4 1632 4994 4590 ## 5 1633 5158 4839 ## 6 1634 50...

3324 sym 3 img

607 HW 1: Assignment Basic Loading and Transformationocument

30.01.2023

library(tidyverse) library(openintro) Introduction - An Analysis of Superbowl Commercials from 2011 to 2020 Based on the article According to Super Bowl Ads, Americans Love America, Animals And Sex I chose to analyze the dataset “superbowl-ads.csv” from https://datafivethirteight.com/ which looks at superbowl commercials from 2000 to 2...

1565 sym R (5485 sym/15 pcs)