Publications by Vinayak Kamath

Data606-HomeWork-Chapter3-Probability

16.02.2020

Dice rolls. (3.6, p. 92) If you roll a pair of fair dice, what is the probability of getting a sum of 1? Answer: 0; the minimum value with sum of two dice would 2 (1 on each). getting a sum of 5? Answer: 4/36 = 1/8. [ 4 combinations: 1+4 ; 2+3 ; 3+1 ; 4+1 ] getting a sum of 12? Answer: 1/36; the minimum value with sum of two dice would 12 [ 1...

8281 sym R (2426 sym/32 pcs) 2 img

Data606 - Lab 3 - Probability

15.02.2020

Hot Hands 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 belief and...

11915 sym R (3836 sym/28 pcs) 2 img

Data607-Week03-Assignment-Character Manipulation And Date Processing

13.02.2020

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 “STATISTICS”: theUrl <- "https://raw.githubusercontent.com/fivethirtyeight/data/master/college-majors/...

2186 sym R (3175 sym/25 pcs)

Data607-MajorAssignment-Tidyverse

11.02.2020

An Example using TidyVerse packages - ggplot2 and dplyr and using tesla-stock-data-from-2010-to-2020 Data set from Kaggle [https://www.kaggle.com/timoboz/tesla-stock-data-from-2010-to-2020]: Pls load ggplot2 and dplyr package using install.packages(“ggplot2”) and install.packages(“dplyr”) Load the library and Read the data using readr: #...

1308 sym R (1444 sym/10 pcs) 1 img

Data606-HomeWork-Chapter 2 - Summarizing Data

09.02.2020

Stats scores. (2.33, p. 78) Below are the final exam scores of twenty introductory statistics students. 57, 66, 69, 71, 72, 73, 74, 77, 78, 78, 79, 79, 81, 81, 82, 83, 83, 88, 89, 94 Create a box plot of the distribution of these scores. The five number summary provided below may be useful. Answer: The boxplot for the Scores distribution is as b...

6100 sym 5 img

Introduction to R and RStudio - Data606 - Lab1

31.01.2020

The goal of this lab is to introduce you to R and RStudio, which you’ll be using throughout the course both to learn the statistical concepts discussed in the texbook and also to analyze real data and come to informed conclusions. To straighten out which is which: R is the name of the programming language itself and RStudio is a convenient inte...

12174 sym R (6886 sym/41 pcs) 7 img

R_BrdgWrkshp_Week3_Assignment_HTML

12.01.2020

*** Data set “Forbes2000.csv” from http://vincentarelbundock.github.io/Rdatasets/ *** #library(readr) Forbes2000.data <-read.delim(file="Forbes2000.csv", sep=',') str(Forbes2000.data) ## 'data.frame': 2000 obs. of 9 variables: ## $ X : int 1 2 3 4 5 6 7 8 9 10 ... ## $ rank : int 1 2 3 4 5 6 7 8 9 10 ... ## $ n...

1768 sym R (10609 sym/27 pcs) 6 img

R_BrdgWrkshp_Week2_HandsOn

05.01.2020

Load the diamonds dataset, which is included with the ggplot2 package. Identify which variables in the diamond set are numeric, and which are catgorical (factors). library(ggplot2) str(diamonds) ## Classes 'tbl_df', 'tbl' and 'data.frame': 53940 obs. of 10 variables: ## $ carat : num 0.23 0.21 0.23 0.29 0.31 0.24 0.24 0.26 0.22 0.23 ......

558 sym R (3856 sym/25 pcs) 7 img

R_BrdgWrkshp_Week2_Assignment_HTML

31.12.2019

Data sets: http://vincentarelbundock.github.io/Rdatasets/ (click on the csv index for a list): datasets.csv “Stat2Data”,“AppleStock”,“Daily Price and Volume of Apple Stock”,66,4,0,0,1,0,3, “https://raw.github.com/vincentarelbundock/Rdatasets/master/csv/Stat2Data/AppleStock.csv”, “https://raw.github.com/vincentarelbundock/Rdatase...

1619 sym R (12347 sym/44 pcs)

R_BrdgWrkshp_Week1_Assignment_HTML

22.12.2019

1. Write a loop that calculates 12-factorial: –> Function to calculate factorial of a number passed as arguement get.factorial <- function(input.num = "0", ...) { if(is.integer(as.integer(input.num)) && input.num >= 1) { ret_fact<- 1 for (i in 1:input.num) ret_fact <- ret_fact * i }else { return ('Not a valid ...

597 sym R (1050 sym/12 pcs)