11-12 Th Lecture
11-12 Th Lecture
University of Khana-e-Noor
Faculty of computer science
1
Basic Probability
Basic Probability Concepts
X 12 face cards 3
n 52 total cards 13
Example of empirical probability
Simple event
An event described by a single characteristic
e.g., A red card from a deck of cards
Joint event
An event described by two or more characteristics
e.g., An ace that is also red from a deck of cards
Sample Space
The Sample Space is the collection of all
possible events
e.g. All 6 faces of a die:
Contingency Tables
ace Not ace Total
Black 2 24 26
Red 2 24 26
Total 4 48 52
24
Computing Probabilities
example:
A = aces; B = black cards;
C = diamonds; D = hearts
P(Ace)
2 2 4
P( Ace and Re d) P( Ace and Black)
52 52 52
Color
Type Red Black Total
Ace 2 2 4
Non-Ace 24 24 48
Total 26 26 52
Joint Probability Example
Color
Type Red Black Total
Ace 2 2 4
Non-Ace 24 24 48
Total 26 26 52
Computing Probabilities