2 - Probability Distributions
2 - Probability Distributions
2
• Conditions of statistical dependence and independence,
1
Objective :
• Probability Distributions
2
Probability
3
Probability
• In how many ways can a cricket team choose a captain and vice captain from the
team ?
• There are 3 roads connecting city A to city B and there are 2 roads connecting city
B to city C then in how many ways can a person travel from city A to City C ?
Travelling from city A to city B is done in 3 ways and from city B to city C in 2 ways.
Hence total number of ways in which one person can travel from city A to city C are
3 * 2 = 6 ways.
4
Probability
Terms used :
An event : When you toss a coin getting a tail would be an event and
getting a head would be another event.
5
Probability
Statistical dependence and independence
Independent event is an event that has no connection to the
happening of another event.
7
Probability
1. When you toss a coin :
a. Getting a head or tail is an event
b. This activity or procedure is called an experiment
c. The sample space is { head, tail }
Example – Give sample space : Give list of possible outcomes of tossing 2 dice
3 coins are tossed simultaneously
A committee of 2 is to be formed out of persons a,b,c,d
9
Exercise
10
Probability : Exercise
Examine following events are mutually exclusive in drawing a card from deck of
cards :
1. A heart and a queen
1. Classical approach :
• We determine how often something has happened in the past and use that figure
to predict the probability that it will happen again in the future.
• Suppose an insurance company knows from past data that all patients above 40
years old , about 60 out of every 100000 will die within 1 year period. The
probability of death for that age group is
60 / 100000 = 0.0006
3. Subjective Probabilities :
14
15
Probability : Exercise
The HR has drafted a set of wage and benefit demands to be presented to the
Management. To get an idea of worker support he randomly takes feedback from
Machinist (M) and inspectors (I). He polls 30 with the following results.
Opinion of Package M I
Strongly support 9 10
Mildly support 11 3
Undecided 2 2
Mildly oppose 4 8
Strongly oppose 4 7
30 30
1. What is the probability that a machinist selected at random mildly supports the
package ?
2. What is the probability that an inspector is undecided about the package ?
3. What is the probability that a worker (M or I) strongly or mildly supports the
package ? 16
Probability : Exercise
1. A seven
2. A black card
4. Ace
17
Probability Rules
Venn Diagram
A B A B
Addition rule : If 2 events are not mutually exclusive it is possible that both will occur. Eg. What is
the probability of drawing an ace or heart from a deck of cards ? The event can occur together thus
it is not mutually exclusive.
P(A or B) = P(A) + P(B) – P(AB)
P(A or B happening when A and B are not mutually exclusive)=P(A happening) + P(B happening) –
P(A and B happening together)
P(drawing ace or heart)=4/52 + 13/52 – 1/52 = 4/13
18
Probability Rules
19
Probability Rules : Example
• 23
A B
6
8 13
• One card is drawn from a pack of cards. What is the probability that it
is either a king or a queen ?
21
Probabilities under conditions of statistical
independence
The occurrence of one event has no effect on the probability of the
occurrence of any other event.
Marginal
Joint
Conditional
22
Marginal or unconditional Probability
• A single probability means only one event can take place. It is called
marginal or unconditional probability.
• If the coin is biased or unfair then the head may occur 0.90 of the
time and tail 0.10 of the time.
24
Joint Probability
Example :
25
Conditional Probability
We have considered 2 types probabilities, marginal (symbolically
P(A) and joint (symbolically P(AB)).
P(B/A) is the probability that the second event B will occur if a first
event A has already happened.
Eg. Given that you drew red card what is the probability that it is 4
?
P(4/red) = 2/26 = 1/13
26
Exercise
• A Grocery store is reviewing its restocking policies and has analyzed the
number of container of orange juice sold each day for the past month
No sold Morning Afternoon Evening
0-19 3 8 2
20-39 3 4 3
40-59 12 6 4
60-79 4 9 9
80-99 5 3 6
100 or more 3 0 6
Total 30 30 30
28
Probability Formulas
1. Probability of an event = number of outcomes where the event occurs
total number of outcomes
2. P(A) = Probability of event A happening
3. P(A or B) = Probability of either A or b happening
4. When events are not mutually exclusive : addition rule applies
P(A or B) = P(A) + P(B) – P(AB)
5. When events are mutually exclusive : addition rule applies
P(AB) = P(A) + P(B)
6. The probability of 2 or more independent events occurring together or in
succession P(AB) = P(A) * P(B)
7. Conditional Probabilities P(B/A) = P(BA) / P(A) P(A/B) = P(AB) / P(B)
29
Bayes Theorem
• Bayes Theorem named after Thomas Bayes ( English philosopher ) is one of the
famous probability applications.
The probability that the defective item was produced by m/c 1 is 68.2% and m/c 2 is 31.8%.
31
Bayes Theorem : Example
The probability of 3 events A,B and C occuring are P(A)=0.35, P(B)=0.45 and P(C)=0.2.
Assuming A,B or C has occurred the probability of another event X occuring are
P(X/A) = 0.8, P(X/B) = 0.65 and P(X/C)=0.3.
Find P(A/X), P(B/X) and P(C/X).
P(A/X) = 0.4427
P(B/X) = 0.4625
P(C/X) = 0.0949
32
Bayes Theorem : Example
The probability of 3 events A,B and C occuring are P(A)=0.35, P(B)=0.45 and P(C)=0.2.
Assuming A,B or C has occurred the probability of another event X occuring are
P(X/A) = 0.8, P(X/B) = 0.65 and P(X/C)=0.3.
Find P(A/X), P(B/X) and P(C/X). P(X/EVENT)= P(EVENT/X)=P(X&EVENT)/
P(X&EVENT)/P(EVENT) P(X)
P(A/X) = 0.4427
P(B/X) = 0.4625
P(C/X) = 0.0949
33
Bayes Theorem : Example
The probabilities of 3 events : A,B and C are P(A) = 0.35, P(B) = 0.45, P(C) = 0.2.
Assume that A,B,C have occurred the probabilities of another event X occuring are
P(X/A) = 0.8, P(X/B) = 0.65, P(X/C) = 0.3. Find P(A/X), P(B/X), P(C/X)
34
Probability Distribution
• Just like the frequency distributions probability distribution expresses
distribution of probability values over different values.
• Probability distribution is a table or equation that links each outcome
of a statistical experiment with its probability of occurrence.
• Example : Probability Distribution of the possible number of tails
from 2 tosses of a fair coin.
35
Probability Distribution : Example
• In a class of 100 students, 80 students passed in all subjects, 10 failed in 1
subject, 7 failed in 2 subjects and 3 failed in 3 subjects. Find the probability
distribution for number of subjects a student from the class has failed in.
x 0 1 2 3
P(x) 0.8 0.1 0.07 0.03
36
Probability Distribution : Problem
Frequency 10 20 45 15 20 15
37
Probability Distribution
Example : construct a probability distribution based on the following
frequency distribution
38
Probability Distribution : Problem
• An investor who frequently invests in stock market is examining the possibility of
investing in ABC Ltd. He has broken the potential results of investment into 5
possible outcomes with accompanying probabilities. The outcomes are annual
rates of return on a single share of stock that currently costs Rs.150. Find the
expected value of return for investing in a single share of ABC Ltd. If he purchases
stock whenever the expected rate of return > 10% will he purchase the stock
according to this data ?
2. The number of cups of coffee that a fast food restaurant serves each day
• Initially it was widely used by the insurance industry and then later on
adapted by all to make decisions under uncertainty.
The tossing of coin fixed number of times is a Bernoulli process and the
outcomes of such tossed is the binomial probability distribution.
Formula is :
44
Binomial Distribution
Probability of r successes in n trials : ( Symbol ! Is factorial )
3! = 3 * 2 * 1
45
Binomial Distribution
Probability of 2 successes in 3 trials = 0.375 probability of getting 2
3!
* (0.5^2) (0.5^ )
1
2! * (3-2)!
46
Binomial Distribution
• A survey found that 1 out of every 5 citizens have visited a doctor in any given
month. If 10 people are selected at random find the probability that exactly 3
have visited the doctor.
• Suppose a die is tossed 5 times. What is the probability of getting exactly 2 fours
?
Probability of success on single trial = 1/6 = 0.167
5!/2!*3! (0.167)2 * (0.833)3 = 0.1612
47
Binomial Distribution : Problem
1. Find the probability with n = 12, p=0.45 and r = 8.
2 The latest nationwide political poll indicates that for Indians who are randomly selected
probability that they are with alliance ABC is 0.55, for party PQR is 0.30 and for party XYZ is 0.15.
Assuming that these probabilities are accurate answer the following pertaining to a randomly
chosen group of 10 Indians ?
a. Probability that 4 are with party PQR
b. Probability that none are with party ABC
c. Probability that 2 are with party XYZ
48
Poisson Distribution
• It is probability distribution for discrete data.
49
Poisson Distribution
• This is applied for rare events like plane crashes, car accidents. Widely
used in insurance industry and operations.
50
Poisson Distribution : Problem
51
Normal Distribution
• It is one of the important continuous data Probability distributions
54
Normal Distribution
55
Normal Distribution
1. Find the area under the normal distribution between z = 0 and z = 2.34.
56
Normal Distribution
3. Find the area to the right of z = 1.11.
57
Normal Distribution
5. Find the area between z = 1.68 and z = -1.37
z = 0 and z=1.68 from the table 0.4535
z=0 and z=-1.37 from the table 0.4147
Total area = 0.4535 + 0.4147
= 0.8682
58
Normal Distribution : Problem
Example : There is a training programme to upgrade the supervisory skills. A study
of past participants indicates that the mean length of time spent on the
programme is 500 hours and this is normally distributed with standard deviation of
100 hours.
61
Excercise
62
Excercise
• XYZ is the supervisor for a Hydroelectric plant. He knows that the dam’s turbines generate
electricity at the peak when at least 1,000,000 gallons pass through the dam each day. The daily
flow is normally distributed with the mean equal to the previous day’s flow and a standard
deviation of 200,000 gallons. Yesterday 850,000 gallons flowed through the dam. What is the
probability that the turbines will generate at peak rate today ?
• XYZ company has received a big order to produce electric motors for a manufacturing company.
In order to fit in its bearing the drive shaft of the motor must have a diameter of 5.1+0.05 / 5.1-
0.05 (inc). The company’s purchasing agent realizes that there is a large stock of steel rods in
inventroy with a mean diameter of 5.07 and a standard deviation of 0.07. What is the probability
of a steel rod from inventory fitting the bearing ?