Quantitative Argumentation

Chapter 6 Drill Questions

NoteFunction basics

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?

Placeholder for now

Exercise 2 What is the main purpose of an algorithm in a function?

Placeholder for now

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?

Placeholder for now

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?

Placeholder for now

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?

Placeholder for now

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?

Placeholder for now

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?

Placeholder for now

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_Price constant at $10 and vary Units from 1 to 100.
  • Slice B: You hold Units constant at 100 and vary Unit_Price from $10 to $1.

What is the geometric shape of the slice plots in Slice A and Slice B?

Placeholder for now

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 …

  1. Which quantities are endogenous?
Placeholder for now
  1. How many functions are indicated by the diagram?
Placeholder for now
  1. Which quantity is the output of a function?
Placeholder for now

Exercise 10 According to Chapter 6, what is the definition of a mathematical function?

Placeholder for now

Exercise 11 In the text’s example about sun position, cloudiness, and production, select the correct description:

Placeholder for now

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.

Placeholder for now

Exercise 13 The words used to identify the various inputs to a function are called ____.

Placeholder for now

Exercise 14  

  1. 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?
Placeholder for now
  1. UNRESOLVED fig-payment-years-slice is a similar slice plot. that holds principal constant. Which of the following correctly describes that plot?
Placeholder for now

NoteKey vocabulary

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 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 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 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 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.

Two of the following are valid descriptions of system . The other three are not. Mark all three of the INVALID descriptions.