One Sample T Test - SPSS Tutorials - LibGuides at Kent State University
One Sample T Test - SPSS Tutorials - LibGuides at Kent State University
The One Sample t Test compares a sample mean to a hypothesized population mean to determine whether the
two means are signicantly dierent.
Chi-Square
The variable used in this test is known as:
Test of
Independence
Test variable
Pearson
Correlation In a One Sample t Test, the test variable is compared against a "test
value", which is a known or hypothesized value of the mean in the
One Sample t
population.
Test
Paired
Samples t Test
Independent
Samples t Test
One-Way
ANOVA
Sample Data
Files
Our tutorials
reference a
dataset called
"sample" in many
https://libguides.library.kent.edu/SPSS/OneSampletTest 1/10
examples.
11/29/2018 If you'd One Sample t Test - SPSS Tutorials - LibGuides at Kent State University
Common Uses
like to download
the sample The One Sample t Test is commonly used to test the following:
dataset to work
through the Statistical difference between a sample mean and a known or
examples, choose hypothesized value of the mean in the population.
one of the les Statistical difference between the sample mean and the sample
below: midpoint of the test variable.
Statistical difference between the sample mean of the test
Data variable and chance.
de nitions This approach involves rst calculating the chance level on
(*.pdf) the test variable. The chance level is then used as the test
Data - value against which the sample mean of the test variable is
Comma compared.
delimited Statistical difference between a change score and zero.
(*.csv) This approach involves creating a change score from two
variables, and then comparing the mean change score to
Data -
zero, which will indicate whether any change occurred
Tab
between the two time points for the original measures. If the
delimited
mean change score is not signi cantly different from zero,
(*.txt)
no signi cant change occurred.
Data -
Excel format Note: The One Sample t Test can only compare a single sample
(*.xlsx) mean to a speci ed constant. It can not compare sample means
Data - between two or more groups. If you wish to compare the means of
SAS format multiple groups to each other, you will likely want to run an
(*.sas7bdat) Independent Samples t Test (to compare the means of two groups) or
a One-Way ANOVA (to compare the means of two or more groups).
Data -
SPSS format
(*.sav)
SPSS
Syntax
(*.sps)
SAS
Syntax
(*.sas)
https://libguides.library.kent.edu/SPSS/OneSampletTest 2/10
11/29/2018 One Sample t Test - SPSS Tutorials - LibGuides at Kent State University
Data Requirements
Hypotheses
https://libguides.library.kent.edu/SPSS/OneSampletTest 3/10
11/29/2018 One Sample t Test - SPSS Tutorials - LibGuides at Kent State University
Test Statistic
¯¯
x̄ − μ
t =
s¯¯
¯
x
where
s
s¯¯
¯ =
x −
−
√n
where
Data Set-Up
The One-Sample T Test window opens where you will specify the
variables to be used in the analysis. All of the variables in your
dataset appear
https://libguides.library.kent.edu/SPSS/OneSampletTest in the list on the left side. Move variables to the Test4/10
11/29/2018 Variable(s) area
One Sample t Testby selecting
- SPSS Tutorials - them inat the
LibGuides list University
Kent State and clicking the arrow
button.
Example
https://libguides.library.kent.edu/SPSS/OneSampletTest 5/10
11/29/2018 One Sample t Test - SPSS Tutorials - LibGuides at Kent State University
PROBLEM STATEMENT
According to the CDC, the mean height of adults ages 20 and older is
about 66.5 inches (69.3 inches for males, 63.8 inches for females).
Let's test if the mean height of our sample data is signi cantly
different than 66.5 inches using a one-sample t test. The null and
alternative hypotheses of this test will be:
where 66.5 is the CDC's estimate of average height for adults, and x
Height is the mean height of the sample.
https://libguides.library.kent.edu/SPSS/OneSampletTest 6/10
11/29/2018 One Sample t Test - SPSS Tutorials - LibGuides at Kent State University
SYNTAX
T-TEST
/TESTVAL=66.5
/MISSING=ANALYSIS
https://libguides.library.kent.edu/SPSS/OneSampletTest 7/10
/VARIABLES H i ht
11/29/2018 /VARIABLES=Height
One Sample t Test - SPSS Tutorials - LibGuides at Kent State University
/CRITERIA=CI(.95).
OUTPUT
TABLES
Two sections (boxes) appear in the output: One-Sample Statistics
and One-Sample Test. The rst section, One-Sample Statistics,
provides basic information about the selected variable, Height,
including the valid (nonmissing) sample size (n), mean, standard
deviation, and standard error. In this example, the mean height of
the sample is 68.03 inches, which is based on 408 nonmissing
observations.
C df: The degrees of freedom for the test. For a one-sample t test,
df = n - 1; so here, df = 408 - 1 = 407.
F Con dence Interval for the Difference: The con dence interval
for the difference between the speci ed test value and the sample
mean.
https://libguides.library.kent.edu/SPSS/OneSampletTest 9/10
11/29/2018 One Sample t Test - SPSS Tutorials - LibGuides at Kent State University
Tutorial Feedback
Powered by Qualtrics
https://libguides.library.kent.edu/SPSS/OneSampletTest 10/10