E510 Lab 2 Solved

35.00 \$

Category:
Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: . ` zip` solution files instantly, after Payment

Description

Rate this product

Week 2: Lab exercises on multiple linear regression and stepwise regression

Exercise 1:

If you haven’t done so already, run the scripts (MATLAB/Python) that were used for the examples in the lecture on Tuesday. See whether you can reproduce the figures from those examples (on synthetic and real data), and try to familiarize yourself with the codes.

Exercise 2:

Consider the following research problem:

Mountain glaciers worldwide are losing their mass in response to ongoing climate change. One of the main indicators of glacier ‘health’ is its mass balance. Annual glacier mass balance is a difference between total annual accumulation over the whole glacier surface (mass gain; mainly through snow accumulation) and total annual ablation over the whole glacier surface (mass loss; mainly through surface melting) over one year. Currently, almost all glaciers worldwide experience a negative mass balance, but their sensitivity to climate change (i.e. how much glacier mass is lost for a degree of warming) differs from glacier to glacier. In this project you are asked to use a data from a sample of mountain glaciers worldwide to investigate what drives the difference in their mass balance sensitivity to warming.

A good indicator of the mass balance sensitivity is a glacier mass balance gradient (Figure 1). Annual specific mass balance, b (expressed in meters water equivalent), derived for each elevation band along a glacier center-line, shows the following general pattern: lower elevations (glacier front or tongue) have negative b (more melting than accumulation over a year) while higher elevations of the same glacier have positive b (more accumulation than melting over a year).

Figure 1: Left: A cartoon of a glacier showing the areas of mass surplus and mass deficit over a year. Right: An example of a measured annual mass balance profile: annual mass balance, b (m water equivalent),Â  versus elevation, z (m above sea level). The slope of the fitted (modelled) line is the estimated mass balance gradient (Î”b/Î”z).

The mass balance profile with elevation is approximately linear (Figure 1), so a slope of the regression line between the mass balance and elevation gives a value of its mass balance gradient. Researchers found that, in general, the steeper the mass balance gradient (larger Î”b/Î”z) the more sensitive the glacier is to warming (local air temperature increase or decrease). But what dictates how steep the mass balance gradient is? Local climate variables (e.g. annual temperature, precipitation) and topography (e.g. elevation of the terrain, slope of the glacier surface) are some of the prime suspects and your task today is to investigate which of these suspects can best capture the spatial variability in the glacier mass balance gradient.

You are given a dataset (file: glaciers.mat or glaciers.csv) collected for 136 glaciers worldwide. In mat file, the structure variable ‘glaciers’ consists of the estimated mass balance gradient (g=Î”b/Î”z) and other variables for each of 136 glaciers. Open Lab2.m or Lab2_2020.ipynb for more information on the data. We already wrote in some commands in these codes that plot the data, perform standardization of predictors etc. The codes with solutions are also provided (Lab2_solutions.m;

Lab2_2020_SOLUTIONS.ipynb), but first try to work on the solutions yourself and use the solutions codes only if you get stuck.