1 of 21

Introducing Spatial Statistics

Lecture 14

Wayne Tai Lee

2 of 21

Learning Objectives

  • Understand different types of spatial datasets
  • Crash course on spatial statistics

3 of 21

Types of spatial data

Polygons

Lines

Points

4 of 21

Points example - weather station measurements

Photo credit from NOAA USHCN website

5 of 21

Line example - routes

6 of 21

Polyon Example - US Building Footprint

Thanks to Microsoft for the BuildingFootprint dataset!

7 of 21

Why are there different types of data?

We often talk about records being (X1, X2, X3, …, Xp)

  • What is the distance between X1 and X2 ?
  • Now what if one is a line and the other is a point?
  • Now what if both are polygons?

8 of 21

Quick note on data on Earth - projections

9 of 21

Practice!

Canvas/Files/Notebooks/introducing_spatial_stat.ipynb

Libraries:

  • sp, rgeos, rgdal (spatial data manipulation)
  • fields (statistical packages)

10 of 21

Spatial Statistics - modeling

11 of 21

Spatial Statistics - modeling

  • Our belief about the data at s1 is influenced by our expectation at that location
  • Deviations from the expectations is where the neighboring data points help us understand

12 of 21

Model - spatial data is a noisy observation of a surface

13 of 21

Kriging - the OLS of spatial modeling

14 of 21

Kriging formula explained

15 of 21

Kriging formula explained

16 of 21

Kriging formula explained

17 of 21

Kriging formula explained

18 of 21

Choices for kriging - what exactly are these values?

can be the great circle distance

19 of 21

Choices for kriging - mean is a vector

can be the great circle distance

20 of 21

Choices for kriging - covariance is a matrix

can be the great circle distance

21 of 21

Choices for kriging - distance is a matrix

can be the great circle distance