Continuous Random Variables
Continuous Random Variables
Density is the rate of change of the mass to its length (area or volume), that is kg/m (kg/A or kg/V).
To obtain the total mass we add up the products of the density and the length (area or volume), that
is kg/m × m.
This is also true of the probability Total Mass (Probability) = lim 𝑑(𝑥)d𝑥 = 𝑑(𝑥)d𝑥
→
density function to get the sum of the
probability mass. Since the pdf is a continuous function, instead of adding a discrete number of
products of density and length, we find the limiting sum of the product of the density and a small
change in 𝑥. That is, the integral of the pdf function with respect to 𝑥.
Since the pdf is not a probability, the function can be greater than 1, 𝑑(𝑥) ≥ 0
𝑑(𝑥)d𝑥 = 1
but it still must be non-negative and have an integral over all real
values equal to 1.
Probability density functions are often described using hybrid functions (where the pdf is equal to 0
for part of the domain) to ensure the integral is 0 over all the real values.
1
⎧⎯⎯⎯ (𝑡 − 20) 20 ≤ 𝑡 < 45
⎪625
𝑓(𝑡) = 1
⎨⎯⎯⎯ (70 − 𝑡) 45 ≤ 𝑡 ≤ 70
⎪625
⎩ 0, elsewhere
The value of 𝑎 will need to make the area under 𝑓 between 0 ≤ 𝑥 ≤ 5 equal 1.
5𝑥 𝑥 5(5) (5) 125 125
𝑎𝑥(5 − 𝑥)d𝑥 = 𝑎 (5𝑥 − 𝑥 )d𝑥 = 𝑎 ⎯⎯⎯ − ⎯⎯⎯ = 𝑎 ⎯⎯⎯⎯⎯− ⎯⎯⎯⎯ = 𝑎 ⎯⎯⎯ − ⎯⎯⎯ = 1
2 3 2 3 2 3
375𝑎 − 250𝑎 6
⇒ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯= 1 ⇒ 125𝑎 = 6 ⇒ 𝑎 = ⎯⎯⎯
6 125
Calculating Probabilities using Continuous Random Variables
Pr(𝑋 = 𝑎) = 𝑓(𝑥)d𝑥
Probabilities are determined by the area under the curve of the
probability density function, therefore, the probability of getting
exactly a value (e.g. 5 not 5.0001 or 4.9999) is practically = 𝐹(𝑎) − 𝐹(𝑎) = 0
impossible. Therefore, we say it has a probability of 0.
Since the area under a point is 0, it doesn't matter if the probability is between and including or not
including the value. That is, if the probability uses < or ≤ they will have the same probability.
Be Careful
Always check the domain to see if working out the probability is even possible.
If your answer is > 1 or < 0, then some values included are outside of the domain.
Using a CAS calculator, you can enter a hybrid function and integrate over the whole domain.
𝑦 . ( ) 23 1 .
Pr(3 ≤ 𝑌 ≤ 5) = 𝑓(𝑦)d𝑦 = ⎯⎯⎯d𝑦 + 0.25𝑒 d𝑦 = ⎯⎯⎯− ⎯⎯𝑒 ≈ 0.4155
16 32 2
𝑥 5 1 𝑥 5 1 15
⎯⎯⎯d𝑥 = ⎯⎯ ⇒ ⎯⎯⎯ ⎯⎯⎯ = ⎯⎯ ⇒ ⎯⎯(25 − 𝑎 ) = ⎯⎯⎯ ⇒ 25 − 𝑎 = 15 ⇒ 𝑎 = 10
12 8 12 2 8 2 2
⎯⎯⎯
⇒ 𝑎 = ±√10
⎯⎯⎯ ⎯⎯⎯
Since 1 ≤ 𝑥 ≤ 5, then 𝑎 ≠ −√10. Therefore, 𝑎 = √10.