# Probability

- 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

## Recommended Posts:

- Probability | Set-2
- TCS Coding Practice Question | Check Armstrong Number
- TCS Coding Practice Question | Check Odd or Even
- TCS Coding Practice Question | Fibonacci Series
- TCS Coding Practice Question | Factorial of a Number
- TCS Coding Practice Question | Average of 2 Numbers
- TCS Coding Practice Question | HCF or GCD of 2 Numbers
- TCS Coding Practice Question | LCM of 2 Numbers
- TCS Coding Practice Question | Swap two Numbers
- TCS Coding Practice Question | Concatenate 2 Strings
- TCS Coding Practice Question | Greatest of 3 Numbers
- TCS Coding Practice Question | Checking Leap Year
- TCS Coding Practice Question | Checking Prime Number
- TCS Coding Practice Question | Prime Numbers upto N