Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
SALAAM
MBEYA COLLEGE OF HEALTH
AND ALLIED SCIENCES
LECTURE NOTES ON
PROBABILITY THEORY
Introduction
• Probability theory is concerned with the analysis of
phenomena that take place in in-deterministic, in other words
random circumstances.
• The theory of probability provides mathematical models for
real world phenomenon involving randomness.
Assuming that the events E1, E2, E3 are independent, find the
probability of the following events:
Example 1 cont…
a. (i) There is no specimen of species A in the trap.
(ii) There is no specimen of species B in the trap.
(iii) There is no specimen of species C in the trap.
b. There is an insect in the trap.
c. There is no insect in the trap.
d. There are specimens of all the three species in the trap.
e. There are specimens of at most two species in the trap.
Example 2
At a workplace the ratio of the women workers is 0.86. It is
known that 15% of the women working there suffer from
pollen allergy. What is the probability that a randomly chosen
worker is a women suffering from pollen allergy?
Example 3
Assume that boys and girls have the same chance of being
born and staying alive until a given age. Show that the
following two events relating to that age are independent in a
family with three children.
E := there are both boys and girls in the family;
F := there is at most one boy in the family
Example 4
At a job skill test 6 persons out of 100 suffer from physical
handicap and 4 from sensory handicap. Both handicaps were
detected in one person.
a) What is the probability that a randomly selected person
suffering from physical handicap suffers from sensory
handicap as well?
b) What is the probability that a randomly chosen person who
does not suffer from sensory handicap does not suffer from
physical handicap?
Example 5
In a Drosophila population 40% of the individuals have a wing
mutation, 20% of them have an eye mutation, and 12% have
both wing and eye mutations.
a) What is the probability that a randomly chosen individual of
this population has at least one of the mutations?
b) What is the probability that a randomly chosen individual of
this population has exactly one of the mutations?
Example 6
Families with two children can be classified into four groups
concerning the sexes of the children if we take into account the
order of births. By denoting the birth of a boy by b, and the
birth of a girl by g, the sample space is S:={(b, b); (b, g); (g, b);
(g, g)}. Assume that the four events have the same chance of
occur-ring. What is the probability that in a randomly chosen
family with two children both children are boys provided that
there is a boy in the family?
The Total Probability Theorem
• In applications it often happens that we cannot determine
directly the probability of an event, but we know its
conditional probabilities given other events.
• If all the events in a complete set of events have positive and
known probabilities, and we know the conditional probability
of an event given each event of the complete set.
• Then the total probability theorem allows us to calculate the
probability of the given event.
• If the events F1, F2,…, Fn with positive probabilities form a
complete set of events in a probability space, then the
probability of any event E can be given as
P(E) = P(E|F1) P(F1) + … + P(E|Fn) P(Fn)
• In a particular case of the theorem the complete set of events
consists of two elements (F and F’), Then:-
P(E) = P(E|F) P(F) + P(E|F’) P(F’)
Example 7
At a school a flu epidemic rages. The first-year students go to
three classes, 25 to class 1.A, 25 to class 1.B, 24 to class 1.C.
In class 1.A 40%, in class 1.B 56%, and in class 1.C 50% of
the pupils have got the flu. What is the probability that a
randomly chosen first-year student has got the flu?
BAYES THEOREM
• In many cases it is not the probability of an event which we are
interested in, but the question of what role the occurrence of
another event has played in the occurrence of the given event.
• Bayesian statistics named after Rev. Thomas Bayes (1702-
1761) is used to answer such questions.
• Bayes Theorem for probability events A and B
p( B | A) p( A)
p( A | B)
p( B)
Or for a set of mutually exclusive and exhaustive events
p ( B | Ai ) p( Ai )
p ( Ai | B)
j p( B | A j ) P( A j )
• P(A) is called “A prior Probability” because it exists before
we gain any information from the experiment itself.
• P(B|Ai) is called “Likelihoods” because it indicates how likely
the event A under the consideration is to occur given a prior
probability.
• P(Ai|B) is called “Posterior probability” because it is
determined after knowing the results of the experiment.
Example 8
• A new HIV test is claimed to have “95% sensitivity and 98%
specificity”
• In a population with an HIV prevalence of 1/1000, what is the
chance that a patient testing positive actually has HIV?
Solution
Let A be the event patient is truly positive, A’ be the event that
they are truly negative
Let B be the event that they test positive
• We want p(A|B), given:-
• P(A)= 0.001
• “95% sensitivity” means that P(B|A) = 0.95
• “98% specificity” means that P(B|A’) = 0.02
So from Bayes Theorem
p( B | A) p( A)
p( A | B)
p( B | A) p( A) p( B | A' ) p( A' )
0.95 0.001
0.045
0.95 0.001 0.02 0.999
Thus, only 4.5% of people testing positive will in fact have have
HIV.
• So the vital issue in this example is how should this test result
change our prior belief that the patient is HIV positive?
• The disease prevalence (p=0.001) can be thought of as a
‘prior’ probability.
• Observing a positive result causes us to modify this probability
to p=0.045 which is our ‘posterior’ probability that the patient
is HIV positive.
Example 9
A disease occurs in 0.5% of population. A diagnostic test gives
a positive result:-
– in 99% of people that have the disease.
– in 5% of people that do not have the disease (false
positive).
A random person from the street is found to be positive on this
test. What is the probability that they have the disease?
Example 10
In a town there is an equal number of men and women. From
100 men 5 are red-green colour deficient on an average, while
from 10, 000 women there are 25. We choose a red-green
colour deficient person at random. What is the probability that
the chosen person is a man?