Creating and Managing a W Matrix

Size: px
Start display at page:

Download "Creating and Managing a W Matrix"

Transcription

1 Creating and Managing a W Matrix Carlos Hurtado Department of Economics University of Illinois at Urbana-Champaign hrtdmrt2@illinois.edu Junel 22th, 2016 C. Hurtado (UIUC - Economics) Spatial Econometrics

2 On the Agenda 1 Main Feature of Spatial Data: Spatial Dependence 2 Creating and Managing a W Matrix 3 Measuring Spatial Correlation: A simple example 4 Creation of a W Matrix for Irregular Data C. Hurtado (UIUC - Economics) Spatial Econometrics

3 Main Feature of Spatial Data: Spatial Dependence On the Agenda 1 Main Feature of Spatial Data: Spatial Dependence 2 Creating and Managing a W Matrix 3 Measuring Spatial Correlation: A simple example 4 Creation of a W Matrix for Irregular Data C. Hurtado (UIUC - Economics) Spatial Econometrics

4 Main Feature of Spatial Data: Spatial Dependence Main Feature of Spatial Data: Spatial Dependence The observation of a phenomenon in one place provides statistical information also about the spatial contex. Tobler s first law of geography: Everything is related to everything else, but close things are more related than things that are far apart Positive dependence: - Objects that are close in space tend to assume similar values - Point tend to cluster in space Negative dependence: - Objects that are close in space tend to assume dissimilar values - Point tend to overdisperse C. Hurtado (UIUC - Economics) Spatial Econometrics 1 / 11

5 Main Feature of Spatial Data: Spatial Dependence Main Feature of Spatial Data: Spatial Dependence The observation of a phenomenon in one place provides statistical information also about the spatial contex. Tobler s first law of geography: Everything is related to everything else, but close things are more related than things that are far apart Positive dependence: - Objects that are close in space tend to assume similar values - Point tend to cluster in space Negative dependence: - Objects that are close in space tend to assume dissimilar values - Point tend to overdisperse C. Hurtado (UIUC - Economics) Spatial Econometrics 1 / 11

6 Main Feature of Spatial Data: Spatial Dependence Spatial autocorrelation Is the correlation of a variable with itself corr(x i, X j) If correlation is positive, objects that are close in the plane tend to have similar values of X We need to define the concept of close or neighbourhood. There are various possible definitions. - Critical cut-off distance neighbourhood: Two sites are neighbours if 0 d d, for a given distance. - Nearest neighbour: d i,j = min d i,k k - Contiguity-based neighbourhood: based on the adjacency between two polygons, i.e., if they share a common boundary. C. Hurtado (UIUC - Economics) Spatial Econometrics 2 / 11

7 Main Feature of Spatial Data: Spatial Dependence Spatial autocorrelation Is the correlation of a variable with itself corr(x i, X j) If correlation is positive, objects that are close in the plane tend to have similar values of X We need to define the concept of close or neighbourhood. There are various possible definitions. - Critical cut-off distance neighbourhood: Two sites are neighbours if 0 d d, for a given distance. - Nearest neighbour: d i,j = min d i,k k - Contiguity-based neighbourhood: based on the adjacency between two polygons, i.e., if they share a common boundary. C. Hurtado (UIUC - Economics) Spatial Econometrics 2 / 11

8 Creating and Managing a W Matrix On the Agenda 1 Main Feature of Spatial Data: Spatial Dependence 2 Creating and Managing a W Matrix 3 Measuring Spatial Correlation: A simple example 4 Creation of a W Matrix for Irregular Data C. Hurtado (UIUC - Economics) Spatial Econometrics

