Basic of Probability
Basic of Probability
"King" is not a sample point. There are 4 Kings, so that is 4 different sample points.
https://www.mathgoodies.com//lessons/vol6/addition_rules
Addition Rule 1: When two events, A and B, are mutually exclusive, the probability
that A or B will occur is the sum of the probability of each event.
1
P(2) =
6
1
P(5) =
6
1 1
= +
6 6
2
=
6
1
=
3
Additional Rule 2: When two events, A and B, are non-mutually exclusive, the
probability that A or B will occur is:
In the rule above, P(A and B) refers to the overlap of the two events. Let's apply this
rule to some other experiments.
Experiment 5: In a math class of 30 students, 17 are boys and 13 are girls. On a unit
test, 4 boys and 5 girls made an A grade. If a student is chosen at random from the
class, what is the probability of choosing a girl or an A student?
13 9 5
= + -
30 30 30
17
=
30
Multiplication rule of probability for independent event-
https://www.mathgoodies.com//lessons/vol6/independent_events
Definition: Two events, A and B, are independent if the fact that A occurs does not
affect the probability of B occurring.
To find the probability of two independent events that occur in sequence, find the
probability of each event occurring separately, and then multiply the probabilities.
This multiplication rule is defined symbolically below. Note that multiplication is
represented by AND.
Multiplication Rule 1: When two events, A and B, are independent, the probability
of both occurring is:
Experiment 1: A dresser drawer contains one pair of socks with each of the following
colors: blue, brown, red, white and black. Each pair is folded together in a matching
set. You reach into the sock drawer and choose a pair of socks without looking. You
replace this pair and then choose another pair of socks. What is the probability that
you will choose the red pair of socks both times?
Probabilities:
1
P(red) =
5
For n ≥ r ≥ 0.
The formula show us the number of ways a sample of “r” elements can be
obtained from a larger set of “n” distinguishable objects where order does not
matter and repetitions are not allowed. [1] "The number of ways of picking r
unordered outcomes from n possibilities." [2]
You have won first place in a contest and are allowed to choose 2 prizes from
a table that has 6 prizes numbered 1 through 6. How many different
combinations of 2 prizes could you possibly choose?
In this example, we are taking a subset of 2 prizes (r) from a larger set of 6
prizes (n). Looking at the formula, we must calculate “6 choose 2.”
Handshake Problem
First, let's find the total handshakes that are possible. That is to say, if each
person shook hands once with every other person in the group, what is the
total number of handshakes that occur?
A way of considering this is that each person in the group will make a total of
n-1 handshakes. Since there are n people, there would be n times (n-1) total
handshakes. In other words, the total number of people multiplied by the
number of handshakes that each can make will be the total handshakes. A
group of 3 would make a total of 3(3-1) = 3 * 2 = 6. Each person registers 2
handshakes with the other 2 people in the group; 3 * 2.
The order of the items chosen in the subset does not matter so for a group of
3 it will count 1 with 2, 1 with 3, and 2 with 3 but ignore 2 with 1, 3 with 1, and
3 with 2 because these last 3 are duplicates of the first 3 respectively.
C(n,r)=n!(r!(n−r)!)C(n,r)=n!(r!(n−r)!)
C(n,2)=n!(2!(n−2)!)C(n,2)=n!(2!(n−2)!)
=(n−1)×(n)2=n(n−1)2=(n−1)×(n)2=n(n−1)2
SETS
Sets can contain any type of values like numbers, people name etc. Suppose we
have following two sets( X and Y)-
X = {3,12,4,5,6,3}
Y = {4,6,7,33,47}
XՈY – This means that intersection of X and Y which means the values which are
common in X and Y. i.e. {4,6} in this case.
XUY = This means all the values of X and Y(i.e. X union Y). Please note X has the
value 3 twice but in union only one 3 will come . The ans in this case is
{3,12,4,5,6,7.33.47}
X-Y = This means- take all values of X excluding the values which is common in X
and Y. Here ans would be {3,12,5} . we also write it as X\Y.
X-X or X\X = This will result in empty set {} or in other words null set( Փ).
Member of a set – The things/values in the set is called member of the set. It is
denoted by €. Suppose X = {1,2,3} . we can say 1 ∈ X i.e. 1 is member of X.
Not a member of a set – If any thing/value which is not in set – is called not a
member of a set. Denoted by ∉. In above example we can say 8 ∉X since 8 is not in
X.
a collection of A = {3,7,9,14},
{} set
elements B = {9,14,28}
A is a subset of B.
A⊆B subset set A is included in {9,14,28} ⊆ {9,14,28}
set B.
A is a subset of B,
proper subset / strict
A⊂B but A is not equal to {9,14} ⊂ {9,14,28}
subset
B.
A is a superset of B.
A⊇B superset {9,14,28} ⊇ {9,14,28}
set A includes set B
A is a superset of B,
proper superset /
A⊃B but B is not equal to {9,14,28} ⊃ {9,14}
strict superset
A.
set A is not a
A⊅B not superset {9,14,28} ⊅ {9,66}
superset of set B
A={3,9,14},
both sets have the
A=B equality B={3,9,14},
same members
A=B
A = {3,9,14},
objects that belong
A\B relative complement B = {1,2,3},
to A and not to B
A \ B = {9,14}
A = {3,9,14},
objects that belong
A-B relative complement B = {1,2,3},
to A and not to B
A - B = {9,14}
element of,
a∈A set membership A={3,9,14}, 3 ∈ A
belongs to
collection of 2
(a,b) ordered pair
elements
the number of
|A| cardinality A={3,9,14}, |A|=3
elements of set A
the number of
#A cardinality A={3,9,14}, #A=3
elements of set A
infinite cardinality of
ℵ0 aleph-null
natural numbers set
ℵ1 aleph-one cardinality of
countable ordinal
Meaning /
Symbol Symbol Name Example
definition
numbers set
natural numbers /
ℕ0 whole numbers set 0 = {0,1,2,3,4,...} 0 ∈ 0
(with zero)
natural numbers /
ℕ1 whole numbers set 1 = {1,2,3,4,5,...} 6 ∈ 1
(without zero)
= {...-3,-2,-
ℤ integer numbers set -6 ∈
1,0,1,2,3,...}
= {x | x=a/b, a,b∈
ℚ rational numbers set 2/6 ∈
and b≠0}
Conclusion –
A cereal company is giving away a prize in each box of cereal and they advertise,
"Collect all 6 prizes!" Each box of cereal has 1 prize, and each prize is equally likely
to appear in any given box. Caroline wonders how many boxes it takes, on average,
to get all 6 prizes.
She decides to do a simulation using random digits as follows:
Trial
# Number of boxes
111 12
222 17
333 15
444 7
555 20
On average, how many boxes of cereal did it take Caroline to get all 6 prizes?
If necessary, round your answer to the nearest tenth.
Simulations give us better estimates after more and more trials. Suppose, Grant
(friend of Caroline) did more trials than Caroline did, so his results are probably more
accurate.
Sample Space – This is set of all the possible outcomes like in case of fair coin flip ,
the sample space is –{Head, tail}. The outcomes must be mutually exclusive and
exhaustive. Mutually exclusive means they are distinct and non-overlapping.
Exhaustive means complete. But this is the simple example but we have the
complex problems and there are three ways in which we can define the sample
spaces –
1. Tree Diagram
2. Grid (or we can say matrix)
3. Construct a Table
Suppose we have one bakery and we have following favours and sizes-
Flavour Size
Chocolate Small
Strawberr Medium
y
Vanilla Large
Now we want to know the all-possible outcome of this problem (i.e., sample space).
This can be done in three ways-
1. Tree Diagram
3. Construct a Table-
Flavour Size
Chocolate Small
Chocolate Medium
Chocolate Large
Strawberr Small
y
Strawberr Medium
y
Strawberr Large
y
Vanilla Small
Vanilla Medium
Vanilla Large
Probability of a Compound Event – Suppose you have one lucky draw and
you can get one of the following three places for vacation-
The trip would be of either 1,2 or 3 days. We want to know the probability of at
least 2 days’ vacation without snow. Now we have to know the sample space.
We are using grid method here-
Now ski involves snow so this is out of the question for our analysis. We want two
days so above 4 option in red font is the possible outcomes in our case. P = 4/9.
Independent Events
Example - Free-throw probability
Suppose the probability of free throw is 75%. Now if we miss the free throw that means we are out of the game. Here if anyone
wants probability of free throws for 10 times means – for second free throw chance is 75% of probability of first chance which
means 75% *75%. If this is 10 times then we have to take .75 power 10.
P(n no of free throws ) = (P of free throw)^n
Example - Rolling Dice –
Suppose that we are going to roll two fair 666-sided dice. Find the probability that both dice show a 3.
Since the results of the dice are independent, we can multiply the probability of rolling a 3 on each die.
*fair coin means the chances of head and tails are equal. In an unfair coin chances of head and tail are different.
Generalizing the strategy
In general, we can use these strategies:
P(at least 1 success)=1−P(all failures)
or similarly,
P(at least 1 failure)=1−P(all successes)
Suppose we want to know the probability of at least 1 head for 10 flips then -
Probability of at least one head in 10 flips = 1-P (10 tails in a row) = P (not all tails in 10 flips) =
1-(1/2)^10 = 1023/1024
Example : Defective chips
A manufacturer of processing chips knows that 2 percent of its chips are defective in some way.
Suppose an inspector randomly selects 4 chips for an inspection.
Assuming the chips are independent, what is the probability that at least one of the selected chips is defective?
Ans = 1-P(all 4 NOT defective) =1-(.98^4) = 0.078
Dependent Events
Example – Strange Casino Game
Suppose we have one game in a strange casino wherein we have one bag having 3 green and 2 orange balls. Customer has to
pick two balls from bag and if picks 2 green balls , he will get $1 . The cost of game is 0.35 cents. Please note that the customer will
put the picked ball down on the table. Now what is the probability of picking 2 green balls by the customer?
Imp point in this example–
Customer will only win when there both the balls are green which means probability of picking second ball is dependent on
first event (i.e., first ball should be green).
Customer will pick first ball from 5 balls but he would be left with total 4 balls at the time of picking second ball because he
has to put the first ball down on the table.
In the below diagram we have use Ո (means ‘and’ or ‘intersection’) and ‘|’(means ‘given this’).
Example2
Category Definition Example
All the numbers which are not Irrational numbers are non-
Irrational
rational and cannot be written in terminating and non-repeating
Numbers
the form of p/q. in nature like √2
Note – real number is denoted by ‘R’, rational numbers by ’Q’ and integers by ‘Z’.