This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
1.Test hypotheses and develop confidence intervals about the difference in two means with known population variances using the z statistic.
2.Test hypotheses and develop confidence intervals about the difference in two means of independent samples with unknown population variances using the t test.
3.Test hypotheses and develop confidence intervals about the difference in two dependent populations.
4.Test hypotheses and develop confidence intervals about the difference in two population proportions.
5.Test hypotheses about the difference in two population variances using the F distribution.
Hypothesis Testing and Confidence Intervals About the Difference in Two Means Using the z Statistic (Population Variances Known)
v <- c(19, -12, 8, 0, 1)
dbar = mean(v)
s_d = round(sd(v), 1)
n = length(v)
df = n - 1
t = round(dbar/(s_d/n^.5), 3) # p value
t_.5alp = round(qt(.05,df), 3)
E = round(t_.5alp * s_d / n^.5, 4)
dbar + E
## [1] -7.6694
dbar - E
## [1] 14.0694
t_.5alp
## [1] -2.132
t
## [1] 0.628
You can also embed plots, for example:
Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.