Professional Documents
Culture Documents
Untitled 0
Untitled 0
prob_A = 0.8
prob_B = 0.6
prob_both = 0.5
'''2. From a city, three news papers A,B, & C are being published. A
is read by 20%, B is read by 16%, C is
read by 14%, both A and B are read by 8%, both A and C are read by 5%,
both B and C are read by 4%
and all three A, B, & C are read by 2%. What is the percentage of the
population that read at least one
paper.'''
prob_A = 0.20
prob_B = 0.16
prob_C = 0.14
prob_AB = 0.08
prob_AC = 0.05
prob_BC = 0.04
prob_ABC = 0.02
prob_choose_urn = 1/3
prob_black_given_urn = [3/5, 4/7, 5/9]
prob_at_least_one_urn_chosen = sum(prob_choose_urn_given_black)
prob_machine_C = 0.10
prob_defective_given_C = 0.04
prob_machine_A = 0.60
prob_defective_given_A = 0.02
prob_machine_B = 0.30
prob_defective_given_B = 0.03
prob_machine_C_given_defective = (prob_machine_C *
prob_defective_given_C) / prob_defective
'''5. In a class, 70% are boys and 30% are girls. 5% of boys, 3% of
the girls are irregular to the classes. What
is the probability of a student selected at random is irregular to the
classes and what is the probability that
the irregular student is a girl? '''
prob_boy = 0.70
prob_girl = 0.30
prob_irregular_given_boy = 0.05
prob_irregular_given_girl = 0.03
Branch – CSE*
Section – B