Professional Documents
Culture Documents
D 1
1. Preparing data for analysis
2. Descriptive statistics
3. Inferential statistics
4. Testing the measurements
5. Testing research model and hypotheses
2
Inferential statistics: take data from samples and make
generalization about a population
Two main areas
ØParameter estimation
ØHypothesis testing
3
Hypothesis testing
§ State your research hypothesis as a null hypothesis (Ho) and
alternate hypothesis (Ha or H1).
§ Set the significance level (α)
§ Perform an appropriate statistical test.
§ Define the critical value (z-statistics or t-statistics)
§ Draw the conclusion
One-tail test
ìH 0 : q ³ q o ìH 0 : q £ q o
í í
îH 1 : q < q 0 îH 1 : q > q 0 5
P-value:
Significance level
P-value <𝛼:
(−𝑍! ) (𝑍! )
Reject H0
P-value >𝛼: Fail to
reject H0
(−𝑍! ) (𝑍! )
" "
6
Hypothesis testing with SPSS
Ordinal and nominal variable
Ø testing if there exist associations between variables
Testing relationship of nominal-nominal variables and nominal-ordinal
variable (Chi-square test)
Testing relationship of ordinal-ordinal variable (gamma, Sommers’d,
Kendall’s tau-d)
Numerical variables
ØTesting mean differences
-One sample
-Two independent groups (two samples)
-Paired data
ØANOVA test 7
Hypothesis testing with SPSS
Ordinal and nominal variable
Ø testing if there exist associations between variables
Ho: there is no associations between variables
H1 (Ha): There is an association between two variables
Ø computing Chi-squared
9
Working with SPSS (nominal-ordinal variables)
11
Testing relationship of two ordinal variables
Analyze → Descriptive Statistics → Crosstabs
Ha: There is an association between educational level groups and age group
12
Testing relationship of two ordinal variables
13
Numerical variables
ØTesting mean differences (one sample)
Ø Hypotheses
Ho: 𝜇 = 𝜇!
H1 (Ha): 𝜇 ≠ 𝜇!
Ø one sample t-test
ØIf p-value (sig) < 𝛼 → Reject H0; the evidence favors H1
14
Numerical variables
Testing mean difference: one sample
Analyze -> Compare Means -> One-Sample T Test
Example:
H0: Tri trung binh cua tuoi=28; H1: Trị trung bình của tuoi ≠ 28
15
Numerical variables
Testing mean difference: one sample
16
Numerical variables
Testing mean differences of two independent groups
Ø Hypotheses
H0: µ1 = µ2 (the means of two groups are equal)
H1: µ1 ≠ µ2 (the means of two groups are not equal)
Øindependence t-test
Levene’s test for equality of variance
H0: σ12 - σ22 = 0 (the variances of group 1 and 2 are equal)
H1: σ12 - σ22 ≠ 0 (the variances of group 1 and 2 are not equal)
ØIf p-value (sig) < 𝛼 → Reject H0; the evidence favors H1
17
Testing mean differences of two independent groups
Analyze -> Compare Means -> Independent-Sample T Test
18
Numerical variables
Testing mean differences of two independent groups
Analyze -> Compare Means -> Independent-Sample T Test
19
Numerical variables
Testing mean differences of paired data
Data from the same individuals, objects (exp: two time points)
Ø Hypotheses
H0: µa = µb ("the paired means are equal")
H1: µa ≠ µb ("the paired means are not equal")
Ø Paired-sample t-test
ØIf p-value (sig) < 𝛼 → Reject H0; the evidence favors H1
20
Numerical variables
Testing mean difference: Paired data
Analyze -> Compare Means -> Paired-sample T Test
Using testpaired.sav
21
Numerical variables
Testing mean difference: Paired data
22
Numerical variables
ØTesting mean differences between several groups
Ø Hypotheses
H0: µ1 = µ2 = µ3 = ... = µk (The means of all k groups are equal)
H1: At least one µi different (At least one of the means is not equal to the
others")
Ø ANOVA test
ØIf p-value (sig) < 𝛼 → Reject H0; the evidence favors H1
ØPost-hoc test
23
ANOVA test
Analyze -> Compare Means -> One-way ANOVA
Using thongke.sav
24
ANOVA test
25
ANOVA test
27