URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       QA_Board
  HTML https://qaboard.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Questions for R / RStudio (Spring 2023)
       *****************************************************
       #Post#: 71--------------------------------------------------
       Homework 9 Problem 1.2
       By: Cat Date: April 24, 2023, 4:08 pm
       ---------------------------------------------------------
       Good afternoon guys, Could you please provide some hint on how
       do we obtain M in this problem? I'm kind of confused that isn't
       the population median just median(exp_rv) here? and how do we
       use qexp to get this.
       Besides, does the f^2(M) in the formula implies that we need to
       plug this M into function f and take sqaure of it. ???
       #Post#: 72--------------------------------------------------
       Re: Homework 9 Problem 1.2
       By: Taeho Kim Date: April 26, 2023, 8:15 am
       ---------------------------------------------------------
       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.
       *****************************************************