Data Analysis Using SPSS - Evsu PDF
Data Analysis Using SPSS - Evsu PDF
Identification Measurement
of Variables: of Variables:
PROBLEM Variable A
Variable B • direct
Variable C •Indirect
... etc...
Collection of
Data
Constant
A characteristic or attribute of persons
that does not change
Illustration 1.
• Gender
• Age
• Length of Service
• Marital Status
• Salary
• Educational Attainment
• Work Performance
• Religion
• Level of Motivation
• Attitude towards Teaching
• Tenure
Illustration 2.
Age
Length of Service
Salary
Work Performance (scores)
Level of Motivation (scores)
Attitude towards Teaching
(scores)
Qualitative Variables
• Gender
• Marital Status
• Educational Attainment
• Religion
• Tenure
Classification of Variables
According to FUNCTIONAL RELATIONSHIP
Independent Variable (or variate) –
variable that explains the variation of
another variable;
Independent Dependent
Variable Variable Y
X Y
Classification of Variables
Marital Status:
1 – single; 2 – married; 3 – others
ORDINAL Scale (KEY WORD: RANK)
Educational Attainment:
3 – Doctorate Degree Holder
2 – Master’s Degree Holder
1 – Bachelor’s Degree Holder
Examples: IQ Score
Examples: Age
Height
Weight
Work Experience
Number of children in a family
Number of times absent in a year
Relationship of the concepts scale, variable, data:
P2 P3
P1Parents)
(Teachers) (Students)
S1 S2 S3
(parents) (teachers) (students)
Population of
Paired Subjects
Sample of
Paired Subjects
Sample 1 Sample 2
Note that this computed value will cut an area to the right
(p-value) that is less than the given level of significance .
Hence, we have to reject the null hypothesis when the p-
value .
Some Statistical Tests Used for Comparing Groups:
(Experimental & Causal Comparative Research Designs)
Type of Samples
Independent Samples Dependent or Correlated
Type of DATA Samples
2 Groups at least 3 Grps 2 Groups at least 3 Grps
Interval or t-test for One Way t-test for Repeated
Ratio independent ANOVA dependent Measures
(Population samples Samples ANOVA
means are
compared)
Ordinal Wilcoxon Kruskal-Wallis Wilcoxon Friedman’s
(Population Rank Sum ANOVA Signed Two Way
medians are Test Ranks Test ANOVA
compared)
Nominal Chi-square Chi-square McNemar Cochran’s
(Population Test Test Test Test
proportions Fisher Exact
are compared) Test
THE t-TEST FOR TWO
INDEPENDENT SAMPLES
Assumptions (t-test for independent samples):
Homogeneous population
Heterogeneous population
Assumptions:
n1 n2 n1 n2
Where:
x1 is the mean of group 1; s12 variance of group 1
x2 is the mean of group 2; s22 variance of group 2
Sp2 is the pooled variance defined by
S p2
n1 1s12 n 2 1s 22
n1 n 2 2
ILLUSTRATION:
Research Question: Is there a significant difference
between the mean math achievement
scores of students exposed to the
constructivist model and those
exposed to the lecture method?
Group 1 Group 2
(Constructivist) (Lecture Method)
x1 x2
84 79
81 81
89 78
85 82
85 80
Measure:
Method – Nominal
Score - Scale
To analyze
the data:
Define your Test Variable
(dependent variable) and
your Grouping Variable
(independent Variable) by
CLICKING the button
with arrow
then
Click Continue
H0: 1
2
2
2 If the null hypothesis is not rejected, report the
pooled variance estimate t-value
The test statistic for testing the above null hypothesis is the
Levene’s Test. If the p-value associated with the F-value is
less than = 0.05, say, reject H0, otherwise do not reject H0.
Output1: Descriptive Statistics (Highlight the number of cases N, Means
(rounded to one decimal place), and the standard deviation
(rounded to two decimal places)
Output 2:
1. Levene’s Test gives information if the Homogeneity of Variance
Assumption of the population variances is satisfied.
H0: 21 = 22
Value of the test statistic: F = 0.439 and the
p-value = .526 (not significant)
Hence, we can assume that the population variances are equal and the
computed t value to be reported is 3.281 with 8 degrees of freedom
(pooled variance estimate).
*** If the F value is significant, we report the t-value with 6.2 degrees
of freedom (separate variance estimate).
1.
P-value
Output 2:
2. To test the null hypothesis: H0: 1 = 2
of equality between the population means, we report the computed
t-value of 3.218 with df = 8. Since the associated p-value of the test
statistic is .011 (two-tailed) < = 0.05 or
2(0.011) = .022 (one-tailed) < = 0.05
the null hypothesis is rejected.
There is sufficient evidence to show that the mean score posted by the
students exposed to the constructivist model (84.8) is significantly higher
than the mean posted by the students exposed to the lecture method
(80.0), t=3.281; p-value = .011.
P-value
THE T-TEST FOR
COMPARING TWO
DEPENDENT SAMPLES
x1 x2
t
D D
TEST STATISTIC: 2 2
n
n ( n 1)
2
Where:
Score After 78 92 91 80 69 85 99 82 81 87
NULL HYPOTHESIS:
ALTERNATIVE HYPOTHESIS:
The mean posttest score on supervisory skills is
significantly higher than the mean pretest score.
BEFORE AFTER
63 78
93 92
84 91
72 80
65 69
72 85
91 99
84 82
71 81
80 87
x=77.5 x=84.4
Data view
Variable view
To analyze
the data:
Data view
Click the arrow button
to transfer the pretest
variable to the right
box.
Click ok.
P-value
Explained Variation
(due to Marital Status)
Explained Variation
(due to Marital Status)
Null Hypothesis:
There is no significant difference in the mean level of
emotional exhaustion among teachers with different marital
status.
Alternative Hypothesis:
3. Indicate the labels of the values of the categorical variable by clicking the
right portion of the cell under the column Values:
Thus: Value: 1 Label: Single - then click “Add”
Value: 2 Label: Married - then click “Add”
Value: 3 Label: Widow/Separated - then click “Add”
P-value
Output3: Test of equality among the population means
P-value
Alternative Hypothesis:
There is a significant difference in the mean scores of 15
students on four sessions of taking the LET examinations.
Data: Scores on four practice sessions
NEXT: Click “Options”; Transfer the variable “Session” to the box “Display Means
for”;
Check “Compare Means”; Click “Bonferroni”; You may click “Descriptive” if you
want to show the means per session. (The result is shown in the exhibit at the
right), Click “Continue” to go back to the previous window; click “ok”.
Reading the outputs
The mean scores and standard deviations per session are indicated. Note
that the mean scores tend to increase as the number of times of taking
the LET examination increases.
P-value
If significant, sphericity assumption has not been met, we can use the
corrected ANOVA depending on the estimated value of sphericity
(epsilon); or we can use an alternative method of analyzing the data.
P-value
Based on the medians, it can be said that the median score posted by
the students exposed to the constructivist model is higher than those
exposed to the lecture method and this is significant at the .05 level of
significance, z = 2.312, p = .016. Hence, the null hypothesis is
rejected.
WILCOXON SIGNED RANKS TEST
Click “Analyze” “Nonparametric Tests” to generate the
window shown at the right.
P-value
The results indicate that the median postttest score (83.5) is higher
than the median pre-test score (76) and this is significant at the .05
level of significance, z = 2.501, p = .012. Hence, the null hypothesis
is rejected.
KRUSKAL WALLIS ONE WAY
ANOVA
Click “Analyze” “Nonparametric Tests” to generate the
window shown at the right.
P-value
P-value
The Kruskal Wallis test indicates that the median emotional exhaustion
scores of the three groups are significantly different, 2 = 22.535, d.f.
= 2, p < .001. Hence, the null hypothesis is rejected.
Pairwise Comparison Test:
The median emotional scores of the single and married teachers are
significantly different, z = 2.877, p = .004 (< .0167).
Output 2:
Compare two groups at a time using the Wilcoxon Signed Ranks Test
Click “Analyze”
“Nonparametric
Tests” “Legacy
Dialogues” ”2
Related Samples”
Pairwise Comparison Test Using the Bonferroni Approach
Once done,
Click “OK”.
Outputs:
0.05
0.0083
6
Hence two groups are
significantly different if the p-
value of the test statistic is
less than 0.0083
Null Hypothesis:
There is no significant difference in the
proportion of persons who are fatally injured
between those who wear seatbelts and those
who do not.
Alternative Hypothesis (Non-directional):
There is a significant difference in the proportion
of persons who are fatally injured between those
who wear seatbelts and those who do not.
o e
2
2
over all cells e
Where o is the “observed frequency” and e is the
expected frequency.
Null Hypothesis:
There is no significant difference between the proportion of male and
female SUC presidents who are in favor of integrating the CHED
supervised tertiary schools to the different SUCs
If more than 20% of the cells have expected frequencies of less than 5,
either we collapse categories (provided the resulting category has
meaning) or we gather more data.
MCNEMAR TEST
McNemar Test
How consistent are people in their voting habits? Do people vote for
the same party from election to election? Below are the results of a
poll in which people were asked if they had voted for NP or LP in each
of the last two presidential elections.
140
% of people who voted for NP in 1998 was 40.58%
345
Ho: There is no significant difference between the
proportion of those who voted for NP during
the 1992 elections and those who voted the
same party affiliation during the 1998
elections.
We encode the data in similar manner as we did for the Chi-square test
To Analyze the data: Click “Analyze”
”Nonparametric Tests” “Legacy
Dialogs” “2 Related Samples” to
obtain the window shown in the nesxt
slide.
Transfer the paired variables to the right; Uncheck
“Wilcoxon”, Check “McNemar”, then Click “OK”.
IBM SPSS
LEGACY DIALOGS
COCHRAN’S Q TEST
Assumptions:
Based on the output, the three proportions (66.7%, 26.7%, and 40.0%)
are significantly different, Q = 6.222, d.f. = 2, p-value = .045.
PAIRWISE COMPARISON USING THE MCNEMAR TEST:
kT R
MRD zadj 2 2
N k (k 1)
(3)(20) 42
(2.13) 2 2
15 (3)(2)
.3478
34.78%
Comparison i j Absolute Minimum Decision
Difference Required
Absolute
Difference
Conclusion: Only the effects of Method A and Method B are significantly different.
Thank you !
Establishing Relationship Between Variables:
(Descriptive Correlational Research Designs)