7. Introduction to STIS and ESTDA - biomedware.com. Introduction to... · boxplots, histograms,...

16
1 Space-Time Intelligence SystemIntroduction to SpaceStat and ESTDA Understand. Clarify. Decide. www.terraseer.com Space-Time Intelligence SystemOutline I Data Preparation II Introduction to ESTDA and SpaceStat III Introduction to time-dynamic regression Understand. Clarify. Decide. www.terraseer.com Space-Time Intelligence SystemESTDA & SpaceStat ESTDA Activities in a Space-Time Data Analysis SpaceStat Functionality Navigating SpaceStat (Interface, Help, Projects) Working with Data (load data, metadata, statistical graphics) Working with maps (queries, display properties) Understand. Clarify. Decide. www.terraseer.com Linked windows and brushing Map and graph animations Space-Time Intelligence SystemLearning Objectives The philosophy of ESTDA Scientific inference using ESTDA ESTDA, models of data, and models of process Using SpaceStat Understand. Clarify. Decide. www.terraseer.com Using SpaceStat

Transcript of 7. Introduction to STIS and ESTDA - biomedware.com. Introduction to... · boxplots, histograms,...

Page 1: 7. Introduction to STIS and ESTDA - biomedware.com. Introduction to... · boxplots, histograms, variogram clouds and LISA ... – Slide shows ... • Share your work

1

Space-Time Intelligence System™

Introduction to SpaceStat and ESTDA

Understand. Clarify. Decide.www.terraseer.com

Space-Time Intelligence System™

OutlineI Data Preparation

II Introduction to ESTDA and SpaceStat

III Introduction to time-dynamic regression

Understand. Clarify. Decide.www.terraseer.com

Space-Time Intelligence System™

ESTDA & SpaceStat• ESTDA

• Activities in a Space-Time Data Analysis

• SpaceStat Functionality

• Navigating SpaceStat (Interface, Help, Projects)

• Working with Data (load data, metadata, statistical graphics)

• Working with maps (queries, display properties)

Understand. Clarify. Decide.www.terraseer.com

g p (q , p y p p )

• Linked windows and brushing

• Map and graph animations

Space-Time Intelligence System™

Learning Objectives

• The philosophy of ESTDA

• Scientific inference using ESTDA

• ESTDA, models of data, and models of process

Using SpaceStat

Understand. Clarify. Decide.www.terraseer.com

• Using SpaceStat

Page 2: 7. Introduction to STIS and ESTDA - biomedware.com. Introduction to... · boxplots, histograms, variogram clouds and LISA ... – Slide shows ... • Share your work

2

Space-Time Intelligence System™

Vocabulary• ESTDA: Exploratory Space-Time Data Analysis

• P-value: Probability of an event under a given null hypothesis

• Data model: A model whose parameters are defined in terms of the statistical properties of the data

• Process model: A model whose parameters are defined in

Understand. Clarify. Decide.www.terraseer.com

• Process model: A model whose parameters are defined in terms of the properties of the system under study

Space-Time Intelligence System™

Philosophy of ESTDA

• Relationship to data models and process models

• What is ESTDA?

• Goals of ESTDA

Problems

Understand. Clarify. Decide.www.terraseer.com

• Problems

Space-Time Intelligence System™

Analysis ApproachesKnowledge

Models of Data Some

Models of Process Lots

Understand. Clarify. Decide.www.terraseer.com

ESTDA Little

Space-Time Intelligence System™

Disease DataContextual Data

Disease /Environment Map

Draw map

ST A l i

Scientific Hypothesis

Prediction

pattern? StopST Analysis

Inference

DeductionTheory

Experiment

no

yes

New hypothesis

Understand. Clarify. Decide.www.terraseer.com

RejectPrediction?

Intervention

Experiment

Interpret

yes

no

Page 3: 7. Introduction to STIS and ESTDA - biomedware.com. Introduction to... · boxplots, histograms, variogram clouds and LISA ... – Slide shows ... • Share your work

3

Space-Time Intelligence System™

ESTDA

• Goal One: Identify pattern

• Goal Two: Generate hypotheses

• Goal Three: Make predictions

• Problems:– Encountered data

M lti l t ti

Understand. Clarify. Decide.www.terraseer.com

– Multiple testing– Pre-selection bias– Emergent hypotheses can’t be tested on data from

which they were formulated

Space-Time Intelligence System™

Role in Inference Structure

• Karl Popper and the `Scientific Method’

• Strong Inference

• An Inference Structure for ESTDA

Understand. Clarify. Decide.www.terraseer.com

• `Gee Whiz’ Effect

