data-100

An assignment index for Professor Frazier's DATA 100 class

View the Project on GitHub

Assignment 5: Modeling & Predicting Spatial Values and Investigating & Comparing Results

Part 1: Modeling & Predicting Spatial Values

This project stipulated the creation and manipulation of several rasters in order to generate 3D and graduated maps of population density per gridcell in Brunei-Darussalam at two different scales, specifically in the first-level administrative subdivision of Brunei-Muara as well as the second-level urban subdivision of Gadong. The use of filters and cellStat functions was also employed to perform analyses of the collected data in comparison to actuals. The differentiation in the coloration of pixels represents the accuracy of plotted data.

Predicted Totals of Population-Per-Pixel (PPP) in First-Level Administrative Subdivision Brunei-Muara

Screenshot (129)

Predicted Totals of Population-Per-Pixel (PPP) in Second-Level Administrative Subdivision Gadong

Screenshot (128)

Part 2: Investigating and Comparing Results

In the second part of this assignment, I created three sets of spatial plots that describe the predicted population of Brunei-Darussalam using publicly available covariates and different mathematic operations. The models used to produce these plots are based on the predicted sum, mean, and log of Brunei-Darussalam’s population-per-pixel at the secondary administrative level.

Plot Set 1: Population Totals Based on Summed Covariate Predictors

The plots below were produced by a formula that relies on summed covariates to generate population count as a response variable.

Plot 1a: Predicted Population

This plot describes the predicted population of Brunei-Darussalam using a linear model based on summed covariates.

population_sums_plot

Plot 1b: Plotted Difference

This plot visually describes the differences between population count per gridcell actuals and the prediction of a linear model based on summed covariates.

diff_sums_plot

Plot 1c: 3D Visualization

This plot visualizes the population count predicted by summed covariates in three dimensions.

Screenshot (130)

Plot Set 2: Population Totals Based on Averaged Covariate Predictors

The plots below were produced by a formula that relies on averaged covariates to generate population count as a response variable.

Plot 2a: Predicted Population

This plot describes the predicted population of Brunei-Darussalam using a linear model based on averaged covariates.

population_means

Plot 2b: Plotted Difference

This plot visually describes the differences between population count per gridcell actuals and the prediction of a linear model based on averaged covariates.

diff_means_plot

Plot 2c: 3D Visualization

This plot visualizes the population count predicted by averaged covariates in three dimensions.

Screenshot (131)

Plot Set 3: Logarithm of Population Based on Averaged Covariate Predictors

The plots below were produced by a formula that relies on averaged covariates to generate a logarithm of a population count as a response variable.

Plot 3a: Predicted Population

This plot describes a logarithm of the predicted population of Brunei-Darussalam using a linear model based on averaged covariates.

population_logpop_plot

Plot 3b: Plotted Difference

This plot visually describes the differences between population count per gridcell actuals and the logarithmic prediction of a linear model based on averaged covariates.

diff_logpop_plot

Plot 3c: 3D Visualization

This plot visualizes a logarithm of the population count predicted by averaged covariates in three dimensions.

Screenshot (132)

Reference Plot: Plotted WorldPop Data

brn_pop15_plot

Part 3: Written Statement

Because Brunei-Darussalam’s population is so small in the first place, there is not a lot of evident differentiation in the various plots of its population. The fact that only extremely small portions of the country appear on the plots of variation are proof of this. However, it seems that out of all three models, the formula that relies on averaged covariates to produce a predicted count of Brunei-Darussalam’s population is most accurate. The graphs demonstrate the most reliability in terms of their cohesiveness and least amount of qualitative visual difference from the plotted WorldPop data.