annotated-Lab3-geo444
.pdf
keyboard_arrow_up
School
University of Missouri, Kansas City *
*We aren’t endorsed by this school
Course
444
Subject
Geography
Date
Dec 6, 2023
Type
Pages
5
Uploaded by dariusuche1180
GEOG 444 Lab Assignment #3: 1 Due on October 6
th
, 2023 Name: _______________________ LAB Assignment #3: Measures of central tendency, dispersion and shape Total: 40 pts Part I: Calculating the average molar mass on Mars. (10 pts) The atmosphere on Mars is very different from the atmosphere on the Earth. Here is the breakdown of Mars’ atmosphere composition: Carbon dioxide 95.97% Argon 1.93% Nitrogen 1.89% Oxygen 0.15% Carbon monoxide 0.06% Carbon dioxide, Argon, Nitrogen, Oxygen and Carbon monoxide have molar masses of 44 g/mol, 39 g/mol, 28 g/mol, 32 g/mol, and 28 g/mol separately. Please use MATLAB to calculate the average molar mass (unit: g/mol) of the atmosphere on Mars. Write or attach your MATLAB code/file. We introduced multiple methods but you only need one.
GEOG 444 Lab Assignment #3: 2 Part II: Statistics on Missouri hydrology (short answer: each 1 pt) Follow the following steps, and write a single MATLAB file with all the codes you used for your calculations, name it as Missouri_Precip.m. For the questions below, you need to refer to the file: Univariate_Practice.pdf on Canvas, Week06. First download the MATLAB MAT-file, data.mat, and save it in your working directory. Load and read it in MATLAB by >> load data.mat. Make sure you will see a variable named data with the size of 120x2. The first column presents the calendar year, from 1897 to 2016, and the second column shows the annual (sum from January to December) precipitation (unit: inch) for each corresponding year averaged over Missouri. Let’s first define two variables: year, and precip. Then read in each column. Type “whos”, you should be able to see the variables and sizes: 1)
First calculate the measures of central tendency, namely, the mean and median of Missouri precipitation during 1897-2016 in MATLAB, and name the variables Pmean, Pmedian. (1 pt for each) Pmean= Pmedian= 2)
Calculate the maximum, minimum, range, average deviation, standard deviation values of Missouri precipitation during 1897-2016. Name variables Pmax, Pmin, Prange, Pavgdev, Pstd, Pvar. Then find out the corresponding years with maximum precipitation and minimum precipitation using MATLAB command and name the years as yearmax and yearmin separately. (1 pt for each) Pmax= Pmin= Prange= Pavgdev= Pstd= Pvar= yearmax= yearmin= Calculate the 1
st
quartile, the 3
rd
quartile values and calculate the interquartile range (IQR) values of Missouri precipitation during 1897-2016. You may refer to slides 5-6 from Lecture note #11 to write your own code to calculate it. You need to define a variable precip_sorted, to sort the precipitation data from minimum value to maximum value. Then calculate the three values, and name them 1
st
quartile value as precip1st, 3
rd
quartile as precip3rd, and precipIQR. Now the MATLAB in our lab computers have a full package of MATLAB toolboxes so you can just use the functions that we introduced in class to easily calculate them. precip1st = precip3rd= precipIQR= 3)
Plotting: Let’s plot this time series (120years) using command “plot” to show the annual precipitation of Missouri from 1897-2016, with x-axis as year and y-axis as precipitation in unit of inches. Attach the plot. In this plot, use the following formatting: (8 pts) o
Use the plot command to plot the series with black color.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help