In: Statistics and Probability
Record No. | Length-mm |
1 | 22 |
2 | 30 |
3 | 23 |
4 | 22 |
5 | 26 |
6 | 23 |
7 | 27 |
8 | 18 |
9 | 39 |
10 | 31 |
11 | 36 |
12 | 23 |
13 | 31 |
14 | 23 |
15 | 32 |
16 | 35 |
17 | 24 |
18 | 23 |
19 | 24 |
20 | 43 |
21 | 30 |
22 | 31 |
23 | 34 |
24 | 21 |
25 | 25 |
26 | 37 |
27 | 26 |
28 | 35 |
29 | 28 |
30 | 36 |
1. suppose you the fisher men want to use mosquito fish that are greater than 29 mm for bait, otherwise it is not worth using this lake to harvest bait fish.
a. do a z test in r and use library (desctools) to call it up. find the p value turn in the script.
We will first copy the data in XL file & import the file by using import data set in the environment window.
Attached is the R code (marked in BOLD)
# Loading DescTools package
library(DescTools)
# Loading Data file
s <- sd(q2$`Length-mm`)
ZTest(q2$`Length-mm`,y=NULL,alternative = "greater",paired
= FALSE
,mu=29,sd_pop = s,conf.level = 0.95)
Ans : p-value = 0.6375
Conclusion : Since p-value (0.6375) > (0.05) we do not have sufficient evidence to reject the Null Hypothesis ; we reject the claim mosquito fish that are greater than 29 mm for bait.