# Mathematics | Probability

**Probability** refers to the extent of occurrence of events. When an event occurs like throwing a ball, picking a card from deck, etc ., then the must be some probability associated with that event.

In terms of mathematics, probability refers to the ratio of wanted outcomes to the total number of possible outcomes. There are three approaches to the theory of probability, namely:

- Empirical Approach
- Classical Approach
- Axiomatic Approach

In this article, we are going to study about Axiomatic Approach.In this approach, we represent the probability in terms of sample space(S) and other terms.

**Basic Terminologies:**

**Random Event :-**If the repetition of an experiment occurs several times under similar conditions, if it does not produce the same outcome everytime but the outcome in a trial is one of the several possible outcomes, then such an experiment is called random event or a probabilistic event.**Elementary Event –**The elementary event refers to the outcome of each random event performed. Whenever the random event is performed, each associated outcome is known as elementary event.**Sample Space –**Sample Space refers tho the set of all possible outcomes of a random event.Example, when a coin is tossed, the possible outcomes are head and tail.**Event –**An event refers to the subset of the sample space associated with a random event.**Occurrence of an Event –**An event associated with a random event is said to occur if any one of the elementary event belonging to it is an outcome.**Sure Event –**An event associated with a random event is said to be sure event if it always occurs whenever the random event is performed.**Impossible Event –**An event associated with a random event is said to be impossible event if it never occurs whenever the random event is performed.**Compound Event –**An event associated with a random event is said to be compound event if it is the disjoint union of two or more elementary events.**Mutually Exclusive Events –**Two or more events associated with a random event are said to be mutually exclusive events if any one of the event occurrs, it prevents the occurrence of all other events.This means that no two or more events can occur simultaneously at the same time.**Exhaustive Events –**Two or more events associated with a random event are said to be exhaustive events if their union is the sample space.

**Probability of an Event –** If there are total **p** possible outcomes associated with a random experiment and **q** of them are favourable outcomes to the event A, then the probability of event A is denoted by P(A) and is given by

P(A) = q/p

The probability of non occurrence of event A, i.e, P(A’) = 1 – P(A)

**Note –**

- If the value of P(A) = 1, then event A is called sure event .
- If the value of P(A) = 0, then event A is called impossible event.
- Also, P(A) + P(A’) = 1

**Theorems:**

**General –**Let A, B, C are the events associated with a random experiment, then- P(A∪B) = P(A) + P(B) – P(A∩B)
- P(A∪B) = P(A) + P(B) if A and B are mutually exclusive
- P(A∪B∪C) = P(A) + P(B) + P(C) – P(A∩B) – P(B∩C)- P(C∩A) + P(A∩B∩C)
- P(A∩B’) = P(A) – P(A∩B)
- P(A’∩B) = P(B) – P(A∩B)

**Extension of Multiplication Theorem –**Let A_{1}, A_{2}, ….., A_{n}are n events associated with a random experiment, then

P(A_{1}∩A_{2}∩A_{3}….. A_{n}) = P(A_{1})P(A_{2}/A_{1})P(A_{3}/A_{2}∩A_{1}) ….. P(A_{n}/A_{1}∩A_{2}∩A_{3}∩ ….. ∩A_{n-1})

**Example-1:** A bag contains 10 oranges and 20 apples out of which 5 apples and 3 oranges are defective .If a person takes out two at random, what is the probability that either both are good or both are apples ?

**Solution –**

Out of 30 items, two can selected in ^{30}C_{2} ways .

Thus, Total elementary events = ^{30}C_{2} .

Consider the events :

A = Getting two apples

B = Getting two good items

Required Probability is :

P(A∪B) = P(A) + P(B) – P(A∩B) …(i)

There are 20 apples, out of which 2 can drawn in ^{20}C_{2} ways .

P(A) = ^{20}C_{2}/^{30}C_{2}

There are 8 defective items and 22 are good, Out of 22 good items, two can be can drawn in ^{22}C_{2} ways .

P(B) = ^{22}C_{2}/^{30}C_{2}

Sice there are 15 items which are good apples, out of which 2 can be selected in ^{15}C_{2} ways .

P(A∩B) = ^{15}C_{2}/^{30}C_{2}

Substituting the values of P(A), P(B) and P(A∩B) in (i)

