Theory of Probability
Theory of Probability
8.1 INTRODUCTION.
This aspect of statistics is basically deal with drawing conclusions or inferences from occurrence or
experiment involving uncertainties.
Probability is known as the study of randomness, is purely a game of chance. The exact outcome or
result is not predictable in advance; hence it is void of favourism or biasness. Randomness is most
easily noticed in many repetitions of games of chance- such as rolling dice, shuffled cards. The theory
of probability lies on uncertainty ( haphazard).
Therefore, probability can be express as mathematical expression for the degree of belief, which we
have about something.
8.1.2 Definition of basic terms
(1) Random Experiment:- This means performing an act which when repeated generate a number of
outcomes that is not predictable. For example the outcomes in a throw of a fair dice.
(2) Trial:- This is simply one act performed. Example is a toss of a coin once.
(3) An outcome:- Is one of the possible results in a trial of an experiment.
(4) Sample Space:- This is the collection of all possible outcomes of an experiment. It is usually
represent by S. the number of possible outcome is denoted by n ( S ) .
(5) Sample Point: this is the individual outcomes in a sample space.
(6) Experiment: this is process through which outcomes are generated.
Page 1 of 13
3
element of sample space is 2 =8
so, S= { HHH , HHT , HTH ,THH ,TTH , THT , HTT , TTT } .
n( A)
=P ( all tail ) =
ii. Probability of all tail n (S )
1
=
8.
Note :
1. The range of solution to the probability problem is between 0 and 1. ( 0≤ p ( x )≤1 )
the implication of this is that we do not have negative answers or value greater than 1.
2. For any event, the total probability is equal to 1. This implies that, the addition of the
probability of failure and success is 1. pr ( success ) + pr ( failure )=1 .
8.2 EVENT
This is a subset of a sample space. It is the collection of outcomes, which have certain
characteristics in common. If A is an event, then the number of sample points that belong to event
A is denoted by n ( A) .
II. Mutually Exclusive Events:- Two events A and B are said to be mutually exclusive,
if the occurrence of any one of them ( A ) prevent the occurrence of the others event
( B ) . i.e at least the two events cannot occur together. Hence,
i. P ( A∪B ) =P ( A )+P ( B ) .
Since P ( A∩B ) =0
Page 2 of 13
I. If A and B are independent.
P( A∩B )=P ( A ) ×P ( B . )
P( A∪B )=P ( A ) +P ( B. )−P ( A∩B )
0 . 6=P ( A )+0. 3−0. 3 P ( A )
0 . 6=0. 3+P ( A ) ( 1−0 . 3 )
0 .3=0 .7 P ( A )
0.3
P ( A )= =0 . 4286
0 .7
II. if A and B are mutually exclusive, P ( A∩B ) =0 . Thus,
P ( A∪B ) =P ( A )+P ( B )
P ( A )=P ( A∪B )−P ( B )
=0. 6−0 .3=0 . 3
Page 3 of 13
Also , P( B' )=1−P( B)
P( B' )=1−0 .7=0 . 3
What is the probability that a senator chosen at random is not 45 years old?.
Solution.
f ( 45 )
P ( not 45 years )=
∑f where is the frequency of 45 and
Assignment:
1. Find the probability of scoring a total of 7 points in a single toss of a pair of fair dice.
Ans 1/6
2. One basket contains 4 oranges and 3 lemons, another basket contains 3 oranges and 2
lemons. If one fruit is drawn from each basket, find the probability that:
(a) Both fruits are oranges, Ans 12/ 35
(b) Both fruits are lemons, Ans 6/ 35
3. A bag contains 20 balls each of which is marked 1 to 20, what is the probability that a
ball selected at random is a multiple of 5 or a multiple of 3. Ans = 9/20.
DIAGRAM
Assignment:
(1) A coin is tossed and a die is rolled. Draw a tree diagram and find the sample space.
(2) A coin which has probability of ¾ of head occurring is tossed two times. What is the
probability of result with one tail using tree diagram.
RAMDOM VARIABLES
Page 4 of 13
In most applications of probability theory, we are interested only in a particular aspect of the
outcomes of experiments. For instance, when we roll a pair of dice, we are usually interested
only in the total, but not in the outcome for each die.
In the example, we are interested in numbers, which are associated with the outcome of chance
experiments, namely in the values which are taken on by so-called random variables. Therefore,
if S is a sample space with a probability measure and x is a real valued function defined over the
elements of S , then x is called a random variable. In other words, A random variable is a
function which assigns to every element of a sample space real- value.
There are only two types of random variable
1. Discrete and
2. Continuous random variable.
Example 1. If a coin is tossed 2 times, list the elements of the sample space and the
corresponding probability and the corresponding value of X, If we are interested in number of
heads occurring.
Assignment:-
If a coin is tossed 3 times, list the elements of the sample space and the corresponding
probability and the corresponding value of X, If we are interested in number of heads occurring.
Page 5 of 13
i. p ( x )≥0
n
∑ p ( x i ) =1
ii. i=1 , for all values of x within its domain.
(∑ )
n n 2
V ( x )=E ( x ) −[ E ( x ) ] =∑ x P ( x i ) −
2 2 2
x P ( xi)
i =1 i=1
Class Work
A coin is tossed three times, what is the probability function of the appearance of the heads.
Hence compute expectation and variance of the distribution.
Solution.
From Assignment 2. Compute expectation and variance.
2 2
S/N X P(X) X X P (X) X P ( X)
1 0 1/8 0 0 0
2 1 3/8 1 3/8 3/8
3 2 3/8 4 6/8 12/8
4 3 1/8 9 3/8 9/8
4
E ( X) = ∑ Xi P ( Xi).
i=1
12 4 1
= = 1 = 1
8 8 2
2
V ( X ) = E ( X 2) – [( X )]
2
1
= 0 + 3/ 8+ 12 / 8 + 9/8 - (1 )
2
Page 6 of 13
2
1
= 24/ 8 – (1 )
2
= 3 - 9/4
= 3/ 4
Assignment
1. A pair of fair dice is tossed and the sum of points obtained is observed. Find the
probability distribution of the event.
2. Find E ( X 2 ) and E ( X ) from the given probability distribution
X 8 12 16 20 24
P( X) 1/8 1/6 3/8 ¼ 1/12
Continuous Random Variables are those whose values are contained in an interval it means
that the values be between two other values. Variable like weight, height, length, volume e.t.c all
examples of continuous random variable.
1. f ( x )≥0
∞
2.
∫−∞ f ( x ) dx=1
EXPECTATION AND VARIABLE OF A RANDOM
The mathematical expectation of a random variable denoted by
E(X) = ∫ X f ( n ) dx
−∞
Page 7 of 13
It should be noted that the mean of a random variable is the expectation of the random variable.
VARIANCE
( )
2
V ( x )=E ( x ) −[ E ( x ) ] = ∫ x f ( x ) dx− ∫ xf ( x ) dx
2 2 2
−∞ −∞
Example.
Given that
f (x)=¿{x ;0≤x≤1¿ {2−x;1≤x≤2¿¿¿
Is f ( x ) a p.d.f ? find the mean and variance of x.
Assignment
a. Given that
2
p ( x )=∫ ( 2−x ) dx
1 ,
BINOMIAL DISTRIBUTION.
This distribution focus on the repeated and independent trials of an experiment with two
possible outcomes which result to either success or failure. If the interest is in a random
variable x
f ( x )=¿ ¿
¿ ¿ ¿
Page 8 of 13
Where x is the number of success in an experiment, p denote probability of successes ,
( n ¿) ¿ ¿ ¿
q denote probability of failure and ¿
Since p+q=1 , hence q=1− p
Properties of Binomial Distribution.
1. It has n independent number of trials
2. Probability of successes ( p) and failure ( 1− p ) are constant.
2
3. It has mean ( μ )=np and varianceσ =npq
4. each trial may results in one of the two possible outcome. (success, failure)
5. It has constant probability.
Generally, in probability distribution , there are four (4) possible interested cases;
i. Equal to p( x=) ii. at most p( x≤) , iii. at least p( x≥)
iv. Between p( a< x< b)
Example 1: In Osogbo, Osun State capital. A particular long traffic light on your morning
commute is green 20% of the time that you approach it. Assume that each morning represents
an independent trial. Over 20 morning, what is the probability that the light is green on ;
i. exactly four (4)days ii. more than four (4) days iii. between 4
and 8.
Solution.
Let the probability of traffic light = p
Let the number of trials =n=20
Since p+q=1 , therefore q=1− p
20
p= 20 %= =0 . 2 ∴ q=1− 0. 2= 0. 8
100
f ( x )=¿ ¿
¿ ¿ ¿
p ( x=x )=¿ ( n ¿ ) ¿ ¿¿
i. ¿
p ( x=4 )=¿ ( 20 ¿ ) ¿ ¿ ¿
¿
p ( x=4 )=¿ ( 20 ¿ ) ¿ ¿ ¿
¿
Page 9 of 13
20 !
= ×0. 24 ×0. 816 =0 .2182
( 20−4 ) ! 4 !
¿
=1−[ 0. 0115+0 . 0576+0 .1368+0 .2050+0. 2182 ]
=1−0 .6291=0 .3709 .
∴ p ( x> 4 )=0 . 3709
iii. Between 4 and 8 days p ( 4 < x< 8 )
p ( 4 <x<8 )= p ( x=4 , 5 ,6 ,7 ,8 )
= 20 C 4 ×0 .2 4 ×0 . 816+ 20 C5 ×0 . 25 ×0 .8 15+ 20 C 6 ×0 . 26 ×0 . 814 + 20 C 7×0. 27 ×0 . 813
+ 20 C 8 ×0 .2 8×0. 812 .
=0. 2182+0 . 1637+0 .1023+0 .0426 +0 .0222
= 0.549.
Class work.
1. A fair die tossed four times. Find the probability that a prime number or a number
divisible by 6 occurs.
i. exactly two times ii. at most two (2) times iii. at least three (3) times.
Assignment.
1. An investigation shows that out of every 8 patients treated with a new COVID 19 vaccine
6 patients are cured. If 6 patients are treated with the vaccine , what is the probability
that;
i. Two patients are cured. ii. exactly three (3) patients are cured.
iii at least three patients are cured.
2. A coin is loaded in such a way that a tail is thrice as likely to appear as head, if the coin is
tossed five times, find the probability that
i. Exactly two tails appear
ii. At least two tails appear
iii. At most three tails appear
Negative Binomial Distribution.
th
If the number of failures is interested before the r success under the assumption of a binomial
Page 10 of 13
distribution, then we have the negative binomial distribution with probability mass function
f ( x )=¿ ( x +r −1 ¿ ) ¿ ¿ ¿
¿
It can be verified that when r =1 , the probability density function becomes
f ( x )= pq x This is the Geometric distribution.
Poisson Distribution
This distribution has a wide application in social sciences with quite satisfactory results. Its
probability density function is defined as
λ x e− λ
f ( x )= x=0 , 1, 2 , .. .. , λ> 0
x!
Where λ is the average number of successes.
Mean ( μ )= np=var iance ( σ )= λ
2
e=2 .71828
Properties of Poisson Distribution.
Example 1. A blood bank received on average 4 infected blood per day. What is the probability
that on a particular day the blood bank will receive
i. No infected blood
ii. 2 infected bloods
iii. Three infected bloods
iv. Between 2 and 4 infected blood.
Solution .
Recall that
λ x e−λ
p ( X=x ) = x=0 , 1 ,2 , .. . ., λ> 0
x!
and λ=average=np λ=4 (given)
,
λ x e−λ
p ( X=x ) = x=0 , 1 ,2 , .. . ., λ> 0
x!
Page 11 of 13
4 x e−4
∴ p ( X=x )= x=0 ,1 , 2 ,. .. .
x!
4 0 e−4 e−4
p ( X=0 )= = =0 . 018
i. 0! 1
4 2 e−4
p ( X=2 )= = e−4 ×8=0. 144
ii. 2!
4 3 e−4 32 −4 32
p ( X=3 )= = e = ×0. 018315638=0 .195
iii. 3! 3 3
4 4 e− 4 256 e−4
p ( X=4 )= = =0 . 195
4! 24
Exercises.
1. If the probability that an COVID19 infected individual suffers a bad reaction from
injection of a given serum is 0.003, determine the probability that out of 2000 individuals
i. Exactly 3 COVID19 infected individuals will suffer a bad reaction.
ii. More than 2 COVID19 infected individuals will suffer a bad reaction
Assignment.
In a manufacturing industry, for every 10,000 bulbs produced, 5 were found defective. If 500
bulbs were produced, find the probability that;
i. None is defective.
ii. At most 2 are defective.
iii. At least 3 are defective.
Page 12 of 13
Exercises.
2
Ans= =0 . 5
1. Find the probability that a head will appear when two coins are tossed. 4
2. Two dice are rolled and the sum of the numbers appearing are observed. Find the
1 1
Ans=i . ,ii .
probability of getting (i). a total of 5 (ii) a total of 12. 9 36 .
3. Find the probability of getting ; i . 2 heads ii . no Head . If a coin is
1 1
Ans .i . ii .
tossed twice. 4 4
4. A bag contains 10 balls. Four are white and 6 are black. Draw the tree diagram when two
balls are drawn with ; i . replacement ii . without replacement .
5. In a basket of fruit there are 6 grapes, 11 bananas and 13 oranges. If one fruit is chosen at
17
Ans=
random, what is the probability that the fruit is either a grape or banana? 30
6. A firm is independently working on two separate jobs. There is a probability of only 0.4
that either of the jobs will be finished on time. What is the probability that at least on of
the jobs finished on time?. Ans=0. 64
7. A die is thrown twice, let X be the number that turns up on the first die and let Y be the
number that turns up on the second die. Find the probability of
A= ( ( X,Y) : (X,Y) E S, x = y ) Ans = 6/36
B= ( ( X,Y): ( X,Y) E S, X˂ Y) Ans = 15/36
C= ( ( X,Y): ( X,Y) E S, ( X-Y)=2) Ans= 8/36
D= ( ( X,Y): ( X,Y) E S, (X+ Y) =5 Ans= 4/36
E= ( ( X,Y): ( X,Y) E S, | X−Y |˂ 2 ) Ans= 16/ 36
Page 13 of 13