ENGDAT1 Module3 PDF
ENGDAT1 Module3 PDF
ENGDAT1 Module3 PDF
MODULE 3
CONCEPT AND DEFINITION
Random Variable
For a given sample space S of some experiment, a random variable
is any rule that associates a number with each outcome in S .
The elements of S can be listed in table form. To denote the elements of the sample
space more conveniently, we will arbitrarily designate the element by the number of
heads in that particular element. If we let x = number of heads, we come up with the
following table:
Table 1.
0 T,T
1 T,H
1 H,T
2 H,H
CONCEPT AND DEFINITION
We are usually interested in the probabilities associated to each of the events. Since
table 1 consists of all the possible events, each of the elements will have a probability of
¼. We can compress table 1 and rewrite it with the inclusion of the corresponding
probability.
Table 2
Probability Distribution of x, Number of Heads
x Probability f(x)
0 ¼
1 ½
2 ¼
PROBABILITY DISTRIBUTION
(13)(22)(31) 4 3/36
(14)(23)(32)(41) 5 4/36
(15)(24)(33)(42)(51) 6 5/36
(16)(25)(34)(43)(52)(61) 7 6/36
(26)(35)(44)(53)(62) 8 5/36
(36)(45)(54)(63) 9 4/36
(46)(55)(64) 10 3/36
(56)(65) 11 2/36
(66) 12 1/36
TYPES OF RANDOM VARIABLES
(c) (c) the number of balls that can be drawn from an urn containing
red balls and blue balls.
1. f(x) ³ 0. This implies that for all values of x, f(x) cannot be negative. Since f(x)
represents the probability, the probability cannot be negative.
2. å f(x) = 1. The sum of the separate values of x over all x values must equal to 1. The
distribution exhausts all possible cases; hence, the sum of their probabilities must be 1.
3. P(x =X) = f(x). The probability that X assumes a value x would be equal to the value of
the function when X = x. This implies that f(x) is the probability. In a continuous
distribution, this is not the case.
DISCRETE PROBABILITY DISTRIBUTIONS
"6 − x
$
f(x) = # 15 if x= 1,2,3,4,5
$0
% otherwise
Example 2:
a. ∑ f(x) = 1
6 −1 6 − 2 6 − 3 6 − 4 6 − 5
= + + + + = 1 (yes).
15 15 15 15 15
6 −1 1
b. i) P(x=1) = f(1) = =
15 3
ii. P(x ≥ 2)=P(x=2)+P(x=3)+P(x=4)+P(x=5)
=f(2)+f(3)+f(4)+f(5)
4 3 2 1 2
= + + + =
15 15 15 15 3
DISCRETE PROBABILITY DISTRIBUTIONS
Example 3:
Since ∑ f(x) = 1
K(1)+K(2)+K(3)+K(4)+K(5) = 1
K =1
1
K =
15
x
f(x) =
15
DISCRETE PROBABILITY DISTRIBUTIONS
1. P(x £ 4)
2. P(x < 6)
3. P(x > 7)
4. P(x ³ 3)
5. P(4 £ x £ 8)
7. P(x = 5)
Review Question 1
a. 1/6
b. 1/3
c. 1/2
d. 5/6
e. 1.0
Review Question 3
Two dice are rolled and the sum of the face values is six? What is
the probability that at least one of the dice came up a 3?
a. 1/5
b. 2/3
c. 1/2
d. 5/6
e. 1.0
CONTINUOUS PROBABILITY DISTRIBUTION
4. P(X = x) ≠ f(x)
MATHEMATICAL EXPECTATION
Ê Mathematical Expectation – the expected value or simply the
expectation of the random variable x. It is basic concept in the
formulation of summary measures for probability distributions. It is
generally employed in the areas such as:
Ê Insurance industry
Ê Operations research
Ê Management sciences
Ê Systems analysis
Ê economics
MATHEMATICAL EXPECTATION
Ê Let us consider the coin tossing example. The probability distribution was
derived as:
x 0 1 2
f(x) 1/4 1/2 1/4
, - ./- / .,(1)
!"#$ℎ&"' ()"*($" = = 1 ℎ"('
1-
Ê Hence,
E(x) = 1 head
MATHEMATICAL EXPECTATION
E ( X ) = å xf ( x) if X is discrete
x
¥
= ò xf ( x)dx if X is continuous
-¥
EXAMPLE 1
1. Use the data below to find out the expected number of the number of
credit cards that a student will possess.
x = # credit cards
E ( X ) = x1 p1 + x2 p2 + ... + xn pn
x P(x =X)
= 0(.08) + 1(.28) + 2(.38) + 3(.16)
0 0.08
1 0.28 + 4(.06) + 5(.03) + 6(.01)
2 0.38
3 0.16 =1.97
4 0.06 About 2 credit cards
5 0.03
6 0.01
EXAMPLE 2
A committee of size 5 is to be selected at random from 3 chemists and 5 physicists.
Find the probability distribution for the number of chemists on the committee?
In this game the gambler will, on average, loss $1 per toss of the three coins.
Rules of the Expected Value
E (aX + b) = a × E ( X ) + b
This leads to the following:
1. For any constant a,
E (aX ) = a × E ( X ).
2 2
(or sX or s ), is
V ( X ) = å ( x - µ ) × p( x) = E[( X - µ ) ]
2 2
Value 12 18 20 22 24 25
Frequency 1 2 4 1 2 3
Probability .08 .15 .31 .08 .15 .23
µ = 21
2 2 2
V ( X ) = p1 ( x1 - µ ) + p2 ( x2 - µ ) + ... + pn ( xn - µ )
s = V (X )
The Variance and Standard Deviation
2 2 2
V ( X ) = .08 (12 - 21) + .15 (18 - 21) + .31( 20 - 21)
2 2 2
+.08 ( 22 - 21) + .15 ( 24 - 21) + .23 ( 25 - 21)
V ( X ) = 13.25
s = V (X ) = 13.25 » 3.64
Shortcut Formula for Variance
é ù
V ( X ) = s = ê å x × p ( x) ú - µ
2 2 2
ëD û
( ) - éë E ( X )ùû
=E X 2 2
Rules of Variance
2 2 2
V (aX + b) = s aX +b =a ×s X
s aX +b = a × s X
and
2 2 2
1. s aX = a ×s X , s aX = a ×s X
2 2
2. s X +b = s X
END OF MODULE 3