Lecture 4.PDF
Lecture 4.PDF
Lecture 4
lec 4 1
GOALS of lecture:
lec 4 3
Random Variables
Random variable: a quantity resulting from an experiment
that, by chance, can assume different values.
4
Types of Random Variables
➢Discrete Random Variables can assume only certain
separated values. It is usually the result of counting something
Examples: The number of students in a class, children in a
family,…..
➢Continuous Random Variables can assume an infinite
number of values within a given range. It is usually the result
of some type of measurement
Examples: The distance to travel, time, the weight……
5
Features of a Discrete Distribution
6
Example 1: Three tables listed below show "random variables" and
their "probabilities." However, only one of these is a probability
distribution.
a. Which is it?
X P(X) X P(X) X P(X)
5 0.3 5 0.1 5 0.5
10 1.2 10 0.3 10 0.3
15 0.2 15 0.2 15 -0.2
20 0.4 20 0.4 20 0.4
b.Using the correct probability distribution, find the probability that x is:
(1) Exactly 15.
(2) More than 5.
(3) More than or equal to 15.
(4) No more than 10.
(5) More than 20.
lec 4 7
Solution:
A- the actual probability distribution is the second
table
B-
1- p(x=15)=0.2
2- p(x<5)= 0.3+0.2+0.4=0.9
3- p(x ≥ 15) = 0.2 + 0.4 = 0.6
4- p(x≤ 10) = 0.1 + 0.3 = 0.4
5- p(x<20)= p (∅) = 0
lec 4 8
The Mean, Variance,
and Standard Deviation
of a Probability Distribution
MEAN of a probability distribution: The mean is a typical value used to represent the central
location of a probability distribution
𝝁 = σ 𝑿. 𝑷(𝑿)
𝝈𝟐 =σ 𝑿𝟐 . 𝑷(𝑿) - 𝝁𝟐
𝝁 = σ 𝑿𝑷(𝑿) =1.1
2- Variance :
3- Standard deviation :
𝝈= 𝟎. 𝟖𝟗 = 0.94
lec 4 11
Example 3: Suppose that the probability function of a random variable
x is :
X 0 1 2 3
lec 4 13
Example 4: suppose that the probability function of random
variable x is :
X 0 1 2 3
P(X) 0.1 0.2 K 0.4
find : a) K b) p (x ≤ 2)
c) p (x > 3) d) p (x = 3)
Solution:
a) Ʃ p (x) = 1
P (x = 0) + p (x = 1) + p (x = 2) + p (x = 3) = 1
0.1 + 0.2 + k + 0.4 = 1
0.7 + k = 1 K = 0.3
lec 4 14
b) P (x ≤ 2) = p (x = 2) + p ( x = 1) + p ( x = 0)
= 0.3 + 0.2 + 0.1
= 0.6
c) P ( x > 3) = p (ϕ) = 0
d) P ( x = 3) = 0.4
lec 4 15
Assignment
◼ b. a number 3 to 6 is obtained?
lec 4 16
3- suppose that the probability function of random variable x is :
X 0 1 2 3
P(X) 0.2 K 2K 0.5
find : a) k b) p (x ≤ 1)
c) p (x ≤ 3) d) p (x < 0)
e) Mean f) variance
lec 4 17