4.3 Continuous random variables: Probability density functions
The continuous analog of a pmf is a probability density function. However, while pmfs and pdfs play analogous roles, they are different in one fundamental way; namely, a pmf outputs probabilities directly, while a pdf does not. We have seen that a pmf of a discrete random variable can be summed to find probabilities of related events. We will see now that a pdf of a continuous random variable must be integrated to find probabilities of related events.
In Section 3.6 we introduced histograms to summarize simulated values of a continuous random variable. In a histogram the variable axis is chopped into intervals of equal width, and the other axis is on the density scale, so that the area of each bar represents the relative frequency of values that lie in the interval.
We have seen examples (e,g., Figures 3.10, 3.11) where the shape of the histogram can be approximated by a smooth curve. This curve represents an idealized model of what the histogram would look like if infinitely many values were simulated and the histogram bins were infinitesimally small.
Consider Figure 3.11 which summarizes 10000 simulated values of the random variable X=−log(1−U) where U has a Uniform(0, 1) distribution. Imagine that we
- keep simulating more and more values, and
- make the histogram bin widths smaller and smaller.
Then the “chunky” histogram would get “smoother”. The following plot summarizes the results of 100,000 simulated values of X
in a histogram with 1000 bins, each of width on the order of 0.01. The command Exponential(1).plot()
overlays the smooth curve modeling the theoretical shape of the distribution of X (called the “Exponential(1)” distribution). This curve is an example of a pdf.
= RV(Uniform(0, 1))
U
= -log(1 - U)
X
100000).plot(bins=1000)
X.sim(1).plot() # overlays the smooth curve
Exponential( plt.show()
A pdf represents “relative likelihood” as a function of possible values of the random variable. Just as area represents relative frequency in a histogram, area under a pdf represents probability.
Definition 4.3 The probability density function (pdf) (a.k.a. density) of a continuous RV X, defined on a probability space with probability measure P, is a function fX:R↦[0,∞) which satisfies P(a≤X≤b)=∫bafX(x)dx,for all −∞≤a≤b≤∞
For a continuous random variable X with pdf fX, the probability that X takes a value in the interval [a,b] is the area under the pdf over the region [a,b].
Example 4.11 Recall Example 2.38. Regina and Cady plan to meet for lunch between noon and 1 but they are not sure of their arrival times. We’ll consider only Regina’s arrival time for now. (We’ll get back to Cady soon.) Assume that Regina arrives at a time chosen uniformly at random between noon and 1. We can model Regina’s arrival with the sample space [0,1] and a uniform probability measure. Let X be Regina’s arrival time in [0,1].
- Sketch a plot of the pdf of X.
- Donny Dont says that the pdf is fX(x)=1. Do you agree? If not, specify the pdf of X.
- Use the pdf to find the probability that Regina arrives before 12:15.
- Use the pdf to find the probability that Regina arrives after 12:45.
- Use the pdf to find the probability that Regina arrives between 12:15 and 12:45.
- Use the pdf to find the probability that Regina arrives between 12:15:00 and 12:16:00.
- Use the pdf to find the probability that Regina arrives between 12:15:00 and 12:15:01.
- Use the pdf to find the probability that Regina arrives at the exact time 12:15:00 (with infinite precision).
Solution. to Example 4.11
Show/hide solution
- We expect the height of the pdf to be constant between 0 and 1, both because her arrival time is uniform over the interval so no one value should be more likely than another, and because when we simulated values the histogram bars had roughly constant height. See the plot below.
- We need the area under the curve over the interval [0,1] to be 1, representing 100% probability. If the height of the density is c, a constant, then the area under the curve is the area of a rectangle with base 1 (length of the interval [0,1]) and height c. So c needs to be 1 for the total area to be 1.
However, Donny Don’t hasn’t specified the possible values. It’s possible that someone who sees Donny’s expression would think that fX(2.5)=1. But the pdf is only 1 over the range [0,1]; it is 0 outside of this range. A more precise expression is fX(x)={1,0≤x≤1,0,otherwise. You don’t necessarily always need to write “0 otherwise”, but do always provide the possible values. - Integrate the pdf over the range [0,0.25]. Since the pdf has constant height, areas under the curve just correspond to areas of rectangles. P(X≤0.25)=∫0.2501dx=x|x=0.25x=0=0.25
- Integrate the pdf over the range [0.75,1].
P(X≥0.75)=∫10.751dx=x|x=1x=0.75=1−0.75=0.25 - We could use the previous parts, but we’ll intergrate the pdf over the range [0.25,0.75]. P(0.25≤X≤0.75)=∫0.750.251dx=x|x=0.75x=0.25=0.75−0.25=0.5.
- Integrate the pdf over the range [0.25,0.25+1/60].
P(0.25≤X≤0.25+1/60)=1/60 - Integrate the pdf over the range [0.25,0.25+1/3600].
P(0.25≤X≤0.25+1/3600)=1/3600 - P(X=0.25)=0. Integrate the pdf over the range [0.25,0.25]. The region under the curve at this single point corresponds to a line segment which has 0 area. P(X=0.25)=∫0.250.251dx=0
0, 1).plot()
Uniform(
0.25, 0.75], 1, 0, color='orange', alpha=0.2) # shade the region
plt.fill_between([
plt.show()
![The pdf of a Uniform(0, 1) distribution. The blue line represents the pdf. The shaded orange region represents the probability of the interval [0.25, 0.75].](probsim-book_files/figure-html/uniform-pdf-plot-1.png)
Figure 4.4: The pdf of a Uniform(0, 1) distribution. The blue line represents the pdf. The shaded orange region represents the probability of the interval [0.25, 0.75].
A pdf assigns zero probability to intervals where the density is 0. A pdf is usually defined for all real values, but is often nonzero only for some subset of values, the possible values of the random variable. We often write the pdf as fX(x)={some function of x,possible values of x0,otherwise.
The axioms of probability imply that a valid pdf must satisfy fX(x)≥0for all x,∫∞−∞fX(x)dx=1
The total area under the pdf must be 1 to represent 100% probability. Given a specific pdf, the generic bounds (−∞,∞) in the above integral should be replaced by the range of possible values, that is, those values for which fX(x)>0.
Example 4.12 Suppose that SAT Math scores follow a Uniform(200, 800) distribution. Let U be the Math score for a randomly selected student.
- Identify fU, the pdf of U.
- Donny Dont says that the probability that U is 500 is 1/600. Do you agree? If not, explain why not.
- While modeling SAT Math score as a continuous random variable might be mathematically convenient, it’s not entirely practical. Suppose that the range of values [495,505) corresponds to students who actually score 500. Find P(495≤X<500).
Show/hide solution
- The density still has constant height. But now the height has to be 1/600 so that the total area under the pdf over the range of possible values [200,800] is 1. So fU(u)=1600,200<u<800 (and fU(u)=0 otherwise).
- It is true that fU(500)=1/600. However, fU(500) is NOT P(U=500). The density (height) at a particular point is not the probability of anything. Probabilities are determined by integrating the density. The “area” under the curve for the region [500,500] is just a line segment, which has area 0, so P(U=500)=0. Integrating, ∫500500(1/600)du=0. More on this point below.
- P(495≤U<505)=(505−495)(1/600)=1/60. The integral ∫505495(1/600)du corresponds to the area of a rectangle with base 505−495 and height 1/600, so the area is 1/60.
The pdf of a general Uniform(a, b) distribution is Uniform(a, b) pdf:f(x)={1b−a,a≤x≤b,0,otherwise.
Plugging a value into the pdf of a continuous random variable does not provide a probability. The pdf itself does not provide probabilities directly; instead a pdf must be integrated to find probabilities.
The probability that a continuous random variable X equals any particular value is 0. That is, if X is continuous then P(X=x)=0 for all x. Therefore, for a continuous RV65, P(X≤x)=P(X<x), etc. A continuous random variable can take uncountably many distinct values. Simulating values of a continuous random variable corresponds to an idealized spinner with an infinitely precise needle which can land on any value in a continuous scale.
In the Uniform(0, 1) case, 0.500000000… is different than 0.50000000010… is different than 0.500000000000001…, etc. Consider the spinner in Figure 2.2. The spinner in the picture is only labeled in 100 increments of 0.01 each; when we spin, the probability that the needle lands closest to the 0.5 tick mark is 0.01. But if the spinner were labeled in increments 1000 increments of 0.001, the probability of landing closest to the 0.5 tick mark is 0.001. And with four decimal places of precision, the probability is 0.0001. And so on. The more precise we mark the axis, the smaller the probability the spinner lands closest to the 0.5 tick mark. The Uniform(0, 1) density represents what happens in the limit as the spinner becomes infinitely precise. The probability of landing closest to the 0.5 tick mark gets smaller and smaller, eventually becoming 0 in the limit.
A density is an idealized mathematical model. In practical applications, there is some acceptable degree of precision, and events like “X, rounded to 4 decimal places, equals 0.5” correspond to intervals that do have positive probability. For continuous random variables, it doesn’t really make sense to talk about the probability that the random value equals a particular value. However, we can consider the probability that a random variable is close to a particular value.
Example 4.13 Continuing Example 4.11, we will now we assume Regina’s arrival time in [0,1] has pdf
fX(x)={cx,0≤x≤1,0,otherwise.
where c is an appropriate constant.
- Sketch a plot of the pdf. What does this say about Regina’s arival time?
- Find the value of c and specify the pdf of X.
- Find the probability that Regina arrives before 12:15.
- Find the probability that Regina arrives after 12:45. How does this compare to the previous part? What does that say about Regina’s arrival time?
- Find the probability that Regina arrives between 12:15 and 12:45.
- Find the probability that Regina arrives between 12:15:00 and 12:15:01.
- Find the probability that Regina arrives at the exact time 12:15:00 (with infinite precision).
- Find the probability that Regina arrives between 12:59:00 and 1:00:00. How does this compare to the probability for 12:15:00 to 12:16:00? What does that say about Regina’s arrival time?
- Find the probability that Regina arrives between 12:59:59 and 1:00:00. How does this compare to the probability for 12:15:00 to 12:15:01? What does that say about Regina’s arrival time?
- Find the probability that Regina arrives at the exact time 1:00:00 (with infinite precision).
Solution. to Example 4.13
Show/hide solution
- The density increases linearly with r. Regina is most likely to arrive closer to 1, and least likely to arrive close to noon (0).
- c=2. The total area under the pdf must be 1. The region under the pdf is a triangle with area (1/2)(1−0)(c), so c must be 2 for the area to be 1. Via integration 1=∫10cxdx=(c/2)x2|x=1x=0=c/2
- Integrate the pdf over the region [0,0.25]. Since the pdf is linear, regions under the curve are triangles or trapezoids. ∫0.2502xdx=x2|x=0.25x=0=0.252=(1/2)(0.25−0)(2(0.25))=0.0625
- Integrate the pdf over the region [0.75,1]. ∫10.752xdx=x2|x=1x=0.75=1−0.752=0.4375 So Regina is 7 times more likely to arrive within 15 minutes of 1 than within 15 minutes of noon.
- 0.5
- Similar to the previous parts, the probability is (0.25+1/60)2−0.252=0.0086. (This probability is less than what it was in the uniform case.)
- Similar to the previous part, (0.25+1/3600)2−0.252=0.00014. (This probability is less than what it was in the uniform case.)
- The exact time 12:15:00 represents a single point the sample space, an interval of length 0. 1. The probability that Regina arrives at the exact time 12:15:00 (with infinite precision) is 0.
- Similar to previous parts, 12−(1−1/60)2=0.0331. Notice that this one minute interval around 1:00 has a probability that is about 3.85 times larger than a one minute interval around 12:15.
- 12−(1−1/3600)2=0.00056. Notice that this one second interval around 1:00 has a probability that is about 4 times higher than a one second interval around 12:15, though both probabilities are small.
- The exact time 1:00:00 represents a single point the sample space, an interval of length 0. The probability that Regina arrives at the exact time 1:00:00 (with infinite precision) is 0.
In the previous example, we specified the general shape of the pdf, then found the constant that made the total area under the curve equal to 1. In general, a pdf is often defined only up to some multiplicative constant c, for example fX(x)=c×(some function of x), or fX(x)∝some function of x. The constant c does not affect the shape of the distribution as a function of x, only the scale on the density axis. The absolute scaling on the density axis is somewhat irrelevant; it is whatever it needs to be to provide the proper area. In particular, the total area under the pdf must be 1. The scaling constant is determined by the requirement that ∫∞−∞fX(x)dx=1.
What’s more important about the pdf is relative heights. In the previous example the density at 1, fX(1)=c, was 4 times greater than than density at 0.25, fX(0.25)=0.25c. This was the reason why the probability of arriving close to 1 was about 4 times greater than the probability of arriving close to 12:15 (time 0.25). The ratio of the densities at these two points could be computed without knowing the value of c.
Example 4.14 Let X be a random variable with the “Exponential(1)” distribution, illustrated by the smooth curve in Figure 3.11, and represented by the spinner in Figure 3.12. Then the pdf of fX is
fX(x)={e−x,x>0,0,otherwise.
- Verify that fX is a valid pdf.
- Find P(X≤1).
- Find P(X≤2).
- Find P(1≤X<2.5).
- Compute P(X=1).
- Without integrating, approximate the probability that X rounded to two decimal places is 1.
- Without integrating, approximate the probability that X rounded to two decimal places is 2.
- Find and interpret the ratio of the probabilities from the two previous parts. How could we have obtained this ratio from the pdf?
Solution. to Example 4.14
Show/hide solution
- We need to check that the pdf integrates to 1: ∫∞0e−xdx=1.
- P(X≤1)=∫10e−xdx=1−e−1≈0.632. Recall the corresponding spinner in Figure 3.12; 63.2% of the area corresponds to [0,1].
- P(X≤2)=∫20e−xdx=1−e−2≈0.865. Recall the corresponding spinner in Figure 3.12; 86.5% of the area corresponds to [0,2].
- P(1≤X<2.5)=∫2.51e−xdx=e−1−e−2.5≈0.286. See the illustration below.
- P(X=1)=0, since X is continuous.
- Over a short region around 1, the area under the curve can be approximated by the area of a rectangle with height fX(1): P(0.995<X<1.005)≈fX(1)(1.005−0.995)=e−1(0.01)≈0.00367879. See the illustration below. This provides a pretty good approximation of the true integral66 ∫1.0050.995e−xdx=e−0.995−e−1.005≈0.00367881.
- Over a short region around 2, the area under the curve can be approximated by the area of a rectangle with height fX(2): P(1.995<X<2.005)≈fX(2)(2.005−1.995)=e−2(0.01)≈0.00135335. This provides a pretty good approximation of the integral ∫1.9952.005e−xdx=e−1.995−e−2.005≈0.00135336.
- Compare the rectangle-based approximations P(1−0.005<X<1+0.005)P(2−0.005<X<2+0.005)≈2.718≈e−1(0.01)e−2(0.01)=e−1e−2=fX(1)fX(2) The probability that X is “close to” 1 is about 2.718 times greater than the probability that X is “close to” 1. This ratio is determined by the ratio of the densities at 1 and 2.


Figure 4.5: Illustration of P(1<X<2.5) (left) and P(0.995<X<1.005) (right) for X with an Exponential(1) distribution, correspoding to the spinner in Figure 3.11. The plot on the left displays the true area under the curve. The plot on the right illustrates how the probability that X is “close to” x can be approximated by the area of a rectance with height equal to the density at x, fX(x).
A density is an idealized mathematical model. In practical applications, there is some acceptable degree of precision, and events like “X, rounded to 4 decimal places, equals 0.5” correspond to intervals that do have positive probability. For continuous random variables, it doesn’t really make sense to talk about the probability that the random value equals a particular value. However, we can consider the probability that a random variable is close to a particular value.
To emphasize: The density fX(x) at value x is not a probability. Rather, the density fX(x) at value x is related to the probability that the RV X takes a value “close to x” in the following sense67. P(x−ϵ2≤X≤x+ϵ2)≈fX(x)ϵ,for small ϵ The quantity ϵ is a small number that represents the desired degree of precision. For example, rounding to two decimal places corresponds to ϵ=0.01.
Technically, any particular x occurs with probability 0, so it doesn’t really make sense to say that some values are more likely than others. However, a RV X is more likely to take values close to those values that have greater density. As we said previously, what’s important about a pdf is relative heights. For example, if fX(˜x)=2fX(x) then X is roughly “twice as likely to be near ˜x than to be near x” in the above sense. fX(˜x)fX(x)=fX(˜x)ϵfX(x)ϵ≈P(˜x−ϵ2≤X≤˜x+ϵ2)P(x−ϵ2≤X≤x+ϵ2)
4.3.1 Joint probability density fuctions
Recall that the joint distribution of random variables X and Y (defined on the same probability space) is a probability distribution on (x,y) pairs. The joint distribution of two continuous random variables can be specified by a joint pdf, a surface specifying the density of (x,y) pairs. The probability that the (X,Y) pair of random variables lies is some region is the volume under the pdf surface over the region.
Example 4.15 Recall the example in Section 3.8.3. Let P be the probability space corresponding to two spins of the Uniform(1, 4) spinner, and let X be the sum of the two spins, and Y the larger spin (or the common value if a tie). Review the results of the simulation in Section 3.8.3 before proceeding.
- Find the joint pdf of (X,Y). Hint: see Figure 3.14.
- Use geometry to find P(X<4,Y>2.5).
- Suggest an expression for the marginal pdf of Y. Hint: see Figure 3.16.
- Use calculus to derive fY(2.5), the marginal pdf of Y evaluated at y=2.5.
- Use calculus to derive fY, the marginal pdf of Y.
- Find P(Y>2.5).
- Suggest an expression for the marginal pdf of X. Hint: see Figure 3.15.
- Use calculus to derive fX(4), the marginal pdf of X evaluated at x=4.
- Use calculus to derive fX(6.5), the marginal pdf of X evaluated at x=6.5.
- Use calculus to derive fX, the marginal pdf of X. Hint: consider x<5 and x>5 separately.
- Find P(X<4).
- Find P(X<6.5).
Show/hide solution
- Recall the discussion in Section 3.8.3. While marginally X takes values in (2, 8) and marginally Y takes values in (1, 4), not every pair in (2,8)×(1,4) is possible. Rather, the possible values of (X,Y) lie in {(x,y):2<x<8,1<y<4,x/2<y<x−1}. The joint density of (X,Y) is constant over the range of possible values. The region {(x,y):2<x<8,1<y<4,x/2<y<x−1} is a triangle with area 4.5. The joint pdf is a surface of constant height floating above this triangle. The volume under the density surface is the volume of this triangular “wedge”. If the constant height is 1/4.5=2/9≈0.222, then the volume under the surface will be 1. Therefore, the joint pdf of (X,Y) is fX,Y(x,y)={2/9,2<x<8,1<y<4,x/2<y<x−1,0,otherwise
- P(X<4,Y>2.5)=1/36. The probability is the volume under the pdf over the region of interest. The base of the triangular wedge is {(x,y):3.5<x<4,2.5<y<3,x/2<y}, a region which has area (1/2)(4−3.5)(3−2.5)=1/8. Therefore, the volume of the triangular wedge that has constant height 2/9 is (2/9)(1/8)=1/36
- The density starts at 0 at y=1 and then increases linearly until y=4. So we might guess fY(y)={c(y−1),1<y<4,0,otherwise. Then find c to make the total area under the pdf equal 1. The area under the pdf is the area of a triangle with base 4-1 and height c(4−1) so setting 1=(1/2)(4−1)(c(4−1)) yields c=2/9.
- We find the marginal pdf of Y evaluated at y=2.5 by “stacking” the density at each pair (x,2.5) over the possible x values. For discrete variables, the stacking is achieved by summing the joint pmf over the possible x values. For continuous random variables we integrate the joint pdf over the possible x values corresponding to y=2.5. If y=2.5 then 3.5<x<5. “Integrate out the x’s” by computing a dx integral: fY(0.25)=∫53.5(2/9)dx=(2/9)x|x=5x=3.5=1/3 This agrees with the result of plugging in y=2.5 in the expression in the previous part (with c=2/9).
- To find the marginal pdf of Y we repeat the calculation from the previous part for each possible value of y. Fix a 1<y<4, and replace 2.5 in the previous part with a generic y. The possible values of x corresponding to a given y are y+1<x<2y. “Integrate out the x’s” by computing a dx integral. Within the dx integral, y is treated like a constant. fY(y)=∫2yy+1(2/9)dx=(2/9)x|x=2yx=y+1=(2/9)(y−1),1<y<4
- If we have already derived the marginal pdf of Y, we can treat this just like a one variable problem. Integrate the pdf of Y over (2.5,4) P(Y>2.5)=∫42.5(2/9)(y−1)dy=(1/9)(y−1)2|y=4y=2.5=0.25
- We see that the density is 0 at x=2 and x=8 and has a triangular shape with a peak at x=5. If c is the density at x=5, then 1=(1/2)(8−2)c implies c=1/3. We might guess fX(x)={(1/9)(x−2),2<x<5,(1/9)(8−x),5<x<8,0,otherwise. We could also write this as fX(x)=1/3−(1/9)|x−5|,2<x<8.
- We find the marginal pdf of X evaluated at x=4 by “stacking” the density at each pair (4,y) over the possible y values. For discrete variables, the stacking is achieved by summing the joint pmf over the possible y values. For continuous random variables we integrate the joint pdf over the possible y values corresponding to x=4. If x=4 then 2<y<3. “Integrate out the y’s” by computing a dy integral: fX(4)=∫32(2/9)dy=(2/9)y|y=3y=2=2/9≈0.222 This agrees with the result of plugging in x=4 in the expression in the previous part.
- This is similar to the previous part, but for x=6.5, we hit the upper bound of 4 on y values; that is, the range isn’t just from x/2 to x−1, but rather x/2 to 4. If x=6.5 then 3.25<y<4. “Integrate out the y’s” by computing a dy integral: fX(6.5)=∫43.25(2/9)dy=(2/9)y|y=4y=3.25=1/6≈0.167 This agrees with the result of plugging in x=6.5 in the expression in two parts ago.
- For 2<x<5 the bounds on possible y values are x/2 to x−1 fX(x)=∫x−1x/2(2/9)dy=(2/9)y|y=x−1y=x/2=(1/9)(x−2),2<x<5. For 5<x<8 the bounds on possible y values are x/2 to 4 fX(x)=∫4x/2(2/9)dy=(2/9)y|y=4y=x/2=(1/9)(8−x),5<x<8. So the calculus matches what we did a few parts ago.
- If we have already derived the marginal pdf of X, we can treat this just like a one variable problem. Integrate the pdf of X over (2,4) P(X<4)=∫42(1/9)(x−2)dx=(1/18)(x−2)2|x=4x=2=2/9≈0.222
- If we have already derived the marginal pdf of X, we can treat this just like a one variable problem. It’s easiest to use the complement rule and integrate the pdf of X over (6.5,8) P(X<6.5)=1−P(X>6.5)=1−∫86.5(1/9)(8−x)dx=1−(−1/18)(8−x)2|x=8x=6.5=1−1/8=7/8=0.875
Definition 4.4 The joint probability density function (pdf) of two continuous random variables (X,Y) defined on a probability space with probability measure P is the function fX,Y:R2↦[0,∞) which satisfies, for any S⊆R2, P[(X,Y)∈S]=∬
A joint pdf is a surface with height f_{X,Y}(x,y) at (x, y). The probability that the (X,Y) pair of random variables lies in the region A is the volume under the pdf surface over the region A
A joint pdf is a probability distribution on (x, y) pairs. The height of the density surface at a particular (x,y) pair is related to the probability that (X, Y) takes a value “close to68” (x, y) \textrm{P}(x-\epsilon/2<X < x+\epsilon/2,\; y-\epsilon/2<Y < y+\epsilon/2) = \epsilon^2 f_{X, Y}(x, y) \qquad \text{for small $\epsilon$}
A valid joint pdf must satisfy \begin{align*} f_{X,Y}(x,y) & \ge 0\\ \int_{-\infty}^\infty\int_{-\infty}^\infty f_{X,Y}(x,y)\, dx dy & = 1 \end{align*} Given a specific pdf, the generic bounds (-\infty, \infty)\times(-\infty, \infty) in the above integral should be replaced by the range of possible pairs of values, that is, those (x, y) pairs for which f_{X, Y}(x, y)>0.
The marginal pdfs can be obtained from the joint pdf by the law of total probability. In the discrete case, to find the marginal probability that X is equal to x, sum the joint pmf p_{X, Y}(x, y) over all possible y values. The continuous analog is to integrate the joint pdf f_{X,Y}(x,y) over all possible y values to find the marginal density of X at x. This can be thought of as “stacking” or “collapsing” the joint pdf.
\begin{align*} f_X(x) & = \int_{-\infty}^\infty f_{X,Y}(x,y) dy & & \text{a function of $x$ only} \\ f_Y(y) & = \int_{-\infty}^\infty f_{X,Y}(x,y) dx & & \text{a function of $y$ only} \end{align*}
The marginal distribution of X is a distribution on x values only. For example, the pdf of X is a function of x only (and not y). (Similarly the pdf of Y is a function of y only and not x.)
In general the marginal distributions do not determine the joint distribution, unless the RVs are independent. In terms of a table: you can get the totals from the interior cells, but in general you can’t get the interior cells from the totals.
The same is not true for discrete random variables. For example, if X is the number of heads in three flips of a fair coin then \textrm{P}(X<1)= \textrm{P}(X=0)=1/8 but \textrm{P}(X \le 1)=\textrm{P}(X=0)+\textrm{P}(X=1) = 4/8.↩︎
Reporting so many decimal places is unnecessary, and provides a false sense of precision. All of these idealized mathematical models are at best approximately true in practice. However, we provide the extra decimal places here to compare the approximation with the “exact” calculation.↩︎
This is true because an integral is really just a sum of the areas of many rectangles with narrow bases. Over a small interval of values surrounding x, the density shouldn’t change that much, so we can estimate the area under the curve by the area of the rectangle with height f_X(x) and base each equal to the length of the small interval of interest.↩︎
You can have different precisions for X and Y, e.g., \epsilon_x, \epsilon_y, but using one \epsilon makes the notation a little simpler.↩︎