Basics of Probability
Basics of Probability
X 31 days in January 31
T 365 days in 2015 365
Example of empirical probability
Find the probability of selecting a male taking statistics
from the population described in the following table:
• Simple event
• An event described by a single characteristic
• e.g., A day in January from all days in 2015
• Joint event
• An event described by two or more characteristics
• e.g. A day in January that is also a Wednesday from all days in 2015
• Complement of an event A (denoted A’)
• All events that are not part of event A
• e.g., All days from 2015 that are not in January
Sample Space
The Sample Space is the collection of all
possible events
January Days
Wednesdays
Organizing & Visualizing Events
• Contingency Tables -- For All Days in 2015
• Decision Trees
Total Number
Sample
Wed. 4 Of Sample Space
Outcomes
J an .
Space
All Days Not Wed. 27
In 2015 Wed. 48
N o t Ja
n.
Not W 286
ed .
Definition: Simple Probability
• Simple Probability refers to the probability of a simple event.
• ex. P(Jan.)
• ex. P(Wed.)
P(Jan.) = 31 / 365
Definition: Joint Probability
• Joint Probability refers to the probability of an occurrence of two
or more events (joint event).
• ex. P(Jan. and Wed.)
• ex. P(Not Jan. and Not Wed.)
A = Weekday B = Weekend
C = January; D = Spring;
• Where B1, B2, …, Bk are k mutually exclusive and collectively exhaustive events
Joint Probability Example
Wed. 4 48 52
Not Wed. 27 286 313
Wed. 4 48 52
Not Wed. 27 286 313
Event
Event B1 B2 Total
A1 P(A1 and B1) P(A1 and B2) P(A1)
P(A | B) P(A)
• Events A and B are independent when the probability of one event is not affected
by the fact that the other event has occurred
Multiplication Rules
• Multiplication rule for two events A and B:
• Where B1, B2, …, Bk are k mutually exclusive and collectively exhaustive events
Counting Rules Are Often Useful In Computing
Probabilities
• Counting Rule 1:
• If any one of k different mutually exclusive and collectively exhaustive events
can occur on each of n trials, the number of possible outcomes is equal to
kn
• Example
• If you roll a fair die 3 times then there are 63 = 216 possible outcomes
Counting Rules
• Counting Rule 2:
• If there are k1 events on the first trial, k2 events on the second trial,
… and kn events on the nth trial, the number of possible outcomes
is (k1)(k2)…(kn)
• Example:
• You want to go to a park, eat at a restaurant, and see a movie. There are 3
parks, 4 restaurants, and 6 movie choices. How many different possible
combinations are there?
• Answer: (3)(4)(6) = 72 different possibilities
Counting Rules
• Counting Rule 3:
• The number of ways that n items can be arranged in order is
n! = (n)(n – 1)…(1)
• Example:
• You have five books to put on a bookshelf. How many different ways can
these books be placed on the shelf?