Probability and Prob - Dist.
Probability and Prob - Dist.
Probability and Prob - Dist.
distributions
There are two important procedures by means of which we can estimate the probability
of an event.
1. CLASSICAL APPROACH: If an event can occur in h different ways out of a total number
of n possible ways, all of which are equally likely, then the probability of the event is h/n.
Example:
The probability that a head will turn up in a single toss of a coin.
Since there are two equally likely ways in which the coin can come up—namely, heads
and tails and of these two ways a head can arise in only one way, we reason that the
required probability is ½.
2. FREQUENCY APPROACH: The probability of an event (outcome or happening) is the
proportion of the time that events of the same kind will occur in the long run. Also called
the empirical probability of the event.
Example:
If we say that the probability is 0.84 that a flight from Biratnagar to kathmandu will arrive
on time, we mean (in accordance with the frequency interpretation) that such flights
arrive on time 84 percent of the time.
A 30 percent chance for rain (that is, a probability of 0.30), means that under the same
weather conditions it will rain 30 percent of the time.
The classical and frequency approaches have serious drawbacks, words “equally likely”
and “large number” is vague. Because of these difficulties, mathematicians have been
led to an AXIOMATIC APPROACH to probability , in which probabilities are defined as
“mathematical objects” that behave according to certain well-defined rules.
Sample spaces:
The set of all possible outcomes of an experiment is called the sample space and it is
usually denoted by the letter S. Each outcome in a sample space is called an element of the
sample space, or simply a sample point.
the sample space for the possible outcomes of one flip of a coin may be written as
S = {H, T}
Sample spaces with a large or infinite number of elements are best described by a
statement or rule.
Example, if the possible outcomes of an experiment are the set of automobiles
equipped with satellite radios, the sample space may be written as
S = {x|x is an automobile with a satellite radio}
event
If someone takes three shots at a target and we care only whether each shot is a hit or a miss,
describe a suitable sample space, the elements of the sample space that constitute event M
that the person will miss the target three times in a row, and the elements of event N that
the person will hit the target once and miss it twice.
Solution:
If we let 0 and 1 represent a miss and a hit, respectively, the total sample space is (0, 0, 0), (1,
0, 0), (0, 1, 0), (0, 0, 1), (1, 1, 0), (1, 0, 1), (0, 1, 1), and (1, 1, 1)
Event M = {(0, 0, 0)} and
N = {(1, 0, 0),(0, 1, 0),(0, 0, 1)}
The probability of an event.
THEOREM 1:
If A is an event in a discrete sample space S, then P(A) equals the sum of the
probabilities of the individual outcomes comprising A.
To use this theorem, we must be able to assign probabilities to the individual outcomes of
experiments.
Example 1:
If we twice flip a balanced coin, what is the probability of getting at least one head ?
Solution:
Let H and T denote head and tail respectively then, the sample space is
S = {HH, HT, TH, TT}.
Since the coin is balanced, these outcomes are equally likely each sample point will have the
probability (1/ 4) .
Letting A denote the event that we will get at least one head, we get A = {HH, HT, TH} and
P(A) = P(HH) + P(HT) + P(TH)
= (¼) + (¼) + (¼)
= (¾)
Example 2:
A die is loaded in such a way that each odd number is twice as likely to occur as each even
number. Find P(G), where G is the event that a number greater than 3 occurs on a single roll
of the die.
Solution:
Sample space is S = {1, 2, 3, 4, 5, 6}.
if we assign probability w to each even number
Then, probability to each odd number will be 2w.
We know that the sum of probabilities of each sample element equals 1
2w + w + 2w + w + 2w + w = 1
Or, 9w = 1
W = (1/9)
P(G) = probability of occurring 4,5 and 6 on a single roll.
P(G) = (1/9) + (2/9) + (1/9) = (4/9)
Some Rules of Probability
• If A and A’ are complementary events in a
sample space S, then
P(A’) = 1 − P(A)
• If A and B are any two events in a sample
space S, then
P(A ∪ B) = P(A) + P(B) − P(A ∩ B)
Example:
In a large metropolitan area, the probabilities are 0.86, 0.35, and 0.29, respectively, that a family
(randomly chosen for a sample survey) owns a color television set, a HDTV set, or both kinds of
sets. What is the probability that a family owns either or both kinds of sets
Solution:
If A is the event that a family in this metropolitan area owns a color television set and B is the event that
it owns a HDTV set, we have
P(A) = 0.86,
P(B) = 0.35, and
P(A ∩ B) = 0.29
Probability that a family owns either or both kinds of sets, P(A ∪ B) = 0.86 + 0.35 − 0.29 = 0.92
Example:
Near a certain exit of I-17, the probabilities are 0.23 and 0.24, respectively, that a truck stopped at a
roadblock will have faulty brakes or badly worn tires. Also, the probability is 0.38 that a truck stopped at
the roadblock will have faulty brakes and/or badly worn tires. What is the probability that a truck
stopped at this roadblock will have faulty brakes as well as badly worn tires?
Solution:
If B is the event that a truck stopped at the roadblock will have faulty brakes and T is the event that it
will have badly worn tires, we have P(B) = 0.23, P(T) = 0.24, and P(B∪T) = 0.38;
We know,
0.38 = 0.23 + 0.24 − P(B ∩T)
Solving for P(B ∩T), we thus get
P(B ∩T) = 0.23 + 0.24 − 0.38 = 0.09
Conditional Probability
• What is the probability that a lawyer makes more than
$75,000 per year? May get different answers.
• Different probabilities might refer to lawers employed by
corporations, engaged in the private practice, etc.
• It would be much more better to say:
– What is the probability that a lawyer makes more than $75000 a
year given that a person is a law school graduate?
– What is the probability that a lawyer makes more than $75000 a
year given that a person is actively engaged in the practice of
law?
– What is the probability that a lawyer makes more than $75000 a
year given that a person is licensed to practice law
• This is the very notion of conditional probability.
P(A|S) to denote the conditional probability of event A relative to the
sample space S or, as we also call it, “the probability of A given S.”
Example:
A consumer research organization has studied the services under warranty
provided by the 50 new-car dealers in a certain city, and its findings are
summarized in the following table
For the second question, we limit ourselves to the reduced sample space, which consists of the
first line of the table, that is, the 16 + 4 = 20 dealers who have been in business 10 years or more
n(T). Of these, 16 provide good service under warranty n(T ∩ G) , and we get.
n(T ∩ G)
n(T)
Then, if we divide the numerator and the denominator by n(S), the total number of new-car
dealers in the given city, we get
thus, expressed the conditional probability P(G|T) in terms of two probabilities defined for the
whole sample space S.
If A and B are any two events in a sample space S and P(A) ≠ 0, the conditional probability of B
given A is
Example:
With reference to above example, what is the probability that one of the dealers who has been
in business less than 10 years will provide good service under warranty?
Example:
A die is loaded in such a way that each odd number is twice as likely to occur as each even
number., what is the probability that the number of points rolled is a perfect square? Also, what
is the probability that it is a perfect square given that it is greater than 3?
Solution:
If A is the event that the number of points rolled is greater than 3 and B is the event that it is a
perfect square, we have A = {4, 5, 6}, B = {1, 4}, and A ∩ B = {4}. Since the probabilities of rolling
a 1, 2, 3, 4, 5, or 6 with the die are 2/9 , 1/9 , 2/9 , 1/9 , 2/9 , and 1/9 , we find that the answer
to the first question is
Multiplication Rule.
If we multiply the expressions on both sides of the formula of conditional probability
P(A ∩ B) = P(A)·P(B|A), Given that P(A) ≠ 0
Example:
If we randomly pick two television sets in succession from a shipment of 240 television sets of
which 15 are defective, what is the probability that they will both be defective?
Solution:
probability that the first set will be defective is (15/240) , and
the probability that the second set will be defective given that the first set is defective is (14/239) .
Thus, the probability that both sets will be defective is (15/240) × (14/239) = (7/1,912)
This assumes that we are sampling without replacement
Find the probabilities of randomly drawing two aces in succession from an ordinary deck of 52
playing cards if we sample (a) without replacement; (b) with replacement.
Independent Events
Two events A and B are independent if the occurrence or nonoccurrence of either one does not
affect the probability of the occurrence of the other.
Two events A and B are independent if and only if P(A ∩ B) = P(A)·P(B)
Example:
Find the probabilities of getting (a) three heads in three random tosses of a balanced coin; (b)
four sixes and then another number in five random rolls of a balanced die.
Solution:
(a) The probability of a head on each toss is 1/2 and the three outcomes are independent. Thus
we can multiply, obtaining 1/2 × 1/2 × 1/2 = 1/8.
(b) The probability of a six on each toss is 1/6 ; thus the probability of tossing a number other
than 6 is 5/6 . Inasmuch as the tosses are independent, we can multiply the respective
probabilities to obtain 1/6 · 1/6 · 1/6 · 1/6 · 5/6 = 5/7, 776
Bayes’s Theorem
If an event A can only occur in conjunction with one of the n mutually exclusive and
exhaustive events E1, E2, …, En and if A actually happens, then the probability that it
was preceded by the particular event Ei (i = 1, 2,…, n) is given by :
Proof:
Above formula comes from the conditional probability which is:
Since the event A can occur in combination with any of the mutually exclusive and exhaustive
events E1, E2, …, En, we have A = (A ∩ E1 ) ∪ (A ∩ E2 ) ∪ … ∪ (A ∩ En )
Example:
Two socks are selected at random and removed in succession from a drawer containing
five brown socks and three green socks. List the elements of the sample space, the
corresponding probabilities, and the corresponding values w of the random variable W,
where W is the number of brown socks selected
Solution:
If B and G stand for brown and green, the
probabilities for BB, BG, GB, and GG are,
BB = 5/8 × 4/7 = 5/14 ,
BG = 5/8 × 3/7 = 15/56 ,
GB = 3/8 × 5/7 = 15/56 , and
GG = 3/8 × 2/7 = 3/28 , and the results are
shown in the following table:
Also, we can write P(W = 2) = 5/14 , for example, for the probability of the event
that the random variable W will take on the value 2.
Example:
A balanced coin is tossed four times. List the elements of the sample space that are
presumed to be equally likely, as this is what we mean by a coin being balanced, and
the corresponding values x of the random variable X, the total number of heads.
Thus, we can write P(X = 3) = 4/16 , for example, for the probability of the
event that the random variable X will take on the value 3.
• In all of the examples of this section we have
limited our discussion to discrete sample
spaces (sample space with finite or countable
infinite elements) and hence a discrete
random variable
• A discrete random variables is a variable that
can only take on specific, individual (discrete)
values, and each of these values has a
probability assigned to it.
Probability Distribution
Assume two pair of dice is rolled, green and red, The probabilities associated with all
and each of the 36 outcomes has the probability possible values of X are shown in the
1/36. A random variable ‘X’ is defined as a total following table:
rolled with the pair of dice.
The sample space can be represented with the
following figure.
We can also express the probabilities by means of a function such that its values, f(x),
equal P(X = x) for each x within the range of the random variable X. For instance, for the
total rolled with a pair of dice we could write
Thus, If X is a discrete random variable, the function given by f(x) = P(X = x) for each x
within the range of X is called the probability distribution of X.
A function can serve as the probability distribution of a discrete random variable X if and
only if its values, f(x), satisfy the conditions:
the second condition of Theorem 1 is satisfied. Thus, the given function can serve as
the probability distribution of a random variable having the range {1, 2, 3, 4, 5}
There are many problems in which it is of interest to know the probability that the value of a
random variable is less than or equal to some real number x. Thus, let us write the
probability that X takes on a value less than or equal to x as F(x) = P(X ≤ x) and refer to this
function defined for all real numbers x as the distribution function, or the cumulative
distribution, of X.
where f(t) is the value of the probability distribution of X at t, is called the distribution
function, or the cumulative distribution of X.
Example:
Find the distribution function of the total number of heads obtained in four tosses of a
balanced coin
Thus, the probability for each random variable in the continuous case presumes the
existence of a function, called a probability density function.
PROBABILITY DENSITY FUNCTION.
A function with values f(x), defined over the set of all real numbers, is called a
probability density function of the continuous random variable X if and only if
we know that,
Thus, k = 3.
For the probability we get