Quantitative Argumentation
Chapter 6 Drill Questions
Exercise 1 Consider a function defined as follows:
heat_index <- function(temperature, humidity) {
# algorithm
}Which function invocation correctly supplies the arguments by name rather than by position?
Exercise 2 What is the main purpose of an algorithm in a function?
Exercise 3 The function heat_index(temperature, humidity) expects temperature in degrees Celsius and humidity as a decimal between 0 and 1. Which invocation follows that documentation for 30 degrees Celsius and 80% humidity?
Exercise 4 In the solar-panel diagram, cloudiness and sun position are shown as inputs taken as given, while production is produced within the model. Which classification is correct?
Exercise 5 A monthly-payment function uses only principal, interest rate, and loan duration. Which is the best reason to treat its output as a model rather than a complete description of a real mortgage payment?
Exercise 6 Consider a function Profit(price, weather) used by an ice cream shop owner to predict daily earnings.
Input 1:
price(the cost of a cone, set by the owner).Input 2:
weather(the daily high temperature).Internal Calculation: The model internally calculates demand (how many people buy ice cream) based on the price and weather. It then calculates profit by subtracting costs from revenue.
In a system diagram of this specific model, how would we classify the variable demand?
Exercise 7 You are examining a function Projectile_Distance(speed, angle) which calculates how far a ball travels based on the angle it is thrown and the speed at release.
If you slice this function at a fixed release speed, you will have created a function of just one input: angle. A graph of the function can be read to find the input angle required to hit a target exactly 50 meters away.
How many possible answers for angle should you expect to find?
Exercise 8 Consider a function Total_Cost(Units, Unit_Price). You create two slices of this function to understand the behavior:
- Slice A: You hold
Unit_Priceconstant at $10 and varyUnitsfrom 1 to 100. - Slice B: You hold
Unitsconstant at 100 and varyUnit_Pricefrom $10 to $1.
What is the geometric shape of the slice plots in Slice A and Slice B?
Exercise 9
graph RL A(x) B(y) C[w] D(z) A --> C B --> C D --> C classDef exogenous fill:#fff,stroke-width:1px class A exogenous class B exogenous class D exogenous
In the above diagram …
- Which quantities are endogenous?
- How many functions are indicated by the diagram?
- Which quantity is the output of a function?
Exercise 10 According to Chapter 6, what is the definition of a mathematical function?
Exercise 11 In the text’s example about sun position, cloudiness, and production, select the correct description:
Exercise 12 Functions with multiple inputs can be analyzed using a technique called “slicing.” Which of the following statements accurately describes this process? Select any correct answer.
Exercise 13 The words used to identify the various inputs to a function are called ____.
Exercise 14
- Recall the
monthly_payment()function. xf(“fig-payment-r-slice”)is a slice plot that holdsprincipal` constant. Which of the following correctly describes the plot?
- UNRESOLVED fig-payment-years-slice is a similar slice plot. that holds
principalconstant. Which of the following correctly describes that plot?
Two of the following are valid descriptions of algorithm . The other three are not. Mark all three of the INVALID descriptions.
Two of the following are valid descriptions of arg . The other three are not. Mark all three of the INVALID descriptions.
Two of the following are valid descriptions of exogenous . The other three are not. Mark all three of the INVALID descriptions.
Two of the following are valid descriptions of functions . The other three are not. Mark all three of the INVALID descriptions.
Two of the following are valid descriptions of system . The other three are not. Mark all three of the INVALID descriptions.