Ch1 Random Variables and Probability Distributions 0
Ch1 Random Variables and Probability Distributions 0
Example 1:
· Experiment: testing two components. (D=defective,
N=non-defective)
· Sample space: S={DD,DN,ND,NN}
· Let X = number of defective components when two
components are tested.
· Assigned numerical values to the outcomes are:
Sample point Assigned
(Outcome) Numerical Value (x)
DD 2
DN 1
ND 1
NN 0
3) f(x)= P(X=x)
Note:
P(X A ) f (x) P(X x)
all xA all xA
Example 3:
For the previous example, we have:
X 0 1 2 Total
2
f(x)= P(X=x) 4/9 4/9 1/9 f ( x) 1
x 0
P(X<1) = P(X=0)=4/9
P(X1) = P(X=0) + P(X=1) = 4/9+4/9 = 8/9
P(X0.5) = P(X=1) + P(X=2) = 4/9+1/9 = 5/9
P(X>8) = P() = 0
P(X<10) = P(X=0) + P(X=1) + P(X=2) = P(S) = 1
Example 4:
A shipment of 8 similar microcomputers
to a retail outlet contains 3 that are
defective and 5 are non-defective.
If a school makes a random purchase of 2
of these computers, find the probability
distribution of the number of defectives.
Solution:
We need to find the probability distribution of the random
variable: X = the number of defective computers purchased.
Experiment: selecting 2 computers at random out of 8
8
n(S) = 2 equally likely outcomes
The possible values of X are: x=0, 1, 2.
Consider the events:
3 5
(X 0) {0D and 2N} n(X 0)
0 2
3 5
(X 1) {1D and1N} n(X 1)
1 1
3 5
(X 2) {2D and 0N} n(X 2)
2 0
3 5
n (X 0) 0 2 10
f (0) P(X 0)
n (S) 8 28
2
3 5
n (X 1) 1 1 15
f (1) P(X 1)
n (S) 8 28
2
3 5
n (X 2) 2 0 3
f (2) P(X 2)
n (S) 8 28
2
In general, for x=0,1, 2, we have:
3 5
n (X x ) x 2 x
f ( x ) P( X x )
n (S) 8
2
The probability distribution of X is:
x 0 1 2 Total
10 15 3
f(x)= P(X=x) 1.00
28 28 28
3 5
x 2 x ; x 0, 1, 2
f ( x) P( X x) 8 Hypergeometric
2 Distribution
0 ; otherwise
4. P(XA) = f(x) dx
A
1 x d x f
area Pa X b
aera latoT
a f x dx
b
area P X b area P X a
b f x dx f x dx
a
Example 7:
Suppose that the error in the reaction temperature, in oC, for a
controlled laboratory experiment is a continuous random
variable X having the following probability density function:
1 2
x ; 1 x 2
f ( x) 3
0 ; elsewhere
1. Verify that (a) f(x) 0 and (b) f(x) dx 1
2. Find P(0<X1) -
Solution:
X = the error in the reaction
temperature in oC.
X is continuous r. v.
1 2
x ; 1 x 2
f ( x) 3
0 ; elsewhere
1. (a) f(x) 0 because f(x) is a quadratic function.
1 2
1 2
(b) - f(x) dx - 0 dx -1 3 x dx 2 0 dx
2
1 2 1 3 x 2
x dx x
-1
3 9 x 1
1
(8 (1)) 1
9
1 11
2. P(0<X1) = f(x) dx x dx
2
0 03
1 3 x 1
x
9 x 0
1
(1 (0))
9
1
9
The cumulative distribution function (CDF), F(x),
Definition 5:
The cumulative distribution function (CDF), F(x), of a continuous
random variable X with probability density function f(x) is given
by: x
Result:
P(a < X b) = P(X b) P(X a) = F(b) F(a)
Example 8:
in Example 7,
1.Find the CDF
2.Using the CDF, find P(0<X1).
Solution:
1 2
x ; 1 x 2
f ( x) 3
0 ; elsewhere
Exercise
Suppose that the error in the reaction temperature in C 0 for a controlled laboratory
experiment is a continuous random variable X having the probability density function:
a. Show that