A sample of 900 items is found to have a mean of 3.47 cm. Write down the R programming code to test whether it can be reasonably regarded as a simple sample from a population with mean 3.23 cm and SD 2.31 cm at 99% level of confidence.
"H_0 : \\mu = 3.23 \\\\\n\nH_1 : \\mu \u2260 3.23 \\\\\n\n\\bar{x} = 3.47 \\\\\n\n\\sigma = 2.31 \\\\\n\nn = 900"
The test statistic:
"z = \\frac{\\bar{x} - \\mu}{\\sigma \/ \\sqrt{n}} \\\\\n\nz = \\frac{3.47 -3.23}{2.31 \/ \\sqrt{900}} \\\\\n\nz = 3.11"
R programming code:
Calculated "z>z_{alpha}" , so H0 is rejected.
Comments
Leave a comment