Today we will review very basic probability rules to help us build towards analysis under the Bayeisan framework.
We will discuss
Experiment: A process that results in one and only one of many possible observations.
Simple outcomes: The possible results of our experiment.
Sample space: Collection of possible outcomes of the experiment.
Event: A collection of one or more of the outcomes of the experiment.
Example: rolling a die once.
There are two properties of probability that we must keep at the forefront of our mind.
First, probability always falls between 0 and 1. Mathematically,
0 \le P[E_i] \le 1
There are two properties of probability that we must keep at the forefront of our mind.
Second, the sum of all simple events for an experiment is always 1. Mathematically,
\sum_{i=1}^n P[E_i] = P[E_1] + ... + P[E_n] = 1
If there are 2 events and we know P[E_1]=0.7, what is P[E_2]?
If there are 4 events and we know P[E_1]=P[E_2]=0.1, P[E_3]=0.6, what is P[E_4]?
Subjective probability is the probability assigned to an event based on subjective judgement, experience, information, and belief.
Examples:
P[A] = \frac{\text{Number of outcomes favorable to $A$}}{\text{Total number of outcomes for the experiment}}
P[A] = \frac{f}{n} = \frac{\text{Frequency of $A$}}{\text{Sample size}}
Department | In Favor | Against | Total |
Electronics | 12 | 8 | 20 |
Clothing | 18 | 12 | 30 |
Grocery | 25 | 15 | 40 |
Customer Service | 5 | 5 | 10 |
Total | 60 | 40 | 100 |
A marginal probability is the probability of a single event occurring without considering any other variables.
It tells us the likelihood of one category happening overall, regardless of how it combines (or interacts) with other categories.
In our Target example:
Department | In Favor | Against | Total |
Electronics | 12 | 8 | 20 |
Clothing | 18 | 12 | 30 |
Grocery | 25 | 15 | 40 |
Customer Service | 5 | 5 | 10 |
Total | 60 | 40 | 100 |
What is the probability that a randomly selected employee is in favor?
What is the probability that randomly selected employee works in the Grocery department?
The joint probability is the probability that two events happen at the same time.
It tells us the likelihood that a randomly selected observation falls into both categories simultaneously.
In our Target example:
Department | In Favor | Against | Total |
Electronics | 12 | 8 | 20 |
Clothing | 18 | 12 | 30 |
Grocery | 25 | 15 | 40 |
Customer Service | 5 | 5 | 10 |
Total | 60 | 40 | 100 |
What is the probability that an employee is in the Grocery department and in favor of extended hours?
What is the probability that an employee is in Electronics and against extended hours?
Department | In Favor | Against | Total |
Electronics | 12 | 8 | 20 |
Clothing | 18 | 12 | 30 |
Grocery | 25 | 15 | 40 |
Customer Service | 5 | 5 | 10 |
Total | 60 | 40 | 100 |
What is the probability that an employee is in favor of extended hours given that they work in the Grocery department?
What is the probability that an employee works in the Electronics department given that they are against extended hours?
Events that cannot occur together are mutually exclusive or disjoint.
Consider rolling a single die:
Are events A and B mutually exclusive?
Are events A and C mutually exclusive?
Two events are said to be independent if the occurrence of one event does not affect the probability of the occurrence of the other event.
Mathematically,
P[A|B] = P[A] \text{ or } P[B|A] = P[B]
Department | In Favor | Against | Total |
Electronics | 12 | 8 | 20 |
Clothing | 18 | 12 | 30 |
Grocery | 25 | 15 | 40 |
Customer Service | 5 | 5 | 10 |
Total | 60 | 40 | 100 |
\begin{align*} P[A] &+ P[A^c] = 1 \\ P[A] &= 1 - P[A^c] \\ P[A^c] &= 1 - P[A] \end{align*}
Department | In Favor | Against | Total |
Electronics | 12 | 8 | 20 |
Clothing | 18 | 12 | 30 |
Grocery | 25 | 15 | 40 |
Customer Service | 5 | 5 | 10 |
Total | 60 | 40 | 100 |
Today we have reviewed probability basics.
We just need to understand general concepts to move foward.
Next week:
STA6349 - Applied Bayesian Analysis - Fall 2025