Publications by Aritra
HW_3
Q1 A researcher wishes to conduct a study of the color preferences of new car buyers. Suppose that 50% of this population prefers the color red. If 20 buyers are randomly selected, what is the probability that between 9 and 12 (both inclusive) buyers would prefer red? # Parameters n <- 20 # Total number of buyers selected p_red <- 0.5 # Probabili...
2805 sym 6 img
HW_3
Q1 A researcher wishes to conduct a study of the color preferences of new car buyers. Suppose that 50% of this population prefers the color red. If 20 buyers are randomly selected, what is the probability that between 9 and 12 (both inclusive) buyers would prefer red? # Parameters n <- 20 # Total number of buyers selected p_red <- 0.5 # Probabili...
2805 sym 6 img
Discussion_6
#Clearing the global environment rm(list = ls()) Q1 Please explain each of the 3 distributions in less than 4 sentences. Normal Distribution: The normal distribution, also referred to as the bell curve, is a probability distribution in which the majority of values are found closest to the mean (average) and fewer values are found farther away fr...
6811 sym 3 img
Discussion_6
#Clearing the global environment rm(list = ls()) Q1 Please explain each of the 3 distributions in less than 4 sentences. Normal Distribution: The normal distribution, also referred to as the bell curve, is a probability distribution in which the majority of values are found closest to the mean (average) and fewer values are found farther away fr...
6860 sym 3 img
Discussion_5
rm(list=ls()) # remove all objects from environment cat("\f") # Clear the console graphics.off() # Clear all graphs gc() # Clear unused memory ## used (Mb) gc trigger (Mb) limit (Mb) max used (Mb) ## Ncells 527625 28.2 1172795 62.7 NA 669408 35.8 ## Vcells 969261 7.4 8388608 64.0 16384 1851555 14...
1194 sym R (3613 sym/19 pcs) 2 img
Homework_2
#Clearing the global environment rm(list = ls()) #load library library(gtools) What is the probability of rolling a sum of 12? sample_space = expand.grid(1:6, 1:6, 1:6) #We get 216 obvservations #Summing the rows and counting the ones adding upto 12 sums = rowSums(sample_space, na.rm = FALSE) desired = length(which(sums == 12)) # Calculating t...
2753 sym R (3735 sym/29 pcs)
Discussion_4
Task 1 Please list out their definitions: Independence refers to a situation where two or more events or variables are not influenced by each other. ๐(๐ดโฉ๐ต)=๐(๐ด).๐(๐ต) Mutually exclusive events are events that cannot occur simultaneously. ๐(๐ดโฉ๐ต)=0 โ๐(๐ดโฉ๐ต)=๐(๐ด).๐(๐ต)=0 โ๐(๐ด).๐(๐ต...
1865 sym 2 img
Discussion_3
#Clearing the global environment rm(list = ls()) #Created a matrix, inputting values by row (matrix1 = matrix(data = list(1, 2, 3, 4), nrow = 2, byrow = TRUE, dimnames = list( c('Row1', 'Row2'), c('Col1', 'Col2')) )) ## Col1 Col2 ## Row1 1 2 ## Row2 3 4 #Cr...
1328 sym R (4169 sym/42 pcs) 1 img
Week2_Discussion
Section 1 Sir Ronald Aylmer Fisher was an English statistician, evolutionary biologist, and geneticist who worked on a data set that contained sepal length and width, and petal length and width from three species of iris flowers (setosa, versicolor, and virginica). There were 50 flowers from each species in the data set. a) How many cases were inc...
1926 sym 4 img
HW1_Aritra
#Clearing the global environment rm(list = ls()) #Uploading the dataset df_t = read.csv('/Users/aritraray/Downloads/train.csv') Q1 a. What are the types of variable (quantitative / qualitative) and levels of measurement (nominal / ordinal / interval / ratio) for PassengerId and Age? Age is quantitative and PassengerID is qualitative. The level...
1527 sym R (1842 sym/10 pcs) 1 img