Integral limits when using distribution function technique

  • #1
lemonthree
51
0
I am not sure about finding the limit of the integral when
it comes to finding the CDF using the distribution function technique.

I know that support of y is 0 ≤y<4, and it is
not a one-to-one transformation.

Now, I am confused with part b), finding the limits when calculating the cdf of Y.
Here's my working.
When -1<x<1, it's a two-to-one transformation, 0≤ y<1
P(Y≤y) = P(X^2≤y)
= P(-sqrt(y) ≤ X ≤ sqrt(y) )When -2<x<-1, it's a one-to-one transformation, 1< y<4
P(Y≤y) = P(X^2≤y)
= P(-sqrt(y) ≤ X ≤ sqrt(y) )

The part I'm unsure is in bold. I just can't seem to determine what are the limits...
I've drawn the graph of f(x) against x and y against x, I know it's supposed to help me but I don't know how it relates.

[DESMOS]{"version":7,"graph":{"viewport":{"xmin":-10,"ymin":-12.5,"xmax":10,"ymax":12.5}},"randomSeed":"066490480d2a6d972d994e681ea97f80","expressions":{"list":[{"id":"2","type":"table","columns":[{"values":["-2","-1","0","1",""],"hidden":true,"id":"3","color":"#2d70b3","latex":"x"},{"values":["","","","",""],"id":"4","color":"#c74440","lines":true,"latex":"x^{2}"}]}]}}[/DESMOS]

[DESMOS]{"version":7,"graph":{"viewport":{"xmin":-10,"ymin":-12.5,"xmax":10,"ymax":12.5}},"randomSeed":"febe03824c866a14f1139ed630aebb2e","expressions":{"list":[{"type":"expression","id":"1","color":"#c74440","latex":"fleft(xright)=frac{2}{9}left(x+2right)"},{"id":"2","type":"table","columns":[{"values":["-2","-1","0","1",""],"hidden":true,"id":"3","color":"#2d70b3","latex":"x"},{"values":["","","","",""],"id":"4","color":"#c74440","lines":true,"latex":"fleft(xright)"}]}]}}[/DESMOS]
 

Attachments

  • CDF.png
    CDF.png
    8.2 KB · Views: 80
Last edited:
Physics news on Phys.org
  • #2
Hi lemonthree,

Everything you've written so far is correct. In particular, noting that there is a difference between and is a big key to solving this problem. The very fact that we need to consider two different intervals for suggests that the CDF will be a piecewise defined function. Consider the case where (see figure).

[DESMOS]{"version":7,"graph":{"viewport":{"xmin":-3,"ymin":-1,"xmax":3,"ymax":5},"xAxisStep":1,"yAxisStep":1,"squareAxes":false},"randomSeed":"959770bb1c14267b441b441732312797","expressions":{"list":[{"type":"expression","id":"1","color":"#388c46","latex":"y=left{-2<x<1: x^{2}right}"},{"type":"expression","id":"2","color":"#000000","latex":"left(0,0.75right)","showLabel":true,"label":"`{y}`"},{"type":"expression","id":"3","color":"#000000","latex":"y=left{-sqrt{.75}<x<sqrt{.75}: 0.75right}","lineStyle":"DASHED"},{"type":"expression","id":"5","color":"#000000","latex":"left(-sqrt{.75},0right)","showLabel":true,"label":"`-sqrt{{y}}`"},{"type":"expression","id":"4","color":"#000000","latex":"left(sqrt{.75},0right)","showLabel":true,"label":"`sqrt{{y}}`"},{"id":"9","type":"table","columns":[{"values":["-sqrt{.75}","-sqrt{.75}"],"hidden":true,"id":"7","color":"#2d70b3","latex":"x_1"},{"values":["0",".75"],"id":"8","color":"#000000","lines":true,"lineStyle":"DASHED","latex":"y_1"}]},{"id":"14","type":"table","columns":[{"values":["sqrt{.75}","sqrt{.75}"],"hidden":true,"id":"12","color":"#c74440","latex":"x_2"},{"values":[".75","0"],"id":"13","color":"#000000","lines":true,"lineStyle":"DASHED","latex":"y_2"}]}]}}[/DESMOS]

