I struggle with Rstudio and would like to know how I can complete these equations by using Rstudio and a .csv file rather than manually. Thankyou
1. A certain river, fed by various tributaries,
usually has a pH of about 6.3 (slightly acidic).
Water_pH.csv contains pH values from randomly-selected sites on
this river and its tributaries.
a) Is there evidence the average pH of this river has changed from the usual value of 6.3? Evaluate the evidence using a hypothesis test with a significance level of 5%. State and evaluate all assumptions, and provide an appropriate conclusion.
b) Provide a 99% confidence interval for the mean pH in this river system.
pH |
6.2 |
6.3 |
5 |
5.8 |
4.6 |
4.7 |
4.7 |
5.4 |
6.2 |
6 |
5.4 |
5.9 |
6.2 |
6.1 |
6 |
6.3 |
6.2 |
5.8 |
6.2 |
6.3 |
6.3 |
6.3 |
6.4 |
6.5 |
6.6 |
6.1 |
6.3 |
7.4 |
6.7 |
Values ( X ) | Σ ( Xi- X̅ )2 | |
6.2 | 0.0414 | |
6.3 | 0.0921 | |
5 | 0.9932 | |
5.8 | 0.0387 | |
4.6 | 1.9505 | |
4.7 | 1.6812 | |
4.7 | 1.6812 | |
5.4 | 0.3559 | |
6.2 | 0.0414 | |
6 | 0 | |
5.4 | 0.3559 | |
5.9 | 0.0093 | |
6.2 | 0.0414 | |
6.1 | 0.0107 | |
6 | 0 | |
6.3 | 0.0921 | |
6.2 | 0.0414 | |
5.8 | 0.0387 | |
6.2 | 0.0414 | |
6.3 | 0.0921 | |
6.3 | 0.0921 | |
6.3 | 0.0921 | |
6.4 | 0.1627 | |
6.5 | 0.2534 | |
6.6 | 0.3641 | |
6.1 | 0.0107 | |
6.3 | 0.0921 | |
7.4 | 1.9695 | |
6.7 | 0.4948 | |
Total | 173.9 | 11.1301 |
Mean X̅ = Σ Xi / n
X̅ = 173.9 / 29 = 5.9966
Sample Standard deviation SX = √ ( (Xi - X̅
)2 / n - 1 )
SX = √ ( 11.1301 / 29 -1 ) = 0.6305
To Test :-
H0 :-
H1 :-
Test Statistic :-
t = -2.5914
Test Criteria :-
Reject null hypothesis if
Result :- Reject null hypothesis
Decision based on P value
P - value = P ( t > 2.5914 ) = 0.015
Reject null hypothesis if P value <
level of significance
P - value = 0.015 < 0.05 ,hence we reject null hypothesis
Conclusion :- Reject null hypothesis
There is sufficient evidence to support the claim that the average pH of this river has changed from the usual value of 6.3.
Confidence Interval
Lower Limit =
Lower Limit = 5.6731
Upper Limit =
Upper Limit = 6.3201
99% Confidence interval is ( 5.6731 , 6.3201 )
I struggle with Rstudio and would like to know how I can complete these equations by using Rstudio and a .csv file rather than manually. Thankyou 1. A certain river, fed by various tributaries, usuall...
An object of weight 1 N is falling vertically. The time vs. speed data can be found here. In this case the effect of air-drag cannot be neglected. Use your critical thinking to estimate the air-drag coefficient . Make sure you include the units in your answer. 0 0 0.1 0.9992 0.2 1.993 0.3 2.978 0.4 3.948 0.5 4.898 0.6 5.826 0.7 6.728 0.8 7.599 0.9 8.438 1 9.242 1.1 10.01 1.2 10.74 1.3 11.43 1.4 12.09 1.5 12.7 1.6 ...
CASE 1-5 Financial Statement Ratio Computation Refer to Campbell Soup Company's financial Campbell Soup statements in Appendix A. Required: Compute the following ratios for Year 11. Liquidity ratios: Asset utilization ratios:* a. Current ratio n. Cash turnover b. Acid-test ratio 0. Accounts receivable turnover c. Days to sell inventory p. Inventory turnover d. Collection period 4. Working capital turnover Capital structure and solvency ratios: 1. Fixed assets turnover e. Total debt to total equity s. Total assets turnover f. Long-term...