Link

Data Exploration

Symbolize Census Data & Plot Relationships

These data layers have three variables: Population (total residents), Housing (monthly rent), and Income (annual total). The Canadian Census collects many different variables. We’ll discuss the census more in depth during lecture.

1) Symbolize your census data by population.

  • Change the symbology for Van_DA_2016 to Graduated Colors.
  • Set the Field to Population.
  • Leave everything else as is for now. We’ll discuss data classification methods in more detail in next weeks lab.

2) Create a chart income vs. housing.

  • Right click Van_DA_2016 and click Create Chart > Scatter Plot.
  • In the chart properties tab that opens, set Income as the X-axis and Housing as the Y-axis.
  • Checking “Show linear trend” will display a regression line on your chart.

View Image in New Tab

A Note on Linear Regression.

  • A regression line is also know as a “line of best fit”. Linear regression assumes the relationship between an X variable (eg. Income) and a Y variable (eg. Housing) follows a linear relationship (eg. Y=MX + B) where M is the slope and B is the intercept.
    • Linear regression assumes any deviations from that relationship are “random noise.”
    • The “noise” is actually all the other unexplained variability. Some might be “random”, but rental cost is impacted by many factors (eg. scarcity) that aren’t as easy to capture with census data alone.
  • In the example below for Van_DA_2016, M = 0.0123 and b = 660.1, which means at $0 income, rent is $660.1. And for every $100 increase in income, rent goes up $1.23.
    • The “R2” statistic, also known as the coefficient of determination is a measure of how well a model fits the data. It ranges from 0 to 1, with 0 representing “no fit” and 1 representing a “perfect fit”.
    • The “R2” score here 0.066, meaning rental cost is not strongly related to income. Which if you’ve lived in Vancouver, unfortunately isn’t a surprise :’(

hi

Comparing CTs to DAs

Follow the same steps as above to symbolize population and plot Income vs. Housing for the VanCMA_CT_2016 layer.

  • We’ll cover the census units in more depth during lecture. In short Census Dissemination Areas (DAs) are the smallest census division used by the Canadian Census. They cover the whole country and are generally grouped by municipality (eg. Vancouver) in to Census Subdivisions. Census Tracts are larger units that are used to divide Census Metropolitan Areas (urban areas with populations > 100,000).

Question 2)

What are the differences you notice between the CTs and DAs in terms of size and population?

Question 3)

For every $100 increase in income at the CT level, how much does rental price increase?

Question 4)

What is the r2 score for this model?

Question 5)

Which Census Unit displays a more direct relationship between income and housing? A) DA B) CT C) About the same

Check the NDVI Histogram

To get a feel for the distribution of NDVI values in the dataset, we’re going to plot them in a histogram to aid our visual inspection of the NDVI data.

1) Create a chart showing the count of cells by NDVI values.

  • Right click the projected NDIV layer and click Create Chart > Histogram.
    • My projected NDVI layer is titled “Van_Greenest_ProjectRaster” but yours may be labeled differently if you .
  • Under Variable, set Band_1 as Number. Note what shows up on the chart.
  • A histogram represents a distribution by grouping the data into bins (ranges), and plotting the count of values (eg. raster cells) for by bin.
    • Change the bin number to see how changing the size of the bins, impacts how you perceive the data. Try 10, then try 50.

hi

2) Change the base map to help inspect the NDVI data.

  • On the Map tab click Basemap and choose Imagery
  • Toggle the NDVI Layer on and off to see how the NDVI values correspond to green vegetation on the visible imagery base map layer.
  • Look at the histogram and compare the NDVI layer with the satellite image base map.

View Image in New Tab

Classify the NDVI Image

Looking at the NDVI Layer, the satellite imagery basemap, and the histogram, we can make some inferences about the data. The NDVI values have a bimodal distribution (two peaks) according to the histogram. The peaks correspond to large swaths of land dominated by water and dense urban areas (low values) and dense green vegetation (high values). Values in-between the peaks represent less dense urban areas, with increasing greenery. We can classify (group) the NDVI into three classes (Green Vegetation, Medium Density Residential, Water/Urban).

1) Use the natural breaks to estimate the class boundaries.

  • Search for the Reclassify tool in the geoprocessing pane.
  • Use the projected NDVI layer as the input
  • Click classify to set the classification scheme. Set the method to Natural Breaks, and the number of classes to three.

View Image in New Tab

Question 6)

Which value denotes the lower bound of the “Green Vegetation Class?”