Space-Time Intelligence System™

The Scientific Method

Observation

Theory

Prediction

Inference

Deduction

Understand. Clarify. Decide.www.terraseer.com

Rejected Not Rejected

Experiment

O’Hear, A. (1996). Karl Popper, Philosophy and Problems. Cambridge, Cambridge University Press

Space-Time Intelligence System™

Lessons

• Predictions and theories can be falsified, but t not proven

• Useful predictions can be falsified by experiment

• Observations obtained by experiment must be

Understand. Clarify. Decide.www.terraseer.com

Observations obtained by experiment must be independent of data uses to infer theory

Page 4: 7. Introduction to STIS and ESTDA - biomedware.com. Introduction to... · boxplots, histograms, variogram clouds and LISA ... – Slide shows ... • Share your work

4

Space-Time Intelligence System™

Formulate complete set of alternate hypotheses.

Do the experiment.

Devise crucial experiment to systematically exclude hypotheses.

Understand. Clarify. Decide.www.terraseer.com

Repeat for each stage of the problem.

Platt, J.R. (1964). Strong Inference. Science, 146: 347-353.

Space-Time Intelligence System™

ESDA avoids “Gee Whiz”Disease DataContextual Data

Disease /Environment Map

Draw map

Spatial Analysis

Scientific Hypothesis

Prediction

pattern? Stopp y

Inference

Deduction

R j

Theory

Experimentyes

no

yes

New hypothesis

Understand. Clarify. Decide.www.terraseer.com

RejectPrediction?

InterventionInterpret

yes

no

Space-Time Intelligence System™

Activities in a Space-Time Data Analysis1. Describe data using descriptive statistics and

statistical graphics

2 Vi li d t th h ti i ti l t 2. Visualize data through time using time plots, synchronized windows and statistical graphics animation

3. Visualize data geographically using maps, cartographic brushing and map animation

4. Identify statistical, spatial and temporal outliers using

Understand. Clarify. Decide.www.terraseer.com

4. Identify statistical, spatial and temporal outliers using boxplots, histograms, variogram clouds and LISA statistics

5. Transform variables using the normal score and z-score transformations with time-slice and time-weighted means

Space-Time Intelligence System™

Activities in a Space-Time Data Analysis8. Evaluate rate stability to determine whether

adjustment for the “small numbers” problem is needed

9. Stabilize rates using empirical Bayes and Poisson kriging

10. Interpolate data using nearest neighbor, distance and kriging methods

11. Identify sub-populations with significant disparities

Understand. Clarify. Decide.www.terraseer.com

12. Identify clusters and undertake disease surveillance

13. Quantify and model spatial dependencies using global and local spatial autocorrelation analysis

Page 5: 7. Introduction to STIS and ESTDA - biomedware.com. Introduction to... · boxplots, histograms, variogram clouds and LISA ... – Slide shows ... • Share your work

5

Space-Time Intelligence System™

Activities in a Space-Time Data Analysis14. Quantify and model spatial dependencies using

variogram analysis

15. Make predictions using aspatial regression through time (linear, Poisson, logistic)

16. Analyze residuals (aspatial, spatial and through time)

17. Make predictions using geographically weighted regression

Understand. Clarify. Decide.www.terraseer.com

regression

18.Compare results from aspatial and geographically weighted regression

19. Make predictions using geostatistics

Space-Time Intelligence System™

SpaceStat Methods• All time-dynamic!

• Standardization (normal score transform, z-score)• Difference (change maps)• Aggregation (spatial, temporal)• Spatial Interpolation (nearest neighbor, distance weighted,

kriging)• Clustering

– Continuous (Global, local Moran, local G)– Case-population (Turnbull, Besag & Newell)– Case-control (Global, local, focused Q)

Understand. Clarify. Decide.www.terraseer.com

Case control (Global, local, focused Q)• Smoothing (Empirical Bayesian) • Disparities (Relative, Absolute)• Aspatial regression (linear, logistic, Poisson)• Geographically weighted regression (linear, logistic, Poisson)

Space-Time Intelligence System™

SpaceStat Graphics & Tools

Understand. Clarify. Decide.www.terraseer.com

Space-Time Intelligence System™

SpaceStat Functionality• Data prep

– Import file types and formats– Time stamps– Common problems

• Mapping– Static maps– Map queries– Difference mapsp

– Export

• Statistics – Tables– Histograms– Box plots– Scatter plots– Time plots– Z-transform – Spatial weights

