Probability and Statistics
Probability and Statistics
Probability and Statistics
Lec-4,5,6
Elements of Probability
Conditional probability
– Statistical independence, marginal probability
Bayes’s theorem
Sample Space
3
Sample Spaces
S1
S1
S2
5
Example 2.2
An experiment consists of flipping a coin and then flipping it a
second time if a head occurs. If a tail occurs on the first flip,
then a die is tossed once
T1
T4
6 T6
7
Sample Space by Rule
Can we write
No. of elements in a sample sample space
space is very large as a set?
S ( x, y) |x y 4
2 2
2
8
Events
An event is a subset
of a sample space
9
Example 2.4
Given the sample space S = {t | t > 0}, where t is the life in years of a certain
electronic component, then the event A that the component fails before the
end of the fifth year is the subset,
What is event A?
A = {t | 0<t <5}
10
Complement of Event
11
Example 2.6
12
Simple and Joint Event
Simple event
– Outcome from a sample space with one
characteristic
– e.g.: A red card from a deck of cards
Joint event
– Involves two characteristics/outcomes
simultaneously
– e.g.: An ace that is also red from a deck of
cards
Simple Events
S
Review Set
Theory
Requires knowledge of Set
Theory
19
Set Theory: Terminologies
Set: A Set is any well defined collection of
“objects.”
Elements: The elements of a set are the objects in a
set.
Notations: Usually we denote sets with upper-case
letters, elements with lower-case letters. The
following notation is used to show set membership
xA means that x is a member of the set A
xA means that x is not a member of the set A.
20
Set Representation
List of Items
A= 1,2,3,4,5,6
A= Integers x 1 x 6
21
Some Special Sets
The Universal Set: This is the set of all
elements currently under consideration, and is
often symbolized by
Membership Relationships
A Subset:
A B “A is a subset of B”
We say “A is a subset of B” if x A x B ,
i.e., all the members of A are also members
of B. The notation for subset is very similar to
the notation for “less than or equal to,” and
means, in terms of the sets, “included in or
equal to.”
Membership Relationships
Proper Subset:
A B “A is a proper subset of B”
We say “A is a proper subset of B” if all the
members of A are also members of B, but in
addition there exists at least one element c such
that c B but c A . The notation for subset
is very similar to the notation for “less than,” and
means, in terms of the sets, “included in but not
equal to.”
Combining Sets – Set Union
A B
“A union B” is the set of all elements that are in A, or B,
or both.
A B
“A intersect B” is the set of all elements that are in both A
and B.
This is similar to the logical “and”
Set Complement
A
“A complement,” or “not A” is the set of all elements not
in A.
The complement operator is similar to the logical not,
and is reflexive, that is,
A A
Set Difference
A B
The set difference “A minus B” is the set of elements that
are in A, with those that are in B subtracted out. Another
way of putting it is, it is the set of elements that are in A,
and not in B, so
A B A B
{1,2,3,4,5,6} {2,3,5,7,9,11} =
___________
{1,4,6} The complement of B with respect to A
Disjointedness
Help, I’ve
Two sets A, B are called been
disjointed!
disjoint (i.e., unjoined)
iff their intersection is
empty. (AB=)
{1,2,3,4,5,6}
A {1,2,3} B {3,4,5,6}
A B {3} A B {1,2,3,4,5,6}
B A {4,5,6} B {1,2}
Venn Diagrams
A B
AB
Venn Diagrams
A B
AB
Venn Diagrams
A B
AB
Mutually Exclusive and Exhaustive Sets
W
X Y
Some Test Questions
A ?
Some Test Questions
A A=?
Some Test Questions
A ?
Some Test Questions
A A=?
Some Test Questions
AA ?
Some Test Questions
A ?
Some Test Questions
?
Some Test Questions
If A B then
AB ?
Some Test Questions
If A B then
AB ?
Laws
Associative: A(BC)=(AB)C
A(BC)=(AB)C
DeMorgan’s Law
A B A B
A B A B
Counting Problem
Counting
Sample Points
48
Fundamental Counting Principal
If an operation is performed in ‘n1’
ways, and if for each of these ways a
Multiplication
Rule
second operation can be performed in
‘n2’ ways, the two operations can be
performed in ‘n1×n2’ ways
Example
How many sample points are there in the sample space when a
pair of dice is thrown once?
Sol:
n1=6
n2=6
N=n1 × n2 = 6 ×6=36
49
Fundamental Counting Principal
1H 2H 3H 4H 5H 6H
1T 2T 3T 4T 5T 6T
12 outcomes
2 outcomes
6*2 = 12 outcomes
6 outcomes
50
Example 2.14
51
Counting Arrangements
Permutation
52
Permutations
Order
Matters !
A Permutation is an arrangement
of items in a particular order.
53
Permutations
Example
3*2*1 = 6 3! = 3*2*1 = 6
ABC ACB BAC BCA CAB CBA
Permutations
To find the number of Permutations of n
items chosen r at a time, you can use the
formula
n!
P where 0 r n .
n r (n r )!
e.g. if ‘3’ items are chosen from ‘5’ items
5! 5!
5 P3 5 * 4 * 3 60
(5 3)! 2!
Permutations
Example
Try Now
Permutations
Example
24! 24!
24 p5
( 24 5)! 19!
24 * 23 * 22 * 21* 20 5,100,480
Combinations
Order Does
not Matters !
A Combination is an arrangement of
items in which order does not matter
n!
C where 0 r n .
n r r! ( n r )!
Combinations
Example
Answer Now
Combinations
Example
5! 5! 5 * 4
5 C3 10
3! (5 3)! 3!2! 2 * 1
Useful Results
N N
0! = 1, = 1, = 1
0 n
N N N N(N- 1) N
= 1, = N, = , =1
0 1 2 2 N
N N 24 24 24 23 22
= , e.g., = =
r N- r 21 3 321
62
Probability
Probability is the numerical
measure of the likelihood
that an event will occur
64
Sample Space and Probability
65
Computing Probabilities
2♦ 3♦ 4♦ 5♦ 6♦ 7♦ 8♦ 9♦ 10♦ J♦ Q♦ K♦ A♦
67
Rules (Axioms) of Probability
Axiom 2. P(S) = 1
68
Propositions of Probability
Proposition 1
P( A) 1 P( A)
Proposition 2
If A B , then P( A) P( B)
P( A B) P( A) P( B) P( A B)
69
Propositions of Probability
Proposition 4
P( A B) P( A).P( B)
70
Example
71
Example (Cont.)
72
Summary
73