One Sample T-Test
One Sample T-Test
One Sample T-Test
Assume the mean SAT score of students admitted to New Era University is 1090. Thus, the
university mean of 1090 is the population mean (m). The population standard deviation is
unknown. The members of the biology department believe that students who decide to major in
biology have higher SAT scores than the general population of students at the university.
----------------------------------------------------------------------
Open SPSS
1. Input the data into the ‘Data View’.
2. Edit the Data in the ‘Variable View’
- Since the data are ratio, we’ll use scale measurement
----------------------------------------------------------------------
Table 1. Descriptive Statistics
T-score
- Any t-value greater than +2 or less than -2 is acceptable (meaning the two
groups being compared are significantly different from each other)
- If the t-value is equal to 0, then they don’t have a significant difference (equals
the null hypothesis precisely).
- As the sample data become dissimilar from the null hypothesis, the absolute
value of the t-value increases.
Summary:
- One sample t-test compares the sample mean to a given population mean.
- Perform the steps in hypothesis testing
1. State research question
2. State hypothesis (null & alternative)
3. Determine the appropriate test
4. Select alpha level (which is always .05)
5. State decision rule (If p < .05, reject the null hypothesis.)
6. Run the test
a. Open SPSS
b. Data View
- input the data (values) in one column
c. Variable View
- Edit: Name (use underscore for spaces); Decimals (zero, we won’t
use decimals); Measurement (select ‘scales’ for ratio values)
d. Analyze the date > Compare means > One-sample T Test
e. Testing variable: (sample mean); Test Value: (Population mean)
f. Click options > 95%, Exclude cases analysis by analysis > Continue >
OK
g. Table 1. Descriptive statistics
h. Table 2. T-test Result
7. State the statistical conclusion
a. Divide ‘Sig. (2-tailed)’ result by 2.
b. State if reject or failed to reject.
c. Needed info: t-value, df, p value, sample mean, population mean
d. Format: [Reject/Failed to reject] the null hypothesis. The [sample] have
higher scores than the general population, t (df) = [t-value], p = [p-value]
(one-tailed). The [sample] has a mean of ____, higher than the
[population] ____.
T-test for Independent means
A researcher wants to study the effects on exam performance of massed versus spaced
study. All subjects in the experiment study the same material for the same amount of time. The
difference between the groups is that one group studies for 6 hours all at once (massed study),
whereas the other group studies for 6 hours broken into three 2-hour blocks (spaced study).
----------------------------------------------------------------------
Open SPSS
● We have two variables: spaced study & massed study
● We’ll code the two groups (1) and (2) respectively in one column.
1. Input the data in the ‘Data View’
Variable 1
Name: Types_of_Study
Decimals: zero (0)
Values
● Value: Input code
● Label: Input label
● Click Add > OK
Measure: Ordinal
Variable 2
Name: Income
Decimals: zero (0)
Measure: Scale (ratio)
3. Analyze the data > Compare means > Independent Samples T Test
5. Click options > 95%, Exclude cases analysis by analysis > Continue > OK
----------------------------------------------------------------------
Table 1. Descriptive Statistics
Conclusion:
Reject the null hypothesis. There is a significant difference in the exam performance of
students between spaced study and massed study, t(18) = 4.92, p = .000. The mean
score of spaced study is 22 which is significantly greater than mean scores of massed
study which is 16.80.
Summary:
- Compares the means of two different sample groups of participants.
- Perform the steps in hypothesis testing
1. State research question
2. State hypothesis
3. Determine appropriate test
4. Select alpha level
5. State decision rule
6. Run the test
a. Open SPSS
b. Data View
- Input the data, one column for the coded groups (1 and 2),
another column for the values/ scores
c. Variable View
- Variable 1: Name; Decimals; Values (Input the code and label of
two groups); Measure (Nominal)
- Variable 2: Name; Decimals; Measure (Scale)
d. Analyze the date > Compare means > Independent Samples T Test
e. Testing Variable(s): values; Grouping Variable: two independent groups
f. Click options > 95%, Exclude cases analysis by analysis > Continue >
OK
g. Table 1. Descriptive statistics
h. Table 2. T-test Result
7. State the statistical conclusion
a. Look up Levene’s test result (‘Sig.’ value)
- If p > .05, use data in the first row (equal variances assumed)
- If p ≤ .05, use data in the second row (equal variances not
assumed)
b. Look up the ‘Sig. (2-tailed)
- If p < .05, reject the null hypothesis.
c. State if reject or failed to reject.
d. Needed info: t-value, df, p value, mean scores of two groups
e. Format: [Reject] the null hypothesis. There is a significant difference in
the ______ between [first group] and [second group], t (df) = [t-value], p =
[p-value]. The mean score of [first group] is ___ which is significantly
greater than mean scores of [second group] which is ____.
To illustrate the use of the correlated-groups t test, imagine that we conduct a study in which
subjects are asked to learn two lists of words. One list is composed of 20 concrete words (for
example, desk, lamp, bus); the other is 20 abstract words (for example, love, hate, deity). Each
subject is tested twice, once in each condition
3. Analyze the data > Compare means > Paired Samples T Test
4. Click arrow to place the groups respectively in the right side
5. Click options > 95%, Exclude cases analysis by analysis > Continue > OK
----------------------------------------------------------------------
----------------------------------------------------------------------
Since p<.05, there is a significant difference in the level of years with the current employer and
their income. To determine which kind of post-hoc test to use, Levene’s test for homogeneity of
variances was performed. The result of this test is shown on Table 3.
Since the value of p<.05, it indicates that equal variances are not assumed. We will use
Dunnette’s T3 data.
Table 4. Result of post-hoc tests.
Conclusion 2 (5 to 15 and More than 15) Reject the null hypothesis because there is a
significant difference in the level of years with the current employer and their income (p =
.000)
Conclusion 3 (More than 15 and Less than 5) Reject the null hypothesis because there
is a significant difference in the level of years with the current employer and their income
(p = .000)
Overall conclusion
—There is a significant difference in the level of years with the current employer and
their income, F (2, 6397) = 1054.21, p = .000
Correlational Research
1. State research question
a. Is there a significant relationship between the weight and height of respondents?
2. State hypothesis
a. Null: There is no significant relationship between the weight and height of
respondents.
b. Alternative: There is a significant relationship between the weight and height of
respondents.
3. Determine appropriate test
— Pearson’s r
Variable 2
Name: Height
Decimals: zero
Measure: Scale
5. Select the 2 variables (weight and height) > Under Correlation Coefficient, check
Pearson > Under Test of Significance, select Two-tailed
6. Click options > Check Means and standard deviation > Continue > OK
----------------------------------------------------------------------
Table 1: Descriptive Statistics
Table 2: Graph
Table 3: Result of Correlation
Since the p<.05, reject the null hypothesis. Looking at Pearson's r .944, it indicates a
positive strong relationship.
Since p<.05, reject the null hypothesis. Looking at the pearson’s r value Math grade is
strongly positively correlated with English grade (r=.723., p = .009)
The R-square value of .523 indicates that 52.3% of the variance of English grade can be
explained by Math grade.
The unstandardized beta of .871 indicates that for every one unit increase in Math
grade, a .871 increase in English grade can also be predicted.
2. State hypothesis
a. Null: There is no significant difference in the number of accident reports by age
category of registered drivers.
b. Alternative: There is a significant difference in the number of accident reports by
age category of registered drivers.