Added on - 23 Sep 2019
Biostatistics Assignment1401077 Introduction to Biostatistics, Autumn 2018Assignment 2Question 1a.>table(survey$sex)female male121 150>binom.test(121, 271,+0.5,+alternative="two.sided",+conf.level=0.95)Exact binomial testdata: 121 and 271number of successes = 121, number of trials = 271, p-value = 0.08878alternative hypothesis: true probability of success is not equal to 0.595 percent confidence interval:0.3863346 0.5078372sample estimates:probability of success0.4464945Point estimate = 0.446494595% Confidence interval (0.3863346 0.5078372)b.I am 95% confident that estimated population proportion of females lie in theinterval (0.39, .51). Mendenhall, W. M., Sincich, T. L., & Boudreau, N. S. (2016).c.Since confidence interval contains the value 0.50, I can say that 50% of 17-year-oldsin NSW are female.Question 2a.> hist(survey$MVPA, col="green")
Biostatistics Assignment2The distribution of MVPA is skewed to the right. This indicates there are very fewobservations of large values of MVPA.Mendenhall, W. M., Sincich, T. L., & Boudreau,N. S. (2016).b.Null hypothesis, ho: there is no significant difference in the average self-reportedhours of MVPA per week is equal between males and females.Alternative hypothesis, h1: there is a significant difference in the average self-reported hours of MVPA per week is equal between males and females.> wilcox.test(survey$MVPA~survey$sex)Wilcoxon rank sum test with continuity correctiondata: survey$MVPA by survey$sexW = 8539.5, p-value = 0.404alternative hypothesis: true location shift is not equal to 0with w=8539.5, p>5%, I fail to reject null hypothesis and conclude that there is nosignificant difference in the average self-reported hours of MVPA per week is equalbetween males and females.Tartakovsky, A., Nikiforov, I., & Basseville, M. (2014).Question 3 (4 marks)a.