1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: PDF (probability density function)

  1. Jan 11, 2010 #1
    Hi everyone,

    I have a simple question (assuming since it was only worth 5% of total marks in the exam) about the PDF of a random variable.

    Given that PDF of random signal equals p(X) = [tex]\Lambda[/tex](X), where [tex]\Lambda[/tex] is the triangle function, what would be the PDF of the random signal Y, Y = -3X + 2.

    That was the question given, and I've given it a lot of thought but I cannot come up with any way to solve it.

    What I did in the exam was:

    p(Y) = [tex]\Lambda[/tex](Y) = [tex]\Lambda[/tex](-3X + 2) but this looks sooo wrong. Basically I have no idea what I'm doing on this question.

    Can somebody kindly guide me, preferrably by presenting all the steps so that I can understand and apply to future problems.


    Thank you very much for your time and consideration.
     
  2. jcsd
  3. Jan 11, 2010 #2

    vela

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper
    Education Advisor

    Use [itex]p(y)dy = p(x)dx[/itex]. You have to be careful with the signs though.

    Alternatively, you could try to find [itex]F(y)=P(Y\le y)[/itex] using what you know about the definition of Y in terms of X and X's distribution. Then differentiate it to get the probability density function.
     
    Last edited: Jan 11, 2010
  4. Jan 12, 2010 #3
    I'm sorry I still do not understand what to do. My lecturer was not very thorough when he explained random signals and processes.

    From my limited understanding:

    [itex]p(x)dx = [/itex][tex]\Lambda[/tex][itex](X)dx = (1-[/itex][tex]\left|x\right|[/tex][itex])dx = -1[/itex]

    I'm sorry I just do not understand. I do not like to give up this easily but this time I'm completely and utterly lost. I would appreciate it if you could guide me through the process step by step.

    Thank you.
     
  5. Jan 12, 2010 #4

    vela

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper
    Education Advisor

    The triangle distribution tells you that [itex]-1\le X\le1[/itex], which means that [itex]-1\le Y\le5[/itex]. Now, suppose you wanted to find [itex]P(Y\le 0)[/itex]. The range of [itex]Y[/itex] values, [itex][-1,0][/itex], corresponds to some range of [itex]X[/itex] values, namely [itex][2/3,1][/itex], and the probability that [itex]Y[/itex] is in [itex][-1,0][/itex] is equal to the probability that [itex]X[/itex] is in [itex][2/3,1][/itex], which you can calculate from [itex]p_X(x)[/itex]. So the idea is to find the distribution function [itex]F_Y(y) = P(Y\le y)[/itex] by generalizing this method. Once you have that, you can differentiate it to find [itex]p_Y(y)[/itex].
     
  6. Jan 12, 2010 #5
    I understand what you're saying but having functions inside brackets and trying to diffrentiate triangle functions is making me go crazy. I keep on backtracking...

    I have something like this:

    [itex]F_Y(y) = P(Y\le y) = -3\Lambda(X) + 2[/itex]

    So then I diffrentiate with respect to y or x? And what is the diffrential of the triangle function?

    Thank you for virtually "babysitting" me through this problem and having patience with me.
     
  7. Jan 12, 2010 #6

    vela

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper
    Education Advisor

    Your questions indicate you don't have the basic definitions down yet, and until you get those straight, you're not going to really understand the mathematics. First off, you should know what the probability density function [itex]p_X(x)[/itex] and the distribution function [itex]F_X(x)[/itex] represent and how they are related. Also, note that neither is a function of the random variable [itex]X[/itex], but of some real number [itex]x[/itex]; in other words, it's not [itex]F(X)[/itex], but rather [itex]F(x)[/itex], for example.

    Then start with this. Forget that [itex]X[/itex] and [itex]Y[/itex] are random variables for a moment, and answer this question: If [itex]Y\le a[/itex] for some real number [itex]a[/itex], what does this tell you about [itex]X[/itex], knowing that [itex]Y=-3X+2[/itex]?
     
  8. Jan 13, 2010 #7
    [itex]-3X+2\le a[/itex]

    [itex]X\ge (2-a)/3[/itex]
     
  9. Jan 13, 2010 #8

    vela

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper
    Education Advisor

    Great! So [itex]F_Y(a)=P(Y\le a)[/itex] is equal to [itex]P(X \ge (2-a)/3)[/itex], which is given by

    [tex]P(X \ge \frac{2-a}{3}) = \int_{\frac{2-a}{3}}^\infty p_X(x) dx[/tex]

    Can you calculate that?
     
  10. Jan 13, 2010 #9
    Just when I was feeling some relief, I have to integrate a triangle function...

    [tex]\int_{\frac{2-a}{3}}^\infty p_X(x) dx = \int_{\frac{2-a}{3}}^\infty \Lambda(x) dx = \int_{\frac{2-a}{3}}^\infty 1 - x dx[/tex]

    So then I end up with...

    [tex]\left[x - x^2/2\right]_{\frac{2-a}{3}}^\infty[/tex]

    And then I get stuck. Have I got the right equation for the triangle function.


    PS: I'm really sorry for taking so much of your time vela, and I really appreciate you walking me through this step by step. I wish you were my tutor :D
     
  11. Jan 13, 2010 #10

    vela

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper
    Education Advisor

    Almost. You forgot the absolute value, and it only has the form [itex]1-|x|[/itex] for [itex]-1\le x\le 1[/itex]. It's zero elsewhere. The absolute value makes it kind of a pain to integrate, but what you end up with is

    [tex]\int_{\frac{2-a}{3}}^\infty p_X(x) dx = \int_{\frac{2-a}{3}}^\infty \Lambda(x) dx =
    \left\{ \begin{array}{ll}
    0 & \mbox{if $ 1 \le \frac{2-a}{3} $} \\
    \int_{\frac{2-a}{3}}^1 (1-x) dx & \mbox{if $ 0 \le \frac{2-a}{3} < 1 $} \\
    \int_{\frac{2-a}{3}}^0 (1+x) dx + \int_0^1 (1-x) dx & \mbox{if $ -1 \le \frac{2-a}{3} < 0 $} \\
    1 & \mbox{if $ \frac{2-a}{3} < -1 $}
    \end{array}\right.[/tex]

    Don't be sorry. Almost everyone struggles with this stuff the first time they see it.
     
    Last edited: Jan 13, 2010
  12. Jan 14, 2010 #11
    Thank you. This is what I get for the integration:

    [tex]\int_{\frac{2-a}{3}}^1} 1-x dx = \left[x - \frac{x^2}{2}\right]_{\frac{2-a}{3}}^1} = \frac{a^2 +2a + 1}{18}[/tex]

    [tex]\int_{\frac{2-a}{3}}^0} 1+x dx = \left[x + \frac{x^2}{2}\right]_{\frac{2-a}{3}}^1} = \frac{-a^2 +10a - 16}{18}[/tex]

    And for the diffrentiation:

    [tex]p_Y(y) =

    \left\{ \begin{array}{ll}
    0 & \mbox{if $ 1 \le \frac{2-a}{3} $} \\
    \frac{1 + a}{9} & \mbox{if $ 0 \le \frac{2-a}{3} < 1 $} \\
    \frac{5 - a}{9} & \mbox{if $ -1 \le \frac{2-a}{3} < 0 $} \\
    0 & \mbox{if $ \frac{2-a}{3} < -1 $}
    \end{array}\right.

    [/tex]

    Is this the answer? Thank you once again.
     
  13. Jan 14, 2010 #12

    vela

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper
    Education Advisor

    Close. Note that you have the variable [itex]y[/itex] on the lefthand side but not on the other side. You want to replace all the [itex]a[/itex]'s on the righthand side with [itex]y[/itex]'s. You might also want to rewrite the inequalities in a simpler form. For example, you can rewrite [itex]1 \le \frac{2-y}{3}[/itex] as [itex]y \le 5[/itex].

    So this probably seemed like a lot of work for 5 points, right? If you plot this function, you'll find it's a stretched out triangle distribution. Hopefully, that'll make sense to you given how X and Y are related, and you'll see how by just looking at Y=-3X+2, you could deduce what [itex]p_Y(y)[/itex] should basically look like.
     
  14. Jan 15, 2010 #13
    Yes, it is a triangle distribution! Bloody hell!

    Thank you so much for guiding me through this problem Vela. I am really really thankful for your tutoring :D
     
  15. Jan 15, 2010 #14

    vela

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper
    Education Advisor

    You're welcome. Glad you figured it out.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook