Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma,...

73
Exploratory Spatial Data Exploratory Spatial Data Analysis Using Analysis Using GeoDA GeoDA : An : An Introduction Introduction Prepared by Professor Ravi K. Sharma, University of Pittsburgh Modified for NBDPN 2007 Conference Presentation by Professor Russell S. Kirby, University of Alabama at Birmingham

Transcript of Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma,...

Page 1: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Exploratory Spatial Data Exploratory Spatial Data

Analysis Using Analysis Using GeoDAGeoDA: An : An

IntroductionIntroduction

Prepared by Professor Ravi K. Sharma, University of PittsburghModified for NBDPN 2007 Conference Presentation byProfessor Russell S. Kirby, University of Alabama at Birmingham

Page 2: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

ObjectivesObjectives

Using MACDP data on chromosomal Using MACDP data on chromosomal

abnormalities measured across census abnormalities measured across census

tracts, we will demonstrate the use of tracts, we will demonstrate the use of

GeoDaGeoDa to:to:

�� Start a project, import data, use basic functionsStart a project, import data, use basic functions

�� Perform Exploratory Spatial Data Analysis (ESDA) Perform Exploratory Spatial Data Analysis (ESDA)

�� Calculate rates and weightsCalculate rates and weights

�� Create spatial weight matrixCreate spatial weight matrix

�� Perform spatial autocorrelationPerform spatial autocorrelation

The examples that follow are based on a dataset The examples that follow are based on a dataset

for countyfor county--level analysis of low birth weight for level analysis of low birth weight for

the state of Pennsylvania.the state of Pennsylvania.

Page 3: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

GeoDaGeoDa

�� GeoDaGeoDa is a freely available software is a freely available software

program for exploratory spatial data program for exploratory spatial data

analysis (ESDA), developed by analysis (ESDA), developed by

Professor Luc Professor Luc AnselinAnselin of the of the

University of IllinoisUniversity of Illinois

�� It can be downloaded from the It can be downloaded from the

following URL:following URL:

•• https://https://www.geoda.uiuc.eduwww.geoda.uiuc.edu//

Page 4: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Beginning a ProjectBeginning a Project

Page 5: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Opening Opening GeoDaGeoDa

�� To begin click on the To begin click on the GeoDaGeoDa IconIcon

Page 6: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Starting a projectStarting a project

Page 7: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Open a map with shape fileOpen a map with shape file

Page 8: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

The base mapThe base map

Page 9: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Editing featuresEditing features

Page 10: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Menu toolbar featuresMenu toolbar features

Page 11: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Icon toolbar featuresIcon toolbar features

Page 12: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Creating Maps and Creating Maps and

Selecting FeaturesSelecting Features

Page 13: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Create Create choroplethchoropleth mapsmaps

Page 14: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

ChoroplethChoropleth map stepsmap steps

Page 15: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Creating Creating choroplethchoropleth ((quantilequantile) maps) maps

Page 16: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Creating Creating quantilequantile mapsmaps

Page 17: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Final Final choroplethchoropleth mapmap

Page 18: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Open a new copy of base mapOpen a new copy of base map

Page 19: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Create a new Create a new choroplethchoropleth mapmap

Page 20: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Dynamic map selection optionDynamic map selection option

Page 21: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Selecting map areasSelecting map areas

Page 22: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Table featuresTable features

Page 23: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Table sorting featuresTable sorting features

Page 24: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Specific table selectionSpecific table selection

Page 25: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Creating new variablesCreating new variables

Page 26: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Creating shape files from mapCreating shape files from map

Page 27: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Polygon to point shape filePolygon to point shape file

Page 28: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Create Create centroidscentroids for point filesfor point files

Page 29: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Exploratory Data Exploratory Data

Analysis (EDA)Analysis (EDA)

Page 30: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

EDA: plotsEDA: plots

Page 31: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Variable selection for plotsVariable selection for plots

Page 32: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Plots: HistogramPlots: Histogram

Page 33: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Linkage: selecting featuresLinkage: selecting features

Page 34: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Linkage: selecting features (Linkage: selecting features (concon’’tt.).)

Page 35: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Generate and interpret box plotsGenerate and interpret box plots

Page 36: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Calculating RatesCalculating Rates

Page 37: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Create raw ratesCreate raw rates

