SlideShare a Scribd company logo
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Correlation
Dr. S. A. Rizwan, M.D.,
Public Health Specialist (MOH),
Lecturer, Saudi Board of Preventive
Medicine - Joint Program Riyadh
Nov 2019 1
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Learning objectives
• Describe the conditions in which correlation is
used
• Describe the steps in calculation of correlation
• Describe the various interpretations of
correlation coefficient
Nov 2019 2
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Outline
• Questions answered by correlation
• Scatterplots
• An example
• The correlation coefficient
• Other kinds of correlations
• Factors affecting correlations
• Testing for significance
Nov 2019 3
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
The Question
• Are two variables related?
– Does one increase as the other increases?
• e. g. skills and income
– Does one decrease as the other increases?
• e. g. health problems and nutrition
• How can we get a numerical measure of the
degree of relationship?
Nov 2019 4
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Scatterplots
• AKA scatter diagram or scattergram
• Graphically depicts the relationship between
two variables in two dimensional space
Nov 2019 5
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Scatterplot:Video Games and Alcohol Consumption
0
2
4
6
8
10
12
14
16
18
20
0 5 10 15 20 25
Average Hours of Video Games Per Week
AverageNumberofAlcoholicDrinks
PerWeek
Direct Relationship
Nov 2019 6
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Scatterplot: Video Games and Test Score
0
10
20
30
40
50
60
70
80
90
100
0 5 10 15 20
Average Hours of Video Games Per Week
ExamScore
Inverse Relationship
Nov 2019 7
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
An Example
• Does smoking cigarettes increase systolic
blood pressure?
• Plotting number of cigarettes smoked per day
against systolic blood pressure
– Fairly moderate relationship
– Relationship is positive
Nov 2019 8
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Trend?
SMOKING
3020100
SYSTOLIC
170
160
150
140
130
120
110
100
Nov 2019 9
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Smoking and BP
• Note relationship is moderate, but real.
• Why do we care about relationship?
– What would conclude if there were no
relationship?
– What if the relationship were near perfect?
– What if the relationship were negative?
Nov 2019 10
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Heart Disease and Cigarettes
• Data on heart disease
and cigarette smoking in
21 developed countries
(Landwehr and Watkins,
1987)
Country Cigarettes CHD
1 11 26
2 9 21
3 9 24
4 9 21
5 8 19
6 8 13
7 8 19
8 6 11
9 6 23
10 5 15
11 5 13
12 5 4
13 5 18
14 5 12
15 5 3
16 4 11
17 4 15
18 4 6
19 3 13
20 3 4
21 3 14
Nov 2019 11
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Scatterplot of Heart Disease
• CHD Mortality goes on ordinate (Y axis)
– Why?
• Cigarette consumption on abscissa (X axis)
– Why?
• What does each dot represent?
• Best fitting line included for clarity
Nov 2019 12
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Cigarette Consumption per Adult per Day
12108642
30
20
10
0
{X = 6, Y =
11}
Nov 2019 13
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
What Does the Scatterplot Show?
• As smoking increases, so does coronary heart
disease mortality
• Relationship looks strong
• Not all data points on line
– This gives us “residuals” or “errors of prediction”
Nov 2019 14
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Correlation
• Co-relation
• The relationship between two variables
• Measured with a correlation coefficient
• Most popularly seen correlation coefficient:
Pearson Product-Moment Correlation
Nov 2019 15
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Types of Correlation
• Positive correlation
– High values of X tend to be associated with high
values of Y.
– As X increases, Y increases
• Negative correlation
– High values of X tend to be associated with low values
of Y.
– As X increases, Y decreases
• No correlation
• No consistent tendency for values on Y to
increase or decrease as X increases
Nov 2019 16
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Correlation Coefficient
• A measure of degree of relationship.
• Between 1 and -1
• Sign refers to direction.
• Based on covariance
– Measure of degree to which large scores on X go
with large scores on Y, and small scores on X go
with small scores on Y
– Think of it as variance, but with 2 variables instead
of 1
Nov 2019 17
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Nov 2019 18
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Covariance
• Remember that variance is:
• The formula for co-variance is:
2
( ) ( )( )
1 1
X
X X X X X X
Var
N N
    
 
 
