Académique Documents
Professionnel Documents
Culture Documents
M. A. BOATENG (MPHIL)
PROBABILITY
RANDOM EXPERIMENTS, SAMPLE SPACE AND EVENTS
Experiment: An experiment is any process that generates well-defined outcomes.
There are two types of experiments, namely deterministic and random (or chance)
experiment.
Random experiments are experiments for which outcomes are uncertain. For
example, if we record the number of road traffic accidents in Ghana everyday, we
will find a large number of variations in the number obtained each day.
On some days, many accidents will be recorded while on other days, few
accidents will be recorded.
We cannot therefore tell in advance the number of road traffic accidents in
Ghana on a given day.
M. A. BOATENG (MPHIL)
OTHER EXAMPLES:
Picking a ball from a box containing 20 numbered balls, is a random experiment,
since the process can lead to one of the 20 possible outcomes.
Consider the experiment of rolling a six-sided die and observing the number
which appears on the uppermost face of the die. The result can be any of the
numbers 1, 2, 3, 4, 5,6. This is a random experiment since the outcome is
uncertain.
If we measure the distance between two points A and B, many times, under the
same conditions, we expect to have the same result. This is therefore NOT a
random experiment but a deterministic experiment.
ACTIVITY: Give some examples of random experiments.
M. A. BOATENG (MPHIL)
SAMPLE SPACE
The set of all possible outcomes of an experiment is called the Sample Space of
the experiment, since it consists of all happenings when a sample is taken. A
sample space is usually denoted by the letter .
Each outcome in a sample space is called an element or a member of the sample
space, or a sample point.
Example:
Consider the experiment of rolling a red die and a green die and observing the
number which appears on the uppermost face of each die. The sample space of the
experiment consists of an array of 36 outcomes.
Activity: Obtain the sample space of the above
M. A. BOATENG (MPHIL)
OTHER EXAMPLES
A toss of a die and coin simultaneously gives the result,
= 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6
Where H is for a head appearing and T for a tail appearing on the coin whereas
1,2,6 are for the appearance on the die.
Drawing a card from a packet of playing cards has a sample space with 52 cards,
made up 13 Heart, 13 Spade, 13 Diamond and 13 Club cards
The results of two and three tosses of a coin give the sample spaces:
S = {HH, HT, TH, TT}
S = {HHH, HHT, HTH, HTT, THH, THT, TTH, TTT}
M. A. BOATENG (MPHIL)
If the elements (points) of a sample space are intervals on the number line, the
sample space is said to be a continuous sample space.
M. A. BOATENG (MPHIL)
EVENT
An event is a subset of a sample space. An event can also be defined as a
collection of one or more outcomes from an experiment It is denoted by a capital
letter. For example we may have:
The event of observing exactly two heads in three tosses of a coin,
A = {HHT, HTH, THH}
The event of obtaining a total score of 8 on two tosses of a die,
B = {(2,6), (3,5), (4,4), (5,3), (6,2)}
A newly married couple planning to have three children. The event of the family
having two girls is D = {BGG, GBG, GGB}
Activity: Obtain the results above explicitly.
M. A. BOATENG (MPHIL)
OPERATIONS ON EVENTS
Since an event is a subset of a sample space, we can combine events to form new
events using various set operations.
The sample space is considered as the universal set. If A and B are two events
defined on the sample space, then:
denotes the event A or B or both. Thus, the event occurs if either
A occurs or B occurs or both A and B occur.
denotes the event both A and B. Thus, the event occurs if both A
and B occur.
( ) denotes the event which occurs if and only if A does not occur.
M. A. BOATENG (MPHIL)
Example:
Let P be the event that an individual selected at random from an RTEP class smokes
cigarettes.
Let Q be the event that an individual selected from the same class drinks alcoholic
beverages.
Then is the event that an individual selected either smokes cigarettes or
drinks alcoholic beverages or smokes cigarettes and drinks alcoholic beverages.
M. A. BOATENG (MPHIL)
10
EXHAUSTIVE EVENTS
Let A, B and D be mutually exclusive events of the sample space (S), such that they
partition the sample space ( = ). Then A, B and D are said to be
exhaustive events.
INDEPENDENT EVENTS
Two or more events are said to be independent if the probability of occurrence of
one does not depend on the occurrence or non-occurrence of the other (s).
Mathematically, two events A and B are independent if and only if :
= . ()
M. A. BOATENG (MPHIL)
11
M. A. BOATENG (MPHIL)
12
M. A. BOATENG (MPHIL)
13
M. A. BOATENG (MPHIL)
14
EXAMPLE
In studying the peak demand at a power plant, an electrical engineer observed that
on 85 of 120 days randomly selected from past records, the peak demand occurred
between 6:30 pm and 8:00pm. The probability of this occurring is :
85
120
M. A. BOATENG (MPHIL)
15
M. A. BOATENG (MPHIL)
16
Consider the problem of a couple planning to have three children, assuming each
child born is equally likely to be a boy(B) or a girl(G).
(i)
List all the possible outcomes in this experiment.
(ii)
What is the probability of the couple having exactly two girls?
SOLUTION:
Let B=event of getting a boy; G=event of getting a girl
(i) Sample space = {, , , , , , , }
(ii) Let A be the event of the couple having exactly two girls. Then,
= , ,
Then =
()
()
3
8
M. A. BOATENG (MPHIL)
17
M. A. BOATENG (MPHIL)
18
M. A. BOATENG (MPHIL)
19
M. A. BOATENG (MPHIL)
20
CONDITIONAL PROBABILITY
If A and B are any two events defines on the same sample space, S, the conditional
probability of A given B is defined as:
( )
=
,
>0
()
Example:
Let A and B be events such that; P(A)=0.6, P(B)=0.5 and = 0.8. Find the
probability of A given B.
SOLUTION:
= + = 0.6 + 0.5 0.8 = 0.3
0.3
=
= 0.6
0.5
Therefore, the probability of A given B is 0.6.
M. A. BOATENG (MPHIL)
21
M. A. BOATENG (MPHIL)
22
EXAMPLE:
Suppose we have a fuse box containing 20 fuses, 5 of which are defective. If 2 fuses
are selected at random and removed from the box in succession without replacing
the first, what is the probability that both fuses are defective?
SOLUTION:
Let A denote the event that the first fuse is defective and B the event that the
second fuse is defective.
5
.
20
M. A. BOATENG (MPHIL)
5
20
4
19
1
19
23
BAYES THEOREM
THE TOTAL PROBABILITY RULE
Suppose the sample space, S, is partitioned mutually exclusive events, 1 , 2 , , .
Let B be any other event in S intersecting with all n events. Then we have;
= = A1 A2 An
= (A1 ) A2 A3 (An )
Where Ai , for = 1,2,3, , are also mutually exclusive events, then
P = A1 + A2 + A3 + + (An )
= 1 . 1 + 2 . 2 + 3 . 3 + + .
() =
.
=1
24
EXAMPLE:
In a certain assembly plant, three machines A, B and C make 30%, 45% and 25%
respectively of the products. It is known from past experience that 2% of the
products made by the machine A, 3% of the products made by the machine B and
2% of the products made by the machine C are defective. If a finished product is
selected at random, what is the probability that it is defective?
SOLUTION:
Let 1 denote the event of the product being made by A
Let 2 denote the event of the product being made by B
Let 3 denote the event of the product being made by C
Let denote the event of the product being defective
M. A. BOATENG (MPHIL)
25
= 1 . 1 + 2 . 2 + 3 . 3
= 0.3 0.02 + 0.45 0.03 + 0.25 0.02
= 0.0245
The probability that a finished product selected at random is defective is 0.0245.
M. A. BOATENG (MPHIL)
26
BAYES THEOREM
Let 1 , 2 , , be a collection of events which partition a sample space S. Let B
be an event defined on S such that () 0. Then for any of the events , =
1,2, ,
=
=1 .
= 1,2, ,
Example:
A consulting firm rents cars from three agencies: 30% from agency A, 20% from
agency B and 50% from agency C. 15% of the cars from A, 10% of the cars from B
and 6% of the cars from C have bad tyres. If a car rented by the firm has bad tyres,
find the probability that it came from agency C.
M. A. BOATENG (MPHIL)
27
0.5 0.06
=
= 0.3158
0.3 0.15 + 0.2 0.1 + (0.5 0.06)
M. A. BOATENG (MPHIL)
28
RANDOM VARIABLE
A random variable is a function that assigns real number to outcomes of a
random experiment.
A random variable is denoted by an uppercase letter, such as X, and a lower case
letter such as x is used to represent a possible value of X. The possible values of a
random variable X are referred to as the range of X.
Example:
In a study on operation in a supermarket, the random experiment here might
involve the random selection of a customer leaving the store. The potential
variables could be the number of items bought (x) and the time spent (y). It should
be noted that until a customer is selected there is uncertainty about the values of x
and y.
Activity: Give other examples of random variables.
M. A. BOATENG (MPHIL)
29
Example:
the number of errors a machine makes in an assembly operation
the number of customers waiting to be served at a supermarket
the number of accidents at a particular plant for a given period
the number errors detected in accounting records etc.
M. A. BOATENG (MPHIL)
30
M. A. BOATENG (MPHIL)
31
PROBABILITY DISTRIBUTIONS
Probability distributions provide a means of determining the probability of different
values of the random variable occurring in an experiment. They are used in
statistics to describe population data.
The probability distribution of a random variable X, denoted p(x) or f(x) is a
description of the set of possible values of X along with their probabilities.
TYPES OF PROBABILITY DISTRIBUTIONS
A probability distribution is either discrete or continuous.
DISCRETE DISTRIBUTIONS: The probability distribution for a discrete random
variable X, is a formula, table or graph that specifies the probability associated with
each possible value of X.
M. A. BOATENG (MPHIL)
32
X
pf (x)
For example:
A study of 300 families in a community conducted, noting the number of children X
and its occurrence f, in each family results in the following distribution;
X
54
114
72
42
12
p(x)
0.18
0.38
0.24
0.14
0.04
0.02
M. A. BOATENG (MPHIL)
33
EXAMPLE:
Determine whether each of the following can serve as pmfs of a discrete random
variable:
1
(a) = 2 2 ,
(b) =
(c) =
1
+
10
1 2
,
20
1 ,
= 1,2,3,4
= 0,1,2,3,4
= 0,1,2,3,4
SOLUTION:
(a) NOT a pmf
(b) Not Pmf
(c) NOT a pmf
M. A. BOATENG (MPHIL)
34
= 1
M. A. BOATENG (MPHIL)
if = ?
35
EXAMPLE:
Show that
1 2
0<<3
= 9 ,
0,
SOLUTION:
It is clear that () 0 for all x
1 2
=
= 1
0 9
Hence, f(x) is the p.d.f of a continuous random variable.
M. A. BOATENG (MPHIL)
36
There are many problems where we may wish to compute the probability that the
observed value of a random variable X will be less than or equal to some real
number x.
For example;
what are the chances that a certain candidate will get no more than 30% of votes
in an election?
What are the chances that the prices of gold will remain at or below $800 per
ounce?
We define () to be the cumulative distribution function of X.
M. A. BOATENG (MPHIL)
37
Definition:
The cumulative distribution function () of a discrete random variable X with
probability mass function p(x) is defined by:
= =
( )
Definition:
The cumulative distribution function () of a continuous random variable X with
probability density function f(x) is defined by:
= =
()
and 1 2 = 2 (1 )
M. A. BOATENG (MPHIL)
38
In each case, F(x) is a monotonic increasing function with the following properties;
() () whenever
The limit of () to the left is 0 and to the right is 1. ie.
lim = 0 lim = 1
0 () 1
M. A. BOATENG (MPHIL)
39
ASSIGNMENT
Construct probability distributions for the following random variables:
(i) The number of heads when four fair coins are tossed.
(ii) The difference between the results of two fair dice rolled together.
M. A. BOATENG (MPHIL)
40
EXAMPLES
The number of telephone calls received in an office between 12:00noon and
1:00pm has the probability function:
x
p(x)
0.05
0.20
0.25
0.20
0.10
0.15
0.05
M. A. BOATENG (MPHIL)
41
M. A. BOATENG (MPHIL)
42
p(x)
1
4
1
8
1
2
1
8
= =
()
=0
1
F 0 =p 0 =
4
M. A. BOATENG (MPHIL)
43
1 1 3
1 = 0 + 1 = + =
4 8 8
1 1 1 7
2 = 0 + 1 + 2 = + + =
4 8 2 8
1 1 1 1
3 = 0 + 1 + 2 + 3 = + + + =1
4 8 2 8
Hence the cumulative distribution is:
X
F(X)
1
4
3
8
M. A. BOATENG (MPHIL)
2
7
8
3
1
44
0 = 0
1 2
=
=
0 +
1 3
M. A. BOATENG (MPHIL)
45
1 3
9
If x 2, then
1 3
= ( +1)
9
1 2
=
0 +
+
1 3
1 3
=0+
9
0
2
+0=1
1
Therefore,
0,
1 3
=
( +1) ,
9
1,
1
1 < < 2
2
M. A. BOATENG (MPHIL)
46
M. A. BOATENG (MPHIL)
47
= =
= =
()
if x is discrete
if x is continuous and
2 () =
(
2 2 if x is discrete
M. A. BOATENG (MPHIL)
48
2 2
For , if x is continuous.
The standard deviation of x is the square root of x. ie,
= ()
M. A. BOATENG (MPHIL)
49
(i)
(ii)
1
(or close to it) if x is discrete.
2
1
= , if x is continuous and is such
2
that
M. A. BOATENG (MPHIL)
50
QUESTIONS:
Compute the expected value and standard deviation of the random variable X with
the following distributions;
1.
x
p(x)
0.1
0.3
0.2
0.3
0.1
Ans:mean = 0.5
Variance = 0.05, = 0.05 = 0.224
M. A. BOATENG (MPHIL)
51
Where = 1 and
= 0,1,2 ,
!
!()!
The distribution is called the binomial distribution because for = 0,1,2 , , the
values of the probabilities are the successive terms of the binomial expansion of
( + ) .
M. A. BOATENG (MPHIL)
52
The following are conditions under which the binomial distribution arises:
The number of observations ,n, is fixed (n Bernoulli trials)
Each observation is independent.
Each observation represents one of two outcomes (success or failure).
The probability of success, p, is the same for each outcome.
If these conditions are met, then X has a binomial distribution with parameters n
and p, abbreviated B(n,p).
Example: The probability that a certain kind of component will survive a given
3
shock test is . Find the probability that exactly two of the next four components
4
tested survived the shock.
M. A. BOATENG (MPHIL)
53
SOLUTION:
=4
=
3
4
=2
Thus,
=2 =
4
2
3 2 1 2
4
4
4!
2!2!
9
16
1
16
27
128
Assignment 2: In a certain hospital, 53% of all recorded births are boys. If six babies
born in the hospital are selected at random, find the probability that:
(a) Two of the babies selected are boys.
(b) More than four of the babies selected are boys.
M. A. BOATENG (MPHIL)
54
Example: A resistor is known to be 80% effective in its usage. If the resistor is used
in 50 appliances, how many of the appliances are expected to be functional ?
SOLUTION:
= 50 ; = 0.8;
= = 50 0.8 = 40
40 out of the appliances will be functional.
M. A. BOATENG (MPHIL)
55
ACTIVITY
1. A fair coin is tossed 5 times. Find the probability of obtaining;
i.
Exactly 2 heads
M. A. BOATENG (MPHIL)
56
: .
: .
: .
M. A. BOATENG (MPHIL)
57
M. A. BOATENG (MPHIL)
58
= 0,1,2,
M. A. BOATENG (MPHIL)
59
Examples:
Number of patients arriving at a clinic in a given time interval
Number of admissions of a hospital in a given time interval
Number of incoming telephone calls within a fixed interval at
certain switch boards.
ACTIVITY: Give examples of events that may be modeled using the
Poisson distribution.
M. A. BOATENG (MPHIL)
60
Example:
In a certain country, the average number of deaths from a certain
disease has been 10 per year. If the number of deaths from this
disease follows the Poisson distribution, find the probability of;
(a) At least two deaths from the disease in 3 months.
(b) At most one death from the disease in 2 months.
SOLUTION:
Let X be the number of deaths from the disease in 3 months. On the
3
average, there are 10 = 2.5 deaths from the disease in 3
12
months.
M. A. BOATENG (MPHIL)
61
M. A. BOATENG (MPHIL)
62
Thus,
= =
5
3
5
3
= 0,1,2,3,
1 = =0 + =1
5
5 5 8 5
+ 3= 3
3
3
= 0.5037
M. A. BOATENG (MPHIL)
63
= =
Assignment: Prove that the above.
Theorem (The distribution of the sum of independent Poisson
random variables)
Let 1 , 2 , , be independent Poisson random variables with
means 1 , 2 , , , respectively. Then Y = 1 + 2 , + + has
the Poisson distribution with mean =1 .
M. A. BOATENG (MPHIL)
64
M. A. BOATENG (MPHIL)
65
Theorem:
Let X be a random variable with parameters n and p. If n
approaches and p approaches 0 in such a way that np remains
constant at some value > 0, then:
lim = = lim (; , )
= 0,1,2,
!
Example:
Suppose that on the average one person in 1000 makes a numerical
error in preparing his or her income tax return. If 8000 forms are
selected at random and examined, find the probability that less
than 7 of the forms contain an error.
M. A. BOATENG (MPHIL)
66
=0
M. A. BOATENG (MPHIL)
67
< <
M. A. BOATENG (MPHIL)
68
M. A. BOATENG (MPHIL)
69
(b) 1.74
(c) > 1.86
(d) (1.97 < < 1.32)
M. A. BOATENG (MPHIL)
70
SOLUTION:
(a) To find the area from the standard normal table, first locate 1.5
on the left column of the table and 0.00 from the adjacent
column. That gives 1.5 = .
(b) 1.74 is equal to the area under the shaded region from
to 1.74. Ans:0.9591
(c) > 1.86 = 1 ( 1.86), Ans:0.0314
(d) 1.97 < < 1.32 , Ans:0.8822
M. A. BOATENG (MPHIL)
71
Assignment:
If ~(0,1), find the value of c such that;
> = 0.3974
< < 0.18 = 0.4197
< < = 0.99
M. A. BOATENG (MPHIL)
72
Theorem:
If ~ , 2 , then =
is 0,1
=
where ~ 0,1 . This probability
73
SOLUTION:
<3 =
2
4
<
32
4
1<<4 =
12
4
<
2
4
<
42
4
2
4
>
52
4
= 1 0.7734 = 0.2266
= 2 = 0, WHY??
M. A. BOATENG (MPHIL)
74
M. A. BOATENG (MPHIL)
75