From the diagram above we see that Using the PDF for the above becomes: Can you see how to do something similar to complete the case where ?
 
  • #3
Hi GJA, thank you for the very helpful tips. For 1≤y≤4 , what I did was similar, though not quite the same.
P(Y≤y) = P(X^2≤y)
= P(-2 ≤ X ≤ sqrt(y) )
=
= y/9 + 4/9sqrt(y) + 4/9

Is this correct?
 
  • #4
Happy to help! You ask great questions and your intuition for mathematical problem solving is quite good.

You're very close to the correct answer and I'd like to see if a few more hints will help you find what needs to be corrected. For the case where we have the following diagram:

[DESMOS]{"version":7,"graph":{"viewport":{"xmin":-3,"ymin":-1,"xmax":3,"ymax":5},"xAxisStep":1,"squareAxes":false},"randomSeed":"2560b98cc3e1185801770265bac2120a","expressions":{"list":[{"type":"expression","id":"1","color":"#388c46","latex":"y=left{-2<x<1: x^{2}right}"},{"type":"expression","id":"2","color":"#c74440","latex":"y = left{-sqrt{2.25}<x<1: 2.25right}"},{"type":"expression","id":"3","color":"#c74440","latex":"left(0, 2.25right)","showLabel":true,"label":"`{y}`","dragMode":"NONE"},{"id":"7","type":"table","columns":[{"values":["-sqrt{2.25}","-sqrt{2.25}"],"hidden":true,"id":"5","color":"#000000","latex":"x_1"},{"values":["0","2.25"],"id":"6","color":"#c74440","lines":true,"lineStyle":"DASHED","latex":"y_1"}]},{"id":"12","type":"table","columns":[{"values":["1","1"],"hidden":true,"id":"10","color":"#6042a6","latex":"x_2"},{"values":["0","2.25"],"id":"11","color":"#c74440","lines":true,"lineStyle":"DASHED","latex":"y_2"}]},{"id":"17","type":"table","columns":[{"values":["-sqrt{2.25}","1"],"hidden":true,"id":"15","color":"#388c46","latex":"x_3"},{"values":["0","0"],"id":"16","color":"#c74440","lines":true,"latex":"y_3"}]},{"type":"expression","id":"19","color":"#c74440","latex":"left(-sqrt{2.25},0right)","showLabel":true,"label":"`-sqrt{{y}}`"}]}}[/DESMOS]

Take a look at this picture and see if you can figure out what adjustments need to be made to your previous calculation. Note: there are two equally valid ways to do this. Let me know if you're still stuck after giving this a shot.
 
  • #5
The picture is very handy! I'm guessing it should be

P(Y≤y) = P(X^2≤y)
= P(-sqrt(y)≤ X ≤ 1 )

My thoughts for deciding on those values:
For 1≤y≤4, the values of x can range from -2 to 2.
But in this question, x is -2 to 1. Based on the diagram, I need to "fix" the upper limit at 1.
For the lower limit, it would be -sqrt(y) because as both x and y can be -2, there isn't any "limit" restriction.
 
  • #6
I agree with you 100%; pictures are incredibly helpful when it comes to gaining insight to a problem. As you continue to gain mathematical/statistical experience, you'll learn how to utilize them more and more to your advantage.

The ideas you expressed in your last post are all correct, nicely done! What you've determined is that for , we must compute As I mentioned before, there is another way to solve this problem. Since this method is important to be aware of, I'll go through it here.

