PROSTAT Lecture7 Handouts
PROSTAT Lecture7 Handouts
A random variable is a function that associates a real number with each element in the sample
space.
Example:
Two balls are drawn in succession without replacement from an urn containing 4 red balls and 3
black balls. The possible outcomes and the values of y of the random variable Y, where Y is the number
of red balls, are
Sample space y
RR 2
RB 1
BR 1
BB 0
Dummy variables are used for random numbers that are categorical in nature.
Example: x= {0 1, if, ifthethecomponent
component is d efective
is not defective
The random variable for which 0 and 1 are chosen to describe the two possible values is called a
Bernoulli random variable.
If a sample space contains a finite number of possibilities or an unending sequence with as many
elements as there are whole numbers, it is called a discrete sample space.
Example: tossing a coin three times
If a sample space contains an infinite number of possibilities equal to the number of points on a line
segment, it is called a continuous sample space.
The set of ordered pairs ( x , f (x ))is a probability function, probability mass or probability
distribution of the discrete random variable X, for each possible outcome x,
f (x)≥ 0
∑ f ( x )=1
x
P ( X=x )=f (x )
Example:
A shipment of 20 similar laptop computers to a retail outlet contains 3 that are defective. If a
school makes a random purchase of 2 of these computers, find the probability distribution of the
numbers of defectives.
The function f(x) is a probability density function (pdf) for the continuous random variable X,
defined over the set of real numbers, if
f ( x ) ≥0 , for all x ∈ R
∞
∫ f ( x ) dx=1
−∞
b
P ( a< X < b )=∫ f ( x ) dx
a
Example:
Suppose that the error in the reaction temperature, in ℃ , for a controlled laboratory
experiment is a continuous random variable X having the probability density function
x2
{
f ( x )= 3
,−1< x <2
0 , elsewhere
Verify that f (x) is a density function.
Find P ( 0< X ≤ 1 )
6. A die is constructed so that 1 or 2 occurs twice as often as a 5, which occurs three times as often
as 3, 4 or 6. If the die is tossed once, find the probability that (a) the number is even (b) the
number is a perfect square (c) the number is greater than 5.
7. One bag contains 4 white balls and 3 black balls and a second bag contains 3 white balls and 5
black balls. One ball is drawn in random from the second bag and is replaced unseen in the first
bag. What is the probability that a ball now drawn from the first bag is white?