9 Creating and Managing a W Matrix Creating and Managing a W Matrix Define N i as the set of all neighbours of site S i. We consider that S i / N i. Detonte by η i the cardinality of N i. The W matrix can be definde by: { 1 if si N i w ij = 0 otherwise Notice that η i = j w ij Most of the time, for the practical applications, the W matrix is row-standardized, that is w ij = wij j wij = wij η i The virtue of the row-standardized matrix is that wij = 1 j C. Hurtado (UIUC - Economics) Spatial Econometrics 3 / 11

10 Creating and Managing a W Matrix Creating and Managing a W Matrix Define N i as the set of all neighbours of site S i. We consider that S i / N i. Detonte by η i the cardinality of N i. The W matrix can be definde by: { 1 if si N i w ij = 0 otherwise Notice that η i = j w ij Most of the time, for the practical applications, the W matrix is row-standardized, that is w ij = wij j wij = wij η i The virtue of the row-standardized matrix is that wij = 1 j C. Hurtado (UIUC - Economics) Spatial Econometrics 3 / 11

11 Creating and Managing a W Matrix Creating and Managing a W Matrix Define N i as the set of all neighbours of site S i. We consider that S i / N i. Detonte by η i the cardinality of N i. The W matrix can be definde by: { 1 if si N i w ij = 0 otherwise Notice that η i = j w ij Most of the time, for the practical applications, the W matrix is row-standardized, that is w ij = wij j wij = wij η i The virtue of the row-standardized matrix is that wij = 1 j C. Hurtado (UIUC - Economics) Spatial Econometrics 3 / 11

12 Creating and Managing a W Matrix Spatial Lag In spatial context the concept of lag is difficult to extend due to the multilaterality of proximity in space. A lagged value can be any of the neighbours according to the neighbourhood definition. Let us define the spatial lag operator as L[X i] = 1 η i = 1 η i = X j j N i n i w ijx j j=1 n i j=1 = WX w ij X j C. Hurtado (UIUC - Economics) Spatial Econometrics 4 / 11

13 Creating and Managing a W Matrix Spatial Lag In spatial context the concept of lag is difficult to extend due to the multilaterality of proximity in space. A lagged value can be any of the neighbours according to the neighbourhood definition. Let us define the spatial lag operator as L[X i] = 1 η i = 1 η i = X j j N i n i w ijx j j=1 n i j=1 = WX w ij X j C. Hurtado (UIUC - Economics) Spatial Econometrics 4 / 11

14 Creating and Managing a W Matrix Measures of Spatial Dependence If L is the lag operator, in time series we have: ρ k = cov(xt, LK X t) var(x) In space we can use the same expresion using the concept of spatial lag. Let us deffine Moran s I as I = i j w ij (X i X)(X j X) i (Xi X) 2 = Y WY Y Y where Y = X X C. Hurtado (UIUC - Economics) Spatial Econometrics 5 / 11

15 Creating and Managing a W Matrix Measures of Spatial Dependence If L is the lag operator, in time series we have: ρ k = cov(xt, LK X t) var(x) In space we can use the same expresion using the concept of spatial lag. Let us deffine Moran s I as I = i j w ij (X i X)(X j X) i (Xi X) 2 = Y WY Y Y where Y = X X C. Hurtado (UIUC - Economics) Spatial Econometrics 5 / 11

16 Creating and Managing a W Matrix Measures of Spatial Dependence Moran s statistic can be used to test the spatial correlation using the regression residual. It plays the role of the Durbin Watson test in time series. It takes the form of a correlation between the regression residuals and their spatially laged values I = ɛ W ɛ ɛ ɛ I Moran test suffers from the limitation of not being based on an explicit alternative hypothesis, but it is equivalent to the LM test. C. Hurtado (UIUC - Economics) Spatial Econometrics 6 / 11

17 Measuring Spatial Correlation: A simple example On the Agenda 1 Main Feature of Spatial Data: Spatial Dependence 2 Creating and Managing a W Matrix 3 Measuring Spatial Correlation: A simple example 4 Creation of a W Matrix for Irregular Data C. Hurtado (UIUC - Economics) Spatial Econometrics

18 Measuring Spatial Correlation: A simple example Creating and Managing a W Matrix The creation and the management of a W matrix is the trickiest part in running a spatial regression in any software. It is also what distinguishes software with spatial capabilities from standard econometric software. For this reason we will devote a significant part of the present chapter to discuss some of the most important steps needed for its creation. All the R procedures that will be illustrated in the present section are contained in the package spdep. To install the package: install.packages( spdep ) To call the package: library(spdep) C. Hurtado (UIUC - Economics) Spatial Econometrics 7 / 11

19 Measuring Spatial Correlation: A simple example Creation of a W Matrix for Regular Grid Data Consider the case of a regular square lattice grid of dimension 3 by 3. R generates the list of neighbors automatically with the command: Wnb< cell2nb(3,3,type= rook ) C. Hurtado (UIUC - Economics) Spatial Econometrics 8 / 11

20 Measuring Spatial Correlation: A simple example Creation of a W Matrix for Regular Grid Data The command indicates that we want to change our data from a cell system (cell) to (2) a list of neighbors (nb). The object Wnb is just a list of neighbors. If we type Wnb we obtain a summary of the information contained in it Once this object is created, we have to transform it into an actual matrix, say W. W< nb2listw(wnb) The command indicates that we want to change our data from a list of neighbors (nb) to (2) a weight matrix (listw). In order to visualize the actual neighbors type: W$weights Once the weight matrix W is created, the spatially lagged variable of a variable X can be easily obtained through the command WX< lag.listw(w,x) C. Hurtado (UIUC - Economics) Spatial Econometrics 9 / 11

21 Creation of a W Matrix for Irregular Data On the Agenda 1 Main Feature of Spatial Data: Spatial Dependence 2 Creating and Managing a W Matrix 3 Measuring Spatial Correlation: A simple example 4 Creation of a W Matrix for Irregular Data C. Hurtado (UIUC - Economics) Spatial Econometrics

22 Creation of a W Matrix for Irregular Data Creation of a W Matrix for Irregular Data Consider now the case of an irregular set of regions and let us as an example the 20 Italian regions. Use: library( maptools ) Create an object with the polygons of Itally: Ita< readshapepoly( Reg2014 ED50 ) To calculate the contiguity-based neighbors use: contnb< poly2nb(ita,queen=t) The Queen criterion specified ensures that two regions are considered neighbors is they have a common boundary. The command indicates that we want to change our data from a list of polygons (poly) to (2) a list of neighbors (nb). However, this command does not tolerate the presence of isolated areas (i.e. iland) C. Hurtado (UIUC - Economics) Spatial Econometrics 10 / 11

23 Creation of a W Matrix for Irregular Data Creation of a W Matrix for Irregular Data We can force the command to create the W matrix to include these areas. In this case the W matrixwill be generated with one or more areas with all zero in the corresponding line. The problem may be eliminated by generating a list of neighbors base on minimum threshold distance use the comand: nbit< dnearneigh(coords,0,380000,longlat=f) C. Hurtado (UIUC - Economics) Spatial Econometrics 11 / 11

Measures of Spatial Dependence

Measures of Spatial Dependence Measures of Spatial Dependence Carlos Hurtado Department of Economics University of Illinois at Urbana-Champaign hrtdmrt2@illinois.edu Junel 30th, 2016 C. Hurtado (UIUC - Economics) Spatial Econometrics

More information

Spatial Regression. 1. Introduction and Review. Luc Anselin. Copyright 2017 by Luc Anselin, All Rights Reserved

Spatial Regression. 1. Introduction and Review. Luc Anselin.  Copyright 2017 by Luc Anselin, All Rights Reserved Spatial Regression 1. Introduction and Review Luc Anselin http://spatial.uchicago.edu matrix algebra basics spatial econometrics - definitions pitfalls of spatial analysis spatial autocorrelation spatial

More information

Spatial Autocorrelation (2) Spatial Weights

Spatial Autocorrelation (2) Spatial Weights Spatial Autocorrelation (2) Spatial Weights Luc Anselin Spatial Analysis Laboratory Dept. Agricultural and Consumer Economics University of Illinois, Urbana-Champaign http://sal.agecon.uiuc.edu Outline

More information

Spatial Autocorrelation

Spatial Autocorrelation Spatial Autocorrelation Luc Anselin http://spatial.uchicago.edu spatial randomness positive and negative spatial autocorrelation spatial autocorrelation statistics spatial weights Spatial Randomness The

More information

Lecture 1: Introduction to Spatial Econometric

Lecture 1: Introduction to Spatial Econometric Lecture 1: Introduction to Spatial Econometric Professor: Mauricio Sarrias Universidad Católica del Norte September 7, 2017 1 Introduction to Spatial Econometric Mandatory Reading Why do We Need Spatial

More information

Introduction to Spatial Statistics and Modeling for Regional Analysis

Introduction to Spatial Statistics and Modeling for Regional Analysis Introduction to Spatial Statistics and Modeling for Regional Analysis Dr. Xinyue Ye, Assistant Professor Center for Regional Development (Department of Commerce EDA University Center) & School of Earth,

More information

Lecture 3: Exploratory Spatial Data Analysis (ESDA) Prof. Eduardo A. Haddad

Lecture 3: Exploratory Spatial Data Analysis (ESDA) Prof. Eduardo A. Haddad Lecture 3: Exploratory Spatial Data Analysis (ESDA) Prof. Eduardo A. Haddad Key message Spatial dependence First Law of Geography (Waldo Tobler): Everything is related to everything else, but near things

More information

Lecture 3: Exploratory Spatial Data Analysis (ESDA) Prof. Eduardo A. Haddad

Lecture 3: Exploratory Spatial Data Analysis (ESDA) Prof. Eduardo A. Haddad Lecture 3: Exploratory Spatial Data Analysis (ESDA) Prof. Eduardo A. Haddad Key message Spatial dependence First Law of Geography (Waldo Tobler): Everything is related to everything else, but near things

More information

Temporal vs. Spatial Data

Temporal vs. Spatial Data Temporal vs. Spatial Data Temporal 1 dimensional Units: day, week, month Lag: t, t-1, t-2 Durbin-Watson Spatial 2-3 dimensional Units: county, mile, region Lag: near neighbor, networks (?) Moran s I Differencing

More information

Unit Root and Cointegration

Unit Root and Cointegration Unit Root and Cointegration Carlos Hurtado Department of Economics University of Illinois at Urbana-Champaign hrtdmrt@illinois.edu Oct 7th, 016 C. Hurtado (UIUC - Economics) Applied Econometrics On the

More information

Luc Anselin Spatial Analysis Laboratory Dept. Agricultural and Consumer Economics University of Illinois, Urbana-Champaign

Luc Anselin Spatial Analysis Laboratory Dept. Agricultural and Consumer Economics University of Illinois, Urbana-Champaign GIS and Spatial Analysis Luc Anselin Spatial Analysis Laboratory Dept. Agricultural and Consumer Economics University of Illinois, Urbana-Champaign http://sal.agecon.uiuc.edu Outline GIS and Spatial Analysis

More information

Outline ESDA. Exploratory Spatial Data Analysis ESDA. Luc Anselin

Outline ESDA. Exploratory Spatial Data Analysis ESDA. Luc Anselin Exploratory Spatial Data Analysis ESDA Luc Anselin University of Illinois, Urbana-Champaign http://www.spacestat.com Outline ESDA Exploring Spatial Patterns Global Spatial Autocorrelation Local Spatial

More information

KAAF- GE_Notes GIS APPLICATIONS LECTURE 3

KAAF- GE_Notes GIS APPLICATIONS LECTURE 3 GIS APPLICATIONS LECTURE 3 SPATIAL AUTOCORRELATION. First law of geography: everything is related to everything else, but near things are more related than distant things Waldo Tobler Check who is sitting

More information

Lecture 6: Hypothesis Testing

Lecture 6: Hypothesis Testing Lecture 6: Hypothesis Testing Mauricio Sarrias Universidad Católica del Norte November 6, 2017 1 Moran s I Statistic Mandatory Reading Moran s I based on Cliff and Ord (1972) Kelijan and Prucha (2001)

More information

splm: econometric analysis of spatial panel data

splm: econometric analysis of spatial panel data splm: econometric analysis of spatial panel data Giovanni Millo 1 Gianfranco Piras 2 1 Research Dept., Generali S.p.A. and DiSES, Univ. of Trieste 2 REAL, UIUC user! Conference Rennes, July 8th 2009 Introduction

More information

Review on Spatial Data

Review on Spatial Data Week 12 Lecture: Spatial Autocorrelation and Spatial Regression Introduction to Programming and Geoprocessing Using R GEO6938 4172 GEO4938 4166 Point data Review on Spatial Data Area/lattice data May be

More information

SPACE Workshop NSF NCGIA CSISS UCGIS SDSU. Aldstadt, Getis, Jankowski, Rey, Weeks SDSU F. Goodchild, M. Goodchild, Janelle, Rebich UCSB

SPACE Workshop NSF NCGIA CSISS UCGIS SDSU. Aldstadt, Getis, Jankowski, Rey, Weeks SDSU F. Goodchild, M. Goodchild, Janelle, Rebich UCSB SPACE Workshop NSF NCGIA CSISS UCGIS SDSU Aldstadt, Getis, Jankowski, Rey, Weeks SDSU F. Goodchild, M. Goodchild, Janelle, Rebich UCSB August 2-8, 2004 San Diego State University Some Examples of Spatial

More information

EXPLORATORY SPATIAL DATA ANALYSIS OF BUILDING ENERGY IN URBAN ENVIRONMENTS. Food Machinery and Equipment, Tianjin , China

EXPLORATORY SPATIAL DATA ANALYSIS OF BUILDING ENERGY IN URBAN ENVIRONMENTS. Food Machinery and Equipment, Tianjin , China EXPLORATORY SPATIAL DATA ANALYSIS OF BUILDING ENERGY IN URBAN ENVIRONMENTS Wei Tian 1,2, Lai Wei 1,2, Pieter de Wilde 3, Song Yang 1,2, QingXin Meng 1 1 College of Mechanical Engineering, Tianjin University

More information

Introduction GeoXp : an R package for interactive exploratory spatial data analysis. Illustration with a data set of schools in Midi-Pyrénées.

Introduction GeoXp : an R package for interactive exploratory spatial data analysis. Illustration with a data set of schools in Midi-Pyrénées. Presentation of Presentation of Use of Introduction : an R package for interactive exploratory spatial data analysis. Illustration with a data set of schools in Midi-Pyrénées. Authors of : Christine Thomas-Agnan,

More information

Spatial Data Mining. Regression and Classification Techniques

Spatial Data Mining. Regression and Classification Techniques Spatial Data Mining Regression and Classification Techniques 1 Spatial Regression and Classisfication Discrete class labels (left) vs. continues quantities (right) measured at locations (2D for geographic

More information

Finding Hot Spots in ArcGIS Online: Minimizing the Subjectivity of Visual Analysis. Nicholas M. Giner Esri Parrish S.

Finding Hot Spots in ArcGIS Online: Minimizing the Subjectivity of Visual Analysis. Nicholas M. Giner Esri Parrish S. Finding Hot Spots in ArcGIS Online: Minimizing the Subjectivity of Visual Analysis Nicholas M. Giner Esri Parrish S. Henderson FBI Agenda The subjectivity of maps What is Hot Spot Analysis? Why do Hot

More information

I don t have much to say here: data are often sampled this way but we more typically model them in continuous space, or on a graph

I don t have much to say here: data are often sampled this way but we more typically model them in continuous space, or on a graph Spatial analysis Huge topic! Key references Diggle (point patterns); Cressie (everything); Diggle and Ribeiro (geostatistics); Dormann et al (GLMMs for species presence/abundance); Haining; (Pinheiro and

More information

Spatial Effects and Externalities

Spatial Effects and Externalities Spatial Effects and Externalities Philip A. Viton November 5, Philip A. Viton CRP 66 Spatial () Externalities November 5, / 5 Introduction If you do certain things to your property for example, paint your

More information

Lecture 8. Spatial Estimation

Lecture 8. Spatial Estimation Lecture 8 Spatial Estimation Lecture Outline Spatial Estimation Spatial Interpolation Spatial Prediction Sampling Spatial Interpolation Methods Spatial Prediction Methods Interpolating Raster Surfaces

More information

Spatial Tools for Econometric and Exploratory Analysis

Spatial Tools for Econometric and Exploratory Analysis Spatial Tools for Econometric and Exploratory Analysis Michael F. Goodchild University of California, Santa Barbara Luc Anselin University of Illinois at Urbana-Champaign http://csiss.org Outline A Quick

More information

Spatial Analysis I. Spatial data analysis Spatial analysis and inference

Spatial Analysis I. Spatial data analysis Spatial analysis and inference Spatial Analysis I Spatial data analysis Spatial analysis and inference Roadmap Outline: What is spatial analysis? Spatial Joins Step 1: Analysis of attributes Step 2: Preparing for analyses: working with

More information

Lecture 5 Geostatistics

Lecture 5 Geostatistics Lecture 5 Geostatistics Lecture Outline Spatial Estimation Spatial Interpolation Spatial Prediction Sampling Spatial Interpolation Methods Spatial Prediction Methods Interpolating Raster Surfaces with

More information

Nature of Spatial Data. Outline. Spatial Is Special

Nature of Spatial Data. Outline. Spatial Is Special Nature of Spatial Data Outline Spatial is special Bad news: the pitfalls of spatial data Good news: the potentials of spatial data Spatial Is Special Are spatial data special? Why spatial data require

More information

Spatial Stochastic frontier models: Instructions for use

Spatial Stochastic frontier models: Instructions for use Spatial Stochastic frontier models: Instructions for use Elisa Fusco & Francesco Vidoli June 9, 2015 In the last decade stochastic frontiers traditional models (see Kumbhakar and Lovell, 2000 for a detailed

More information

Applied Spatial Econometrics. Professor Bernard Fingleton Director of Research Department of Land Economy University of Cambridge

Applied Spatial Econometrics. Professor Bernard Fingleton Director of Research Department of Land Economy University of Cambridge Applied Spatial Econometrics Professor Bernard Fingleton Director of Research Department of Land Economy University of Cambridge Topics to discuss Regression and spatial dependence Residual Spatial autocorrelation

More information

Exploratory Spatial Data Analysis and GeoDa

Exploratory Spatial Data Analysis and GeoDa Exploratory Spatial Data Analysis and GeoDa Luc Anselin Spatial Analysis Laboratory Dept. Agricultural and Consumer Economics University of Illinois, Urbana-Champaign http://sal.agecon.uiuc.edu Outline

More information

Exploratory Spatial Data Analysis (ESDA)

Exploratory Spatial Data Analysis (ESDA) Exploratory Spatial Data Analysis (ESDA) VANGHR s method of ESDA follows a typical geospatial framework of selecting variables, exploring spatial patterns, and regression analysis. The primary software

More information

Spatial Investigation of Mineral Transportation Characteristics in the State of Washington

Spatial Investigation of Mineral Transportation Characteristics in the State of Washington Khachatryan, Jessup 1 Spatial Investigation of Mineral Transportation Characteristics in the State of Washington Hayk Khachatryan Graduate Student Email: hkhachatryan@wsu.edu Eric L. Jessup Assistant Professor

More information

SPATIAL DEPENDENCE AND REGIONAL CONVERGENCE IN BRAZIL

SPATIAL DEPENDENCE AND REGIONAL CONVERGENCE IN BRAZIL The Regional Economics Applications Laboratory (REAL) is a cooperative venture between the University of Illinois and the Federal Reserve Bank of Chicago focusing on the development and use of analytical

More information

Basics of Geographic Analysis in R

Basics of Geographic Analysis in R Basics of Geographic Analysis in R Spatial Autocorrelation and Spatial Weights Yuri M. Zhukov GOV 2525: Political Geography February 25, 2013 Outline 1. Introduction 2. Spatial Data and Basic Visualization

More information

Numerical Linear Algebra

Numerical Linear Algebra Numerical Linear Algebra Carlos Hurtado Department of Economics University of Illinois at Urbana-Champaign hrtdmrt2@illinois.edu Sep 19th, 2017 C. Hurtado (UIUC - Economics) Numerical Methods On the Agenda

More information

Lecture 3: Spatial Analysis with Stata

Lecture 3: Spatial Analysis with Stata Lecture 3: Spatial Analysis with Stata Paul A. Raschky, University of St Gallen, October 2017 1 / 41 Today s Lecture 1. Importing Spatial Data 2. Spatial Autocorrelation 2.1 Spatial Weight Matrix 3. Spatial

More information

Spatial Econometrics

Spatial Econometrics Spatial Econometrics Lecture 1: The notion of spatial modelling. Visualisation of spatial data in R (1) Spatial Econometrics 1 / 30 Contents 1 Why spatial modelling? Space vs ties between units Applications

More information

ENGRG Introduction to GIS

ENGRG Introduction to GIS ENGRG 59910 Introduction to GIS Michael Piasecki October 13, 2017 Lecture 06: Spatial Analysis Outline Today Concepts What is spatial interpolation Why is necessary Sample of interpolation (size and pattern)

More information

Roger S. Bivand Edzer J. Pebesma Virgilio Gömez-Rubio. Applied Spatial Data Analysis with R. 4:1 Springer

Roger S. Bivand Edzer J. Pebesma Virgilio Gömez-Rubio. Applied Spatial Data Analysis with R. 4:1 Springer Roger S. Bivand Edzer J. Pebesma Virgilio Gömez-Rubio Applied Spatial Data Analysis with R 4:1 Springer Contents Preface VII 1 Hello World: Introducing Spatial Data 1 1.1 Applied Spatial Data Analysis

More information

Global Spatial Autocorrelation Clustering

Global Spatial Autocorrelation Clustering Global Spatial Autocorrelation Clustering Luc Anselin http://spatial.uchicago.edu join count statistics Moran s I Moran scatter plot non-parametric spatial autocorrelation Join Count Statistics Recap -

More information

Mapping and Analysis for Spatial Social Science

Mapping and Analysis for Spatial Social Science Mapping and Analysis for Spatial Social Science Luc Anselin Spatial Analysis Laboratory Dept. Agricultural and Consumer Economics University of Illinois, Urbana-Champaign http://sal.agecon.uiuc.edu Outline

More information

Spatial Analysis 1. Introduction

Spatial Analysis 1. Introduction Spatial Analysis 1 Introduction Geo-referenced Data (not any data) x, y coordinates (e.g., lat., long.) ------------------------------------------------------ - Table of Data: Obs. # x y Variables -------------------------------------

More information

Performance of W-AMOEBA and W-Contiguity matrices in Spatial Lag Model

Performance of W-AMOEBA and W-Contiguity matrices in Spatial Lag Model PROCEEDING OF 3 RD INTERNATIONAL CONFERENCE ON RESEARCH, IMPLEMENTATION AND EDUCATION OF MATHEMATICS AND SCIENCE YOGYAKARTA, 16 17 MAY 2016 Performance of W-AMOEBA and W-Contiguity matrices in Spatial

More information

Spatial analysis. Spatial descriptive analysis. Spatial inferential analysis:

Spatial analysis. Spatial descriptive analysis. Spatial inferential analysis: Spatial analysis Spatial descriptive analysis Point pattern analysis (minimum bounding box, mean center, weighted mean center, standard distance, nearest neighbor analysis) Spatial clustering analysis

More information

Package HSAR. October 18, 2017

Package HSAR. October 18, 2017 Type Package Title Hierarchical Spatial Autoregressive Model Version 0.4.2 Date 2017-10-16 Package HSAR October 18, 2017 Author Guanpeng Dong, Richard Harris, Angelos Mimis Maintainer Angelos Mimis

More information

Working Paper No Introduction to Spatial Econometric Modelling. William Mitchell 1. April 2013

Working Paper No Introduction to Spatial Econometric Modelling. William Mitchell 1. April 2013 Working Paper No. 01-13 Introduction to Spatial Econometric Modelling William Mitchell 1 April 2013 Centre of Full Employment and Equity The University of Newcastle, Callaghan NSW 2308, Australia Home

More information

2/7/2018. Module 4. Spatial Statistics. Point Patterns: Nearest Neighbor. Spatial Statistics. Point Patterns: Nearest Neighbor

2/7/2018. Module 4. Spatial Statistics. Point Patterns: Nearest Neighbor. Spatial Statistics. Point Patterns: Nearest Neighbor Spatial Statistics Module 4 Geographers are very interested in studying, understanding, and quantifying the patterns we can see on maps Q: What kinds of map patterns can you think of? There are so many

More information

Spatial Statistics For Real Estate Data 1

Spatial Statistics For Real Estate Data 1 1 Key words: spatial heterogeneity, spatial autocorrelation, spatial statistics, geostatistics, Geographical Information System SUMMARY: The paper presents spatial statistics tools in application to real

More information

SPATIO-TEMPORAL REGRESSION MODELS FOR DEFORESTATION IN THE BRAZILIAN AMAZON

SPATIO-TEMPORAL REGRESSION MODELS FOR DEFORESTATION IN THE BRAZILIAN AMAZON SPATIO-TEMPORAL REGRESSION MODELS FOR DEFORESTATION IN THE BRAZILIAN AMAZON Giovana M. de Espindola a, Edzer Pebesma b,c1, Gilberto Câmara a a National institute for space research (INPE), Brazil b Institute

More information

The Study on Trinary Join-Counts for Spatial Autocorrelation

The Study on Trinary Join-Counts for Spatial Autocorrelation Proceedings of the 8th International Symposium on Spatial Accuracy Assessment in Natural Resources and Environmental Sciences Shanghai, P. R. China, June 5-7, 008, pp. -8 The Study on Trinary Join-Counts

More information

Types of spatial data. The Nature of Geographic Data. Types of spatial data. Spatial Autocorrelation. Continuous spatial data: geostatistics

Types of spatial data. The Nature of Geographic Data. Types of spatial data. Spatial Autocorrelation. Continuous spatial data: geostatistics The Nature of Geographic Data Types of spatial data Continuous spatial data: geostatistics Samples may be taken at intervals, but the spatial process is continuous e.g. soil quality Discrete data Irregular:

More information

Econometric Forecasting Overview

Econometric Forecasting Overview Econometric Forecasting Overview April 30, 2014 Econometric Forecasting Econometric models attempt to quantify the relationship between the parameter of interest (dependent variable) and a number of factors

More information

The Use of Spatial Weights Matrices and the Effect of Geometry and Geographical Scale

The Use of Spatial Weights Matrices and the Effect of Geometry and Geographical Scale The Use of Spatial Weights Matrices and the Effect of Geometry and Geographical Scale António Manuel RODRIGUES 1, José António TENEDÓRIO 2 1 Research fellow, e-geo Centre for Geography and Regional Planning,

More information

Exploratory Spatial Data Analysis (And Navigating GeoDa)

Exploratory Spatial Data Analysis (And Navigating GeoDa) Exploratory Spatial Data Analysis (And Navigating GeoDa) June 9, 2006 Stephen A. Matthews Associate Professor of Sociology & Anthropology, Geography and Demography Director of the Geographic Information

More information

Spatial Regression. 10. Specification Tests (2) Luc Anselin. Copyright 2017 by Luc Anselin, All Rights Reserved

Spatial Regression. 10. Specification Tests (2) Luc Anselin.  Copyright 2017 by Luc Anselin, All Rights Reserved Spatial Regression 10. Specification Tests (2) Luc Anselin http://spatial.uchicago.edu 1 robust LM tests higher order tests 2SLS residuals specification search 2 Robust LM Tests 3 Recap and Notation LM-Error

More information

Are Travel Demand Forecasting Models Biased because of Uncorrected Spatial Autocorrelation? Frank Goetzke RESEARCH PAPER

Are Travel Demand Forecasting Models Biased because of Uncorrected Spatial Autocorrelation? Frank Goetzke RESEARCH PAPER Are Travel Demand Forecasting Models Biased because of Uncorrected Spatial Autocorrelation? By Frank Goetzke RESEARCH PAPER 2003-10 Graduate Research Assistant Department of Economics College of Business

More information

Spatial Econometrics

Spatial Econometrics Spatial Econometrics Lecture 5: Single-source model of spatial regression. Combining GIS and regional analysis (5) Spatial Econometrics 1 / 47 Outline 1 Linear model vs SAR/SLM (Spatial Lag) Linear model

More information

GRAD6/8104; INES 8090 Spatial Statistic Spring 2017

GRAD6/8104; INES 8090 Spatial Statistic Spring 2017 Lab #5 Spatial Regression (Due Date: 04/29/2017) PURPOSES 1. Learn to conduct alternative linear regression modeling on spatial data 2. Learn to diagnose and take into account spatial autocorrelation in

More information

Spatial Analysis 2. Spatial Autocorrelation

Spatial Analysis 2. Spatial Autocorrelation Spatial Analysis 2 Spatial Autocorrelation Spatial Autocorrelation a relationship between nearby spatial units of the same variable If, for every pair of subareas i and j in the study region, the drawings

More information

Proceedings of the 8th WSEAS International Conference on APPLIED MATHEMATICS, Tenerife, Spain, December 16-18, 2005 (pp )

Proceedings of the 8th WSEAS International Conference on APPLIED MATHEMATICS, Tenerife, Spain, December 16-18, 2005 (pp ) Proceedings of the 8th WSEAS International Conference on APPLIED MATHEMATICS, Tenerife, Spain, December 16-18, 005 (pp159-164) Spatial Econometrics Modeling of Poverty FERDINAND J. PARAGUAS 1 AND ANTON

More information

Modeling the Ecology of Urban Inequality in Space and Time

Modeling the Ecology of Urban Inequality in Space and Time Modeling the Ecology of Urban Inequality in Space and Time Corina Graif PhD Candidate, Department Of Sociology Harvard University Presentation for the Workshop on Spatial and Temporal Modeling, Center

More information

7. Integrated Processes

7. Integrated Processes 7. Integrated Processes Up to now: Analysis of stationary processes (stationary ARMA(p, q) processes) Problem: Many economic time series exhibit non-stationary patterns over time 226 Example: We consider

More information

LECTURE 10: MORE ON RANDOM PROCESSES

LECTURE 10: MORE ON RANDOM PROCESSES LECTURE 10: MORE ON RANDOM PROCESSES AND SERIAL CORRELATION 2 Classification of random processes (cont d) stationary vs. non-stationary processes stationary = distribution does not change over time more

More information

Spatial Regression. 9. Specification Tests (1) Luc Anselin. Copyright 2017 by Luc Anselin, All Rights Reserved

Spatial Regression. 9. Specification Tests (1) Luc Anselin.   Copyright 2017 by Luc Anselin, All Rights Reserved Spatial Regression 9. Specification Tests (1) Luc Anselin http://spatial.uchicago.edu 1 basic concepts types of tests Moran s I classic ML-based tests LM tests 2 Basic Concepts 3 The Logic of Specification

More information

Outline. Overview of Issues. Spatial Regression. Luc Anselin

Outline. Overview of Issues. Spatial Regression. Luc Anselin Spatial Regression Luc Anselin University of Illinois, Urbana-Champaign http://www.spacestat.com Outline Overview of Issues Spatial Regression Specifications Space-Time Models Spatial Latent Variable Models

More information

Comparing estimation methods. econometrics

Comparing estimation methods. econometrics for spatial econometrics Recent Advances in Spatial Econometrics (in honor of James LeSage), ERSA 2012 Roger Bivand Gianfranco Piras NHH Norwegian School of Economics Regional Research Institute at West

More information

7. Integrated Processes

7. Integrated Processes 7. Integrated Processes Up to now: Analysis of stationary processes (stationary ARMA(p, q) processes) Problem: Many economic time series exhibit non-stationary patterns over time 226 Example: We consider

More information

Geostatistical Interpolation: Kriging and the Fukushima Data. Erik Hoel Colligium Ramazzini October 30, 2011

Geostatistical Interpolation: Kriging and the Fukushima Data. Erik Hoel Colligium Ramazzini October 30, 2011 Geostatistical Interpolation: Kriging and the Fukushima Data Erik Hoel Colligium Ramazzini October 30, 2011 Agenda Basics of geostatistical interpolation Fukushima radiation Database Web site Geoanalytic

More information

Spatial autocorrelation: robustness of measures and tests

Spatial autocorrelation: robustness of measures and tests Spatial autocorrelation: robustness of measures and tests Marie Ernst and Gentiane Haesbroeck University of Liege London, December 14, 2015 Spatial Data Spatial data : geographical positions non spatial

More information

COLUMN. Spatial Analysis in R: Part 2 Performing spatial regression modeling in R with ACS data

COLUMN. Spatial Analysis in R: Part 2 Performing spatial regression modeling in R with ACS data Spatial Demography 2013 1(2): 219-226 http://spatialdemography.org OPEN ACCESS via Creative Commons 3.0 ISSN 2164-7070 (online) COLUMN Spatial Analysis in R: Part 2 Performing spatial regression modeling

More information

Applied Econometrics. Applied Econometrics. Applied Econometrics. Applied Econometrics. What is Autocorrelation. Applied Econometrics

Applied Econometrics. Applied Econometrics. Applied Econometrics. Applied Econometrics. What is Autocorrelation. Applied Econometrics Autocorrelation 1. What is 2. What causes 3. First and higher orders 4. Consequences of 5. Detecting 6. Resolving Learning Objectives 1. Understand meaning of in the CLRM 2. What causes 3. Distinguish

More information

The Nature of Geographic Data

The Nature of Geographic Data 4 The Nature of Geographic Data OVERVIEW Elaborates on the spatial is special theme Focuses on how phenomena vary across space and the general nature of geographic variation Describes the main principles

More information

22s:152 Applied Linear Regression. In matrix notation, we can write this model: Generalized Least Squares. Y = Xβ + ɛ with ɛ N n (0, Σ)

22s:152 Applied Linear Regression. In matrix notation, we can write this model: Generalized Least Squares. Y = Xβ + ɛ with ɛ N n (0, Σ) 22s:152 Applied Linear Regression Generalized Least Squares Returning to a continuous response variable Y Ordinary Least Squares Estimation The classical models we have fit so far with a continuous response

More information

Spatial correlation and demography.

Spatial correlation and demography. Spatial correlation and demography. Sébastien Oliveau, Christophe Guilmoto To cite this version: Sébastien Oliveau, Christophe Guilmoto. Spatial correlation and demography.: Exploring India s demographic

More information

Exploratory Spatial Data Analysis Using GeoDA: : An Introduction

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

More information

What s special about spatial data?

What s special about spatial data? What s special about spatial data? Road map Geographic Information analysis The need to develop spatial thinking Some fundamental geographic concepts (PBCS) What are the effects of space? Spatial autocorrelation

More information

CHAPTER 3 APPLICATION OF MULTIVARIATE TECHNIQUE SPATIAL ANALYSIS ON RURAL POPULATION UNDER POVERTYLINE FROM OFFICIAL STATISTICS, THE WORLD BANK

CHAPTER 3 APPLICATION OF MULTIVARIATE TECHNIQUE SPATIAL ANALYSIS ON RURAL POPULATION UNDER POVERTYLINE FROM OFFICIAL STATISTICS, THE WORLD BANK CHAPTER 3 APPLICATION OF MULTIVARIATE TECHNIQUE SPATIAL ANALYSIS ON RURAL POPULATION UNDER POVERTYLINE FROM OFFICIAL STATISTICS, THE WORLD BANK 3.1 INTRODUCTION: In regional science, space is a central

More information

Representation of Geographic Data

Representation of Geographic Data GIS 5210 Week 2 The Nature of Spatial Variation Three principles of the nature of spatial variation: proximity effects are key to understanding spatial variation issues of geographic scale and level of

More information

Quantile Regression for Panel/Longitudinal Data

Quantile Regression for Panel/Longitudinal Data Quantile Regression for Panel/Longitudinal Data Roger Koenker University of Illinois, Urbana-Champaign University of Minho 12-14 June 2017 y it 0 5 10 15 20 25 i = 1 i = 2 i = 3 0 2 4 6 8 Roger Koenker

More information

Development of Integrated Spatial Analysis System Using Open Sources. Hisaji Ono. Yuji Murayama

Development of Integrated Spatial Analysis System Using Open Sources. Hisaji Ono. Yuji Murayama Development of Integrated Spatial Analysis System Using Open Sources Hisaji Ono PASCO Corporation 1-1-2, Higashiyama, Meguro-ku, TOKYO, JAPAN; Telephone: +81 (03)3421 5846 FAX: +81 (03)3421 5846 Email:

More information

Sources of Inequality: Additive Decomposition of the Gini Coefficient.

Sources of Inequality: Additive Decomposition of the Gini Coefficient. Sources of Inequality: Additive Decomposition of the Gini Coefficient. Carlos Hurtado Econometrics Seminar Department of Economics University of Illinois at Urbana-Champaign hrtdmrt2@illinois.edu Feb 24th,

More information

Tests forspatial Lag Dependence Based onmethodof Moments Estimation

Tests forspatial Lag Dependence Based onmethodof Moments Estimation 1 Tests forspatial Lag Dependence Based onmethodof Moments Estimation by Luz A. Saavedra* Department of Economics University of South Florida 4202 East Fowler Ave. BSN 3111 Tampa, FL 33620-5524 lsaavedr@coba.usf.edu

More information

Spatial Econometrics. Wykªad 6: Multi-source spatial models. Andrzej Torój. Institute of Econometrics Department of Applied Econometrics

Spatial Econometrics. Wykªad 6: Multi-source spatial models. Andrzej Torój. Institute of Econometrics Department of Applied Econometrics Spatial Econometrics Wykªad 6: Multi-source spatial models (6) Spatial Econometrics 1 / 21 Outline 1 Multi-source models 2 SARAR model 3 SDM (Durbin) model 4 SDEM model 5 Exercises (6) Spatial Econometrics

More information

LECTURE 13: TIME SERIES I

LECTURE 13: TIME SERIES I 1 LECTURE 13: TIME SERIES I AUTOCORRELATION: Consider y = X + u where y is T 1, X is T K, is K 1 and u is T 1. We are using T and not N for sample size to emphasize that this is a time series. The natural

More information

Regression Shrinkage and Selection via the Lasso

Regression Shrinkage and Selection via the Lasso Regression Shrinkage and Selection via the Lasso ROBERT TIBSHIRANI, 1996 Presenter: Guiyun Feng April 27 () 1 / 20 Motivation Estimation in Linear Models: y = β T x + ɛ. data (x i, y i ), i = 1, 2,...,

More information

Using AMOEBA to Create a Spatial Weights Matrix and Identify Spatial Clusters, and a Comparison to Other Clustering Algorithms

Using AMOEBA to Create a Spatial Weights Matrix and Identify Spatial Clusters, and a Comparison to Other Clustering Algorithms Using AMOEBA to Create a Spatial Weights Matrix and Identify Spatial Clusters, and a Comparison to Other Clustering Algorithms Arthur Getis* and Jared Aldstadt** *San Diego State University **SDSU/UCSB

More information

Discrete Spatial Distributions Responsible persons: Claude Collet, Dominique Schneuwly, Regis Caloz

Discrete Spatial Distributions Responsible persons: Claude Collet, Dominique Schneuwly, Regis Caloz Geographic Information Technology Training Alliance (GITTA) presents: Discrete Spatial Distributions Responsible persons: Claude Collet, Dominique Schneuwly, Regis Caloz Table Of Content 1. Discrete Spatial

More information

Stable matching. Carlos Hurtado. July 5th, Department of Economics University of Illinois at Urbana-Champaign

Stable matching. Carlos Hurtado. July 5th, Department of Economics University of Illinois at Urbana-Champaign Stable matching Carlos Hurtado Department of Economics University of Illinois at Urbana-Champaign hrtdmrt2@illinois.edu July 5th, 2017 C. Hurtado (UIUC - Economics) Game Theory On the Agenda 1 Introduction

More information

Kriging Luc Anselin, All Rights Reserved

Kriging Luc Anselin, All Rights Reserved Kriging Luc Anselin Spatial Analysis Laboratory Dept. Agricultural and Consumer Economics University of Illinois, Urbana-Champaign http://sal.agecon.uiuc.edu Outline Principles Kriging Models Spatial Interpolation

More information

Analyzing spatial autoregressive models using Stata

Analyzing spatial autoregressive models using Stata Analyzing spatial autoregressive models using Stata David M. Drukker StataCorp Summer North American Stata Users Group meeting July 24-25, 2008 Part of joint work with Ingmar Prucha and Harry Kelejian

More information

Econometrics I. Professor William Greene Stern School of Business Department of Economics 3-1/29. Part 3: Least Squares Algebra

Econometrics I. Professor William Greene Stern School of Business Department of Economics 3-1/29. Part 3: Least Squares Algebra Econometrics I Professor William Greene Stern School of Business Department of Economics 3-1/29 Econometrics I Part 3 Least Squares Algebra 3-2/29 Vocabulary Some terms to be used in the discussion. Population

More information

Non-independence due to Time Correlation (Chapter 14)

Non-independence due to Time Correlation (Chapter 14) Non-independence due to Time Correlation (Chapter 14) When we model the mean structure with ordinary least squares, the mean structure explains the general trends in the data with respect to our dependent

More information

W-BASED VS LATENT VARIABLES SPATIAL AUTOREGRESSIVE MODELS: EVIDENCE FROM MONTE CARLO SIMULATIONS

W-BASED VS LATENT VARIABLES SPATIAL AUTOREGRESSIVE MODELS: EVIDENCE FROM MONTE CARLO SIMULATIONS 1 W-BASED VS LATENT VARIABLES SPATIAL AUTOREGRESSIVE MODELS: EVIDENCE FROM MONTE CARLO SIMULATIONS An Liu University of Groningen Henk Folmer University of Groningen Wageningen University Han Oud Radboud

More information

Heteroskedasticity. Part VII. Heteroskedasticity

Heteroskedasticity. Part VII. Heteroskedasticity Part VII Heteroskedasticity As of Oct 15, 2015 1 Heteroskedasticity Consequences Heteroskedasticity-robust inference Testing for Heteroskedasticity Weighted Least Squares (WLS) Feasible generalized Least

More information

Automatic Autocorrelation and Spectral Analysis

Automatic Autocorrelation and Spectral Analysis Piet M.T. Broersen Automatic Autocorrelation and Spectral Analysis With 104 Figures Sprin ger 1 Introduction 1 1.1 Time Series Problems 1 2 Basic Concepts 11 2.1 Random Variables 11 2.2 Normal Distribution

More information

Hypothesis Testing hypothesis testing approach

Hypothesis Testing hypothesis testing approach Hypothesis Testing In this case, we d be trying to form an inference about that neighborhood: Do people there shop more often those people who are members of the larger population To ascertain this, we

More information

1 The Multiple Regression Model: Freeing Up the Classical Assumptions

1 The Multiple Regression Model: Freeing Up the Classical Assumptions 1 The Multiple Regression Model: Freeing Up the Classical Assumptions Some or all of classical assumptions were crucial for many of the derivations of the previous chapters. Derivation of the OLS estimator

More information

Spectral Clustering. Spectral Clustering? Two Moons Data. Spectral Clustering Algorithm: Bipartioning. Spectral methods

Spectral Clustering. Spectral Clustering? Two Moons Data. Spectral Clustering Algorithm: Bipartioning. Spectral methods Spectral Clustering Seungjin Choi Department of Computer Science POSTECH, Korea seungjin@postech.ac.kr 1 Spectral methods Spectral Clustering? Methods using eigenvectors of some matrices Involve eigen-decomposition

More information

An Introduction to Spatial Autocorrelation and Kriging

An Introduction to Spatial Autocorrelation and Kriging An Introduction to Spatial Autocorrelation and Kriging Matt Robinson and Sebastian Dietrich RenR 690 Spring 2016 Tobler and Spatial Relationships Tobler s 1 st Law of Geography: Everything is related to

More information