—————————————————————————

Student Name : Sachid Deshmukh

—————————————————————————

  1. 1.8 Smoking habits of UK residents

  1. 1.10 Cheaters, scope of inference

  1. 1.28 Reading the paper

  1. 1.36 Exercise and mental health

  1. 1.48 Stat Scores

Stat.Score = c(57,66,69,71,72,73,74,77,78,78,79,79,81,81,82,83,83,88,89,94)
boxplot(Stat.Score)

  1. 1.50 Mix and match

  1. 1.56 Distributions

  1. 1.70 Heart Transplants

prop.test(c(30,45), c(34,69))
## 
##  2-sample test for equality of proportions with continuity
##  correction
## 
## data:  c(30, 45) out of c(34, 69)
## X-squared = 4.9891, df = 1, p-value = 0.02551
## alternative hypothesis: two.sided
## 95 percent confidence interval:
##  0.05215768 0.40820037
## sample estimates:
##    prop 1    prop 2 
## 0.8823529 0.6521739

88.23% patients in control groups died compared to 65% patients in treatment group