QC: Consider f(x)=abs(x-3)+abs(x-7) and the point (5,4).

i) Is it an absolute/global min, according to the definition in our textbook? Explain.

ii) Is it a relative/local min, according to the definition in our textbook? Explain.

QD: this is related to the way we measure errors in statistics and machine learning.

i) What x value minimizes the sum of the absolute distances from the values 1, 3, and 8?

ii) Repeat but for sum of squared distances rather than absolute distances.

iii) How do your answers in (i) and (ii) relate to the mean and the median of 1, 3, and 8?

iv) What x value minimizes the sum of the absolute distances from the values 1, 3, 7, 8?

v) What x value minimizes the sum of the squared distances from the values 1, 3, 7, 8?

vi) is your observation in (iii) still true?

1 answer

you know that the graph will have cusps at x = 3 and x=7 but it will not go clear down to the x-axis because between 3 and 7, both absolute values are positive.

Go to any good online graphing site, such as desmos or wolframalpha and check out the graph. Things should be easier after that.
Similar Questions
  1. Absolute Value Quick Check5 of 55 of 5 Items Question Which statement is true?(1 point) Responses |−9| ≠ |9| Start Absolute
    1. answers icon 1 answer
  2. Absolute Value Quick Check5 of 55 of 5 Items Question Which statement is true?(1 point) Responses |−9| ≠ |9| Start Absolute
    1. answers icon 5 answers
  3. Global Trends and Issues Quick Check4 of 54 of 5 Items Question Identify the concept that refers to how much workers are paid by
    1. answers icon 1 answer
  4. Which statement about absolute value is true?(1 point)Responses No two numbers can have the same absolute value. No two numbers
    1. answers icon 1 answer
more similar questions