VOOZH about

URL: https://www.geeksforgeeks.org/maths/use-of-sets-in-probability-theory/

⇱ Use of Sets in Probability Theory - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Use of Sets in Probability Theory

Last Updated : 14 Mar, 2026

A set is a collection of distinct objects or elements. In probability theory, sets are used to represent the possible outcomes of an experiment and the events associated with those outcomes. Using sets helps us organize outcomes clearly and apply mathematical operations to calculate probabilities.

For example, when we toss a coin, the possible outcomes are Head and Tail. We can represent these outcomes as: S = {Heads, Tails}

👁 Probability-1.webp

Operations on Sets

Set operations allow us to combine, compare, or modify sets and are essential in areas like probability, logic, and mathematics. Below are the key operations on sets:

Union of Sets: The union of two sets, A and B, is the set containing all elements that belong to A, B, or both. It is denoted by A ∪ B. In probability, the union represents the event that either A or B (or both) occurs.

P(A ∪ B) = P(A) + P(B) - P(A ∩ B)

Intersection of Sets: The intersection of two sets, A and B, is the set containing the common elements present in both sets. It is denoted by A ∩ B.

P(A ∩ B) = P(A) ✖ P(B) (if A and B are independent)

Complement of a Set: The complement of a set A, denoted by A', is the set of all elements that are not in A. In probability, the complement of an event represents the event that A does not occur.

P(A') = 1 - P(A)

Difference of Sets: The difference of two sets, A and B, denoted by A − B, is the set of elements that are in A but not in B.

Sample Space and Events

Sample Space (Universal Set)

The sample space in probability is analogous to the universal set in set theory. It represents all possible outcomes of an experiment.

  • Example: When tossing a coin, the sample space S (or universal set) is {H, T}, where H stands for heads and T stands for tails.

Events as Subsets

An event is a subset of the sample space, representing a particular outcome or a set of outcomes.

  • Example: In the case of rolling a die, the sample space S is {1, 2, 3, 4, 5, 6}. The event of rolling an even number would be the subset E = {2, 4, 6}.

Example: Tossing Two Coins

Consider an example in which we are intended to find the sample space of this event so we get the sample space as: S = {HH, TT, TH, HT}

Let say A be an event in which getting at least one Head. then the sample space is going to be: A = {HH, HT, TH}

And let say B be the event of getting exactly one tail: B = {HT, TH}

Solved Questions: Sets in Probability Theory

Question 1: If P(A) = 0.6 and P(B) = 0.5 with P(A ∩ B) = 0.2, calculate P(A ∪ B)

Given: P(A) = 0.6, P(B) = 0.5, and P(A ∩ B) = 0.2

P(A ∪ B) = P(A) + P(B) - P(A ∩ B)
⇒ P(A ∪ B) = 0.6 + 0.5 - 0.2 = 0.9

Problem 2: Consider the sample space S = {1, 2, 3, 4, 5, 6}. Let A = {2, 4, 6} and B = {1, 2, 3}. Find A ∩ B and A ∪ B.

Given: A = {2, 4, 6} and B = {1, 2, 3}

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

Related Articles

Comment

Explore