Prob
Prob
What is probability?
Possibly,it would rain tonight
There is a high chance of my getting the job next
month
Here the words like possibly, high chance indicates a
degree of uncertainty about the happening of the event.
All these events are random in nature.
Prob. Theory includes studying such events to make
the best possible decision in the face of uncertainties.
Probability is the science of decision – making with
calculated risks in the face of uncertainty.
Basic terminology
Random experiment : it is a procedure that can result
in many outcomes such that although all outcomes
may be known it is not possible to predict the outcome
associated with a single experiment. E.g.
Tossing of a coin whose all possibilities are known,
head and tail, but at each particular toss, we don’t
know if it will face head or tail.
Sample space : of a random experiment is the set S
that includes all possible outcomes of an experiment.
In tossing of a fair coin the set of all the possible
outcomes is {H,T}
Here, {H,T} is the sample space for this experiment.
Questions
Suppose a committee of 2 is to selected from a group
consisting of 5 people say R,S,V,A,N. find the sample
space.
A manufacturer purchases equipments for three vendor
A,B,C. Let (1,2) denote the event that on two
successive days, the first day order goes to vendor A
and on the second day vendor B gets the order. Write
the sample space.
Trail : each experiment is known as a trial. E.g.
tossing a coin once, is a single trial.
Event : outcomes of the trials are known as events.
E.g. in tossing of a coin, outcomes are either H or T.
so, H and T are the events.
Rules of event operations
Intersection of events
Union of events
Complement of events
Types of events
Exhaustive events
Mutually exclusive events
Independent and dependent events
Equally likely events
Complementary event
Probability assigning techniques
Classical technique
Relative frequency technique
Subjective approach
Questions
A box contains 2 red, 5 white and 6 blue balls. What is
the prob. That out of two balls drawn, one is white and
one is blue?
What is the prob. That a leap year selected at random
will contain 53 sundays?
A box contains 8 good pens, 4 pens with minor defects
and 3 pens with major defects. Four pens are picked at
random without replacement. Find the prob. That
All pens are defective
Atleast one pen is good
Exactly 2 pens are good
One pen is good, one has a minor defect and 2 have a
major defect
One pen is good and 3 have major defects
Types of probability
Marginal probability
Union probability
Joint probability
Conditional probability
Laws and theorems of probability
Additive law
Multiplication law
Theory of independence
Theory of independence
P(test +)=.0297+.00097=.03067
P(+&test+)P(+)*P(test+)
.0297 .03*.03067 (=.00092)
Dependent!
Law of total probability
P( A & B)
P( A / B)
P( B)
Bayes’ Rule: derivation
P( A & B)
P( A / B)
P( B)
P ( A / B ) P( B ) P( A & B) P( B / A) P( A)
P ( A / B ) P( B ) P( B / A) P( A)
P( B / A) P ( A)
P( A / B)
P( B)
Bayes’ Rule:
P( B / A) P( A)
P( A / B)
P( B)
OR
P( B / A) P( A)
P( A / B) From the
P( B / A) P( A) P( B / ~ A) P(~ A)
“Law of Total
Probability”
Bayes’ Rule:
Why do we care??
Why is Bayes’ Rule useful??
It turns out that sometimes it is very useful to be able
to “flip” conditional probabilities. That is, we may
know the probability of A given B, but the probability
of B given A may not be obvious. An example will
help…
In-Class Exercise
If HIV has a prevalence of 3% in San Francisco, and a
particular HIV test has a false positive rate of .001 and
a false negative rate of .01, what is the probability that
a random person who tests positive is actually infected
(also known as “positive predictive value”)?
Answer: using probability treeP(test +)=.99 P (+, test +)=.0297
P(+)=.03
P(test - = .01)
P(test +) = .001
P(-, test +)=.00097
P(-)=.97
P(test / true ) P (true )
P(true / test )
P(test / true ) P (true ) P (test / true) P(true)
.99(.03)
96.8%
.99(.03) .001(.97)
Practice problem
An insurance company believes that drivers can be
divided into two classes—those that are of high risk and
those that are of low risk. Their statistics show that a
high-risk driver will have an accident at some time
within a year with probability .4, but this probability is
only .1 for low risk drivers.
a) Assuming that 20% of the drivers are high-risk, what
is the probability that a new policy holder will have
an accident within a year of purchasing a policy?
b) If a new policy holder has an accident within a year
of purchasing a policy, what is the probability that he
is a high-risk type driver?
EXAMPLE
In a basin area where oil is likely to be found
underneath the surface, there are three locations with
three different types of earth composition, say C1, C2,
C3. the probability for these three compositions are
0.5, 0.3 and 0.2, respectively. Further, it has been
found from the past experience that the probabilities of
finding oil due to drilling of well at these locations is
0.2, 0.4 and 0.3, respectively. Suppose a well is drilled
at a location, and it yields oil, what is the probability
the earth composition was C2?
EXAMPLE
The foreman in an iron foundry knows that the sand used for
moulding iron castings is too dry 5% of the time and too wet
2% of the time. He also knows that the defective castings
occur 0.5% of the time when the sand has the correct amount
of moisture; 5% of the time when the sand is too dry; and
25% of the time when the sand is too wet. Suppose a casting
is selected at random from the batch just produced and is
found to be defective. What is the probability that each of the
following is true?
The sand was too wet
The sand was too dry
The sand had the correct amount of moisture.
EXAMPLE
The compressors used in refrigerators are
manufactured by XYZ Co. at three factories at Pune,
Nasik and Nagpur. It is known that the Pune factory
produces twice as many compressors as the Nasik one,
which produces the same number as the Nagpur one.
Experience also shows that 0.2% of the compressors
produced at Pune and Nasik are defective and so are
0.4% of those produced at Nagpur.
A quality control engineer while maintaining a
refrigerator finds a defective compressor. What is the
probability that the Nasik factory is not be blamed.