[DESMOS]{"version":7,"graph":{"viewport":{"xmin":-2.5,"ymin":-0.5,"xmax":1.5,"ymax":4.5},"xAxisStep":1,"yAxisStep":1},"randomSeed":"3110c425eb7a6777826167fc291141b5","expressions":{"list":[{"type":"expression","id":"1","color":"#000000","latex":"y=left{-2<x<1: x^{2}right}"},{"type":"expression","id":"2","color":"#c74440","latex":"y=left{-sqrt{2.25}<x<1: 2.25right}"},{"type":"expression","id":"3","color":"#c74440","latex":"left(0,2.25right)","showLabel":true,"label":"`{y}`"},{"id":"13","type":"table","columns":[{"values":["-sqrt{2.25}","-sqrt{2.25}"],"hidden":true,"id":"11","color":"#000000","latex":"x_1"},{"values":["2.25","0"],"id":"12","color":"#c74440","lines":true,"lineStyle":"DASHED","latex":"y_1"}]},{"id":"17","type":"table","columns":[{"values":["1","1"],"hidden":true,"id":"15","color":"#388c46","latex":"x_2"},{"values":["0","2.25"],"id":"16","color":"#c74440","lines":true,"lineStyle":"DASHED","latex":"y_2"}]},{"id":"22","type":"table","columns":[{"values":["-sqrt{2.25}","1"],"hidden":true,"id":"20","color":"#2d70b3","latex":"x_3"},{"values":["0","0"],"id":"21","color":"#c74440","lines":true,"latex":"y_3"}]},{"id":"27","type":"table","columns":[{"values":["-2","-sqrt{2.25}"],"hidden":true,"id":"25","color":"#c74440","latex":"x_4"},{"values":["0","0"],"id":"26","color":"#2d70b3","lines":true,"latex":"y_4"}]},{"type":"expression","id":"29","color":"#c74440","latex":"left(-sqrt{2.25},0right)","showLabel":true,"label":"`-sqrt{{y}}`"}]}}[/DESMOS]

As is hopefully clear from the picture, the interval can be broken up into two parts (the blue and the red shown above): and This is useful because it allows us to write Solving this equation for the the probability corresponding to the red line segment (which is the one we need to know), we get Notice that is nothing but the CDF for evaluated at Hence, I highly encourage you to solve the problem using the method you mentioned in your last post and the one shown here. If done correctly, you will see that the two give the same result.Feel free to let me know if you have any other questions.
 
  • #7
Thank you so much for showing the alternative method, I calculated for both methods and indeed they both gave the same answer of
 
  • #8
Oh and I wanted to mention something: I realized that sketching the graph of f(x) in such cases aren't very helpful, compared to sketching the graph of y against x. So when we go about solving similar questions, does it mean that we can "ignore" the graph of f(x), and just sketch y against x? Because all we just need is to chuck f(x) into the integral and solve for it...
 
  • #9
lemonthree said:
Thank you so much for showing the alternative method, I calculated for both methods and indeed they both gave the same answer of
Nice work! Happy to hear that you were able to see the connection between the two approaches.

To completely finish things off, the CDF for Y is given by

It's worth noting that and as they should because these terms represent the cumulative probability for near and , respectively.
 
  • #10
lemonthree said:
Oh and I wanted to mention something: I realized that sketching the graph of f(x) in such cases aren't very helpful, compared to sketching the graph of y against x. So when we go about solving similar questions, does it mean that we can "ignore" the graph of f(x), and just sketch y against x? Because all we just need is to chuck f(x) into the integral and solve for it...

I certainly understand what you're going for here and admire your desire to find the most efficient problem solving technique. As a general rule, I would caution against ignoring completely because it can be used to find the bounds for the graph of vs if they aren't given to you at the beginning. For this problem you were told , but it's conceivable you wouldn't be given this in a future exercise. Nevertheless, what you're saying does 100% have merit: Use the graph of vs. to determine what the limits of integration for are.
 
  • #11
Alright, I will take note of this, thank you so much for the very helpful tips!
 

Similar threads

Replies
8
Views
1K
Replies
5
Views
1K
Replies
5
Views
1K
Replies
3
Views
1K
Replies
0
Views
1K
Replies
2
Views
1K
Replies
1
Views
1K
Back
Top