Probability 1
Probability 1
A
Course Objectives
❑ The main objective of this course is to provide students with the
foundations of probabilistic and statistical analysis mostly used in
varied applications in engineering and science like disease modeling,
climate prediction and computer networks etc...
❑ To provide an understanding of the basic concepts in probability,
conditional probability and independent events..
I. Elementary probability
II.Conditional probability
III.Discrete random variables
IV.Continuous random variables
Definition: In this part we’ll learn how to count in some typical scenarios. Suppose an
experiment has n outcomes; and another experiment has m outcomes. Then the two
experiments jointly have n · m outcomes.
Rolling a die and flipping a coin can have a total of 6 · 2 = 12 different outcomes,
combined.
Fundamental Couting Rule: Suppose that two experiments are to be performed. Then if experiment 1 can result in any one of m
possible outcomes and if, for each outcome of experiment 1, there are n possible outcomes of experiment 2, then together there
are m.n possible outcomes of the two experiments.
Example: Each student of Hassan II university can choose a course and a language randomly. We consider the following thwo sets:
Property: If r experiments that are to be performed are such that the first one may result in any of n1 possible outcomes; and
if, for each of these n1 possible outcomes, there are n2 possible outcomes of the second experiment; and if, for each of the
possible outcomes of the first two experiments, there are n3 possible outcomes of the third experiment; and if ..., then there is
a total of n1 · n2 ··· nr possible outcomes of the r experiments.
Example : A committee consists of 3 Engineers, 4 Doctors, 5 teachers, and 2 accountants. A subcommittee of 4, consisting of 1 person
from each class, is to be chosen. How many different subcommittees are possible?
We may regard the choice of a subcommittee as the combined outcome of the four separate experiments of choosing a single
representative from each of the classes.
It then follows from the generalized version of the basic principle that there are 3 * 4 * 5 * 2 = 120 possible subcommittees.
In a class, there are 27 boys and 14 girls. The teacher wants to select 1 boy
Exercise 3 :
and 1 girl to represent the class for a function. In how many ways can the teacher
make this selection?
Here the teacher is to perform two operations: (i) Selecting a boy from among the 27 boys and (ii) Selecting a girl
from among 14 girls.The first of these can be done in 27 ways and second can be performed in 14 ways. By the
fundamental principle of counting, the required number of ways is 27 × 14 = 378.
Ex1 : How many different batting orders are possible for a baseball team consisting of 9 players?
Examples:
❑ A chess tournament has 10 competitors, of which 4 are Russian, 3 are from the United States, 2 are from
Great Britain, and 1 is from Brazil. If the tournament result lists just the nationalities of the players in the
order in which they placed, how many outcomes are possible?
❑ How many different signals, each consisting of 9 flags hung in a line, can be made from a set of 4 white flags,
3 red flags, and 2 blue flags if all flags of the same color are identical?
❑ Solution: we have 9 choices for the first place, 8 choices for the second place,
and 7 choices for the third place, than 6 pour for the fourth place. Se we have
9 ⋅ 8 ⋅ 7 ⋅ 6 = 3'024 possibles arrangement.
Example : A facebook account password constructed from 6 numbers taken from the set {0, 1, 2,
..., 9}. As we take into account the order and the repetitions are authorized, then we are in front
of an arrangement with repetition of 6 elements among 10
.
Solution 106
Exammple: Four people {K; S; R; J} want to play doubles table tennis. How many different teams
can they form?
A combination is not characterized by the order of the objects. Team {K ; S} does not differ from
team {S ; K} When the order of selection is irrelevant
By convention we set:
Exercise 2 Assume we have an horse race with 12 horses. What is the possible number of
combinations of 3 horses when the order matters and when it does not?
Exercise 3 : With 10 deputies and 6 senators, we want to form a comission of 7 members including
5 deputies. What is the number of possibilities ?
Exercise 4: There are eight different ice-cream flavors in the ice-cream shop. In how many ways
can we choose five flavors out of these eight flavors
Ex1: A speed skating tournament has 4 competitors from South Korea, 3 from Canada, 3 from
China, 2 from the USA and 1 from France. If the tournament result lists just the nationalities of
the players in the order in which they placed, how many outcomes are possibles?
Ex2: : How many different letter arrangements can be formed from the letters EEPPPR?
Ex3: How many different groups of 3 could be selected from A,B,C,D and E?
If the outcome of an experiment consists in the determination of the sex of a newborn child,
then Ω= {g, b}
where the outcome g means that the child is a girl and b that it is a boy
◮ ◮ An event will be a collection of possible outcomes. Therefore, and event E will be considered a
subset of Ω: E ⊆ Ω.
◮ It makes perfect sense to define the union E ∪ F and the intersection E ∩ F of two events, E
and F.
❑ The operations of forming unions, intersections, and complements of events obey certain rules
similar to the rules of algebra. We list a few of these rules:
❑ Commutative laws E ∪ F = F ∪ E
❑ Associative laws (E ∪F) ∪ G = E ∪(F ∪ G)
❑ Distributive laws (E ∪F)G = EG ∪FG
❑ The union E ∪ F of events E and F always means E OR F. The intersection E ∩ F of events E and
F always means E AND F
❑ If E ∩ F = ∅, then we say that the events E and F are mutually exclusive events.
❑ The complement of an event E is Ec : = Ω − E. This is the event that E does not occur.
Exercise 1:
❑ What is the probability of throwing one die and getting the number greater than 4 ?
Exercise 2:
Exercise 3:
Samir is taking two books along on his holiday vacation. With probability 50%, he will like the first
book (B1) ; with probability 40%, he will like the second book (B2) ; and with probability 30%, he
will like both books. What is the probability that he likes neither book?
Exercise 4:
If two dice are rolled, what is the probability that the sum of the upturned faces will equal 7 ?
Exercise 5:
A committee of 5 is to be selected from a group of 6 men and 9 women. If the selection is made
randomly, what is the probability that the committee consists of 3 men and 2 women?
Exercise 6:
If 3 balls are “randomly drawn” from a bowl containing 6 white and 5 black balls,
what is the probability that one of the balls is white and the other two black?
Exercise 7:
There are 4 parents, 3 students and 6 teachers in a room. If a person is selected at random, what
is the probability that it is a teacher or a student?
Exercise 10:
Example: If we roll a fair die. Let A be the event that the outcome is an odd number,
i.e., A={1,3,5}. Also let B be the event that the outcome is less than or equal to 3,
i.e., B={1,2,3}.
What is the probability of A, P(A)? What is the probability of A given B, P(A|B)?
In If A and B are two events in a simple space Ω, then the conditional probability of A given
B, is defined as:
Problem1: In the staff room 60% are women; one out of three women wears glasses and one
out of two men wears glasses: what is the probability that a random person wearing glasses
is a woman?
Problem 2: In case of fever 4 out of 6 patients take “Aspirin”, the others take “Doliprane”
with side effects:
Problem 3 : Consider a family that has two children. We are interested in the children's
genders. Also assume that all four possible outcomes are equally likely:
a.What is the probability that both children are girls given that the first child is a girl?
b.We ask the father: "Do you have at least one daughter?" He responds "Yes!" Given this
extra information, what is the probability that both children are girls? In other words,
what is the probability that both children are girls given that we know at least one of
them is a girl?
Problem 4 : I roll a fair die twice and obtain two numbers X1= result of the first roll
and X2= result of the second roll. Given that I know X1+X2=7, what is the probability
that X1=4=or X2=4?
♦ The police force consists of 1200 officers, 960 male and 240 female.
♦ Over the past two years, 324 officers on the police force received promotions.
♦ The specific breakdown of promotions for male and female officers is shown in Table .
♦ After reviewing the promotion record, a committee of female officers raised a discrimination
case on the basis that 288 male officers had received promotions but only 36 female officers
had received promotion.
♦ The police administration argued that the relatively low number of promotions for female
officers was due not to discrimination’ but to the fact that relatively few females are
memberships of the police force.
Let us show how conditional probability could be used to analyze the discrimination charge
P(M ∩ A)
P(M ∩ A)
P(F ∩ A)
P(F ∩ A)
The values in the margins of the joint probability table provide the probabilities of
each event separately
Pr. Kamal ZEHRAOUI
Calculate the probability that an officer is promoted given that the officer is a man
(This is mean, that we are now concerned only with the promotion status of the 960 male
officers)
Find the probability that an officer is promoted given that the officer is a woman.
We know that once event B has occurred, the only way that we can also
observe event A is for the event A ∩ B to occur.
Conditional probability
1. A coin is flipped twice. What is the conditional probability that both flips land on heads,
given that (a) the first flip lands on heads? (b) at least one flip lands on heads?
1. A family has 2 children. Given that one of the children is a boy, what is the probability
that the other child is also a boy?
1. Suppose 36% of families own a dog, 30% of families own a cat, and 22% of the families
that have a dog also have a cat. A family is chosen at random and found to have a cat.
What is the probability they also own a dog?
1. The probability that it is Friday and that a student is absent is 0.03. Since there are 5
school days in a week, the probability that it is Friday is 0.2. What is the probability that
a student is absent given that today is Friday.
Example: You toss a coin and it comes up "Heads" three times ... what is
the chance that the next toss will also be a "Head"?
The chance is simply ½ (or 0.5) just like ANY toss of the coin.
An urn contains 12 balls numbered from 1 to 12. One is drawn at random, and the events are
considered:
Example 2: We toss a coin three times, and X is the RV wich is the number of heads.
Find F(x).
q = probability of failure = 1 - p.
E(X) = p ;
V(X) = p(1 − p).
E(X) = np ;
V(X) = np(1 − p).
q = probability of failure = 1 - p.
The binomial distribution formula is for any random variable X given by:
A clothing store has determined that 30% of the people who enter the store will make
a purchase. Eight people enter the store during a one-hour period.
In each of 5 races, Samir has a 70% chance of winning. Assuming that the races are
independent of each other, what is the probability that:
a. Samir will win 0 races, 1 race, 2 races?
b. Samir will win at least 1 race
c. Samir will win a majority of the races
The normal distribution is the most widely known and used of all distributions. Because
the normal distribution approximates many natural phenomena so well, it has developed
into a standard of reference for many probability problems.
As you might suspect from the formula for the normal density function, it would be
difficult and tedious to do the calculus every time we had a new set of parameters
for µ and σ. So instead, we usually work with the standardized normal distribution,
where µ = 0 and σ = 1, i.e. N(0,1). That is, rather than directly solve a problem
involving a normally distributed variable X with mean µ and standard deviation σ, an
indirect approach is used.
Pr.
Pr. Kamal
Kamal ZEHRAOUI
ZEHRAOUI
Pr. Kamal ZEHRAOUI
Exercise 1
A new tax law is expected to benefit “middle income” families, those with incomes
between $20,000 and $30,000. If Family income ~ N($25000, $10000), what
percentage of the population will benefit from the law?
The height of men in Morocco is modeled by a normal distribution N (172, 196) (unit: cm).
What proportion of Moroccan's men are less than 160 cm tall?
What proportion of Moroccan's men are more than two meters tall?
What proportion of Moroccan's men are between 165 and 185 centimeters tall?
Most graduate schools of business require applicants for admission to take the Graduate Management Admission Council’s
GMAT examination. Scores on the GMAT are roughly normally distributed with a mean of 527 and a standard deviation of
112.
What is the probability of an individual scoring above 500 on the GMAT?
How high must an individual score on the GMAT in order to score in the highest 5%?
The length of human pregnancies from conception to birth approximates a normal distribution with a mean of
266 days and a standard deviation of 16 days.
What proportion of all pregnancies will last between 240 and 270 days (roughly between 8 and 9 months)?
What length of time marks the shortest 70% of all pregnancies?
The Normal Approximation to the Binomial Distribution
An important result in probability theory known as the DeMoivre–Laplace limit theorem states that when n
is large, a binomial random variable with parameters n and p will have approximately the same distribution
as a normal random variable with the same mean and variance as the binomial
Example: Suppose a fair coin (40% to find a head) is tossed 100 times.
What is the probability there will be exactly 60 heads?
What is the probability there will be at least 2 heads?
What is the probability there will be more than 60 heads?