Ch. 2 - Introduction to Probability

Class: STAT-211


Notes:

Outline:

Sample Spaces and Events

Random Experiment

An experiment is a planned operation carried out under controlled
conditions. If the outcome of an experiment is uncertain but statistically predictable, the experiment is called a random experiment.

Examples

Probability is a measure associated with the outcomes of a random experiment that quantifies how likely a given outcome is to occur when the experiment is performed.

Events and Sample Space

The result or outcome of a random experiment is called an event. Upper case letters like A, B etc are used to denote events.

The sample space S a random experiment is the set of all possible
elementary events.

Examples

  1. Flipping a fair coin once. There are only two possibilities: either a head (H) or a tail (T). The sample space is S = {H, T}.
    • These are two only possible outcomes
    • They cannot be written as compositions as more than one outcomes
    • How many elementary events are possible here? there only these 2 (outcomes)
    • Note the set notation for S.
  2. Flipping a fair coin twice. Here, S = {HH, HT , TH, TT}. The event of ‘resulting in a head in the first flip’ = {HH, HT} is composite.
    • Make use of a three diagram to enumerate all possible of elementary outcomes
    • The event of observing a head in the first flip of a coin can happen in
      • This is not an elementary event
    • This event consist in more than one elementary events in the sample space
  3. Rolling a fair die once. Here, S = {1, 2, 3, 4, 5, 6}. The event of getting an even number {2, 4, 6} is composite.
    • The ocurrance of each of these numbers, cannot be represented as compositions of more than 1 numbers
    • These are elementary outcomes, there are 6 in the sample space
    • Even number: it is a multiple of 2
    • Which of the 6 elements in S are even?
      • 2, 4, 6
      • the event of observing an even number can occur if anyone of these numbers appears
    • This event consist of 3 elementary outcomes from the sample space
      • This is a composite event.

"An event is nothing but a subset of the sample space S"

Events

When enumerating all of the outcomes in an event is burdensome, we
can just state the event.

Example
Draw a card at random from a well-shuffled deck of 52 cards:

Write A = the card is a Spade to be the event, which consists of 13
elementary outcomes.


An event A is a collection or set consisting of one or more elementary outcomes of a random experiment.

For an event A to occur, the outcome of the random experiment must be contained in A.

Therefore, we need some notation/language for manipulating sets.


Set Operations

Basic Set Theoretic Operations

Venn Diagrams

Pasted image 20250909141752.png|300

Set Operations

Set Operations: Example

Let T be the event that a firm will open a branch office in Toronto, and M be the event that it will open an office in Mexico City.

Express the following events in terms of events T and M:

  1. The firm will not open its office in Toronto:
    Tc
  2. The firm will open its office in both the cities:
    T ∩ M
  3. The firm will not open its office in both the cities:
    (T ∩ M)c = Tc ∪ Mc
  4. The firm will open its office in at least one of the two cities:
    T ∪ M
  5. The firm will open its office in neither of the two cities:
    Tc ∩ Mc = (T ∪ M)c
  6. The firm will open its office in Toronto, but not in Mexico City:
    T − M = T ∩ Mc
  7. The firm will open its office in Mexico City, but not in Toronto:
    M − T = M ∩ Tc
  8. The firm will open its office in exactly one of the two cities:
    (M − T) ∪ (T − M)
    • These two event will always be disjoint to each other

Probability

Definition of probability

Probability is a measure or ‘size’ associated with the outcomes of a
random experiment that quantifies how likely a given outcome is to occur when the experiment is performed.

We write the probability of an event A as P(A) or Pr(A).

The definition of probability must satisfy these three axioms:

Together, the axioms imply: P(∅) = 0 where ∅ denotes the null (or, the
empty ) event.

Probability Laws

Law 1: For any event A, P(Ac) = 1 − P(A).

Law 2: For any two events A and B (not necessarily disjoint),

P(AB)=P(A)+P(B)P(AB).

Law 3: If A and B are disjoint,

P(AB)=0.

Law 4: If A and B are disjoint,

P(AB)=P(A)+P(B).

Law 5: For any two events A and B (not necessarily disjoint),

P(A)=P(AB)+P(AB).

Law 6: If A ⊂ B, P(A) ≤ P(B).

Example

A company has two maintenance workers, A and B. The probability that
maintenance worker A is on duty on any given day is 0.80, and the
probability that maintenance worker B is on duty on any given day is
0.75. The probability that both maintenance workers are on duty on the
same day is 0.60.

What is the probability that at least one of the maintenance workers is on duty on any given day?

Let EA and EB denote the events that worker A is on duty on any given
day, and worker B is on duty on any given day, respectively.

According to the problem,

P(EA)=0.80,P(EB)=0.75, and P(EAEB)=0.60P(EAEB)=P(EA)+P(EB)P(EAEB)=0.80+0.750.60=0.95

What is the probability that neither of the two workers are on duty on any given day?

P(EAcEBc)=P((EAEB)c)=1P(EAEB)=0.05

Example 2

A college student is taking two courses. The probability she passes the first course (say, event A) is 0.64. The probability she passes the second course (say, event B) is 0.75. The probability she passes at least one of the courses is 0.85.