Required probability is = (^{20}C_{2}/^{30}C_{2}) + (^{22}C_{2}/^{30}C_{2}) – (^{15}C_{2}/^{30}C_{2})

= 316/435

**Example-2:** The probability that a person will get an electric contract is 2/5 and probability that he will not get plumbing contract is 4/7 . If the probability of getting at least one contact is 2/3, what is the probability of getting both ?

**Solution:**

Consider the two events:

A = Person gets electric contract

B = Person gets plumbing contract

We have,

P(A) = 2/5

P(B’) = 4/7

P(A∪B) = 2/3

Now,

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

= (2/5) + (1 – 4/7) – (2/3)

= 17/105

**Total Law of Probability –** Let S be the sample space associated with a random experiment and E_{1}, E_{2}, …, E_{n} be n mutually exclusive and exhaustive events associated with the random experiment . If A is any event which occurs with E_{1} or E_{2} or … or E_{n}, then

P(A) = P(E_{1})P(A/E_{1}) + P(E_{2})P(A/E_{2}) + ... + P(E_{n})P(A/E_{n})

**Example-1:** A bag contains 3 black balls and 4 red balls .A second bag contains 4 black balls and 2 red balls .One bag is selected at random .From the selected bag, one ball is drawn . Find the probability that the ball drawn is red.

**Solution:**

A red ball can be drawn in two ways:

- Selecting bag I and then drawing a red ball from it .
- Selecting bag II and then drawing a red ball from it .

Let E_{1}, E_{2} and A be the defined events as follows :

E_{1} = Selecting bag I

E_{2} = Selecting bag II

A = Drawing red ball

Since selecting one of the two bags at random .

P(E_{1}) = 1/2

P(E_{2}) = 1/2

Now, probability of drawing red ball when first bag has been chosen

P(A/E_{1}) = 4/7

and, probability of drawing red ball when second bag has been chosen

P(A/E_{2}) = 2/6

Using total law of probability, we have

P(A) = P(E_{1})P(A/E_{1}) + P(E_{2})P(A/E_{2})

= (1/2)(4/7) + (1/2)(2/6)

= 19/42

Hence, the probability of drawing a red ball is **19/42**

**Example-2:** In a bulb factory, three machines namely A, B, C produces 25%, 35% and 40% of the total bulbs respectively . Of their output, 5, 4 and 2 percent are defective bulbs respectively . A bulb is drawn is drawn at random from products . What is the probability that bulb drawn is defective ?

**Solution:**

Let E_{1}, E_{2}, E_{3} and A be the defined events as follows :

E_{1} = The bulb is manufactured by machine A

E_{2} = The bulb is manufactured by machine B

E_{3} = The bulb is manufactured by machine C

A = The bulb is defective

According to given conditions ;

P(E_{1}) = 25/100

P(E_{2}) = 35/100

P(E_{3}) = 40/100

Now, probability that the bulb is defective given that is produced by Machine A

P(A/E_{1}) = 5/100

and, probability that the bulb is defective given that is produced by Machine B

P(A/E_{2}) = 4/100

and, probability that the bulb is defective given that is produced by Machine C

P(A/E_{3}) = 2/100

Using total law of probability, we have

P(A) = P(E_{1})P(A/E_{1}) + P(E_{2})P(A/E_{2}) + P(E_{3})P(A/E_{3})

= (25/100)(5/100) + (35/100)(4/100) + (40/100)(2/100)

= 0.0345

Hence, the probability that the bulb is defective is **0.0345**

## Recommended Posts:

- Mathematics | Law of total probability
- Mathematics | Conditional Probability
- Mathematics | Renewal processes in probability
- Mathematics | Probability Distributions Set 2 (Exponential Distribution)
- Mathematics | Probability Distributions Set 3 (Normal Distribution)
- Mathematics | Probability Distributions Set 5 (Poisson Distribution)
- Mathematics | Probability Distributions Set 4 (Binomial Distribution)
- Mathematics | Probability Distributions Set 1 (Uniform Distribution)
- Bayes's Theorem for Conditional Probability
- Probability and Statistics | Simpson's Paradox (UC Berkeley's Lawsuit)
- Mathematics | Generalized PnC Set 2
- Mathematics | Generalized PnC Set 1
- Mathematics | Rules of Inference
- Mathematics | Predicates and Quantifiers | Set 2
- Mathematics | Power Set and its Properties

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.