Publications by Magnus Skonberg
DATA 605 HW7
Background Within statistics and data science there are a number of distributions that repeat quite frequently. The purpose of this assignment will be to explore these emportant distributions and observe some of their properties. (1) Uniform distribution Let X1, X2, . . . , Xn be n mutually independent random variables, each of which is uniforml...
3537 sym R (1098 sym/26 pcs) 3 img
DATA 605 HW6
Background Combinatorics is the study of enumeration, combination, and permutation of sets of elements and the observation of mathematical relations that characterize their properties. Conditional probability is the probability of one event occurring with some relationship to one or more other events. For this week’s assignment, our focus is on...
7278 sym R (2366 sym/32 pcs)
DATA 607 Week5 Assignment
Background The purpose of this assignment is to tidy and transform data. The dataset of interest describes arrival delays for two airlines across five destinations and our task is to: Create a .csv file in a “wide” structure. Read this .csv and use tidyr and dplyr to tidy and transform. Analyze arrival delays between the airlines. Provide th...
3809 sym R (4337 sym/16 pcs) 2 img
DATA 605 HW5
Background Choose independently two numbers B and C at random from the interval [0, 1] with uniform density. Prove that B and C are proper probability distributions. Note that the point (B,C) is then chosen at random in the unit square. I’ll use the runif() function to generate random numbers from the interval [0, 1] as a uniform distribution. ...
8921 sym R (1107 sym/18 pcs) 2 img
DATA 606 Lab 4
Exercise 1 Make a plot (or plots) to visualize the distributions of the amount of calories from fat of the options from these two restaurants. How do their centers, shapes, and spreads compare? Each set is unimodal and right skewed (the tail runs to the right). With that said, the frequency histogram(s) highlight a number of unique differences ...
17764 sym R (2591 sym/19 pcs)
DATA 605 HW4
Problem Set 1 Given a 3 × 2 matrix A, A = [1 2 3, -1 0 4], (1) write code in R to compute X = AAT and Y = ATA. First we will initialize matrix A, to ensure it’s been created in the proper form. Then we’ll compute and display X and Y by the equations noted above. #Initialize matrix A A <- matrix(data = c(1, 2, 3, -1, 0, 4), nrow = 2, byrow...
12622 sym R (4284 sym/48 pcs)
DATA 605 HW3
Problem Set 1 What is the rank of matrix A? Transform matrix A into its upper matrix form and observe the number of non-zero rows (the rank). #Initialize matrix A A <- matrix(data = c(1,2,3,4,-1,0,1,3,0,1,-2,1,5,4,-2,-3), nrow = 4, ncol = 4, byrow = TRUE) A ## [,1] [,2] [,3] [,4] ## [1,] 1 2 3 4 ## [2,] -1 0 1 3 ...
11611 sym R (1827 sym/16 pcs)
DATA 607 Week3 Assignment
1. Provide code that identifies the majors that contain either “DATA” or “STATISTICS” in fivethirtyeight.com’s College Majors dataset. majors <- read.csv("https://raw.githubusercontent.com/fivethirtyeight/data/master/college-majors/majors-list.csv", header = TRUE, sep = ",") #From this dataframe, select the column listing majors and s...
2346 sym R (3540 sym/23 pcs)
DATA 606 Lab 3
Exercise 1 What does a streak length of 1 mean, i.e. how many hits and misses are in a streak of 1? What about a streak length of 0? Streak of 1: 1 shot is hit and then 1 shot is missed. A streak of 1 means that 1 consecutive shot was made. Streak of 0: n shots were missed, 0 shots were made. A streak of 0 means that 0 consecutive shots have b...
14732 sym R (2410 sym/15 pcs) 2 img
DATA 607 Project 1
Collaborators: Dan Rosenfeld, Jered Ataky, and Rick Sughrue The collaborators (noted above) contributed to and collaborated on solving Project 1. Background 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 co...
12169 sym R (9580 sym/9 pcs)