Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate...
-
Upload
stephanie-shavonne-charles -
Category
Documents
-
view
230 -
download
1
Transcript of Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate...
![Page 1: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/1.jpg)
• Relationship between two variables
• e.g, as education , what does income do?
• Scatterplot
Bivariate Methods
![Page 2: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/2.jpg)
Correlation
![Page 3: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/3.jpg)
Linear Correlation
Source: Earickson, RJ, and Harlin, JM. 1994. Geographic Measurement and Quantitative Analysis. USA: Macmillan College Publishing Co., p. 209.
![Page 4: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/4.jpg)
![Page 5: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/5.jpg)
0.0
0.1
0.2
0.3
0.4
0.5
0.6
4 5 6 7 8 9 10 11 12 13
TMI
Th
eta
0.0
0.1
0.2
0.3
0.4
0.5
0.6
2.5 3.0 3.5 4.0 4.5 5.0 5.5
TMI
Th
eta
0.0
0.1
0.2
0.3
0.4
0.5
0.6
4 5 6 7 8 9 10 11 12 13
TMI
Th
eta
0.0
0.1
0.2
0.3
0.4
0.5
0.6
2.5 3.0 3.5 4.0 4.5 5.0 5.5
TMI
Th
eta
0.0
0.1
0.2
0.3
0.4
0.5
0.6
4 5 6 7 8 9 10 11 12 13
TMI
Th
eta
0.0
0.1
0.2
0.3
0.4
0.5
0.6
2.5 3.0 3.5 4.0 4.5 5.0 5.5
TMIT
het
a
Wet – May 29/30 Avg. – June 26/28 Dry – August 22
Pond B
ranch - P
G 11.25m
DE
MG
lyndon – LID
AR
0.5m
DE
M 11x11
R2=0.71
R2=0.29
R2=0.79
R2=0.24
R2=0.79
R2=0.10
![Page 6: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/6.jpg)
Theta-TVDI ScatterplotsGlyndon Field Sampled Soil Moisture
versus TVDI from a 3x3 kernel
0.00
0.05
0.10
0.15
0.20
0.25
0.30
0.35
0.40
0.45
0.50
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
TVDI (3x3 kernel)
Vo
lum
etri
c S
oil
Mo
istu
rePond Branch Field Sampled Soil Moisture
versus TVDI from a 3x3 kernel
0.00
0.05
0.10
0.15
0.20
0.25
0.30
0.35
0.40
0.45
0.50
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
TVDI (3x3 kernel)
Vo
lum
etr
ic S
oil
Mo
istu
re
Oxford Tobacco Research Station Field Sampled Soil Moisture versus TVDI from a 3x3 kernel
0.00
0.05
0.10
0.15
0.20
0.25
0.30
0.35
0.40
0.45
0.50
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
TVDI (3x3 kernel)
Vo
lum
etr
ic S
oil
Mo
istu
re
![Page 7: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/7.jpg)
API-TVDI Scatterplot
![Page 8: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/8.jpg)
Covariance: Interpreting Scatterplots
• General sense (direction and strength)
• Subjective judgment
• More objective approach
• Extent to which variables Y and X vary together
• Covariance
![Page 9: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/9.jpg)
Covariance Formulae
Cov [X, Y] = (xi - x)(yi - y)i=1
i=n1
n - 1
![Page 10: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/10.jpg)
Covariance Example
Glyndon Field Sampled Soil Moisture versus TVDI from a 3x3 kernel
0.00
0.05
0.10
0.15
0.20
0.25
0.30
0.35
0.40
0.45
0.50
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
TVDI (3x3 kernel)
Vo
lum
etri
c S
oil
Mo
istu
re
TVDISoil
Moisture
0.274 0.4140.542 0.3590.419 0.3960.286 0.4580.374 0.3500.489 0.3570.623 0.2550.506 0.1890.768 0.1710.725 0.119
![Page 11: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/11.jpg)
Covariance Example
TVDI (x)Soil
Moisture (y)
(x - xbar) (y - ybar)(x - xbar) * (y - ybar)
0.274 0.414 -0.227 0.107 -0.0243050.542 0.359 0.042 0.052 0.00216240.419 0.396 -0.082 0.090 -0.0073230.286 0.458 -0.215 0.151 -0.0324240.374 0.350 -0.127 0.044 -0.0055530.489 0.357 -0.011 0.050 -0.0005660.623 0.255 0.122 -0.052 -0.0063740.506 0.189 0.005 -0.118 -0.0006180.768 0.171 0.267 -0.136 -0.0362820.725 0.119 0.225 -0.188 -0.042289
Mean 0.501 0.307 -0.15357-0.017063
SumCovariance
1
2 3
45
![Page 12: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/12.jpg)
How Does Covariance Work?
• X and Y are positively related
• xi > x yi > y
• xi < x yi < y
• X and Y are negatively related
• xi > x yi < y
• xi < x yi > y
__ __
__ __
__ __
__ __
![Page 13: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/13.jpg)
Interpreting Covariances
• Direction & magnitude
• Cov[X,Y] > 0 positive
• Cov[X, Y] < 0 negative
• abs(Cov[X, Y]) ↑ strength ↑
• Magnitude ~ units
![Page 14: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/14.jpg)
Covariance Correlation
• Magnitude ~ units
• Multiple pairs of variables not comparable
• Standardized covariance
• Compare one such measure to another
![Page 15: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/15.jpg)
Pearson’s product-moment correlation coefficient
Cov [X, Y]
sXsY
r =
r (xi - x)(yi - y)i=1
i=n
(n - 1) sXsY
=
ZxZyr i=1
i=n
(n - 1)=
![Page 16: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/16.jpg)
Pearson’s Correlation Coefficient
• r [–1, +1]
• abs(r) ↑ strength ↑
• r cannot be interpreted proportionally
• ranges for interpreting r values 0 - 0.2 Negligible
0.2 - 0.4 Weak
0.4 - 0.6 Moderate
0.6 - 0.8 Strong
0.8 - 1.0 Very strong
![Page 17: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/17.jpg)
Example
• X = TVDI, Y = Soil Moisture
• Cov[X, Y] = -0.017063
• SX = 0.170, SY = 0.115
• r ?
Glyndon Field Sampled Soil Moisture versus TVDI from a 3x3 kernel
0.00
0.05
0.10
0.15
0.20
0.25
0.30
0.35
0.40
0.45
0.50
0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
TVDI (3x3 kernel)
Vo
lum
etri
c S
oil
Mo
istu
re
![Page 18: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/18.jpg)
Pearson’s r - Assumptions
1. interval or ratio
2. Selected randomly
3. Linear
4. Joint bivariate normal distribution
![Page 19: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/19.jpg)
Interpreting Correlation Coefficients
• Correlation is not the same as causation!
• Correlation suggests an association between
variables
1. Both X and Y are influenced by Z
![Page 20: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/20.jpg)
Interpreting Correlation Coefficients
2. Causative chain (i.e. X A B Y)
e.g. rainfall soil moisture ground water runoff
3. Mutual relationship
e.g., income & social status
4. Spurious relationship
e.g., Temperature (different units)
5. A true causal relationship (X Y)
![Page 21: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/21.jpg)
Interpreting Correlation Coefficients
6. A result of chance
e.g., your annual income vs. annual population of the world
![Page 22: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/22.jpg)
Interpreting Correlation Coefficients
7. Outliers
(Source: Fang et al., 2001, Science, p1723a)
![Page 23: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/23.jpg)
Interpreting Correlation Coefficients
• Lack of independence
– Social data
– Geographic data
– Spatial autocorrelation
![Page 24: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/24.jpg)
A Significance Test for r
• An estimator
r
= 0 ?
• t-test
![Page 25: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/25.jpg)
A Significance Test for r
ttest = r
SEr
=r
1 - r2
n - 2
=r n - 2
1 - r2
df = n - 2
![Page 26: Relationship between two variables e.g, as education , what does income do? Scatterplot Bivariate Methods.](https://reader036.fdocuments.net/reader036/viewer/2022062421/56649dc75503460f94abbd77/html5/thumbnails/26.jpg)
A Significance Test for r
H0: = 0
HA: 0
ttest = r n - 2
1 - r2