# STAT260_RAssignment3.docx - STAT 260 Assignment 3...

• 3

This preview shows page 1 - 3 out of 3 pages.

STAT 260 Assignment 3 Instructor: C. Barone Part 1 (a)COMMAND > tomato.sodiumcontent <- c(510, 520, 515, 516, 517, 519, 522, 510) > t.test(tomato.sodiumcontent, conf.level = 0.96) OUTPUT One Sample t-test data: tomato.sodiumcontent t= 332.57, df = 7, p-value = 5.868e-16 alternativehypothesis: true mean is not equal to 0 96 percent confidence interval: 512.2192 520.0308 sampleestimates: mean of x 516.125 (b) Since µ = 515 is in the 96% Confidence Interval, it is a reasonable estimate for the true mean sodium content. Part 2 (a)COMMAND > slabs.compressivestrength <- c(35.1, 34.4, 35.8, 36.1, 35.7) > t.test(slabs.compressivestrength, mu = 35, alternative ="greater") OUTPUT
One Sample t-test data: slabs.compressivestrengtht = 1.3892, df = 4, p-value = 0.1185 alternativehypothesis: true mean is greater than 35 95 percent confidence interval: 34.77549 Inf sample estimates: mean of x 35.42 (b)t = 1.3892 observed value of the test statistic. (c)p-value =0.1185, p-value for our hypothesis test.
• • • 