Documente Academic
Documente Profesional
Documente Cultură
Zarni Amri
Zarni Amri
Inferential statistics
Inference (statistical)
The process of drawing conclusions about a population of observations from a sample of observation
Zarni Amri
Inferential statistics
INFERENCE
population statistics
parameter
m s p
sample
X S P
infert
Zarni Amri Inferential statistics 3
Test Statistics
Number of variables Data scale numeric, category Sample size Sampling methods (paired, unpaired; dependent, independent; related, unrelated)
Inferential statistics 4
Zarni Amri
SIGNIFICANCY STEPS
Determine null hypothesis Determine alternative hypothesis Determine significance level Statistical calculation Probability interpretation
Zarni Amri
Inferential statistics
SOURCES OF DIFFERENCE
Zarni Amri
Inferential statistics
Pop A
Sp1
X1
S1
P1
Sampling variation
Sp2
X2
S2
P2
Pop B
Sp3
Pop Difference
X3
S3
P3
Zarni Amri
Inferential statistics
NULL HYPOTHESIS
Presumption of innocence Sampling variation role No group difference
A=B RR = 1 OR = 1
Zarni Amri Inferential statistics 8
ALTERNATIVE HYPOTHESIS
Depends on study direction Two tailed test A = B RR = 1
SIGNIFICANCE LEVEL
Sampling variation level Type one error (false +) Type two error (false -) Depends on sample size Depends on seriousness
Zarni Amri
Inferential statistics
11
Hypotheses Testing
ACTUAL
Signific (+) Not Sign. (-)
TEST
Not Sign. (-) (Accept H0)
Zarni Amri
Inferential statistics
SIGNIFICANCE TEST
To conclude whether samples difference is also true for population
BASIC PRINCIPLE
No perfect test Only most appropriate test Based on data and design
Zarni Amri
Inferential statistics
14
PARAMETRIC TESTS
Based on parameters Numerical data More sensitive tests
PARAMETRIC TESTS
Difference of two means (Big and small samples) ( independent and paired samples )
Analysis of variance Correlation & regression Analysis of covariance
Zarni Amri Inferential statistics 17
unrelated
related
Mc. Nemar test
Ordinal
Spearman test
Numerik
paired t-test
Zarni Amri
Inferential statistics
18
Anova
Anova related
Zarni Amri
Inferential statistics
19
Is there any difference between mean age of shift and non shift worker?
Group Statistics Std. Error Mean .86 .58 Kerja gilir tidak ya N 89 88 Mean 35.39 29.42 Std. Deviation 8.08 5.42
Usia responden
T ests of Normality Kolm ogorov-Smi rnov Stati sti c df Si g. .113 88 .008 .186 89 .000
a
Usi a responden
Zarni Amri
Inferential statistics
20
T ests of Normality Kolm ogorov-Smi rnov Stati sti c df Si g. .146 177 .000
a
Usi a responden
Usia responden
Us ia re s po n de n 2 12 1 .50 0 6 03 7 .50 0 -5 .2 7 4 .0 00
a . Gro up i n g Va ria b l e: Ke r j a gi l i r
Zarni Amri
Inferential statistics
21
Zarni Amri
Inferential statistics
22
Hypothesis Testing
Zarni Amri
Inferential statistics
23
E.g. To compare mean of Blood Pressure (numeric) in two groups: with therapy and without T/ PARAMETRIK - 2 mean : t-distribution test - > 2 mean : ANOVA NON PARAMETRIK - 2 mean : Mann Whitney - > 2 mean : Kruskal Wallis
Inferential statistics 24
Zarni Amri
numeric vs category
Group Statistics Std. Error Mean .86 .58 Usia responden Kerja gilir tidak ya N 89 88 Mean 35.39 29.42 Std. Deviation 8.08 5.42
Usia responden
Zarni Amri
Inferential statistics
25
Rejecting Ho
conclusion: accepted H1
numeric vs numeric
UJI 2 PAIRED MEANS
Paired Samples Statistics Std. Error Mean 5.8013 5.9389
Pair 1
N 30 30
Pair 1
SBP1 SBP2
N 11 11
Paired Samples Correlations N Pair 1 SBP1 & SBP2 11 Correlation .792 Sig. .004
Paired Samples Test Paired Differences 95% Confidence Interval of the Difference Lower Upper 15.2047 32.7953
Pair 1
SBP1 - SBP2
Mean 24.0000
t 6.080
df 10
Zarni Amri
Inferential statistics
28
SBP
N 11 11
Independent Samples Test SBP Equal variances Equal variances assumed not assumed .089 .769 2.883 2.883 20 19.200 .009 .009 24.00 8.32 Lower Upper 6.64 41.36 24.00 8.32 6.59 41.41
Levene's Test for F Equality of Variances Sig. t-test for Equality of t Means df Sig. (2-tailed) Mean Difference Std. Error Difference 95% Confidence Interval of the Difference
Zarni Amri
Inferential statistics
29
t-test for Equality of Means 95% Confidence Interval of the Difference Lower Upper 6.64 6.59 41.36 41.41
Sig. .769
t 2.883 2.883
df 20 19.200
Zarni Amri
Inferential statistics
30
Chi-Square Tests Asym p. Sig. (2-sided) .016 .025 .015 Exact Sig. (2-sided) Exact Sig. (1-sided)
Pearson Chi-Square a Continuity Correction Likelihood Ratio Fisher's Exact Test Linear-by-Linear Association N of Valid Cases
df 1 1 1
.012
a. Computed only for a 2x2 table b. 0 cells (.0%) have expected count less than 5. The m inim um expected count is 26.35.
Zarni Amri
Inferential statistics
31
SPSS
Correlations age type A personality 1.000 . 16 .040 .884 16 age type B personality .040 .884 16 1.000 . 17
age type A personality Pearson Correlation Sig. (2-tailed) N age type B personality Pearson Correlation Sig. (2-tailed) N
Zarni Amri
Inferential statistics
32
age type A personal i ty Pearson Correl ati on Si g. (2-tai l ed) N Rest Bl ood Pressure Pearson Correl ati on type A personali ty Si g. (2-tai l ed) N
Descriptiv e Statistics M ean 42.25 129.06 Std. Devi ati on 9.35 18.90 N 16 16
Zarni Amri
Inferential statistics
33
haemoglobin
Age (years )
Pears on Correl ati on Si g. (2-tai l ed) N Pears on Correl ati on Si g. (2-tai l ed) N
Spearman's rho
haemoglobin
Age (years)
Anaemia status
Zarni Amri
Inferential statistics
34
Numerical vs Categorical
Zarni Amri
Inferential statistics
35
t test? Reasons?
Group Statistics Std. Error M ean 2.34 3.25 4.72 6.14
GRUP A B A B
N 16 17 16 17
t-test for Equality of Means 95% Confidence Interval of the Difference Lower Upper -3.88 -3.82 -14.29 -14.18 12.62 12.56 17.59 17.49
F age Equal variances assumed Equal variances not assumed Equal variances assumed Equal variances not assumed 2.775
Sig. .106
t 1.080 1.091
df 31 28.657 31 29.516
.745
.395
.211 .213
Zarni Amri
Inferential statistics
36
Pair 1
SBP1 SBP2
N 11 11
Paired Samples Correlations N Pair 1 SBP1 & SBP2 11 Correlation .792 Sig. .004
Paired Samples Test Paired Differences 95% Confidence Interval of the Difference Lower Upper 15.2047 32.7953
Pair 1
SBP1 - SBP2
Mean 24.0000
t 6.080
df 10
Zarni Amri
Inferential statistics
37
Cathegoric vs Cathegoric
eg. smoking exposure vs lung cancer No NOL cell No cell with expected value <5
CHI-SQUARE
FISHER
Inferential statistics 38
Zarni Amri
Ca t e gor y Age * Cate gory of Blood Pr es s ure Cross tabulation Co un t Ca te g ory o f Bl oo d Press ure <= 1 40 >14 0 17 2 6 8 23 10
Ca te g ory Ag e T o ta l
<= 4 0 > 40
T o ta l 19 14 33
Chi-Square T ests Asym p. Si g. (2-si ded) .004 .013 .003 Exact Si g. (2-si ded) Exact Si g. (1-si ded)
Pearson Chi -Square a Conti nui ty Correction Li kel i hood Rati o Fi sher's Exact T est Li near-by-Li near Associ ati on N of Val i d Cases
df 1 1 1
.006
a. Computed onl y for a 2x2 table b. 1 cell s (25.0%) have expected count less than 5. T he mi nim um expected count i s 4.24.
Zarni Amri
Inferential statistics
39