Professional Documents
Culture Documents
One Sample T-Test
One Sample T-Test
One Sample T-Test
One-sample T-test
1
Introduction
The ‘One sample T Test’ is one of the 3 types of T Tests. It is used
when you want to test if the mean of the population from which the sample
is drawn is of a hypothesized value.
Since it assumes that the test statistic, typically the sample mean,
follows the sampling distribution, the Student’s T Test is considered as
a Parametric test.
ASSUMPTIONS
Three assumptions are required for a one-sample t-test to provide a valid
result:
This table shows that there are no significant differences between the means p
=.706
The descriptive data shows that the mean height of the sample population was
177.6 cm compared to the average 178 cm UK male.
Repeat the procedure by replacing height with mass and change the test value
to 83.6.
Example
Imagine we have collected a random sample of 31 energy bars from several 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.
If you look at the table above, you see that some bars have less than 20 grams of
protein. Other bars have more. You might think that the data support the idea that
the labels are correct. Others might disagree. The statistical test provides a sound
method to make a decision, so that everyone makes the same decision on the same set
of data values.
Let’s start by answering: Is the t-test an appropriate method to test that the energy
bars have 20 grams of protein? The list below checks the requirements for the test.
The data values are independent. The grams of protein in one energy bar do not
depend on the grams in any other energy bar. An example of dependent values
would be if you collected energy bars from a single production lot. A sample
from a single lot is representative of that lot, not energy bars in general.
The data values are grams of protein. The measurements are continuous.
We assume the energy bars are a simple random sample from the population of
energy bars available to the general consumer (i.e., a mix of lots of bars).
We assume the population from which we are collecting our sample is normally
distributed, and for large samples, we can check this assumption.
We decide that the t-test is an appropriate method.
Before jumping into analysis, we should take a quick look at the data. The figure
below shows a histogram and summary statistics for the energy bars.
Figure 1: Histogram and summary statistics for the grams of protein in energy bars
From a quick look at the histogram, we see that there are no unusual points,
or outliers. The data look roughly bell-shaped, so our assumption of a normal
distribution seems reasonable.
From a quick look at the statistics, we see that the average is 21.40, above 20. Does
this average from our sample of 31 bars invalidate the label's claim of 20 grams of
protein for the unknown entire population mean? Or not?
Note:
If the p-value <.05, then the null hypothesis is rejected. That means there is a
significant different between the population mean and the sample mean.
Statistics
Directions: Solve the following problems using JASP software. Report the results.
Suppose smart phone owners spends 190 minutes engaged with their phone, on
average, during a day. You collect a sample of 10 “social influencers” and record their
phone usage over 24-hour period. Use alpha .05, two tailed, to see if there is a
difference between social influencer and the general population of smart phone users.
2 192
3 188
4 205
5 197
6 187
7 220
8 194
9 192
10 220