Professional Documents
Culture Documents
Chapter Five One Dimensional Random Variables
Chapter Five One Dimensional Random Variables
CHAPTER FIVE
Introduction
The theory of probability distributions is widely used in both natural and social science. For that
matter, the concept of random variables and distributions is the backbone of statistics.
Particularly, the area of inferential statistics is entirely dependent on these concepts. In
estimation and hypotheses testing we extensively use some commonly known distributions.
Definition: Let E be an experiment and S be a sample space associated with the experiment. A
function X that assigning to every element ∈ , a real number, ( ), is called a random
variable. The set of all possible values of the random variable X is called the range space.
Moreover, the domain of the random variable X is S.
Random variables are nothing but real valued functions that transform events to real
numbers. Hence, one can say that random variables serve as links between events and real
numbers. Their significance can be seen from the fact that it is theoretically easier to deal
with numbers than events.
A random variable, X, is a function that assigns a single, but variable, value to each element
of a sample space.
A random variable, X, provides a means of assigning numerical values to experimental
outcomes.
A random variable, X, is a numerical description of the outcomes of the experiment or a
numerical valued function defined on sample space, usually denoted by capital letters.
Page 1 of 12
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
Example 1: Consider the different possible orderings of boy (B) and girl (G) in four sequential
births. There are 2*2*2*2=24 = 16 possibilities, so the sample space is:
(1/2)(1/2)(1/2)(1/2) = 1/16.
Now count the number of girls in each set of four sequential births:
Page 2 of 12
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
The sample space is S= {H, T} where H denotes the outcome ‘Head’ and T denotes the outcome
‘Tail’. So, there are two possible outcomes H or T.
Now, let the random variable X represents the outcome `Head’, then X can take the value 0 or
1.
The sample space of this experiment constitutes six possible outcomes, S = {1, 2, 3, 4, 5, 6}
Let the random variable X denotes the out come ‘A number greater than 2 occurs’. Then the
random variable can assume the values 3, 4, 5 or 6.
Probability Distribution
The probability distribution for a random variable describes how the probabilities are distributed
over the values of the random variable
Page 3 of 12
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
Depending upon the numerical values it can assume, a random variable can be classified into two
major divisions.
Definition: Let X be a random variable. If the number of possible values of X (i.e. Rx) is finite
or countably infinite, then we call X is a discrete random variable. That is, the possible values of
X may be listed as , ,…, , … In the finite case the list terminates and in the countably
infinite case the list continues indefinitely.
Examples:
I. ( ) ≥ 0 for all ,
II. ∑ ( )=1
Page 4 of 12
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
The function p defined above is called the probability function (or point probability
function) of the random variable X. Furthermore, the tabular arrangement of all possible
values of X with their corresponding probability is called probability distribution of X.
Example 1: Construct a probability distribution for the number of heads in tossing of a fair coin
two times.
Let the random variable X denotes the ‘number of heads’. We then use the probability function
P(X) to assign probability to each outcome consequently; the probability distribution is given
below:
0 1 2
( ) 1/4 1/2 1/4
Example 2: The number of mistakes a typist made in ten days of assessment is shown in the
following table.
Number of mistakes 2 3 4 5
Number of days 1 4 3 2
Solution: Let the variable X denotes the number of mistakes the typist committed. Then, we
assign a probability for each of the number of days with respect to the total number of days.
Notes:
Page 5 of 12
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
a) Suppose that the discrete random variable X may assume only a finite number of values,
say , ,…, . If each outcome is equally probable, then we obviously have ( ) =
( )=⋯= ( )= .
a) ( ) ≥ 0 for all
b) ∫ ( ) =1
Page 6 of 12
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
Remark:
a. P(a≤x≤b) represents the area under the graph ( or curve) of the P.d.f of f between a and b.
b. It is a consequence of the above description of X that for any specified value of X, say X0,
x0
We must realize, however, that if we allow X to assume all t he values in so me interval, then the
zero value of the probabilit y does not imply that the event is impossible. That is, zero probabilit y
does not necessarily imply impossibilit y. Hence, in the cont inuous case P(A)=0 does not imply
A=. In view o f this fact, the fo llowing probabilit ies are all the same if X is a cont inuous rando m
variable.
c. If X assumes values only in some interval [a, b], we may simply set f(x) = 0 for all x ∉
[a, b].
Example 1: Let X be a continuous random variable with probabilit y densit y function (P.d.f)
2 x if 0 x 1
f ( x)
0 otherwise
Solution:
a) A funct ion f is a P.d.f iff the fo llowing two condit ions are satisfied
i) f(x)0 and ii) f ( x) dx 1
Page 7 of 12
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
In our case, it is easily observable that f (x) 0 because 2x is a positive number for all x
between 0 and 1.Moreover, for other values of x the given funct ion assumes the value 0.
Hence the first condit ion is satisfied. We can also show the second condit ion as under.
0 1 0 1
a) Evaluate k b) (1 ≤ ≤ 2)
3x 2 if 0 x 1
Example 2: Suppose that X is a continuous random variable wit h P.d.f f ( x )
0 otherwise
P( A B)
P( A / B)
P( B)
The same formulat ion ho lds true for the case of cont inuous random variables except that A and B
take range of values (intervals) rather than discrete values.
Example: The diameter of an electric cable is assumed to be a cont inuous rando m variable, sa y
6 x(1 x) if 0 x 1
X, with P.d.f f ( x)
0 otherwise
1 1 2
Compute P x x
2 3 3
Solution:
Page 8 of 12
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
1/ 2
1 1 2 1 1
11 2
P ( x ) ( x ) P x
2 3 3 3 2
6 x(1 x)dx
P x x 1/ 3
2/3
1/ 2
23 3 1 2 1 2
P x P x 6 x(1 x)dx
3 3 3 3 1/ 3
( ) = ( )
is called the cumulat ive distribution function (Cdf) of the rando m variable X.
Notation: Cumulative distribut ion funct ion is usually denoted by upper case alphabets.
Theorems
1. If X is a discrete rando m variable, then
F ( x ) p( x j ) for all x j x
j
0 if X 0
F (x ) 1 / 2 if 0 x 1
1 if x 1
Graphically,
Page 9 of 12
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
Example 2: Suppose that a rando m variable X assumes the six values 1, 2, 3, 4, 5, 6 with
probabilit y 1/6. Then,
0 if X 1
1 / 6 if 1 x 2
2/6 if 2 x 3
F ( x ) 3/6 if 3 x 4
4/6 if 4x5
5/6 if 5x6
1 if x6
Example 3: Find the cdf of the rando m variable X whose P.d.f is given by
x if 0 x 1
f ( x ) 2 x if 1 x 2
0 Otherwise
Solution:
x 0 1 2
F(x) P( X x ) f (t )dt f (t )dt f (t )dt f (t )dt f (t )dt
0 1 2
Case 2: For 0 x 1
x 0 x x x
t2 x2
F(x) P ( X x) f (t )dt f (t )dt f (t )dt 0 tdt
0 0
2 0
2
Case 3: For 1 x 2
x 0 1 x 1 x
t2
F(x) P ( X x) f (t )dt f (t )dt f (t )dt f (t )dt 0 2 x
0 1
2 0 1
x
1 x2 x2
2x 2x 1
2 2 1 2
Page 10 of 12
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
x 0 1 2 x
F(x) P( X x) f (t )dt f (t )dt f (t )dt f (t )dt f (t )dt
0 1 2
2
2 1 x
t x2 1 3
0 2 x 0dt 2 0 1
2 0 2 1 2 2 2
0 if x 0
2
x if 0 x 1
F ( x) 2 2
2x - x - 1 if 1 x 2
2
1 if x 2
Exercises:
e -x if x 0
1. Find the cdf of a rando m variable X whose P.d.f is given by f ( x)
0 Otherwise
1
2 x if 0 x 1
1 if 1 x 2
f ( x) 2
1 3
- x if 2 x 3
2 2
0 Otherwise
Theorem
d
If X is a continuous rando m variable, then we have f ( x) F ( x) , for all x at which F is
dx
different iable.
On the other hand, if X is a discrete random variable with possible values , , … and suppose
that it is possible to label these values so that < < ⋯ then we have
P ( x j ) F ( x j ) F ( x j 1 ) .
Page 11 of 12
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
Proof
Case 1: X is a continuous rando m variable
x
F ( x) f (t )dt
x
d d
F ( x) f (t )dt f ( x) .......by the fundamenta l theorem of calculus
dx dx
F ( x j ) P ( x x j ) P ( x1 ) P ( x 2 ) ... P ( x j 1 ) P ( x j )
F ( x j 1 ) P ( x x j 1 ) P ( x1 ) P ( x 2 ) ... P( x j 2 ) P ( x j 1 )
F ( x j ) F ( x j 1 ) P ( x j ) f ( x)
0 if x 0
F ( x) -x
1 - e if x 0
Solution:
d
Since X is a continuous random variable f ( x) F ( x) . But then,
dx
d d
dx
0 0 and
dx
1 e x ex
d 0 if x 0
Hence, f ( x) F ( x) - x
dx e if x 0
Page 12 of 12