Page 38: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Selecting variables for ratesSelecting variables for rates

Page 39: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Raw rates: by percentRaw rates: by percent

Page 40: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Saving ratesSaving rates

Page 41: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Identifying outliers from box plotsIdentifying outliers from box plots

Page 42: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Create excess risk ratesCreate excess risk rates

Page 43: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Excess risk mapExcess risk map

Page 44: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Creating Empirical Creating Empirical BayesBayes smoothingsmoothing

Page 45: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Map generated by EB smoothingMap generated by EB smoothing

Page 46: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Creating Weights: Creating Weights:

Examining spatial Examining spatial

relationshipsrelationships

Page 47: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Creating weightsCreating weights

Page 48: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Loading weight filesLoading weight files

Page 49: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Creating spatial ratesCreating spatial rates

Page 50: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Spatially smoothed mapSpatially smoothed map

Page 51: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Create weights: RookCreate weights: Rook

Page 52: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Text file of Rook weightsText file of Rook weights

Page 53: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Compare weights with map and tableCompare weights with map and table

Page 54: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

View weight characteristicsView weight characteristics

Page 55: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Multiple views: weight histogram, Multiple views: weight histogram,

map and tablemap and table

Page 56: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Create weights: QueenCreate weights: Queen

Page 57: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Compare multiple featuresCompare multiple features

Page 58: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Creating weights: neighborsCreating weights: neighbors

Page 59: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Reviewing weightsReviewing weights

Page 60: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Creating weights: nearest neighborsCreating weights: nearest neighbors

Page 61: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Histogram of neighbor weightsHistogram of neighbor weights

Page 62: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Autocorrelation: Autocorrelation:

Identifying clustersIdentifying clusters

Page 63: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Global Moran Global Moran

�� It is a measure of spatial autocorrelation It is a measure of spatial autocorrelation (feature similarity) based not only on (feature similarity) based not only on feature locations or attribute values alone feature locations or attribute values alone but also on both feature locations and but also on both feature locations and feature values simultaneously. feature values simultaneously.

�� Given a set of features and an associated Given a set of features and an associated attribute, it evaluates whether the pattern attribute, it evaluates whether the pattern expressed is clustered, dispersed, or expressed is clustered, dispersed, or random. random.

�� A Moran's Index value near +1.0 indicates A Moran's Index value near +1.0 indicates clustering; an index value near clustering; an index value near --1.0 1.0 indicates dispersionindicates dispersion

Page 64: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Global MoranGlobal Moran

Page 65: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Autocorrelation: weight file requiredAutocorrelation: weight file required

Page 66: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Global Moran resultGlobal Moran result

Page 67: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Randomization featureRandomization feature

Page 68: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Randomization: graph resultRandomization: graph result

Page 69: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Randomization: Envelope SlopesRandomization: Envelope Slopes

Page 70: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Local Moran (LISA)Local Moran (LISA)

�� The local Moran test (The local Moran test (AnselinAnselin 19951995), detects local ), detects local spatial autocorrelation. It can be used to identify spatial autocorrelation. It can be used to identify local clusters (regions where adjacent areas have local clusters (regions where adjacent areas have similar values) or spatial outliers (areas distinct similar values) or spatial outliers (areas distinct from their neighbors).from their neighbors).

�� The Local Moran statistic decomposes Moran's I The Local Moran statistic decomposes Moran's I ((Moran 1950Moran 1950) into contributions for each location, ) into contributions for each location, IiIi. The sum of . The sum of Ii Ii for all observations is for all observations is proportional to Moran's I, an indicator of global proportional to Moran's I, an indicator of global pattern. pattern.

�� Thus, there can be two interpretations of Local Thus, there can be two interpretations of Local Moran statistics, as indicators of local spatial Moran statistics, as indicators of local spatial clusters and as a diagnostic for outliers in global clusters and as a diagnostic for outliers in global spatial patterns.spatial patterns.

Page 71: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

Local MoranLocal Moran

Page 72: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

LISA: Significance mapLISA: Significance map

Page 73: Exploratory Spatial Data Analysis Using GeoDA : An ... · Prepared by Professor Ravi K. Sharma, University of Pittsburgh ... Final choropleth map. Open a new copy of base map. Create

LISA: Cluster mapLISA: Cluster map