By the problem, P(A) = 0.64, P(B) = 0.75, and P(A ∪B) = 0.85.

P(AB)=P(A)+P(B)P(AB)=0.54

- Apply Union formula (law 2)

P(AcBc)=P((AB)c)=1P(AB)=10.85=0.15

- She neither passes course 1 nor she passes course 2
- Follows from De Morgans Law

P(AcBc)=P((AB)c)=1P(AB)=10.54=0.46

- Follows from Demorgans law

P(AB)+P(BA)=[P(A)P(AB)]+[P(B)P(AB)]=[0.640.54]+[0.750.54]=0.31

- Passes course 1 but fails in course 2: (A - B)
- Passes course 2 but fails in course 1: (B - A)
- Sum of individual probabilities
- Follows from law 4
- Probability of the union of disjoint sequnce of event is equal to the sum of the individual porbabilities
- Break down using law 5

Example 3

The probability that a firm will open a branch office in Toronto is 0.7, that it will open one in Mexico City is 0.4, and that it will open an office in at least one of the cities is 0.8.

P(T)=0.7,P(M)=0.4,andP(TM)=0.8

Find the probabilities that the firm will open an office in:

  1. neither of the cities (Ans: 0.2)
P(TcMc)=P((TM)c)=1P(TM)=10.8=0.2

- Follows from De Morgans law

  1. both the cities (Ans: 0.3)
P(TM)=P(T)+P(M)P(TM)=0.7+0.40.8=0.3

- They are already given

  1. exactly one of the cities (Ans: 0.5)
P(TM)+P(MT)=[P(T)P(TM)]+[P(M)P(TM)]=[0.70.3]+[0.40.3]=0.5

- Sum of individual probabilities
- Break down using law 5

Note:

Classical Definition

Classical Definition of Probability

Assumptions

Then, according to the classical definition,

P(A)=No. of elements in S favoring the occurrence of ANo. of elements in S

Examples

Coin Tossing Examples

Example 1
Suppose you toss a fair coin twice. Here, the sample space S has four (2^2) equally likely elementary events:

S={HH,TH,HT,TT}

Define the event A as ‘getting exactly one head’. Then A = {HT , TH}.

Hence, by the classical definition P(A) = 24 = 0.5

Example 2
Suppose you toss a fair coin thrice. Here, the sample space S has eight (2^3) equally likely elementary events:

S={HHH,HHT,HTH,THH,HTT,THT,TTH,TTT}

Define the event A as ‘getting a head at the second flip’. Then
A = {HHH, HHT , THH, THT}.

By the classical definition, P(A) = 48 = 0.5

Card Drawing Example

Suppose a card is drawn at random from a well-shuffled deck of 52 cards:

Pasted image 20250911142041.png|400

Let A and B denote the events that ”the card drawn is a Spade” and
”the card drawn is a Face card” (that is, it is either ”J”, ”Q” or ”K”), respectively. By the Classical Definition,

P(A)=1352, P(B)=1252, and P(AB)=352 P(AB)=1252+1352352=2252P(AcBc)=P((AB)c)=1P(AB)=3052

- Applying de Morgans Law we can rewrite the event

Rolling a Fair Die Twice

Suppose we roll a fair die twice. The sample space would comprise of
6 × 6 = 36 many paired outcomes as follows:

S= {
(1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6),
(2, 1), (2, 2), (2, 3), (2, 4), (2, 5), (2, 6),
(3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6),
(4, 1), (4, 2), (4, 3), (4, 4), (4, 5), (4, 6),
(5, 1), (5, 2), (5, 3), (5, 4), (5, 5), (5, 6),
(6, 1), (6, 2), (6, 3), (6, 4), (6, 5), (6, 6)
}

For each pair, the first component denotes the outcome of the first roll, and the second one denotes the outcome of the second roll. Note that the probability of each outcome in S is 1/36

Let A be the event that the sum of the two faces equals 7. Then,
A= {(1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1)}.
Hence, P(A) = 636 = 16

Let B be the sum of the two faces (sum of the two complements) is an even number (that means it is a multiple of 2)

Other examples

The following table classifies a population of 100 plastic disks in terms of their scratch and shock resistance shock resistance

Pasted image 20250911144630.png|300

Suppose that one of the 100 disks is randomly selected. What is the
probability that

More examples

A large tech company is considering developing a generative artificial
intelligence chatbot. To gauge overall interest in this new project, the company conducted a survey of 50,000 employees across four different departments. Employees were asked to rate their excitement for the project on a scale of 1-5, with 5 indicating the highest level of excitement. The results of the survey are provided below.

Pasted image 20250911145634.png|500

Shortcomings of the Classical Definition

  1. The definition is circular in nature.
    • The second condition: Elements must be equally liked, equally probable to occur
  2. Equally likely elementary events are rare in practice.
  3. Smay have an infinitely or uncountably many elements

Examples

Long-term Interpretation of Probability

Let A be an outcome of an random experiment, and we wish to find P(A), the true probability of the occurrence of event A.

p^(A)=Number of times event A occursNumber of replications of the experiment

Then, for sufficiently large N, p^(A)P(A).