Professional Documents
Culture Documents
CL202: Introduction To Data Analysis: MB, SCP
CL202: Introduction To Data Analysis: MB, SCP
MB, SCP
Spring 2015
Experiment: outcome ω not known in advance but set of all possible outcomes is
known.
Sample space S of an experiment: set of all possible outcomes
Examples:
1) Coin toss: S={H,T}
2) Dice throw: S={1,2,3,4,5,6}
3) Race involving 7 horses: S={all orderings of (1,2,3,4,5,6,7)} where
outcome (2,3,1,6,5,4,7) means for instance that horse numbered 2 finishes
first followed by horse numbered 3, etc.
4) S for the value of a concentration in a kinetics experiment is [0, ∞).
n(E )
P(E ) = lim = constant
N→∞ N
Mathematically, for each event E of an experiment with sample space S, there is a
number denoted P(E ) (called probability of event E) consistent with the following
three axioms:
1. 0 ≤ P(E ) ≤ 1
2. P(S) = 1
3. For any sequence of mutually exclusive events E1 , E2 , ..., En (i.e. Ei ∩ Ej = φ
when i 6= j),
n X n
P ∪ Ei = P(Ei ), n = 1, 2, ..., ∞
i=1
i=1
i.e. 70% like atleast one of the two. Thus 30% don’t like both.
Odds tell how much more likely it is that A occurs than that it does not occur.
Example: If P(A) = 3/4 then odds are 3 i.e. it is 3 times as likely that A occurs
as it is that it does not.
For some experiments, each point in sample space is equally likely to occur,
i.e if
S = {ω1 , ω2 , ..., ωN }
Then if, P({ω1 }) = P({ω2 }) = ... = P({ωN }) = p, say
N
X 1
=⇒ P(S) = P({ωi }) = Np = 1 =⇒ p =
N
i=1
Illustration:
Determine number of different ways n distinct objects can be a arranged in a
linear order:
n × (n − 1) × . . . (n − r + 1) × . . . × 1
1st exp 2nd exp rth exp nth exp
which is n!.
Each arrangement is known as a permutation.
Example: Mr. X has 10 books: 4 maths, 3 chemistry, 2 history and 1 english.
How many arrangements of books on a bookshelf are possible such that all books
dealing with the same subject are together on the shelf.
Soln:
4! 3! 2! 1! 4! = 6912
mathschemhistoryenglish order of subjects
Define: For r ≤ n,
n n n!
Cr = =
r (n − r )!r !
is the number of combinations of n objects taken r at a time, or number of
different groups of r objects that could be formed from a set of n objects.
Note:
n n(n − 1)(n − 2)...(n − r + 1)
=
r r!
where numerator is the number of different ways that a group of r items could be
selected from n items when the order of selection is considered relevant,
denominator denotes that each group of r items is counted r ! times.
Algebra of events
Axioms of probability
Principles of counting
n!
Permutations (order is relevant): n Pr = (n−r )!
n n!
Combinations (order not considered): n Cr = r = (n−r )!r !
P{A ∩ B}
P{A|B} =
P{B}
P{B ∩ B} P{B}
P{B|B} = = =1
P{B} P{B}
Organization that Jones works for is organizing a father-son dinner for those
employees having atleast one son.
If Jones is known to have two children, what is the conditional probability
that they are both boys given than he is invited to the dinner?
Soln.
I Sample space S = {(b, b), (b, g ), (g , b), (g , g )}. Assume each outcome
equally likely.
I B: event that both children are boys, A: event that atleast one of them is a
boy.
I To find: P(B | A).
For example,
A = {person is IITB student},
B = {person lives in Mumbai},
C = {person wears specs}.
Then
P{A ∩ B ∩ C } = P{A | (B ∩ C )}P{B ∩ C } = P{A | B ∩ C }P{B | C }P{C }.
The general product rule: If A1 , A2 , ..., An be n events, then
P{A1 ∩ A2 ∩ ... ∩ An }
Pc := P{A|C }
Be careful about the events before and after the condition bar:
is false!
For example, if B and C are separate non overlapping subsets of A, then
P{A | B} = P{A | C } = 1
(why??) and
P{A | B ∪ C } = 1
whereas
P{A | B} + P{A | C } = 1 + 1
E = E ∩ S = E ∩ (F ∪ F C ) = EF ∪ EF C
This tells us how to update our probabilities once some information becomes
known.
This is often rearranged to the forms
P(A)P(B|A)
P(A|B) =
P(B)
or,
log P(A|B) = log P(A) + log P(B|A) − log P(B)
P(A)P(B|A)
P(A|B) =
P(B)
Two coin example: One coin = fair, Second coin has P{heads} = 1;
If a coin is randomly chosen and flipped, and heads obtained, what is the
probability that the fair coin was flipped?
A = fair coin was flipped, and B = heads was obtained.
P{A ∩ B} 0.09 1
P{A|B} = = =
P{B} 0.09 + 0.27 4