p– Slide shows– Movies– Value Animations– Cluster Animations– Linking Animations– Clusters (high-high, low-low) – Outliers (high-low, low-high) – Cluster persistence– Brushing– Linked windows

Understand. Clarify. Decide.www.terraseer.com

Spatial weights – Moran’s I – Moran scatterplot – Univariate LISA – Bivariate LISA

– Creating .avi files– Mobility histories – Polygon morphing – Creating spatial subsets– Creating value subsets

Page 6: 7. Introduction to STIS and ESTDA - biomedware.com. Introduction to... · boxplots, histograms, variogram clouds and LISA ... – Slide shows ... • Share your work

6

Space-Time Intelligence System™

Navigating SpaceStat

• Starting SpaceStat

• Data view, map view and map legend

• Create a new Project

• Getting Help

Understand. Clarify. Decide.www.terraseer.com

Space-Time Intelligence System™

Exercise 1: Load a project

• Start SpaceStat

• Load the project “Lung.sts”

• Identify the data view, the spatial weights set and variogram model view, the log view, the tool bar and the main menu

Understand. Clarify. Decide.www.terraseer.com

tool bar and the main menu

• Use help to learn about handles and docking

Space-Time Intelligence System™Tool Bar Main Menu

DataView

Spatial weights & Variogrammodels view

Understand. Clarify. Decide.www.terraseer.com

Log View

models view

Space-Time Intelligence System™

Understand. Clarify. Decide.www.terraseer.com

Page 7: 7. Introduction to STIS and ESTDA - biomedware.com. Introduction to... · boxplots, histograms, variogram clouds and LISA ... – Slide shows ... • Share your work

7

Space-Time Intelligence System™

Understand. Clarify. Decide.www.terraseer.com

Space-Time Intelligence System™

SpaceStat Projects allow you to• Save your work

• Share your work

• Record derived data sets (e.g. cluster maps)

Restore SpaceStat to a prior state

Understand. Clarify. Decide.www.terraseer.com

• Restore SpaceStat to a prior state

Space-Time Intelligence System™

Exercise 2: Rename datasets, create projects

• Close the timeplots

• In the data view right click on “RWM” select “properties”• In the data view, right click on RWM , select properties

• View the data set history and type in “Rates White Males” for the “Dataset Name”

• Click “File”, “Save Project”, Save your project as “Myproject”

• Click “File”, “Exit” to close the project

Understand. Clarify. Decide.www.terraseer.com

• Click “File”, “Open Project”, & open “Myproject”

• Your data sets are restored

• Lesson: Use projects to protect your work!

Space-Time Intelligence System™

Rename “RWM”

“Rates White Males”

Understand. Clarify. Decide.www.terraseer.com

Rates White Males

Page 8: 7. Introduction to STIS and ESTDA - biomedware.com. Introduction to... · boxplots, histograms, variogram clouds and LISA ... – Slide shows ... • Share your work

8

Space-Time Intelligence System™

Understand. Clarify. Decide.www.terraseer.com

Click “File” “Save As”; Enter“MyProject” for the File name

Space-Time Intelligence System™

SpaceStat Help• Help describes

– Data

Dynamic Data Exploration– Dynamic Data Exploration

– Data view, data formats, geography, spatial relationships, & managing maps

– Statistics, statistical graphics, cluster statistics, randomization, LISA methods

Tutorials

Understand. Clarify. Decide.www.terraseer.com

– Tutorials

– Examples

– Key References

Space-Time Intelligence System™

Exercise 3: Using Help

• Task: Use help to determine

– How to generate a centroid geography from a polygon geography

– Spatial data formats used

Understand. Clarify. Decide.www.terraseer.com

– What the difference is between a time slice and a time series

Space-Time Intelligence System™

Hint: Use “Search” to find the answers quickly

Understand. Clarify. Decide.www.terraseer.com

Page 9: 7. Introduction to STIS and ESTDA - biomedware.com. Introduction to... · boxplots, histograms, variogram clouds and LISA ... – Slide shows ... • Share your work

9

Space-Time Intelligence System™

Understand. Clarify. Decide.www.terraseer.com

Hint: Click “See Also” to view related topics

Space-Time Intelligence System™

Understand. Clarify. Decide.www.terraseer.com

Space-Time Intelligence System™

Exercise 3: Help (continued)

L U H l t i kl • Lesson: Use Help to quickly answer questions on data, methods and software

Understand. Clarify. Decide.www.terraseer.com

Space-Time Intelligence System™

