To compare corrosion resistance properties of two types of materials, Type A and Type B, were used in underground pipelines. Specimens of both types are buried in soil for a 2-year period and the maximum penetration (in mils) for each specimen is measured. The resulting sample statistics for each type are as follows:
Type A: mean = 0.49, sd = 0.19, n = 42
Type B: mean = 0.36, sd = 0.16, n = 42
A. Test whether the corrosion resistance properties differ between the two material types at a 0.05 level of significance. Include the hypotheses, the test statistic, the p-value, test decision, and conclusion in the context of the problem.
B. Do you believe the test results are valid? Explain.
C. What test decision error could you have made, and provide an explanation of this error in the context of the problem.
D. Include a copy of your R code and test output.