chapter5
chapter5
Chapter 5
n
tio
5.1 General Concepts about Continuous Random
Variables
a
Definition 5.1.1: A real random variable X is a function
in
X : Ω −→ X(Ω) ⊂ R
ω 7−→ X(ω)
rd
The random variable X is said to be continuous if the set of values that it can take
belongs to a real interval. Let X(Ω) = [a, b].
Remark 1: When X is a continuous random variable, P (X = x) = 0 for all
o
x ∈ X(Ω). Therefore, we cannot define the probability law as in the discrete case.
Instead, it is defined by its cumulative distribution function or its probability den-
Co
sity function.
FX : R −→ [0, 1]
x 7−→ FX (x) = P (X ≤ x)
Chapter 5 Page 1
USTHB : 1st ING INFO 2023/2024 Probability and Statistics
dFX (x)
f (x) =
dx
Where f (x) is called the probability density function of the random variable X.
Remark 2.
- The cumulative distribution function FX (·) of a continuous random variable sat-
isfies the properties stated for the cumulative distribution function of a discrete
random variable, and it is continuous over R.
n
- In the continuous case, P (X ≤ x) = P (X < x) and P (X ≥ x) = P (X > x), since
P (X = x) = 0 for all x ∈ R.
tio
Rx
- We have P (x1 ≤ X ≤ x2 ) = x12 f (t) dt = FX (x2 ) − FX (x1 ).
Definition 5.2.2: Let fX (·) be a real-valued function.
fX : R −→ R+
a x 7−→ fX (x)
in
f (x) is the probability density function of the random variable X, if and only if:
Rx
1. F (x) = −∞ f (t) dt
2. f (x) > 0 if x ∈ X(Ω), and f (x) = 0 if x ∈/ X(Ω)
rd
R +∞
3. −∞ f (t) dt = 1
o
5.4 Exercise
A continuous random variable has the probability density function given by:
x + k for x ∈ [−1, 1]
f (x) = 2
0 otherwise
Chapter 5 Page 2
USTHB : 1st ING INFO 2023/2024 Probability and Statistics
1. Determine the value of k for which f (x) is indeed a probability density function.
Answer:
R +∞ R1 R1
Find k such that −∞ f (x) dx = 1 ⇔ −1 f (x) dx = 1 ⇔ −1 x2 + k dx = 1
⇒ k = 12 .
2. Determine the cumulative distribution function of X.
Answer:
Rx
The cumulative distribution function: F (x) = −∞ f (t) dt, ∀x ∈ R
Rx
- If x < −1 then F (x) = −∞ 0 dt = 0,
- If −1 ≤ x < 1 then: 2
Rx R −1 Rx Rx
F (x) = −∞ f (t) dt = −∞ f (t) dt + −1 f (t) dt = −1 12 (t + 1) dt = 12 x2 + x + 12
n
- If x ≥ 1 then:
R −1
tio
Rx R1 Rx R1
F (x) = −∞ f (t) dt = −∞ f (t) dt + −1 f (t) dt + 1 f (t) dt = −1 21 (t + 1) dt = 1
In summary, we have:
0 if x < −1
a
FX (x) =
1
2
x2
2
+x+ 1
2
if − 1 ≤ x < 1
in
1 if x ≥ 1
R +∞ R +1
(a) E(X) = −∞ xf (x) dx = −1 x 12 (x + 1) dx = 13 .
R +∞
Co
Chapter 5 Page 3