Section (7)
Section (7)
Section (7)
Prepared By : Doaa Ghaleb
Special Probability Distribution
● Probability Distribution: It is a listing of the probabilities of all the possible
outcomes that could occur if the experiment was done.
2 2 2 2 1 1 1 1 0
THHT, THTH, TTHH, HTTH, TTTH, TTHT, THTT, HTTT, TTTT}
x 0 1 2 3 4
→ The random variable x is said to follow binomial distribution this can be written as :
x ~ Bin ( n , p )
How to get p and q ?
● “Tossing of Coin” experiment:
½ ½
● “Tossing of Die”experiment
S= {1, 2, 3, 4, 5, 6}
⅙ ⅙ ⅙ ⅙ ⅙ ⅙
How to get p and q ?
● “Tossing of Coin” experiment:
● “Tossing of Die”experiment
● n : number of trials
● p : probability of success
● q : probability of failure q = 1- p
→ The random variable x is said to follow binomial distribution this can be
written as :
x ~ Bin ( n , p )
Example
A coin tossed 4 times what is the probability that # of head occur
X : is # of head
● X : number of success in sample x=0,1,2,....n
● n : number of trials (sample size)
● p : probability of success
● q : probability of failure q = 1- p
→ The random variable x is said to follow binomial distribution this can be
written as :
x ~ Bin ( n , p )
1- Binomial Distribution
Example (1)
Flip a coin 4 times . Find the probability distribution of # of heads .
n=4
x= 0 , 1 , 2 , 3 , 4
p= ½
q = 1-p =1- ½ =½
{HTTT,
……….,
………...} x 0 1 2 3 4
1- Exactly 3 heads
n=10
x=3
p= ½
q = 1-p =1- ½ =½
{HTTHTTHTTT,
…………………,
………………..}
Example (1)
A fair coin toss 10 times . Find the probability of Getting :
2- At least 9 heads
n=10
x= 9 , 10
p= ½
q = 1-p =1- ½ =½
Example (1)
A fair coin toss 10 times . Find the probability of Getting :
3- At least 2 heads
n=10
x=2,3,4,5,6,7,8,9,10
p= ½
q = 1-p =1- ½ =½
Example (1)
A fair coin toss 10 times . Find the probability of Getting :
4- At most 1 head
n=10
x= 0 , 1
p= ½
q = 1-p =1- ½ =½
Example (1) - try it with yourself
A fair coin toss 10 times . Find the probability of Getting :
n=10
x= ?!
p= ½
q = 1-p =1- ½ =½
Example (1)
A fair coin toss 10 times . Calculate E(x) , V(x) , Standard deviation
n=10
p=½
q=½
Example (2)
Find the probability that seven of 10 persons will recover from a tropical
disease if we can assume independence and the probability is 0.80 that any one
of them will recover from the disease.
n=10
x=7
p = 0.8
q = 1-p =0.2
Example (2)
Find the probability that seven of 10 persons will recover from a tropical
disease if we can assume independence and the probability is 0.80 that any one
of them will recover from the disease . Calculate the mean and the variance.
n=10
p = 0.8
q = 1-p =0.2
2- Bernoulli Distribution
x=1 Success
4- x
x=0 Failure
2- Bernoulli Distribution
Proves Bernoulli Distribution Rules
Example (1)
Suppose a dice is thrown once and we have random variable X , such that If
Number 6 appears , then X =1 , else X =0
P
Probability that 6 appears (Success ) =
q
Probability that 6 don’t appears (Failure )=
Example (1)
Suppose a dice is thrown and we have random variable X , such that If Number
6 appears , then X =1 , else X =0 .
x ~ Hyp ( n , A ,N )
Hypergeometric Distribution vs. Binomial Distribution
Sample
x = ?! n=6
Where :
N = population size
A = number of successes in the population A = 15 N-A = 5
N – A = number of failures in the population
n = sample size
x = number of successes in the sample N = 20
n - x = number of failures in the sample
Population
3 - Hypergeometric Distribution
Why population and sample in Hypergeometric
Distribution ?!
On the binomial and other discrete distribution, we didn't use
the population and used instead the probabilities , that's
because in the previous distribution, they were all with
replacement.
A box contains 10 electric bulbs from which 4 bulbs are defective. Three bulbs
are chosen at random without replacement from box . What is the probability
that one of them is defective?
N=10 → n=3
A=4 → x=1
N-A = 6 → n-x = 2
Example (1)
Sample
x=1 n=3
N=10 → n=3
N = 10
A=4 → x=1
N-A = 6 → n-x = 2
Population
Example (2)
A bag contains 100 white balls and 200 red balls. A random sample of 5 is
taken without replacement. Find the probability that exactly three out of 5 will
be white.
N=300 → n=5
A=100 → x=3
N-A = 200 → n-x = 2
Example (1)
Sample
x=3 n=5
N=300 → n=5
N = 300
A=100 → x=3
N-A = 200 → n-x = 2
Population
Example (2)
A bag contains 100 white balls and 200 red balls. A random sample of 5 is
taken without replacement. Find the probability that exactly three out of 5 will
be white.Calculate E(x) , V(x) ?
4 - Poisson Distribution
Poisson Distribution is a probability distribution that expresses the probability of
a given number of events occurring in a fixed disjoint interval of time and/or
space if these events occur with a known average rate and independently of the
time since the last event.
1. Independent trials
2. Probability of success P(x) constant
3. Trials are infinite (N)
4. P(x) is very small and N is very large.
→ The random variable x is said to follow binomial distribution this can be written as :
x ~ Bin ( n , p )
4 - Poisson Distribution
The Poisson Distribution :
x ~ Poisson ( lambda )
4 - Poisson Distribution
Records show the probability is 0.00005 that a car will have flat tire while
crossing a certain bridge , Find the probability that exactly two cars will
have a flat tires among 10000 cars crossing the bridge.
Example (2)
Records show the probability is 0.00005 that a car will have flat tire while
crossing a certain bridge , Find the probability that exactly two cars will
have a flat tires among 10000 cars crossing the bridge.Calculate the mean
and the variance .
Example (3)
Number of patients admitted to ICU for the university hospital per day.
If the average persons admitted to ICU per day is 3.
(1) What is the probability that in a given day there will be exactly 2
admissions ?
(2) What is the probability that in a given day there will be at most 2
admissions ?
(3) What is the probability that in a given week there will be exactly 7
admissions ?
Example (3)
Number of patients admitted to ICU for the university hospital per day.
If the average persons admitted to ICU per day is 3.
(1) What is the probability that in a given day there will be exactly 2
admissions ?
Example (3)
Number of patients admitted to ICU for the university hospital per day.
If the average persons admitted to ICU per day is 3.
(2) What is the probability that in a given day there will be at most 2
admissions ?
Example (3)
Number of patients admitted to ICU for the university hospital per day.
If the average persons admitted to ICU per day is 3.
(3) What is the probability that in a given week there will be exactly 7
admissions ?
Special Probability Distribution
Binomial Distribution Bernoulli Distribution
If the probability of hitting a target in a single shot is 0.7 , if shots are be fair
far at the target independently . what is the probability that 1st hit to the
target will be in :
If the probability of hitting a target in a single shot is 0.7 , if shots are be fair
far at the target independently . what is the probability that 1st hit to the
target will be in :
If the probability is 0.40 that a child exposed to a certain disease will catch
it,what is the probability that the 10th exposed to the disease will be the first
to catch it , calculate the expected value and the variance .
A coin tossed , what is the probability that the 1st head occurs at 10th trial ?
Flip a coin 4 times . Find the probability that the 1st head occurs at 3rd trial
n=4 , x= 3 , p = ½ , q = 1-p =1-½ =½ Geometric
Flip a coin 4 times . Find the probability of getting 2 heads at 3rd trial.
n=4 , x= 3 , r = 2 , p = ½ , q = 1-p =1-½ =½
-ve Binomial
Example (1)
If the probability is 0.40 that a child exposed to a certain disease will catch
it,what is the probability that the 10th exposed to the disease will be the
third to catch it.
Example (2)--> Try it with yourself
In a clinical study , volunteers are tested for a gene that has been found to
increase the risk for a disease . The probability that a person carries the
gene is 0.1.
(a) What is the probability that 4 or more people will have to be tested
before 2 with the gene are detected