***please use rstudio and describe how to answer this***
I am not learning to do this by hand - a handwritten answer does not help me in the slightest. I need to know how do a hypothesis test in r but my professor did a very poor job of explaining it.
An Office of Admission document at a certain university claims that 54.3% of their undergraduates are female. To test this claim, a random sample of 220 undergraduates was selected. In this sample, 57.3% were female. Is there sufficient evidence to conclude that the document's claim is false? Carry out a hypothesis test at a 3% significance level.
The value of the test statistic is: ___
B. The p-value is ___
D. Your decision for the hypothesis test:
A. Do Not Reject H1
B. Reject H0
C. Reject H1
D. Do Not Reject H0
Solution :
This is the two tailed test .
The null and alternative hypothesis is
H0 : p = 0.543
Ha : p 0.543
n = 220
= 0.573
P0 = 0.543
1 - P0 = 1 - 0.543 =0.457
Test statistic = z
= - P0 / [P0 * (1 - P0 ) / n]
= 0.573 - 0.543 / [(0.543 *0.457) / 220 ]
= 0.89
Test statistic = z = 0.89
P(z > 0.89 ) = 1 - P(z < 0.89 ) = 1 - 0.8133
P-value = 0.1867
= 0.03
P-value >
0.1867 > 0.03
Fail to reject the null hypothesis .
There is not sufficient evidence to suggest that
Get Answers For Free
Most questions answered within 1 hours.