Probablity is the study of randomness and uncertainty. Take an example of throwing an unbiased coin.
If we knew more about the:
we would be able to definitively say whether the coin would come up heads or tails. However, in the absence of all that information, we cannot predict the outcome of the coin flip.
When we say that something is random, we are saying that our knowledge about the outcome is limited, so we canβt be certain what will happen.
The probability of an outcome is interpreted as the long-run proportion of the time that the outcome would occur, if the experiment were repeated indefinitely. That is, probability is long-term relative frequency.
Ex. Construct a sample space for the experiment that consists of rolling a single die. Find the events that correspond to the phrases βan even number is rolledβ and βa number greater than two is rolled.β
The outcomes could be labeled according to the number of dots on the top face of the die. Then the sample space is the set S={1,2,3,4,5,6}.
The outcomes that are even are 2, 4, and 6, so the event that corresponds to the phrase βan even number is rolledβ is the set {2,4,6}, which it is natural to denote by the letter E. We write E={2,4,6}.
Similarly the event that corresponds to the phrase βa number greater than two is rolledβ is the set T={3,4,5,6}, which we have denoted T.
Β VENN DIAGRAMS
Letβs solve a problem using logic and not the formulas:
Ex. In a class of 50 students, 30 take philosophy, 23 take sociology and 12 take both. What is the probablity that a randomly selected student-
Making a venn diagram for the given data:
30 take philosophy and 12 take both, so the ones who only take philosophy will be 30-12 i.e. 18, as represented in the venn diagram. Similarly, the ones who take only sociology will be 11.
The total students who take subjects areΒ -18+12+11= 41, which means 9 are left.
When taking union of 2 sets, adding them directly will cause an error. By adding the sets directly we include the intersection twice, therefore we must subtract the intersection once.
The addition rule states:
π(π΄ βͺ π΅) = π(π΄) + π(π΅) β π(π΄ β© π΅)
It is illustrated in the venn diagram below:
Ex. A single card is chosen at random from a standard deck of 52 playing cards. What is the probability of choosing a king or a club?
π(π΄ βͺ π΅) = π(π΄) + π(π΅) β π(π΄ β© π΅)
π(ππππ ππ πππ’π) = π(ππππ) + π(πππ’π) β π(ππππ ππ πππ’ππ ) = ((4/52) + (13/52) β (1/52)) = 16/52 = 4/13
If you flip a coin twice, you can model the possible outcomes using a tree diagram or an outcome table.
Outcome table:
Flip1 | Flip 2 | Event |
H | H | HH |
H | T | HT |
T | H | TH |
T | T | TT |
We can also show this using a 2-D grid:
Mutually exclusive (or disjoint) events are events whose outcomes cannot occur at the same time.
Ex. (a) Turning left and turning right are Mutually Exclusive (you canβt do both at the same time)
(b) Tossing a coin: Heads and Tails are Mutually Exclusive
(c) Cards: Kings and Aces are Mutually Exclusive
The events which cannot be mutually exclusive:
Ex. (a) Turning left and scratching your head can happen at the same time
(b) Kings and Hearts, because we can have a King of Hearts!
When two events (call them βAβ and βBβ) are Mutually Exclusive it is impossible for them to happen together, which implies the intersection of these events is zero.π(π΄ β© π΅) = 0 From addition rule β
π(π΄ βͺ π΅) = π(π΄) + π(π΅) β π(π΄ β© π΅)
For mutually exclusive events-
π(π΄ βͺ π΅) = π(π΄) + π(π΅)
Ex. If the probability of:
scoring no goals (Event βAβ) is 20%
scoring exactly 1 goal (Event βBβ) is 15%
Find the probablity of scoring no goals or 1 goal
The probability of scoring no goals and 1 goal is 0 (Impossible)
The probability of scoring no goals or 1 goal is 20% + 15% = 35%
Can be written as π(π΄ βͺ π΅) = π(π΄) + π(π΅)Β (mutually exclusive events) π(π΄ βͺ π΅) = 20% + 15% = 35% The probablity of scoring no goals or 1 goal is 35%.
When the likelihood of happening of two events are same they are known as equally likely events. Β Example-
Ex. In the experiment of throwing a die, where
G: the event of getting a prime number
H: the event of getting an even number
Probability of πΊ = 1/2
Probability of H = 1/2
The two events G and H are equally likely.
But they are not mutually exclusive since both events occur when 2 apperas on the die.
Some problems may require the need to geometry (areasΒ in plane) to solve.
Ex Find the probability that a randomly chosen point in the figure lies in the shaded region.
Total area = π(5)2 = 25π
Area of shaded region = π(5)2 β π(5 β 3)2 = 21π
Required probability = π΄πππ ππ π βππππ ππππππ/πππ‘ππ ππππ = 21π/25π = 0.84
Β Ex. A store has six different fitness magazines and three different news magazines. If a customer buys three magazines at random, find the probability that the customer will pick two fitness magazines and one news magazine.
There are 26C or 15 ways to select two fitness magazines from six fitness magazines.
26C 6!/(6β2)!2! = 6!/4!2! = 15
There are 13CΒ or three ways to select one magazine from three news magazines.
13πΆ = 3!/(3β1)!1! = 3!/2!1! = 3
Using fundamental counting principle, there are 15Γ3 or 45 ways to select two fitness magazines and one news magazine.
Ex. Probability of 3 Heads in a Row For each toss of a coin a Head has a probability of 0.5 And so the chance of getting 3 Heads in a row is 0.125.
Ex. Your boss (to be fair) randomly assigns everyone an extra 2 hours work on weekend evenings between 4 and midnight.
What are the chances you get Saturday between 4 and 6?
Day: there are two days on the weekend, so P(Saturday) = 0.5
Time: you want the 2 hours of β4 to 6β, out of the 8 hours of 4 to midnight: P(β4 to 6β) Β 2/8 Β 0.25
P(Saturday and β4 to 6β) Β P(Saturday) Β P(β4 to 6β)
=0.5Γ0.25
=0.125
Or a 12.5% Chance.
Ex. We have 2 blue marbles and 3 red marbles. What are the chances of drawing out 2 blue marbles.
Letβs draw a tree diagram we learnt in previous section.
There is a 2/5 chance of pulling out a Blue marble, and a 3/5 chance for Red:
We can go one step further and see what happens when we pick a second marble:
It is a 2/5 chance followed by a 1/4 chance of drawing out a blue marble ((2/5) x (1/4)) = 1/10
Notation:
In our marbles example Event A is βget a Blue Marble firstβ with a probability of 2/5:
P(A) = 2/5
And Event B is βget a Blue Marble secondβ β¦ but for that we have 2 choices:
P(B|A) (conditional probability) means βEvent B given Event Aβ
In other words, event A has already happened, now what is the chance of event B?
And in our case: P(A) = 1/4 So the probability of getting 2 blue marbles is:
And we write it as:
π(π΄ πππ π΅) = π(π΄) Γ π(π΅|π΄)
π(π΄ πππ π΅) = π(π΅) Γ π(π΄|π΅)
or we can write it as:
π·(π¨ β© π©) = π·(π¨) Γ π·(π©|π¨)
π·(π¨ β© π©) = π·(π©) Γ π·(π¨|π©)
We know that for independent events π(π΄ β© π΅) = π(π΄) Γ π(π΅) Therefore,
π(π΅|π΄) = π(π΅)
π(π΄|π΅β² ) = π(π΄)
π(π΅|π΄β² ) = π(π΅)