- Sample Space (S) : The set of all possible outcomes of an event
- Probability : The likeness of an event to happen
- Probability = Number of favorable outcomes / Total Number of outcomes
- 0 ≤ P ≤ 1

### Sample Problems

**Question 1 : **Three unbiased coins are tossed. What is the probability that atmost one head occurs ?

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

Favorable outcomes = {HTT, THT, TTH, TTT}

Total number of outcomes = 8

Number of favorable outcomes = 4

Required probability = 4 / 8 = 0.50

**Question 2 : **Find the probability of getting a red card when a card is drawn from a well shuffled pack of cards.

**Solution : **Total number of outcomes = 52

Number of favorable outcomes = Number of red cards = 26

=> Required probability = 26 / 52 = 0.50

**Question 3 : **A bag contains 6 white and 4 black balls. Two balls are drawn at random from the bag. Find the probability that both the balls are of the same color.

**Solution : **Outcome will be favorable if the two balls drawn are of the same color.

=> Number of favorable outcomes = ^{6} C _{2} + ^{4} C _{2} = 21

Total number of outcomes = ^{10} C _{2} = 45

Therefore, required probability = 21 / 45 = 7 / 15

**Question 4 : **An unbiased die is tossed. Find the probability of getting an even number.

**Solution : **S = {1, 2, 3, 4, 5, 6}

Favorable outcomes = {2, 4, 6}

Required probability = 3 / 6 = 0.50

**Question 5 : **From a bag containing red and blue balls, 10 each, 2 balls are drawn at random. Find the probability that one of them is red and the other is blue.

**Solution : **Total number of outcomes = ^{20} C _{2} = 190

Number of favorable outcomes = ^{10} C _{1} x ^{10} C _{1} = 100

Therefore, required probability = 100 / 190 = 10 / 19

### Problems on Probability | Set-2

This article has been contributed by **Nishant Arora**

Please write comments if you have any doubts related to the topic discussed above, or if you are facing difficulty in any question or if you would like to discuss a question other than those mentioned above.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the **DSA Self Paced Course** at a student-friendly price and become industry ready.

## Recommended Posts:

- Probability | Set-2
- Cisco Systems Interview Experience | On-Campus 2021
- Barclays Interview Experience | On-Campus ( Virtual ) September 2020
- Minimize splits to generate monotonous Substrings from given String
- Minimize Sum of an Array by at most K reductions
- Add and Remove Edge in Adjacency Matrix representation of a Graph
- Check if two nodes are on same path in a tree | Set 2
- Minimum count of numbers required with unit digit X that sums up to N
- Print the longest path from root to leaf in a Binary tree
- Largest number M less than N such that XOR of M and N is even
- Shortest path in a complement graph
- First element of every K sets having consecutive elements with exactly K prime factors less than N
- Puzzle | Single Elimination Tournament
- Minimum changes required to make all Array elements Prime