Professional Documents
Culture Documents
Probability Notes
Probability Notes
Probability Notes
what is probability
probability is the branch of mathematics
concerning numerical descriptions of how likely
an event is to occur
i e Favorable outcomes
probability
Total outcomes
Probability Terminology
Experiment An Experiment or trial is any
sample point
Sure Event It will happen for sure i e
PCE I
Ex
1 Probability experiment Roll a die
outcome 933
Sample space 1 2 3,4 5,63
Event Die is Even 2,4 63
E face card
p
Iz
probability can be thought in terms of sets
and Venn diagrams
ex's
B A B
A
Joint set Dis Joint set
we will see few of the Events
1 Complimentary Event
2 Dependent Event
3 Independent Event
4 Mutually Exclusive Event
5 Exhaustive Event
is itself an event
universal set
s sampte
AC space
A set A
Extent
PCAC L PCA
or p Cal PCA 7 1
P CAN B o
A B
Exhaustive Events A set of Events are called
exhaustive events if at least one of them
Eu
El
Es
EZ Ez
E U Ez UE UE UE S Sample space
PCE Z
2 ODD's against an event E is y S
PCE
I
Algebra of Events
Consider two events A and B
Intersection Ants set of all elements common
to A and B
if An 13 0
AUB
A B
AFB
PC AUB PCA PIB P IAN B
A B
Difference A B
A B
0 and 1
OE PCE I I
ext On a di le roll
PCE 7
8
0
PCE EG
8 1
univeral set is 1
PCs 1
or
PCE I
EI
ex on a toss of a coin S H T
PCH I PIT
L
PCH PCT It 12 1
3 If E Ez Ez are mutually exclusive then
PCE UEzUE3 PCE PCEz PCE
ex on a toss of a coin
PCH UT 1
PCH PCT It I
p not H 1 PSH
I
t
L
On the roll of dice
P not getting 1 P 2 PC37 PS4 pls PCG
we know
p i
PS2 PC P a PI 5 P 167 1
A B
probability of A and B
A B
PCanB
P AUB PCA PCB PLAN B
Types of probability
D Marginal Probability
2 Joint Probability
3 Conditional probability
event
ex The likelihood that a card is drawn from
a deck of cards is black
p black
362 12
and the probability that a card drawn is 7
p 7
72 43
both are independent events since the outcome
Joint probability
i e let A and B be the two events joint
is the prob
probability bility
of event B occurring at
the same time that event A occurs
With replacement
A B
Joint probability
P Can B
P E N Ez PCE P Ez
txt
Ig
ex the likelihood that a card is black and
seven is equal to
p Black
362 I
p seven
42 73
P Black xp seven
Ix Is
Black and Black seven
P seven p x p
Joint probability without replacement
A B
a
Joint probability
P Can B
P An B PCA x p BIA
t
probability of B
happening given A has
already happened
ex probability of drawing 2 cards from a deck
one after another without replacement
Firstspade card
Second Face card
Conditional probability
Probability of a conditional event is conditional
Probability
Conditional Event Denoted by AIB or Bla
happened
P AIB PCA
as p la happening has no dependence on
A BC Aca BC
i e
PC NBC i p ca Lp independent
events
events as
Plan B
PCI a
Plea so as o
04 P 1
E P
Aj
B End
Plan P
PCB PCB
i plan B plan B
A B PCB
i.pl tp
E
Ppf PCAnB
n n
I
PCAnB
03 A contains 5 Red balls 4 blue balls
bag
and 3 green balls then find of Probability
of drawing Red ball given a blue ball was
Ext
I
0 20
P Elf P Ent
PCF 835 7
PCF El PCE Nfl
PCE 8 I
05 A couple has 2 Children Find the probability
that both are boys if it is known that
1 one of them is a boy
2 the older child is a boy
s GG GB BG BB
Independent events
l P x 1 P2 x 1 P x x I Pn
i p g pg
i p E I 3
p q
I since PE
t
solution is either p tea f or
pit a 9 1
Q A problem of mathematics is given to 3
students whose chances of solving are
l
E l
5 rt
1 i
Ex 3 1
4 t I
4 x
1 E 1
5 4
2 3 3 Ex 3 2 3 4
L
Total Probability Theorem
E Ez E Ey
A
are y mutually
Exclusive and Exh
aus live events
v u
g g g y
then PCA PCE na PCEana PCE na
PCEyna
i PLANE P E PCA ED
substituting
PC En x P Cal En
PCE in a
PCE PLATE PCE2 PIA
E Ez E Ey
A
are y mutually
Exclusive and Exh
austive events
v u
g g g yn
then plate PCE na
PCE na PCEana PCE na
PCEyna
Baes theorem If A and B are two events
then the formula for the Bayes theorem is given
by
P AIB PCB A PCA where PCB 0
PCB
where PIA B is the probability of condition when
event A is occurring while event B has already
occurred
where PCA o
Tia
iii
Here the joint probability plan B of both
Plan B P BMA
Plan B P Bla PCA
i P AIB PCAIBY.gg
PCB IA PCA where PCB 0
Q1 Balls 4 bags
UR 3R ZR
SG ga 76
Ix Ig Ix 3 3 x
I
2 You draw a red ball find the probability
Ix Ig Ix 3g Ix
49
3g I
Q2 modes of transport
Sonali metro a car with
goes by bus
Probabilities of 217 Y Y respectively
of the probability that she sees by bus
LÉ txt t
Car
y
Ex I
late Bas x P Late bus
p P
PC metro xp late metro t
3 3 txt Fx
If
2 Sonali reached school late find the
217 Bus at
Sonali Metro
4
Car
I I
probability Sonali sav and late É x
y
P Sonali car and late
p Sonali car Late
p late
p Sonali car ate
Fx I
4 3 4 8 4 8
16 56 16
23 56 32
Q Truth or lie
reports a 6
P Sin
PCreports 6 PC truth x
Zx I Ex I
8 72
He rolls a die and reports a G find
the probability that it is actually G
3 8 5 5
Zg
Q Biased coin
PCT 45
il find the probability of getting a head
Ix t t
t x
0.008
O 014 X 0.184
0 008
0.322
free appears in it
p spam I free
15.5
i fetal free emails
free 5 0.155
p 1,5
p spam free 0
0.96774
YÉ
method 2 to find answer
formic
P spam free
P spam p free I spam
0 5 0.3
0 3 0 5 t 0 01 x o 5
0 I 5
0 I5 0 005
0 96774
Frequency tables and contingency tables
Age
Young middle Aged Old Total
Age
Young middle Aged Old Total
Marginal Probability
Probability describing a single attribute
Age
Young middle Aged Old Total
ex
Marginal
01184 probability
P Yes
p old 0.008
Joint Probability
Probability describing a combination of attributes
Age
Young middle Aged Old Total
Joint
probability
ex
Union probability
of happening of the event A or B
Probability
Age
Young middle Aged Old Total
0.189
Conditional Probability
It is ratio between joint probability and
marginal probability
P AIB PLAN B
PCB
Age
Young middle Aged Old Total
0.586 0.85
O G go
ex considering titanic data set in pandas
Survived 0 1 All
p class
I 80 136 216
2 97 87 184
This is a
contingency or frequency table
p class Suru
Survived 0 1 Total
Pclass
I 80 136 216
2 97 87 184
survived 0 1 Total
Pclass
I 0.0897 0.1526 0.2424
0.4175
O 6161
0 6776
Probability tree
A probability tree is a picture indicating
probabilities and some conditional probabilities
for combinations of two or more events
follows
1 Draw branches of the first set of outcomes
and write the individual probabilities along
the branches
2 Repeat this process for the remaining outcomes
of each outcome
outcome
Probability
8.5 Head
Node
T o s Tail
Branch
Generalized probability tree
A p B and a pea xp Al B
A B and a x pea pi
A'lB P PCB
p p_P
Pla p not a
o o
cancer I
woman o t
No cancer
09g O go
cancer t
p
p t cancer x Pf cancer
PG
0.9 0.01
0.083