# Algebra of Events

In earlier classes, we might have studied various techniques of combining two or more sets, viz, union, intersection, difference, the complement of a set, etc. Likewise we can connect two or more events by using similar set notations. Before learning about the algebra of events, recall the meaning of event in probability and how to represent it.

What is an event in Probability?

In probability, any subset, say E of a sample space S, is called an event. We have different types of events in probability. Also, we can perform different operations on these called the algebra of events.

## Algebra of Events in Probability

The algebra of events in probability comprises the following:

• Complementary Event
• The Event â€˜A or Bâ€™
• The Event â€˜A and Bâ€™
• The Event â€˜A but not Bâ€™

Suppose A, B, and C are the events associated with an experiment whose sample space is S such that A âŠ† S, B âŠ† S and C âŠ† S that means subsets of S. Let’s define the algebra of these events one by one.

### Complementary Event

For every event A, there corresponds another event Aâ€² called the complementary event to A. It is also called the event â€˜not Aâ€™.

Aâ€² = {Ï‰ : Ï‰ âˆˆ S and Ï‰ âˆ‰A} = S â€“ A

Here, A is the event, Ï‰ is the outcome associated with the event A and S is the sample space.

We can show the complementary event using venn diagram as:

For example, consider the experiment of â€˜tossing three coinsâ€™.

The associated sample space can be written as:

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

Let A be the event of getting â€˜at least two headsâ€™.

Thus, the outcomes associated with the event A = {HHT, HTH, THH, HHH}

From this, we can say that, for the outcome HTT the event A has not occurred. In other words, we may say that the event â€˜not Aâ€™ has occurred.

Therefore, the complementary event â€˜not Aâ€™ of the event A is Aâ€².

i.e. Aâ€² = {THH, HTT, THT, TTH, TTT}

### The Event â€˜A or Bâ€™

The Event â€˜A or Bâ€™ is the union of two sets A and B, denoted by A âˆª B containing all those elements in A or B or both.

When sets A and B are two events associated with a sample space, then A âˆª B is either A or B or both. This event â€˜A âˆª Bâ€™ is also called â€˜A or Bâ€™.

Therefore Event â€˜A or Bâ€™ = A âˆª B = {Ï‰: Ï‰ âˆˆ A or Ï‰ âˆˆ B}

The venn diagram representation of A or B, i.e. A âˆª B is given below:

For example, consider the experiment of throwing two dice at a time.

The associated sample space can be written as:

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)}

Let A be the event of getting a sum of two scores will be a multiple of 3 and B be the event of getting same scores on both dice.

The outcomes associated with these events are:

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

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

Therefore, A â‹ƒ B = {(1, 1), (1, 2), (1, 5), (2, 1), (2, 2), (2, 4), (3, 3), (3, 6), (4, 2), (4, 4), (4, 5), (5, 1), (5, 4), (5, 5), (6, 3), (6, 6)}

### The Event â€˜A and Bâ€™

The Event â€˜A and Bâ€™ is the intersection of two sets A âˆ© B is the set of those common elements to both A and B, i.e., the elements belong to both â€˜A and Bâ€™.

If A and B are two events, then the set A âˆ© B denotes the event â€˜A and Bâ€™. It is expressed as:

A âˆ© B = {Ï‰: Ï‰ âˆˆ A and Ï‰ âˆˆ B}

Below figure shows the set A âˆ© B using Venn diagram.

Again, consider the experiment of throwing two dice at a time.

The associated sample space can be written as:

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)}

Let A be the event of getting a score on the second die is 5 and B be the event of getting sum of scores on dice is 10 & more than 10.

The outcomes associated with these events are:

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

B = {(3, 6), (6, 4), (5, 5), (5, 6), (6, 5), (6, 6)}

Therefore, A âˆ© B = {(5, 5), (6, 5)}

### The Event â€˜A but not Bâ€™

The event A but not B is the set A – B, i.e. difference of sets A and B. It is the set of all those elements which are in A but not in B. We can calculate the set A – B using the expression:

A â€“ B = A âˆ© Bâ€²

Thus, A – B = {Ï‰: Ï‰ âˆˆ A and Ï‰ âˆ‰ B}

The below figure helps in understanding the event A but not B.

Let us consider the experiment of rolling a die.

The sample space is S = {1, 2, 3, 4, 5, 6}

Let A be the event of getting a prime number and B be the event of getting an even number.

The outcomes associated with these events are:

A = {2, 3, 5}

B = {2, 4, 6}

Thus, A – B = {2, 3, 5} – {2, 4, 6} = {3, 5}

Alternatively,

Bâ€² = {1, 3, 5}

A âˆ© Bâ€² = { 2, 3, 5} âˆ© {1, 3, 5} = {3, 5}

Therefore, A – B = {3, 5}

### Solved Example

Question: Consider the experiment of throwing a die and the events are:

A: â€˜a number less than 4 appearsâ€™,

B: â€˜a number greater than 2 but less than 5 appearsâ€™

Write the sets representing the events (i) A or B (ii) A and B (iii) A but not B (iv) â€˜not Aâ€™ (v) â€˜not Bâ€™.

Solution:

Sample space = S = {1, 2, 3, 4, 5, 6}

A = {1, 2, 3}

B = {3, 4}

(i) A or B = A â‹ƒ B = {1, 2, 3} â‹ƒ {3, 4} = {1, 2, 3, 4}

(ii) A and B = A âˆ© B = {1, 2, 3} âˆ© {3, 4} = {3}

(iii) A but not B = A – B = {1, 2, 3} – {3, 4} = {1, 2}

(iv) not A = Aâ€² = S – A = {1, 2, 3, 4, 5, 6} – {1, 2, 3} = {4, 5, 6}

(v) not B = Bâ€² = S – B = {1, 2, 3, 4, 5, 6} – {3, 4} = {1, 2, 5, 6}