Hi Cat,
I have almost missed this one as the subject is referring HW 9.
median() provides us a sample median. We can use it to obtain an estimate; whereas,
M (Median) is a population median, that splits a population density in half in terms of the area.
So, the left hand side area is 0.5 and the right hand side area is 0.5 from the M.
(Note also that an area under a density always means probability.)
Now, the quantile function (or inverse cdf) provides us a "point" when the left-hand side probability (area) from the point is given.
When the population distribution is exponential, qexp() is the R built-in quantile function, so what would you plug in there to obtain the M?
Once you obtain the M, the notation f() is the density, given exponential we can use dexp()!
Please feel free to let me know if you have any further questions.