1
))((



N
YYXX
CovXY
Nov 2019 19
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Example
Country X (Cig.) Y (CHD) ( )X X ( )Y Y ( )X X * ( )Y Y
1 11 26 5.05 11.48 57.97
2 9 21 3.05 6.48 19.76
3 9 24 3.05 9.48 28.91
4 9 21 3.05 6.48 19.76
5 8 19 2.05 4.48 9.18
6 8 13 2.05 -1.52 -3.12
7 8 19 2.05 4.48 9.18
8 6 11 0.05 -3.52 -0.18
9 6 23 0.05 8.48 0.42
10 5 15 -0.95 0.48 -0.46
11 5 13 -0.95 -1.52 1.44
12 5 4 -0.95 -10.52 9.99
13 5 18 -0.95 3.48 -3.31
14 5 12 -0.95 -2.52 2.39
15 5 3 -0.95 -11.52 10.94
16 4 11 -1.95 -3.52 6.86
17 4 15 -1.95 0.48 -0.94
18 4 6 -1.95 -8.52 16.61
19 3 13 -2.95 -1.52 4.48
20 3 4 -2.95 -10.52 31.03
21 3 14 -2.95 -0.52 1.53
Mean 5.95 14.52
SD 2.33 6.69
Sum 222.44Nov 2019 20
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Example
.&
( )( ) 222.44
11.12
1 21 1
cig CHD
X X Y Y
Cov
N
  
  
 
Nov 2019 21
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Correlation Coefficient
• Pearson’s Product Moment Correlation
• Symbolized by r
• Covariance ÷ (product of the 2 SDs)
• Correlation is a standardized covariance
YX
XY
ss
Cov
r 
Nov 2019 22
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Calculation for Example
• CovXY = 11.12
• sX = 2.33
• sY = 6.69
cov 11.12 11.12
.713
(2.33)(6.69) 15.59
XY
X Y
r
s s
   
Nov 2019 23
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Example
• Correlation = 0.713
• Sign is positive
– Why?
• If sign were negative
– What would it mean?
– Would not alter the degree of relationship.
Nov 2019 24
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Other Kinds of Correlation
Attractiveness Symmetry
3 2
4 6
1 1
2 3
5 4
6 5
rsp = 0.77
• Spearman Rank-Order
Correlation Coefficient
(rsp)
– used with 2
ranked/ordinal variables
– uses the same Pearson
formula
Nov 2019 25
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Other Kinds of Correlation
Attractiveness Date?
3 0
4 0
1 1
2 1
5 1
6 0
rpb = -0.49
• Point biserial
correlation coefficient
(rpb)
– used with one
continuous scale and
one nominal or ordinal
or dichotomous scale.
– uses the same Pearson
formula
Nov 2019 26
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Other Kinds of Correlation
Attractiveness Date?
0 0
1 0
1 1
1 1
0 0
1 1
F = 0.71
• Phi coefficient (F)
– used with two
dichotomous scales.
– uses the same Pearson
formula
Nov 2019 27
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Factors Affecting r
• Range restrictions
– Looking at only a small portion of the total scatter plot
(looking at a smaller portion of the scores’ variability)
decreases r.
– Reducing variability reduces r
• Nonlinearity
– The Pearson r (and its relatives) measure the degree
of linear relationship between two variables
– If a strong non-linear relationship exists, r will provide
a low, or at least inaccurate measure of the true
relationship
Nov 2019 28
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Factors Affecting r
• Heterogeneous subsamples
– Everyday examples (e.g. height and weight using
both men and women)
• Outliers
– Overestimate Correlation
– Underestimate Correlation
Nov 2019 29
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Countries With Low Consumptions
Data With Restricted Range
Truncated at 5 Cigarettes Per Day
Cigarette Consumption per Adult per Day
5.55.04.54.03.53.02.5
CHDMortalityper10,000
20
18
16
14
12
10
8
6
4
2
Nov 2019 30
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Truncation
Nov 2019 31
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Non-linearity
Nov 2019 32
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Heterogenous samples
Nov 2019 33
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Outliers
Nov 2019 34
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Testing Correlations
• So you have a correlation. Now what?
• In terms of magnitude, how big is big?
– Small correlations in large samples are “big”
– Large correlations in small samples aren’t always
“big”
• Depends upon the magnitude of the
correlation coefficient
• AND
• The size of your sample
Nov 2019 35
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Testing r
• Population parameter = 
• Null hypothesis H0:  = 0
– Test of linear independence
• Alternative hypothesis (H1)   0
– Two-tailed
Nov 2019 36
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Tables of Significance
• We can convert r to t and test for significance:
• Where DF = N - 2
t = r
N -2
1- r2
Nov 2019 37
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Tables of Significance
• In our example r was 0.71
• N - 2 = 21 – 2 = 19
• T-crit (19) = 2.09
• Since 6.90 is larger than 2.09, reject r = 0.
2 2
2 19 19
.71* .71* 6.90
1 1 .71 .4959
N
t r
r

   
 
Nov 2019 38
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
Take home messages
• Correlation coefficient describes the
relationship between two variables
• There are different types of correlation
coefficient
• Pearson’s correlation coefficient is used for
two continuous variables
• It ranges from -1 to +1
Nov 2019 39
Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA
Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course
THANK YOU
Kindly send your queries to sarizwan1986@gmail.com
Nov 2019 40

More Related Content

PDF
Power Analysis and Sample Size Determination
PPTX
The mann whitney u test
PPTX
Chi squared test
PPTX
Sample Size Determination
PPTX
Regression analysis
PPT
Sample size
PPT
In Anova
PDF
Sample size determination
Power Analysis and Sample Size Determination
The mann whitney u test
Chi squared test
Sample Size Determination
Regression analysis
Sample size
In Anova
Sample size determination

What's hot (20)

PDF
Frequency Distributions
PPTX
NON-PARAMETRIC TESTS by Prajakta Sawant
PPTX
coefficient correlation
PPTX
Analysis of variance (ANOVA)
PPTX
PPTX
Chi square test
PPTX
Correlation
PPTX
Randomized Controlled Trial
PDF
Lecture # 10 chi-square test of association
PPT
Anova single factor
PPTX
Properties of correlation coefficient
PPT
DIstinguish between Parametric vs nonparametric test
PPTX
Non- Parametric Tests
PPTX
Student t-test
PDF
Parametric and non parametric test in biostatistics
PPTX
Correlation.pptx
PPT
Measure of Dispersion
PPTX
Meaning and types of correlation
PPTX
Statistical tests
PPTX
Non-Parametric Tests
Frequency Distributions
NON-PARAMETRIC TESTS by Prajakta Sawant
coefficient correlation
Analysis of variance (ANOVA)
Chi square test
Correlation
Randomized Controlled Trial
Lecture # 10 chi-square test of association
Anova single factor
Properties of correlation coefficient
DIstinguish between Parametric vs nonparametric test
Non- Parametric Tests
Student t-test
Parametric and non parametric test in biostatistics
Correlation.pptx
Measure of Dispersion
Meaning and types of correlation
Statistical tests
Non-Parametric Tests
Ad

Similar to Types of correlation coefficients (20)

PDF
Checking for normality (Normal distribution)
PDF
Fixed-effect and random-effects models in meta-analysis
PPTX
4-191125033339.pptx kolmogorov smirnov test
PDF
A introduction to non-parametric tests
PDF
Moderator analysis in meta-analysis
PDF
Inverse variance method of meta-analysis and Cochran's Q
PDF
Introduction & rationale for meta-analysis
PDF
Kolmogorov Smirnov good-of-fit test
PDF
Heterogeneity in meta-analysis
PDF
Biases in meta-analysis
PDF
Presenting the results of meta-analysis
PDF
Overview of the systematic review process
PDF
Data extraction/coding and database structure in meta-analysis
PDF
CEA_Next_Generation_CVD_Test_-_JME2013
PDF
Be There San Diego - Cardiovascular Disease Prevention, a Regional Quality Co...
PDF
Clinical prediction models
PDF
Analysis of small datasets
PDF
Optimising Risk-Based Screening: The Case of Diabetic Eye Disease
PDF
Statistical tests for data involving quantitative data
PDF
Sample size in health sciences - Basics and selected examples
Checking for normality (Normal distribution)
Fixed-effect and random-effects models in meta-analysis
4-191125033339.pptx kolmogorov smirnov test
A introduction to non-parametric tests
Moderator analysis in meta-analysis
Inverse variance method of meta-analysis and Cochran's Q
Introduction & rationale for meta-analysis
Kolmogorov Smirnov good-of-fit test
Heterogeneity in meta-analysis
Biases in meta-analysis
Presenting the results of meta-analysis
Overview of the systematic review process
Data extraction/coding and database structure in meta-analysis
CEA_Next_Generation_CVD_Test_-_JME2013
Be There San Diego - Cardiovascular Disease Prevention, a Regional Quality Co...
Clinical prediction models
Analysis of small datasets
Optimising Risk-Based Screening: The Case of Diabetic Eye Disease
Statistical tests for data involving quantitative data
Sample size in health sciences - Basics and selected examples
Ad

More from Rizwan S A (16)

PDF
Introduction to scoping reviews
PDF
Sources of demographic data 2019
PDF
Effect sizes in meta-analysis
PDF
Kruskal Wallis test, Friedman test, Spearman Correlation
PDF
Mantel Haenszel methods in epidemiology (Stratification)
PDF
Use of checklists in critical appraisal of health literature
PDF
Critical Appraisal of health literature
PDF
Critical Appraisal of health literature
PDF
Critical Appraisal of health literature - an overview
PDF
Evidence based medicine or health practice
PDF
Epidemiology: Standardisation of rates
PDF
Statistical tests for categorical data
PDF
Confidence intervals: Types and calculations
PDF
Confidence Intervals: Basic concepts and overview
PDF
Chi square test and its types
PDF
Student's t test and variations
Introduction to scoping reviews
Sources of demographic data 2019
Effect sizes in meta-analysis
Kruskal Wallis test, Friedman test, Spearman Correlation
Mantel Haenszel methods in epidemiology (Stratification)
Use of checklists in critical appraisal of health literature
Critical Appraisal of health literature
Critical Appraisal of health literature
Critical Appraisal of health literature - an overview
Evidence based medicine or health practice
Epidemiology: Standardisation of rates
Statistical tests for categorical data
Confidence intervals: Types and calculations
Confidence Intervals: Basic concepts and overview
Chi square test and its types
Student's t test and variations

Recently uploaded (20)

PDF
Deadly Stampede at Yaounde’s Olembe Stadium Forensic.pdf
PPTX
POLYCYSTIC OVARIAN SYNDROME.pptx by Dr( med) Charles Amoateng
PPT
OPIOID ANALGESICS AND THEIR IMPLICATIONS
PPTX
Chapter-1-The-Human-Body-Orientation-Edited-55-slides.pptx
PDF
Human Health And Disease hggyutgghg .pdf
PPT
Breast Cancer management for medicsl student.ppt
PPTX
Gastroschisis- Clinical Overview 18112311
DOCX
RUHS II MBBS Microbiology Paper-II with Answer Key | 6th August 2025 (New Sch...
DOC
Adobe Premiere Pro CC Crack With Serial Key Full Free Download 2025
PPTX
Note on Abortion.pptx for the student note
PPTX
Important Obstetric Emergency that must be recognised
PPTX
surgery guide for USMLE step 2-part 1.pptx
PPTX
ACID BASE management, base deficit correction
PDF
Handout_ NURS 220 Topic 10-Abnormal Pregnancy.pdf
PPTX
Uterus anatomy embryology, and clinical aspects
PPTX
CEREBROVASCULAR DISORDER.POWERPOINT PRESENTATIONx
PPTX
1 General Principles of Radiotherapy.pptx
PPTX
Respiratory drugs, drugs acting on the respi system
PPTX
Electromyography (EMG) in Physiotherapy: Principles, Procedure & Clinical App...
PPTX
Slider: TOC sampling methods for cleaning validation
Deadly Stampede at Yaounde’s Olembe Stadium Forensic.pdf
POLYCYSTIC OVARIAN SYNDROME.pptx by Dr( med) Charles Amoateng
OPIOID ANALGESICS AND THEIR IMPLICATIONS
Chapter-1-The-Human-Body-Orientation-Edited-55-slides.pptx
Human Health And Disease hggyutgghg .pdf
Breast Cancer management for medicsl student.ppt
Gastroschisis- Clinical Overview 18112311
RUHS II MBBS Microbiology Paper-II with Answer Key | 6th August 2025 (New Sch...
Adobe Premiere Pro CC Crack With Serial Key Full Free Download 2025
Note on Abortion.pptx for the student note
Important Obstetric Emergency that must be recognised
surgery guide for USMLE step 2-part 1.pptx
ACID BASE management, base deficit correction
Handout_ NURS 220 Topic 10-Abnormal Pregnancy.pdf
Uterus anatomy embryology, and clinical aspects
CEREBROVASCULAR DISORDER.POWERPOINT PRESENTATIONx
1 General Principles of Radiotherapy.pptx
Respiratory drugs, drugs acting on the respi system
Electromyography (EMG) in Physiotherapy: Principles, Procedure & Clinical App...
Slider: TOC sampling methods for cleaning validation

Types of correlation coefficients

  • 1. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Correlation Dr. S. A. Rizwan, M.D., Public Health Specialist (MOH), Lecturer, Saudi Board of Preventive Medicine - Joint Program Riyadh Nov 2019 1
  • 2. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Learning objectives • Describe the conditions in which correlation is used • Describe the steps in calculation of correlation • Describe the various interpretations of correlation coefficient Nov 2019 2
  • 3. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Outline • Questions answered by correlation • Scatterplots • An example • The correlation coefficient • Other kinds of correlations • Factors affecting correlations • Testing for significance Nov 2019 3
  • 4. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course The Question • Are two variables related? – Does one increase as the other increases? • e. g. skills and income – Does one decrease as the other increases? • e. g. health problems and nutrition • How can we get a numerical measure of the degree of relationship? Nov 2019 4
  • 5. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Scatterplots • AKA scatter diagram or scattergram • Graphically depicts the relationship between two variables in two dimensional space Nov 2019 5
  • 6. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Scatterplot:Video Games and Alcohol Consumption 0 2 4 6 8 10 12 14 16 18 20 0 5 10 15 20 25 Average Hours of Video Games Per Week AverageNumberofAlcoholicDrinks PerWeek Direct Relationship Nov 2019 6
  • 7. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Scatterplot: Video Games and Test Score 0 10 20 30 40 50 60 70 80 90 100 0 5 10 15 20 Average Hours of Video Games Per Week ExamScore Inverse Relationship Nov 2019 7
  • 8. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course An Example • Does smoking cigarettes increase systolic blood pressure? • Plotting number of cigarettes smoked per day against systolic blood pressure – Fairly moderate relationship – Relationship is positive Nov 2019 8
  • 9. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Trend? SMOKING 3020100 SYSTOLIC 170 160 150 140 130 120 110 100 Nov 2019 9
  • 10. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Smoking and BP • Note relationship is moderate, but real. • Why do we care about relationship? – What would conclude if there were no relationship? – What if the relationship were near perfect? – What if the relationship were negative? Nov 2019 10
  • 11. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Heart Disease and Cigarettes • Data on heart disease and cigarette smoking in 21 developed countries (Landwehr and Watkins, 1987) Country Cigarettes CHD 1 11 26 2 9 21 3 9 24 4 9 21 5 8 19 6 8 13 7 8 19 8 6 11 9 6 23 10 5 15 11 5 13 12 5 4 13 5 18 14 5 12 15 5 3 16 4 11 17 4 15 18 4 6 19 3 13 20 3 4 21 3 14 Nov 2019 11
  • 12. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Scatterplot of Heart Disease • CHD Mortality goes on ordinate (Y axis) – Why? • Cigarette consumption on abscissa (X axis) – Why? • What does each dot represent? • Best fitting line included for clarity Nov 2019 12
  • 13. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Cigarette Consumption per Adult per Day 12108642 30 20 10 0 {X = 6, Y = 11} Nov 2019 13
  • 14. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course What Does the Scatterplot Show? • As smoking increases, so does coronary heart disease mortality • Relationship looks strong • Not all data points on line – This gives us “residuals” or “errors of prediction” Nov 2019 14
  • 15. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Correlation • Co-relation • The relationship between two variables • Measured with a correlation coefficient • Most popularly seen correlation coefficient: Pearson Product-Moment Correlation Nov 2019 15
  • 16. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Types of Correlation • Positive correlation – High values of X tend to be associated with high values of Y. – As X increases, Y increases • Negative correlation – High values of X tend to be associated with low values of Y. – As X increases, Y decreases • No correlation • No consistent tendency for values on Y to increase or decrease as X increases Nov 2019 16
  • 17. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Correlation Coefficient • A measure of degree of relationship. • Between 1 and -1 • Sign refers to direction. • Based on covariance – Measure of degree to which large scores on X go with large scores on Y, and small scores on X go with small scores on Y – Think of it as variance, but with 2 variables instead of 1 Nov 2019 17
  • 18. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Nov 2019 18
  • 19. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Covariance • Remember that variance is: • The formula for co-variance is: 2 ( ) ( )( ) 1 1 X X X X X X X Var N N          1 ))((    N YYXX CovXY Nov 2019 19
  • 20. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Example Country X (Cig.) Y (CHD) ( )X X ( )Y Y ( )X X * ( )Y Y 1 11 26 5.05 11.48 57.97 2 9 21 3.05 6.48 19.76 3 9 24 3.05 9.48 28.91 4 9 21 3.05 6.48 19.76 5 8 19 2.05 4.48 9.18 6 8 13 2.05 -1.52 -3.12 7 8 19 2.05 4.48 9.18 8 6 11 0.05 -3.52 -0.18 9 6 23 0.05 8.48 0.42 10 5 15 -0.95 0.48 -0.46 11 5 13 -0.95 -1.52 1.44 12 5 4 -0.95 -10.52 9.99 13 5 18 -0.95 3.48 -3.31 14 5 12 -0.95 -2.52 2.39 15 5 3 -0.95 -11.52 10.94 16 4 11 -1.95 -3.52 6.86 17 4 15 -1.95 0.48 -0.94 18 4 6 -1.95 -8.52 16.61 19 3 13 -2.95 -1.52 4.48 20 3 4 -2.95 -10.52 31.03 21 3 14 -2.95 -0.52 1.53 Mean 5.95 14.52 SD 2.33 6.69 Sum 222.44Nov 2019 20
  • 21. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Example .& ( )( ) 222.44 11.12 1 21 1 cig CHD X X Y Y Cov N         Nov 2019 21
  • 22. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Correlation Coefficient • Pearson’s Product Moment Correlation • Symbolized by r • Covariance ÷ (product of the 2 SDs) • Correlation is a standardized covariance YX XY ss Cov r  Nov 2019 22
  • 23. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Calculation for Example • CovXY = 11.12 • sX = 2.33 • sY = 6.69 cov 11.12 11.12 .713 (2.33)(6.69) 15.59 XY X Y r s s     Nov 2019 23
  • 24. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Example • Correlation = 0.713 • Sign is positive – Why? • If sign were negative – What would it mean? – Would not alter the degree of relationship. Nov 2019 24
  • 25. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Other Kinds of Correlation Attractiveness Symmetry 3 2 4 6 1 1 2 3 5 4 6 5 rsp = 0.77 • Spearman Rank-Order Correlation Coefficient (rsp) – used with 2 ranked/ordinal variables – uses the same Pearson formula Nov 2019 25
  • 26. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Other Kinds of Correlation Attractiveness Date? 3 0 4 0 1 1 2 1 5 1 6 0 rpb = -0.49 • Point biserial correlation coefficient (rpb) – used with one continuous scale and one nominal or ordinal or dichotomous scale. – uses the same Pearson formula Nov 2019 26
  • 27. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Other Kinds of Correlation Attractiveness Date? 0 0 1 0 1 1 1 1 0 0 1 1 F = 0.71 • Phi coefficient (F) – used with two dichotomous scales. – uses the same Pearson formula Nov 2019 27
  • 28. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Factors Affecting r • Range restrictions – Looking at only a small portion of the total scatter plot (looking at a smaller portion of the scores’ variability) decreases r. – Reducing variability reduces r • Nonlinearity – The Pearson r (and its relatives) measure the degree of linear relationship between two variables – If a strong non-linear relationship exists, r will provide a low, or at least inaccurate measure of the true relationship Nov 2019 28
  • 29. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Factors Affecting r • Heterogeneous subsamples – Everyday examples (e.g. height and weight using both men and women) • Outliers – Overestimate Correlation – Underestimate Correlation Nov 2019 29
  • 30. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Countries With Low Consumptions Data With Restricted Range Truncated at 5 Cigarettes Per Day Cigarette Consumption per Adult per Day 5.55.04.54.03.53.02.5 CHDMortalityper10,000 20 18 16 14 12 10 8 6 4 2 Nov 2019 30
  • 31. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Truncation Nov 2019 31
  • 32. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Non-linearity Nov 2019 32
  • 33. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Heterogenous samples Nov 2019 33
  • 34. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Outliers Nov 2019 34
  • 35. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Testing Correlations • So you have a correlation. Now what? • In terms of magnitude, how big is big? – Small correlations in large samples are “big” – Large correlations in small samples aren’t always “big” • Depends upon the magnitude of the correlation coefficient • AND • The size of your sample Nov 2019 35
  • 36. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Testing r • Population parameter =  • Null hypothesis H0:  = 0 – Test of linear independence • Alternative hypothesis (H1)   0 – Two-tailed Nov 2019 36
  • 37. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Tables of Significance • We can convert r to t and test for significance: • Where DF = N - 2 t = r N -2 1- r2 Nov 2019 37
  • 38. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Tables of Significance • In our example r was 0.71 • N - 2 = 21 – 2 = 19 • T-crit (19) = 2.09 • Since 6.90 is larger than 2.09, reject r = 0. 2 2 2 19 19 .71* .71* 6.90 1 1 .71 .4959 N t r r        Nov 2019 38
  • 39. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course Take home messages • Correlation coefficient describes the relationship between two variables • There are different types of correlation coefficient • Pearson’s correlation coefficient is used for two continuous variables • It ranges from -1 to +1 Nov 2019 39
  • 40. Saudi Board of Preventive Medicine, Riyadh Ministry of Health, KSA Dr. S. A. Rizwan, M.D.Demystifying statistics series: Meta-analysis course THANK YOU Kindly send your queries to sarizwan1986@gmail.com Nov 2019 40