Single Mean T Test
Single Mean T Test
A professor wants to know if her introductory statistics class has a good grasp of basic
math. Six students are chosen at random from the class and given a math proficiency
test. The professor wants the class to be able to score above 70 on the test. The six
students get scores of 62, 92, 75, 68, 83, and 95. Can the professor have 90 percent
confidence that the mean score for the class on the test would be above 70?
null hypothesis: H 0: μ = 70
Syntax
x=c(62, 92, 75, 68, 83, 95)
t.test(x, mu=70, alternative="greater", conf.level = 0.90)
test statistics
t = | S / √n |
X −μ
Result
One Sample t-test
data: x
t = 1.7053, df = 5, p-value = 0.1489
alternative hypothesis: true mean is not equal to 70
95 percent confidence interval:
65.34888 92.98446
sample estimates:
mean of x
79.16667
2. We have volunteered to collect data for the people of Mozambique on the circumferences of
mythical giraffe necks. We were able to measure 10 adult mythical giraffes whose neck sizes in
feet had the following dimensions: 37, 68, 45, 30, 40, 50, 70, 35, 26, 47. We have approximately
500 feet of gauze material that we are hoping is sufficient to create neck bows for each giraffe.
Thus, we are testing the null hypothesis that the average neck size of our sample of mythical
giraffes is 50 ft. We are using an alpha level of .05.
H0: µ = 50
HA: µ ≠ 50
3. To test the hypothesis that eating fish makes one smarter, a random sample of 12 persons take
a fish oil supplement for one year and then are given an IQ test. Here are the results: 116 111 101
120 99 94 106 115 107 101 110 92 Test using the following hypotheses, report the test statistic
with the P-value, then summarize your conclusion. H0: μ = 100 Ha: μ > 100
(one tail)
4. Consider 20 first year resident female doctors drawn at random from one area, resting systolic
blood pressures measured using an electronic sphygmomanometer were:
128 127
118 115
144 142
133 140
132 131
111 132
149 122
139 119
136 129
126 128
From previous large studies of women drawn at random from the healthy general public, a
resting systolic blood pressure of 120 mm Hg was predicted as the population mean for the
relevant age group. To analyse these data in StatsDirect first prepare a workbook column
containing the 20 data above or open the test workbook and select the single sample t test from
the parametric methods section of the analysis menu. Select the column marked "Systolic BP"
when prompted and enter the population mean as 120.
5. Imagine we have collected a random sample of 31 energy bars from a number of different
stores to represent the population of energy bars available to the general consumer. The labels on
the bars claim that each bar contains 20 grams of protein.