The Visualization ToolbarMap Histogram Box plot

S ttTable View

All except for thetime plot are animated!

PCP

Understand. Clarify. Decide.www.terraseer.com

ScattergramTime plot Variogram cloud

Page 10: 7. Introduction to STIS and ESTDA - biomedware.com. Introduction to... · boxplots, histograms, variogram clouds and LISA ... – Slide shows ... • Share your work

10

Space-Time Intelligence System™

The Animation ControllerStep Continuous play

Pl Stop Time

Understand. Clarify. Decide.www.terraseer.com

PlayTime slider

Stop

Space-Time Intelligence System™

Exercise 4: Working with Maps

• Create a map (use )

– In the data view, For the SEA geography, right click on “RWF” and “Create map”

– A map of the lung cancer mortality rate for white females, all ages, from 1950 through 1994 is displayed

Animate the map by moving the time slider on the

Understand. Clarify. Decide.www.terraseer.com

– Animate the map by moving the time slider on the animation controller

– Is lung cancer increasing, decreasing or staying the same through time?

Space-Time Intelligence System™

Map white female mortality rates for the

SEA geography

Understand. Clarify. Decide.www.terraseer.com

SEA geography

Space-Time Intelligence System™

Use the time slider to animate the mapto animate the map

Understand. Clarify. Decide.www.terraseer.com

Hint: Click on“+” to expand and “-” to collapse the legend

Page 11: 7. Introduction to STIS and ESTDA - biomedware.com. Introduction to... · boxplots, histograms, variogram clouds and LISA ... – Slide shows ... • Share your work

11

Space-Time Intelligence System™

Working with maps (cont)

• Map queries, animated queries

– Set the time to 01/01/1994

zoom

Set the time to 01/01/1994

– Zoom in on the SEA where you live

– Right click on that SEA > “Inspect this location”

– What is the lung cancer mortality rate for white females in your SEA?

– Click on “save” on the inspect data window, then right click on another SEA

Understand. Clarify. Decide.www.terraseer.com

– How do the lung cancer mortality rates in the two SEA’s compare?

– Move the time slider. What happens to the query data?

– Close the inspect data window

Space-Time Intelligence System™

Understand. Clarify. Decide.www.terraseer.com

Female lung cancer mortality rates in Flint and Ann Arbor

SEA’s

Space-Time Intelligence System™

Working with Maps (cont)• The map properties dialog

– Click and drag on the map to create a selection rectangle. Move the rectangle around on the map

– Click on the properties button on the map view

– Click the “General” tab, change the fill color and line width of the “selected polygon attribute”, then “preview”

Understand. Clarify. Decide.www.terraseer.com

– Click “ok” and select a region on the map

– The display characteristics of the selection rectangle have changed

Space-Time Intelligence System™

Working with Maps (cont)

• Create a classified color scheme

– Click on the map properties button, “Polygon Fill Attributes”, “Color Mode”, “Classified”

– Set “Classification Method” to “Equal Intervals” and select 5 map classes

Understand. Clarify. Decide.www.terraseer.com

– Click “Preview” to see the change on your map

Page 12: 7. Introduction to STIS and ESTDA - biomedware.com. Introduction to... · boxplots, histograms, variogram clouds and LISA ... – Slide shows ... • Share your work

12

Space-Time Intelligence System™

Map Properties change how the map is displayed

Understand. Clarify. Decide.www.terraseer.com

Use “Preview” to view changes to the map

Space-Time Intelligence System™

Working with Maps (cont)

• How many color modes are there?

• How many ways are there to classify your map?

• Use “help” from the properties dialog to learn about color modes and classification

Understand. Clarify. Decide.www.terraseer.com

about color modes and classification

Space-Time Intelligence System™

Understand. Clarify. Decide.www.terraseer.com

Space-Time Intelligence System™

Map Display Methods

• Color Modes • Classifications– Single

color/transparent– Continuous– Classified– Qualitative

– Equal Intervals– Quantiles– Jenk’s Natural

Breaks– Custom

Understand. Clarify. Decide.www.terraseer.com

Page 13: 7. Introduction to STIS and ESTDA - biomedware.com. Introduction to... · boxplots, histograms, variogram clouds and LISA ... – Slide shows ... • Share your work

13

Space-Time Intelligence System™

Working with maps (cont)• Display multiple maps

– Using SEA geography, right click on “RWF” in the data view and “Create Map”. Apply the “Continuous” color mode

– Create another new map and apply the “Quantiles” classification with 5 classes

