STA462/562 R
Posted codejava
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了STA462/562 R相关的知识,希望对你有一定的参考价值。
STA462/562 R HW- 2 (20pts) Name___________________
In this homework, you will apply knowledge from Chapters 7 & 8 in the analysis of the real data. A failure to submit both RMD and html (or pdf) files on Canvas will automatically result is a 10-pounts penalty.
Q1. (5pts)
In the R-demo shown in class, we used the data on infant birthweight collected at Baystate Medical Center, Springfield, Mass during 1986. The data is stored in R library MASS
Library(MASS)
data(birthwt)
a)Develop a confidence interval for a proportion of babies born from smoking mothers.
b)Provide the formula for pivotal quantity used in computation of this interval. Provide a formula for the 95% CI of the true proportion.
c)Develop a confidence interval for a proportion of babies born from nonsmoking mothers.
d)Find the confidence interval for the difference between proportions of babies born for these two groups.
e)Define the pivotal quantity used in d).
Use R to answer all of the questions above.
Q2. (5pts)
Use the same data set as in Q1 to develop the estimators of the mean and median for baby’s weight (use only smoking mothers).
a)Develop a sampling distribution of the mean using bwt variable. Use a bootstrap.
b)Develop a sampling distribution of the median using bwt variable. Use a bootstrap.
c)Compute bias, MSE, and 95% CI for a)
d)Compute bias, MSE, and 95% CI for b)
e)Summarize your findings. Minimum 5 full sentences are required.
Use R to answer all of the questions above.
Q3. (5pts)
Use the same data set as in Q1 to develop an estimators of the 95% quantile of weights (bwt) . Use only nonsmoking mothers.
a)Develop a sampling distribution of this estimator. Use a bootstrap.
b)Compute bias, MSE, and 95% CI for a)
c)Summarize your findings
Use R to answer all of the questions above.
Q4. (5pts)
Write a paragraph (min 5 full sentences) reflection on how this homework helped you understand concepts presented in Chapter 7 and Chapter 8.
因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:99515681@qq.com
微信:codehelp
以上是关于STA462/562 R的主要内容,如果未能解决你的问题,请参考以下文章