CHAPTER 4 Assignment
CHAPTER 4 Assignment
CHAPTER 4 Assignment
PROBABILITY
THEORY
4.1. IMPORTANCE CONCEPTS OF
PROBABILITY
Definition of Probability
Probability is a branch of mathematics that deals with the
likelihood of a specific event or outcome occurring.
It quantifies the uncertainty of an event by assigning a
numerical value between 0 and 1,
where 0 indicates impossibility and 1 indicates certainty
CONT..IMPORTANCE CONCEPTS OF
PROBABILITY
Importance of Probability
Here are some key reasons why probability is important:
Decision Making:
Risk Analysis
Predictive Modeling In fields such as weather forecasting
Statistical Inference involves drawing conclusions about a
population based on sample data.
Machine Learning
Gaming and Gambling
Financial Markets
4.2. TYPES OF EVENT
Mutually exclusive events :are two or more events that cannot occur
at the same time.
Example, getting heads and tails in a coin toss or rolling a 2 and
a 3 on a die.
If two events are mutually exclusive then
P (A or B) +P (A) + P (B)
Independent Events: Independent events are events where the
occurrence of one event does not af fect the probability of the other
event occurring. If two events are independent then
P (A and B) = P (A) × P (B).
E.g. If we are rolling a dice twice, we can find the probability of
getting two sixes.
The probability of getting a 6 is 1/6
So the probability of getting a 6 and a 6 is
1/6×1/6=1/36
CONT.…TYPES OF EVENT
Bayesian Probability:
Bayesian probability is a type of statistical inference that
uses Bayes’ theorem to update the probability of a hypothesis
as new evidence becomes available.
Frequency Probability:
Frequency probability, also known as relative frequency
probability, is based on the long-term relative frequency of an
event occurring in repeated trials. It is calculated by dividing
the number of times an event occurs by the total number of
trials in the long run.
CONT…T YPES OF PROBABILIT Y
Marginal Probability:
Marginal probability is the probability of a single event
occurring without considering any other events. It is obtained
by summing or integrating joint probabilities over all other
variables.
Joint Probability:
Joint probability is the probability of two or more events
occurring simultaneously. It is calculated by multiplying the
probabilities of each individual event.
CONT…T YPES OF PROBABILIT Y
E xa m p l e S u p p o s e w e have a s t a nd a rd d e c k o f 5 2 p l ay i ng c ar d s . We wa n t to f i n d th e
p ro b a b i l i t y o f d raw i ng a red c a rd a nd a f a c e c a rd ( j a c k , qu ee n, o r k i n g ) f r o m t h e d e c k
i n t w o co n s ec u t i ve d raw s w i t ho ut re p l a ce m e nt .
C a l c u l a t i n g t he Pro b a b i l i t y o f D raw i ng a Re d C ar d :
T he r e ar e 2 6 red c a rd s i n a s t a nd a r d d e c k ( hea r t s a nd d i a m o nd s ) o u t o f a to t a l o f 5 2
c a rd s .
T he p r o b a b i l i t y o f d raw i ng a red c a rd o n t he fi r s t d raw i s P( Re d ) = 2 6 / 5 2 = 1 / 2 .
C a l c u l a t i n g t he Pro b a b i l i t y o f D raw i ng a Fa c e C a rd :
T he r e ar e 1 2 f a c e c a rd s i n a s t and a rd d e c k ( j a c k , qu ee n, a nd k i ng fo r e a c h s u i t ) o u t
o f a to ta l o f 5 2 c a rd s .
T he p r o b a b i l i t y o f d raw i ng a f a ce c a rd o n t he s e co nd d raw, g i ve n t h a t a r ed c a r d wa s
d raw n o n t he fi r s t d raw, i s P( Fa c e | Re d ) = 1 2 / 51 .
C a l c u l a t i n g t he J o i nt P ro b a b i l i ty :
T he j o i n t p ro b a b i l i t y o f d raw i ng a red c a rd a nd t hen a f a c e c a r d c a n b e c a l cu l a te d
by m u l t i p l y i ng t he i nd i v i d u a l p ro b a b i l i t i es : P ( Re d a nd Fa c e ) = P ( Re d ) P ( Fa ce | Re d )
P ( Re d a n d Fa c e) = ( 1 / 2 ) ( 1 2 / 51 ) = 6 / 51
4.4. RULES OF PROBABILIT Y
Where:
P(A∩B) is the joint probability of two events (A ,B)
P (A) is the probability of the first event on its own, and
P (B) is the probability of the second event on its own.
4.7. JOINT PROBABILIT Y TABLE
Example: Find the probability that the number three will occur twice
when two dice are rolled at the same time.
Solution:
Number of possible outcomes when a die is rolled = 6
i.e. {1 , 2, 3, 4, 5, 6}
Let A be the event of occurring 3 on first die and B be the event of
occurring 3 on the second die.
Both the dice have six possible outcomes, the probability of a three
occurring on each die is 1/6.
P (A) =1/6
P (B) =1/6
P (A , B) = 1/6 x 1/6 = 1/36
4.7. JOINT PROBABILIT Y TABLE
J o i n t P r o b a b i l i t y Ta b l e
A j o i n t p r o b a b i l i t y d i s t r i b u t i o n r e p r e s e n t s a p r o b a b i l i t y d i s t r i b u t i o n fo r t w o o r m o r e
r a n d o m va r i a b l e s . I n s te a d o f ev e n t s b e i n g l a b e l l e d A a n d B , t h e c o n d i t i o n i s to u s e X a n d
Y a s g i ve n b e l ow.
F(x,y) = P(X = x, Y = y)
T h e m a i n p u r p o s e o f t h i s i s to l o o k fo r a r e l a t i o n s h i p b e t w e e n t w o va r i a b l e s . Fo r ex a m p l e ,
t h e b e l ow t a b l e s h ow s s o m e p r o b a b i l i t i e s fo r ev e n t s X a n d Y h a p p e n i n g a t t h e s a m e t i m e :
T h i s t a b l e c a n b e u s e d to f i n d t h e p r o b a b i l i t i e s o f ev e n t s .
Find the probability of X = 3 and Y = 3.
S o l u t i o n : Fr o m t h e a b ov e t a b l e , i d e n t i f y t h e p r o b a b i l i t y u n d e r X = 3 a n d Y = 3 .
That is ⅙.
C o n s t r u c t i n g a J o i n t P r o b a b i l i t y Ta b l e
To c o n s t r u c t a j o i n t p r o b a b i l i t y t a b l e , f o l l o w t h e s e s te p s :
Identify the sample space: The sample space is the set of all possible outcomes of the
e v e n t s b e i n g c o n s i d e r e d . Fo r e x a m p l e , i f y o u a r e r o l l i n g t w o d i c e , t h e s a m p l e s p a c e w o u l d
be the set of all possible combinations of rolls (e.g., (1 ,1), (1 ,2), (1 ,3), …, (6,6)).
I d e n t i f y t h e ev e n t s : T h e ev e n t s a r e t h e s p e c i f i c o u t c o m e s o r c a te g o r i e s b e i n g c o n s i d e r e d .
Fo r ex a m p l e , i f y o u a r e r o l l i n g t w o d i c e , t h e e v e n t s m i g h t b e “ r o l l i n g a 3 o n t h e f i r s t d i e ”
and “rolling an even number on the second die.”
D e te r m i n e t h e p r o b a b i l i t i e s : C a l c u l a te t h e p r o b a b i l i t i e s o f e a c h e v e n t o c c u r r i n g
s e p a r a te l y. Fo r e x a m p l e , i f y o u a r e r o l l i n g t w o d i c e , t h e p r o b a b i l i t y o f r o l l i n g a 3 o n t h e
f i r s t d i e i s 1 / 6 , a n d t h e p r o b a b i l i t y o f r o l l i n g a n ev e n n u m b e r o n t h e s e c o n d d i e i s 1 / 2 .
C r e a te t h e t a b l e : S e t u p a t a b l e w i t h r ow s a n d c o l u m n s r e p r e s e n t i n g e a c h ev e n t . L a b e l
t h e r ow s a n d c o l u m n s w i t h t h e p o s s i b l e o u t c o m e s o r c a te g o r i e s f o r e a c h ev e n t . Fo r
e x a m p l e , f o r r o l l i n g t w o d i c e , y o u w o u l d h a v e s i x r ow s a n d s i x c o l u m n s f o r e a c h p o s s i b l e
outcome on each die.
4.7. JOINT PROBABILIT Y TABLE
Fill in the table: Calculate and enter the probabilities for each
combination of events. To find these probabilities, multiply
the individual probabilities for each event occurring together.
For example, if you are considering rolling a 3 on the first die
and an even number on the second die, you would calculate
the probability as (1/6) x (1/2) = 1/12.
4.8. RULES OF COUNTING
When the number of possible outcome is very large it will be difficult to find possible outcomes by listing. So
you have to investigate dif ferent Counting techniques.
Multplication Principle
If an event can occur in m different ways, and for every such choice another event can occur in n dif ferent
ways, then both the event can occur in the given order in m*n different ways.
Example Suppose you have 3 coat, 8 shirt, and 6 dif ferent trousers in how mony dif ferent ways can you dress?
Addition principle
If an event E1 can occur in m ways and if another event E2 can occur in n ways and either of the event can occur
in m+n ways. This is true if E1 and E2 is mutually exclusive events
Example a question paper has two parts where 1 part contains four questions and the other 3 questions. If a
student has to choose one question from either part in how mony way can the student do it
Solution the student can choose 4+3 =7 ways
4.8. RULES OF COUNTING
Permut at ion
The permutations is the number of arrangement s of object s wit h at tenti on give n
to the order of arrangement s.
Exa mple Suppose there are five seats arranged in a row. I n how mony dif fe rent
ways can five people people seated on t hem?
Solution 5*4*3*2*1=1 20 ways
The number of permutations of the set of n object s taken all together is denoted
by p(n,n) and is equal to n!
n! = n*(n-1)*(n-2)*(n-3)*...3*2*1
Exa mple Suppose we have 5 peopl e to be seated on i n only 3 seats in how mony
way can t hey seats?
Solution The fir st ch air can be filled by any one of the 5 people, the second by
any one of the four people, and t he the t hird by anyone of t he 3 peopl e by t he
multi pl ication principles this give s 5*4*3 = 60 ways
5*4*3=60=
4.8. RULES OF COUNTING
4.8. RULES OF COUNTING
Example in how many different ways can three men and three
women be selected from six men and eight women ?