– Create another new map and apply “Jenk’s Natural

Understand. Clarify. Decide.www.terraseer.com

p pp yBreaks” classification with 5 classes (may take a few minutes to calculate)

– Set time for the maps to 01/01/1994. Compare and contrast apparent patterns on the four maps

Space-Time Intelligence System™The visual assessment of patterns on maps is subjective

Understand. Clarify. Decide.www.terraseer.com

Space-Time Intelligence System™

Working with maps (cont)• Linking and animating maps

– On the Main Menu click “Windows” and “Synchronize views”

– Link the maps together by selecting a map in the “views” field, and then clicking on maps in the “synchronized views” field.

– The map selected in the “Views” panel is linked to the

Understand. Clarify. Decide.www.terraseer.com

– The map selected in the Views panel is linked to the ones shown in the “Linked Views” panel

– Move the time slider on one of the maps. What happens?

Space-Time Intelligence System™Select “Window” and “Synchronize views”

Understand. Clarify. Decide.www.terraseer.com

Page 14: 7. Introduction to STIS and ESTDA - biomedware.com. Introduction to... · boxplots, histograms, variogram clouds and LISA ... – Slide shows ... • Share your work

14

Space-Time Intelligence System™

“RWF Equal Intervals” is linked to the three other maps

Understand. Clarify. Decide.www.terraseer.com

Space-Time Intelligence System™

Brushing and Linked Windows

• All statistical graphics and maps are linked th h hthrough common geography

• Use statistical and cartographic brushing to better quantify and explore patterns in your data

Understand. Clarify. Decide.www.terraseer.com

• Then apply statistical tests to determine whether the patterns you observe are real, or occur by chance

Space-Time Intelligence System™

Working with Maps (cont)

• Linking and Brushing

Close all b t one of o maps– Close all but one of your maps

– Create a scattergram of RWM (may have been renamed Rates White Males) and RWF

– Create histograms (1 each) of RWM & RWF

Understand. Clarify. Decide.www.terraseer.com

– Click and drag on the map to create a selection box

– Click and drag on the histograms to create selection boxes

– How do the different views interact as you move the selection boxes?

Space-Time Intelligence System™

Click here to create a scatter plot

Enter the variables

Understand. Clarify. Decide.www.terraseer.com

Enter the variables to plot here

Page 15: 7. Introduction to STIS and ESTDA - biomedware.com. Introduction to... · boxplots, histograms, variogram clouds and LISA ... – Slide shows ... • Share your work

15

Space-Time Intelligence System™

Click to create a histogram

Enter the variable here

Understand. Clarify. Decide.www.terraseer.com

Space-Time Intelligence System™

Brush the map to explore statistical properties of selected areas

Understand. Clarify. Decide.www.terraseer.com

Space-Time Intelligence System™Brush the graphs to explore spatial & statistical relationships

Understand. Clarify. Decide.www.terraseer.com

Space-Time Intelligence System™

Working with Maps (cont.)• Linking and animating maps and graphs

– Synchronize the maps and graphs using – Synchronize the maps and graphs using “Window”>”Synchronize views”. Move the time slider. What happens?

– Are both male and female cancer mortality increasing through time?

– Set time to 1/1/1950 and use statistical brushing on the

Understand. Clarify. Decide.www.terraseer.com

Set time to 1/1/1950, and use statistical brushing on the RWM histogram to select the SEA’s lowest in cancer mortality. Animate the views. What happens to these SEA’s? Are they always lowest in cancer mortality or does their location in the distribution change through time?

Page 16: 7. Introduction to STIS and ESTDA - biomedware.com. Introduction to... · boxplots, histograms, variogram clouds and LISA ... – Slide shows ... • Share your work

16

Space-Time Intelligence System™

Summary• Data prep

– Import file types and formats

– Time stamps

• Mapping– Static maps– Map queries– Difference maps

– Common problems – Export

• Statistics – Tables– Histograms– Box plots– Scatter plots– Time plots– Z-transform

p– Slide shows– Movies– Value Animations– Cluster Animations– Linking Animations– Clusters (high-high, low-low) – Outliers (high-low, low-high) – Cluster persistence– Brushing– Linked windows

Understand. Clarify. Decide.www.terraseer.com

– Spatial weights – Moran’s I – Moran scatterplot– Univariate LISA – Bivariate LISA

– Creating .avi files– Geospatial lifelines – Polygon morphing – Creating spatial subsets– Creating value subsets

Space-Time Intelligence System™

Questions?

Understand. Clarify. Decide.www.terraseer.com