Publications by Nikki Faroughi

Lab 8

03.11.2022

#Exercise 1 Sample Statistics #Exercise 2 We must assume that the technique used for the sampling method was random selection. It seems like a somewhat reasonable assumption because data was gathered from 57 different countries across five continents. #Exercise 3 download.file("http://www.openintro.org/stat/data/atheism.RData", destfile = "ath...

1376 sym 8 img

Document

08.11.2022

library(BSDA) ## Warning: package 'BSDA' was built under R version 4.2.2 ## Loading required package: lattice ## ## Attaching package: 'BSDA' ## The following object is masked from 'package:datasets': ## ## Orange tsum.test(18.3, 17.8, 33, 13.9, 19.1, 51) ## ## Welch Modified Two-Sample t-Test ## ## data: Summarized x and y ## t ...

22 sym R (2910 sym/19 pcs)

CH9 and 10

10.11.2022

num <- c(.0219) .207+1.96*(num) ## [1] 0.249924 .207-1.96*(num) ## [1] 0.164076 births <- c(216,716) days <- c(2/7,5/7) chisq.test(births, p=days) ## ## Chi-squared test for given probabilities ## ## data: births ## X-squared = 13.294, df = 1, p-value = 0.0002662 ratio <-c(9/16,3/16,3/16,1/16) type <- c(111,37,34,8) chisq.test(type...

20 sym

quiz910

10.11.2022

egg <- c(167,176,174,194) chisq.test(egg) ## ## Chi-squared test for given probabilities ## ## data: egg ## X-squared = 2.2321, df = 3, p-value = 0.5257 hv <- c(11,8) nhv <- c(52,54) com <- data.frame(hv, nhv) chisq.test(com) ## ## Pearson's Chi-squared test with Yates' continuity correction ## ## data: com ## X-squared = 0...

11 sym

EX2

11.11.2022

h1 <- c(21, 10, 32, 60, 8, 44, 29, 5, 13, 26, 33) h2 <- c(86, 27, 10, 68, 87, 76, 125, 60, 35, 73, 96, 44) wilcox.test(h2, h1, exact=FALSE, conf.int=0.95) ## ## Wilcoxon rank sum test with continuity correction ## ## data: h2 and h1 ## W = 114.5, p-value = 0.003113 ## alternative hypothesis: true location shift is not equal to 0 ## ...

7 sym

Linear Regression lab

22.11.2022

download.file("http://www.openintro.org/stat/data/mlb11.RData", destfile = "mlb11.RData") load("mlb11.RData") summary ("mlb11.RData") ## Length Class Mode ## 1 character character #Exercise 1: What type of plot would you use to display the relationship between runs and one of the other numerical variables? Plot this rela...

2270 sym 7 img

Multiple Linear Regression Lab

03.12.2022

download.file("http://www.openintro.org/stat/data/evals.RData", destfile = "evals.RData") load("evals.RData") #Exercise 1: Is this an observational study or an experiment? The original research question posed in the paper is whether beauty leads directly to the differences in course evaluations. Given the study design, is it possible to answe...

5891 sym 14 img