Math 1483 - Quiz 2

YOUR NAME HERE

Remember, ALT+7 gives a new text cell, be sure to explain your answers, if needed!

Problem 1

Your task for this problem will involve visualizing weather data

Part 1

I have a weather station in my back-yard garden, and the temperature is collected every 2 minutes.  The following data sets are spaced 6 hours apart, starting at midnight, for the month of November.  Each entry in the four data sets is of the form (day of November, temp in F).  To load these data sets, simply execute the commands in the cell immediately below this one.

NovTemps6AM = ;
NovTempsNoon  = ;
NovTemps6PM = ;
NovTempsMidnight = ;

Part 2

Create a plot of each of the data sets.  Your plot should include the following:
(1) Make sure the symbols for each set is distinct.
(2) Colour each data set differently.
(3) Add legends for each data set.
(4) Add the appropriate labels to both axes.
(5) Connect the points in each data set by lines. (Hint: This is an option in the ListPlot command)

Part 3

By inspecting the graph, on which days in November was the temperature at 6:00 PM greater than the temperature at noon?  Explain how you got this information from the graph.

Part 4

Compute the average and median for all four data sets.

Part 5

If you did part 4 correctly, the mean of the 6:00 AM data set was the lowest temperature of the four data sets, similarly the mean of the noon data set was the highest temperature. Construct a data set which is the difference between the noon temperature and the 6:00 AM temperature.

Part 6

Plot the difference data set along with the four data sets from Part 2, be sure to use a different colour for the new data set, and add a plot legend for it.

Part 7

On what days in November were there the largest and smallest changes in temperature between 6:00 AM and noon?  (Hint: There are Max, Min, and Position commands)

Problem 2

A common formula used for counting calories of a food consumed is given by:

TotCal(P,F,C,D) = 4P+9F+4(C-D)

Where T is the total number of calories, P is the number of grams of protein, F is the number of grams of fat, C the total number of grams carbohydrate, and D the number of grams of dietary fiber.

We define the function with the following command.  Be sure to execute it!

TotCal[P_,F_,C_,D_]:=4*P+9*F+4*(C-D)

Part 1

Explain what TotCal(24,12,15,3) represents, and then evaluate it.

Part 2

The following is the nutritional information for 2 fried catfish filets:


We can express the total number of calories from a 2 filet (strips) serving of fried catfish in function notation using the function TotCal(P,F,C,D)  as TotCal(16,6,10,1) , and it is evaluated below.

TotCal[16,6,10,1]

Your task:  Find a nutrition facts label on a food that you eat, take a picture, paste it in here, and apply TotCal(P,F,C,D) function to compute the total calories you would consume in a suggested serving size of said food item.

Part 3

Using your answer from Part 2, and being honest with yourself that you could not simply eat the suggested serving size, come up with how many calories you would consume in a proper serving size (i.e. a serving size you would eat).

Problem 3

The following table gives the number of tornadoes in Oklahoma for each month (January being the first month) of 2021.

({{m=month of 2021, T=number of tornadoes}, {1, 4}, {2, 0}, {3, 3}, {4, 5}, {5,  11}, {6, 1}, {7, 1}, {8, 0}, {9, 0}, {10, 31}, {11, 4}, {12, 0}})

Part 1

Explain in practical terms what T(m) represents.

Part 2

Give the value of T(5), and explain in a sentence what it means.

Part 3

For which months of the year 2021 were there more than 3 tornadoes in Oklahoma?

Part 4

Can the table be used to estimate the  number of tornadoes in the months before or after those in this table?  Explain your answer.

Problem 4

The following graph of active COVID cases in the US was taken from https://www.worldometers.info/coronavirus/country/us/#graph-cases-daily  on December 19th, 2021.  All the questions which follow pertain to this graph.

Part 1

Where is the graph increasing?

Part 2

Where is the graph decreasing?

Part 3

State the location of at least one inflection point.

Part 4

Is the graph concave up or concave down at October 12th 2020?

Part 5

Is the graph concave up or concave down at February 9th 2021?