Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Cdf (Cumulative Density Function) Confusion

  1. Apr 27, 2013 #1
    Hi there,

    So regular i thought that the procedure was
    F(s) = ∫s0 f(x) dx

    However i am doing a problem with a kinked pdf and it is telling me to do something like

    F(s) = ∫s0 f(s) ds for 0=<s>=1/2

    then...
    F(s) = F(1/2) + ∫s1/2 f(s) ds

    I am confused at the process of using f(x) or f(s) in the integral and the situation with kinked pdfs, if someone can shed some light on this i would be greatful.

    Thanks,
    Josh
     
  2. jcsd
  3. Apr 27, 2013 #2

    Office_Shredder

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    I don't know what the definition of a kinked pdf is, but a couple of corrections -

    The usual definition is
    [tex] F(s) = \int_{-\infty}^{s} f(x) dx [/tex]
    Your definition only works if you know [itex]f(x) = 0 [/itex] for all x<0

    After that you have s as a variable of integration and as a bound of integration - be careful not to do that!

    The last equation you wrote though is just an application of the fundamental theorem of calculus. Once you have F(s) defined either by your integral or mine, we get that
    [tex] F'(s) = f(s) [/tex]
    And therefore for all a and b
    [tex] F(b) - F(a) = \int_{a}^{b} f(x) dx [/tex]
    In particular if a = 1/2 and b=s we get
    [tex] F(s) - F(1/2) = \int_{1/2}^{s} f(x) dx [/tex]
    Adding F(1/2) to both sides gives your final equation
     
  4. Apr 27, 2013 #3
    In my university module they define a kinked pdf as a pdf having two functions over differing ranges.

    I agree with everything you put here thanks. If you have a look at my solution paper you see that the s variable is part of the integration range and also the function, does this mean that they are wrong?

    DUhFJp1.jpg
     
  5. Apr 27, 2013 #4

    Office_Shredder

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Using s to mean two different things in the same equation is usually frowned upon - I would change it so the variable inside the integral is different.
     
  6. Apr 27, 2013 #5
    No i agree i was just confused as these are university lecturers writing this, they shouldn't really be giving bad practices.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook