Lecture No. 4
Lecture No. 4
1
Lectures of Engineering statistics Misan University / college of Engineering
Dr. Dhiaa Hameed Department of Chemical Engineering 2rd stage
2025-2024
3- Pull sample with return.
If we have samples 𝑥1, 𝑥2 … … 𝑥𝑛 with size n , it is called (Sample Random
Sample ) if were all the samples which have the size n , which are pulling
from the population having the same chance in choosing (the same
probability) and the probability= 𝑁 𝑛
Ex.1 if we have the population (A, B, C), make samples from this population,
for samples n=2 in cases:
1- Pull sample with return
Solution:
A B C
A A,A A,B A,C
B B,A B,B B,C
C C.A C,B C,C
𝐾 = 32 =9
And the probability of pulling any sample is: 1/K=1/9
And the chance of choosing any sample equal with the other samples 1/9
2
Lectures of Engineering statistics Misan University / college of Engineering
Dr. Dhiaa Hameed Department of Chemical Engineering 2rd stage
2025-2024
3- Pull sample without return with arrangement.
𝑁!
𝐾 = 𝑃𝑛𝑁 = A B C
𝑛! (𝑁 − 𝑛)!
A A,B A,C
B B,A B,C
3! 3∗2∗1
𝑃23 = = =6 C C.A C,B
(3−2)! (1)!
For example, in an experiment all the outcome can be classify to happening or not
happening and the result will be S or F and the number of happening F&S is n,
Suppose the variable y representing the number of succeed or number of happen the
variable from n times, this type of variable called (Binomial variable) because its
classified to Success or Failure and it’s also Discrete because taking Count from zero
to n.
3
Lectures of Engineering statistics Misan University / college of Engineering
Dr. Dhiaa Hameed Department of Chemical Engineering 2rd stage
2025-2024
Ex.1 Throw a coin 3 times (n=3)
and suppose the success here to obtain on the picture (S)
the failure trying here is obtain on writing face (F)
so y representing number of pictures in 3 times n.
P(y)probability of each possible cases possible cases No. of y
1/8 1/8 FFF 0
1/8 SFF
3/8 1/8 FSF 1
1/8 FFS
1/8 SSF
3/8 1/8 SFS 2
1/8 FSS
1/8 1/8 SSS 3
1.0 1.0 8
Number of probabilities is =8
3/8
2/8
1/8
0 1 2 3 y
Fig.1: the graphical chart of Binomial Distribution to the number of happened picture in coin (S) in
Throw a coin 3 times.
4
Lectures of Engineering statistics Misan University / college of Engineering
Dr. Dhiaa Hameed Department of Chemical Engineering 2rd stage
2025-2024
f(y)
0.58
0.35
0.07
0.00
0 1 2 3 y
Fig.2: the graphical chart of Binomial Distribution to the number of happened 2 points side of
Dice in Throw 3 times.
5
Lectures of Engineering statistics Misan University / college of Engineering
Dr. Dhiaa Hameed Department of Chemical Engineering 2rd stage
2025-2024
From the 2 examples above we can use the procedure to any question with
Binomial Distribution and we can summaries that by:
1- Finding the space of sample to the all experiment, if there is 5 times to the
test so will be (2)5 =32 point in the space of sample.
2- Finding probability of every cases.
3- Find the value of random variable for each point in the space of sample.
4- Summation of the all probabilities to the points that represent that value for
the random variable.
5- These probabilities give us the probability of distribution for the random
variable with 2 sides.
Sometimes it’s difficult to making all these calculations for all the question
with Binomial Distribution, so from the better to find general formula to this
distribution.
1 0 1 3 1
𝑝(𝑦 = 0) = (30) ( ) ( ) = =0.125
2 2 8
1 1 1 2 3
𝑝(𝑦 = 1) = (31) ( ) ( ) = =0.375
2 2 8
1 2 1 1 3
𝑝(𝑦 = 2) = (32) ( ) ( ) = =0.125
2 2 8
1 3 1 0 1
𝑝(𝑦 = 3) = (33) ( ) ( ) = =0.125
2 2 8
6
Lectures of Engineering statistics Misan University / college of Engineering
Dr. Dhiaa Hameed Department of Chemical Engineering 2rd stage
2025-2024
Ex.4 also from example No.2 to the Dice that:
p=1/6, q= 5/6, n=3, y= No. of appearance the required face with 2 points.
Also we can find it with applied the formula:
3 1 0 5 3 5 3
𝑝(𝑦 = 0) = ( ) ( ) ( ) = ( )
0 6 6 6
1 1 5 2 1 1 5 2
𝑝(𝑦 = 1) = (31) ( ) ( ) =3( ) ( )
6 6 6 6
1 2 5 1 1 2 5 1
𝑝(𝑦 = 2) = (32) ( ) ( ) = 3( ) ( )
6 6 6 6
3 1 3 5 0 1 3
𝑝(𝑦 = 3) = ( ) ( ) ( ) = ( )
3 6 6 6
Ex.5 if the probability of get goal to player of basketball from one throw is ¾, what
the probability to get goal 2 times from 4 free throw?
Solution:
p= ¾, q=1/4, n=4, y=2
3 2 1 2
𝑝(𝑦 = 2) = (42) ( ) ( ) = 10/16
4 4
7
Lectures of Engineering statistics Misan University / college of Engineering
Dr. Dhiaa Hameed Department of Chemical Engineering 2rd stage
2025-2024
Y P(y)
0 1/16
1 4/16
2 6/16
3 4/16
4 1/16
Sum. 1.0
8
Lectures of Engineering statistics Misan University / college of Engineering
Dr. Dhiaa Hameed Department of Chemical Engineering 2rd stage
2025-2024
F(y)
6/16
5/16
4/16
3/16
2/16
1/16
0 1 2 3 4 y
Fig.3 the chart of Probability distribution to the number of appear the
picture when throw the coin 4 times.
0 𝑤ℎ𝑒𝑛 𝑦 ≤ 0
1
𝑤ℎ𝑒𝑛 0 ≤ 𝑦 ≤ 1
16
5
𝑤ℎ𝑒𝑛 1 ≤ 𝑦 ≤ 2
16
(c.d.f) 𝐹 (𝑦 ) = 11
𝑤ℎ𝑒𝑛 2 ≤ 𝑦 ≤ 3
16
15
𝑤ℎ𝑒𝑛 3 ≤ 𝑦 ≤ 4
16
{1 𝑤ℎ𝑒𝑛 4 ≥ 𝑦
9
Lectures of Engineering statistics Misan University / college of Engineering
Dr. Dhiaa Hameed Department of Chemical Engineering 2rd stage
2025-2024
16/16
14/16
12/16
10/16
8/16
6/16
4/16
2/16
0 1 2 3 4 y
Fig.4 the chart representing to the c.d.f to the number of appearance the picture
when the throwing coin 4 times.
10
Lectures of Engineering statistics Misan University / college of Engineering
Dr. Dhiaa Hameed Department of Chemical Engineering 2rd stage
2025-2024
Ex.3 if the probability of someone sick from a disease is = 0.4
If there are 5 persons having this disease inter the hospital, what is the
probability to:
a- No one heals from them.
b- Heal just one of them.
c- Heals one at least.
Solution:
a- p=0.4, q= 0.6 n=5, y=0
𝑝(𝑦 = 0) = (50)(0.4)0(0.6)5 = 0.08
b- p=0.4, q= 0.6 n=5, y=1
11
Lectures of Engineering statistics Misan University / college of Engineering
Dr. Dhiaa Hameed Department of Chemical Engineering 2rd stage
2025-2024
Arithmetic Mean μ or E(y) of Binomial Distribution.
It is representing the number of successes probability that can be obtain
from n cases.
𝑛
𝜇 = 𝐸 (𝑦) = ∑ 𝑦𝑃(𝑦)
𝑦=0
Ex.1 the arithmetic Mean to the experience of throwing coin 4 times is:
y P(y)
0 1/16
1 4/16
2 6/16
3 4/16
4 1/16
=0+0.25+0.75+0.75+0.25
∴𝜇=2
12