Please provide the R code for the following using the precip dataset Use the sample function to take a sample of size 25 from the data points in the precip data set. Conduct a hypothesis test to determine if the proportion of cities with an average rainfall of at least 20 inches is equal to 0.65 or not at a 90% significance level. Clearly state your hypotheses, rejection rule, and conclusion in your report. Based on your observations of the sample data, conduct a one sided test to determine if the proportion parameter is greater than (or less than, you will need to choose the direction to test) 0.65. Clearly state your hypotheses, rejection rule, and conclusion in your report. Compute the proportion of cities in the full data set that have more than 20 inches of rain each year. With this information, do you think your test results are correct? Explain any discrepancies or issues that you see.
Please provide the R code for the following using the precip dataset
-
Use the sample function to take a sample of size 25 from the data points in the precip
-
Conduct a hypothesis test to determine if the proportion of cities with an average
rainfall of at least 20 inches is equal to 0.65 or not at a 90% significance level. Clearly
state your hypotheses, rejection rule, and conclusion in your report.
-
Based on your observations of the sample data, conduct a one sided test to determine if the proportion parameter is greater than (or less than, you will need to choose the direction to test) 0.65. Clearly state your hypotheses, rejection rule, and conclusion in your report.
-
Compute the proportion of cities in the full data set that have more than 20 inches of rain each year. With this information, do you think your test results are correct? Explain any discrepancies or issues that you see.
Step by step
Solved in 3 steps