Q1.
Using the probability values given in the table answer the following statements with
proper justifications
1. Does the probability of wind increase given the probability of rain?
2. What is the dependency between wind and Headache? Does the probability of wind
remain unchanged given
the headache?
3. Is rain conditionally independent of Headache, given wind?
Q2.
Apply Naïve Bayes Classification for the given dataset of animals along with their
attributes. Execute the following query to predict the class
Q3.
Consider the following dataset:
a) Using the provided dataset, which includes demographic information and credit scores
of individuals, apply the Naive Bayes classification to predict the credit score of a new
individual
based on their following demographic features: Age>40, Gender=Male, Income=Medium,
Education=Graduate, Occupation=Skilled
b) Based on the data given in the table answer the following:
i) What is the probability that an individual has a high credit score given that they are
Female and have a Postgraduate education?
ii) Given that an individual has a High income and a Skilled occupation, what is the
probability that their credit score is Low?
Q4.
Suppose you live in London, England, and you notice that during the winter, it rains 50%
of the time and that it is cloudy 80% of the time (sometimes it is cloudy without rain).
You know, of
course, that 100% of the time, if it is raining, then it is also cloudy. Using Bayes’ rule,
compute the chances of rain, given that it is just cloudy.
Q5.
In standard two of St. John's school, 30% of the children have grey eyes, 50% of them
have blue and the other 20%'s eyes are in other colors. One day they play a game together.
In the first run, 65% of the grey-eyed ones, 82% of the blue-eyed ones, and 50% of the
children with other eye colors were selected. Now, if a child is selected randomly from
the class, and we know that he/she was not in the first game, what is the probability that
the child has blue eyes?
Q6.
For the Bayesian network given below:
a.Calculate the probability that the door is open, it is wife and not a burglar, also the car is
in the garage, and the door is not damaged.
b.Calculate the probability that it is the burglar, the door is open and also damaged and
there is no car in a garage.
c.Calculate the probability that the door is closed, it is not wife and not a burglar, also the
car is in the garage, and the door is not damaged.
Q7.
The following table gives the data on individuals in response to promotional offers made
in areas of finance, trade, magazines, and health. Using Bayes's theorem to predict the Sex
of the individual for the given data X= {Finance = No, Trade = Yes, Magazines = Yes,
Health = No}
Q8.
Suppose you live in Chennai, Delhi, and you notice that during the winter, it rains 60% of
the time and that it is cloudy 70% of the time, sometimes it
is cloudy without rain. You know, of course, that 100% of the time, if it is raining, then it
is also cloudy. Apply the Bayes rule to compute the chances
of rain, given that it is cloudy.
Q10.
While watching an IPL match in a cafe, you observe someone who is clearly
supporting CSK in the game. What is the probability that the person is actually born
within 30 miles of Chennai? Assume that:
* The probability that a randomly selected person in a typical local café
environment is born within 30 miles of Chennai is 1/30.
* the chance that a person is born within 30 miles of Chennai actually supports CSK is
7/10.
* the probability that a person not born within 30 miles of Chennai supports
CSK is 2/10.
Q11.
The entire output of a car manufacturing factory is produced on three assembly lines. The
three assembly lines contribute 25%, 35%, and 40% respectively of the total factory
output. The percentages of defective cars produced by each of the assembly lines are 5%,
6%, and 2% respectively. If a car is picked up at random from the total output and is
found to be defective, what is the probability that it was produced by the second assembly
line?
Q12.
Consider the Belief Network above, where variables A, B, C, E, R are all Boolean-valued.
a. What is the probability that except E all other four of these Boolean variables are true?
b. What is the probability of a Burglary occurring, given a Phone Call is made?
Q13.
In VIT there are two faculty members who teach Al. One faculty member has a pass
percentage of 50% and the other faculty member's pass percentage is 90%. You would
want to join the class of the faculty member who has the higher pass percentage. But you
do not know who that is. So, you assume that they are equally likely to be lenient and join
the class of one faculty member. Given that you failed, what is the probability that the
faculty member, whom you chose was faculty with the high pass percentage?
Q14.
For two events A and B, the following probabilities are given P(A)= 0.6,
P(B)= 0.2, P(A|B)=0.5. Use the appropriate laws of probability to calculate
i)P()
ii)P(AUB)
iii)P(A")B)
iv)P(B|A)
Q15.
Consider the following Bayesian Network containing four Boolean random variables and
answer the following questions
Q16.
You are a robot in a lumber yard and must learn to discriminate Oak wood from
Pinewood. You choose to learn a Bayes rule. You are given the following
examples:
a) Now assume that the attributes (Density, Grain, and Hardness) are
conditionally independent given the Class. Write the posterior probability using
this assumption of conditional independence.
b) Consider a new example (Density=Light^Grain=Small^Hardness=Hard) and compute
these class probabilities.
Q18.
Suppose you live in London, England, and you notice that during the winter, it rains 50%
of the time and that it is cloudy 80% of the time (sometimes it is cloudy without rain).
You know, of course, that 100% of the time, if it is raining, then it is also cloudy. Using
Bayes’ rule, compute the chances of rain,
given that it is just cloudy.
Q19.
A theme park hired you after graduation. Assume that you want to predict when the theme
park receives lots of visitors. You gathered the following data: What is the probability that
the learned Bayesian network will predict that the theme park receives lots of visitors on a
cloudy and hot weekend day?
Q20.
You are given two different Bayesian network structures 1 and 2, each consisting of 5
binary random variables A, B, C, D, and E. Each variable corresponds to a gene, whose
expression can be either "ON" or "OFF".
For each of the following cases, the factor P(A,B,C,D,E) according to the independence
specified and gives the
minimum number of parameters required to
fully specify the distribution.
(i) A,B,C,D,E are all mutually independent
(ii) A,B,C,D,E follow the independence assumptions of Network #1 above
(iii) A,B,C,D,E follow the independence assumptions of Network #2 above
(iv) No independencies
Q21.
Consider The Monty Hall Problem given below;
You are a contestant on a game show where you are presented with three closed
doors. Behind one of the doors is a car, and behind the other two are goats. The
game proceeds as follows:
You initially choose one of the three doors, without opening it.
The host, who knows what is behind each door, opens one of the other two
doors, revealing a goat.
You are then given the opportunity to stick with your original choice or switch to
the other unopened door.
After making your decision, the chosen door is opened to reveal whether you
have won the car or a goat.
Apply Bayes' Theorem to analyze the probabilities associated with sticking with
your initial choice versus switching doors.
Q22.
An ABC hospital maintains the patient details as follows for diagnosing the patient
diseases. Use Naïve Bayes classifier to diagnose a person with the following symptoms
[Y N Mild Nj has a Flu or not?