Midterm 2
英国统计学代考 The P-value is 0.9223 > 0.01. So we fail to reject the null hypothesis. The proportion of inefficient charities are the same
Question 1: Load the data
Question 2: Histogram of variables
hist(charity.data$fund_eff)
Question 3: Education versus Other
charity.data$fund_eff[charity.data$is.educa charity.data$fund_eff[−charity.data$is.educ
Question 4 英国统计学代考
These shapes resembled exponential distributions.
Question 5
##
Welch Two Sample t-test
##
data: education.fund.eff and other.fund.eff
## t = 0.66294, df = 770.77, p-value = 0.5076
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
## -0.004693325 0.009479666
## sample estimates:
## mean of x mean of y
## 0.1104948 0.1081016
The two-way t-test was conducted to test if the means are the same for two groups (education, and other). The P-value was found to be 0.5076 > 0.01. So we fail to reject the null hypothesis that the means are the same.
Question 6 英国统计学代考
In the two way t-test, the assumptions are:
- TheX and Y samples are independent of each other.
- Thepopulations for the two groups are normally distributed.
Question 7
## Proportion of inefficient charities for Education group 0.04947526
## Proportion of inefficient charities for Others group 0.05114785
Question 8 英国统计学代考
The two proportion z-test is conducted with the following code:
##
## 2-sample test for equality of proportions with continuity correction ##
## data: c(ineff.education, ineff.other) out of c(n.education, n.other) ## X-squared = 0.0095158, df = 1, p-value = 0.9223
## alternative hypothesis: two.sided ## 95 percent confidence interval: ## -0.01959956 0.01625438
## sample estimates:
## prop 1 prop 2
## 0.04947526 0.05114785
The P-value is 0.9223 > 0.01. So we fail to reject the null hypothesis. The proportion of inefficient charities are the same for these two subpopulations.
Question 9
1.Thedata for two groups must be randomly sampled.
2.Each observations are independent.
3.The two populations follows binomial independent.
更多代写:代寫app 多邻国代考 英国网课代考推荐 英美文学essay代写 英文Essay学生论文代写 澳大利亚网课代修