Understanding the CDF and PDF of a Uniform Distribution for Y

In summary, the conversation is about finding the cdf/pdf of the random variable Y, which is defined by Y = min{X, 6-X} where X is a uniform distribution on the interval (0,3). For X>3, Y=6-X and for X<3, Y=X. For X=3, Y=3. The cdf is given by P(Y<y) = 0 for y<0, (y/3) for 0≤y≤3, and 1 for y>3. The pdf is given by 0 for y<0, (1/3) for 0≤y≤3, and 0 for y>3.
  • #1
lemonthree
51
0
I need guidance on part c, finding the cdf/pdf of Y.

I understand that for X>3, Y=6-X and for X<3, Y=X.
For X = 3, Y=3

For part b, I got P(Y>y)= (3-y)/3, for 0≤y<3

Now for part c, I know P(Y>y) relates to the cdf.
But the definition of cdf relates to P(Y<y), so I'm guessing I have to
do 1-P(Y>y) to get the cdf which is y/3, 0≤y<3.

I'm thinking the pdf would be 1/3 for 0≤y<3?

I know for sure Y is a uniform distribution.
I'm not too sure on the interval (x-a)/(b-a)
Is it Y~Uniform distribution(0,3)?
question.jpg
 
Physics news on Phys.org
  • #2
Hi lemonthree,

The short answer to your post is that you're basically correct on everything you wrote. This response is really to help clean up some of the details. Please refer to the image below, which is a plot of the random variable $Y$ as a function of $X$, as defined by $Y = \min\{X, 6-X\}$.

For completeness in part (b), the values for $P(Y>y)$ should be included for $y\leq 0$ and $y\geq 3$. From the graph below we see that

$P(Y > y) = \begin{cases}
1 & y\leq 0\\
1-\frac{y}{3} & 0\leq y\leq 3\\
0 & y\geq 3
\end{cases}$

For part (c) you can certainly use $P(Y<y) = 1-P(Y>y)$ and the formula from part (b) to get

$P(Y < y) = \begin{cases}
0 & y\leq 0\\
\frac{y}{3} & 0\leq y\leq 3\\
1 & y\geq 3
\end{cases}$

Another possibility is to reason geometrically. For example, if $y = 1$ (as shown in the figure), we can see that $P(Y < 1) = P(X<1\,\text{or}\, X>5) = 2\cdot P(X <1) = 1/3,$ where the second equality is true because the graph is symmetric about the vertical line $X = 3.$ This same argument can be used for any $y$ such that $0\leq y\leq 3$; i.e., $P(Y<y) = P(X<y\,\text{or}\, X>6-y) = 2\cdot P(X<y) = \frac{2y}{6}=\frac{y}{3}$ for all $0\leq y\leq 3$.

desmos-graph (1).png


The CDF is pictured below. The PDF is obtained by taking the derivative of the CDF. I suspect you're familiar with derivatives. If not, derivative means the slope of a graph. Hence, when we say the PDF is the derivative of the CDF, we mean we get the PDF by looking at the slopes of the CDF. Because there are sharp corners in the graph of the CDF, it is technically not differentiable at these points, which results in so-called "jump discontinuities" in the PDF. In any case, the resulting PDF is given by

$f(t) = \begin{cases}
0 & t< 0\\
\frac{1}{3} & 0\leq t\leq 3\\
0 & t> 3
\end{cases}$

desmos-graph (2).png
 
Last edited:
  • #3
Thank you so much GJA. That was very helpful. I just have a question on this part regarding the inequality signs.

GJA said:
For completeness in part (b), the values for $P(Y>y)$ should be included for $y\leq 0$ and $y\geq 3$. From the graph below we see that

$P(Y > y) = \begin{cases}
1 & y\leq 0\\
1-\frac{y}{3} & 0\leq y\leq 3\\
0 & y\geq 3
\end{cases}$

Should it be
$P(Y > y) = \begin{cases}
1 & y\ < 0\\
1-\frac{y}{3} & 0\leq y\leq 3\\
0 & y\ > 3
\end{cases}$
instead? Or both ways work fine? Although the values are the same I'm not very sure whether I'm mathematically correct...
 
  • #4
Great question, and glad to hear the post was helpful.

Since the values are the same, both answers are acceptable. Because the values are the same, the CDF is a "continuous" function; meaning there aren't jumps/different values at the points $y=0$ and $y=3$. For comparison, the PDF is not continuous at $y=0$ and $y=3$. This can be seen as jumps in the graph below. For the PDF, you can see that we used strict inequalities to define $f(t)$.

desmos-graph(3).png
 
  • #5
Ah ok, that makes sense. Thank you so much for your help!
 

What is a uniform distribution?

A uniform distribution is a probability distribution in which all outcomes have an equal chance of occurring. This means that the data is evenly spread out and there is no skewness or bias towards any particular outcome.

What are some examples of uniform distributions?

Some examples of uniform distributions include rolling a fair die, choosing a card from a deck of cards, and selecting a random number from a range of numbers.

How is a uniform distribution different from a normal distribution?

A normal distribution, also known as a bell curve, is a probability distribution in which the data is clustered around the mean and decreases towards the tails. In contrast, a uniform distribution has a constant probability for all outcomes.

What is the formula for calculating the probability of a specific outcome in a uniform distribution?

The formula for calculating the probability of a specific outcome in a uniform distribution is 1 / number of possible outcomes. This means that the probability of any individual outcome is the same as the probability of any other outcome.

How is a uniform distribution used in scientific research?

A uniform distribution is often used in scientific research to model random events or to generate random numbers for simulations. It can also be used to test the randomness of data or to compare the distribution of data to a theoretical uniform distribution.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
743
  • Set Theory, Logic, Probability, Statistics
Replies
8
Views
925
  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
899
  • Set Theory, Logic, Probability, Statistics
Replies
10
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
927
  • Computing and Technology
Replies
9
Views
443
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
4K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
959
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
1K
Back
Top