0% found this document useful (0 votes)
3 views

week9

This document contains the assignment answers for Week 9 of the course 'An Introduction to Artificial Intelligence' for the session January-April 2024. It includes various questions related to Bayesian networks, sampling methods, and probability calculations, along with their respective answers. Additionally, it provides links for further resources and updates related to the course.

Uploaded by

Galaxy M20
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

week9

This document contains the assignment answers for Week 9 of the course 'An Introduction to Artificial Intelligence' for the session January-April 2024. It includes various questions related to Bayesian networks, sampling methods, and probability calculations, along with their respective answers. Additionally, it provides links for further resources and updates related to the course.

Uploaded by

Galaxy M20
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Home / Nptel Assignment Answers 2025 / An Introduction to Artificial Intelligence / An Introduction to Artificial Intelligence | Week 9 How can we help

lp you? 

Related
An Introduction to
NPTEL ASSIGNMENT ANSWERS 2025
Artificial Intelligence |
An Introduction to Artificial Intelligence
Week 9
 13

 An Introduction to Artificial Intelligence | Week 12

 An Introduction to Artificial Intelligence | Week 11


Session: JAN-APR 2024
 An Introduction to Artificial Intelligence | Week 10 Course name: An Introduction to Artificial Intelligence
 An Introduction to Artificial Intelligence | Week 9 Course Link: Click Here
 An Introduction to Artificial Intelligence | Week 8
For answers or latest updates join our telegram channel:
 An Introduction to Artificial Intelligence | Week 7 Click here to join

 An Introduction to Artificial Intelligence | Week 6 These are An Introduction to Artificial Intelligence


Answers Week 9
 An Introduction to Artificial Intelligence | Week 5

 An Introduction to Artificial Intelligence | Week 4


Q1. There is a biased coin with probability of heads
 An Introduction to Artificial Intelligence | Week 3
as θ. Let the prior on this probability be given by
An Introduction to Programming Through C++
the PDF P(θ) = 6θ (1- θ). The coin is flipped 5
 7
times, and it lands up on heads each time. The MAP
 Artificial Intelligence Search Methods For 2 estimate of θ is (return answer rounded upto 3
Problem Solving decimal places, eg, if the answer is 0.3456, return
0.346)
 Blockchain and its Applications 13
Answer: 0.625
 C Programming And Assembly Language 1

 Cloud Computing 22
Q2. How many of the following statements are CORRECT
 Computer Architecture Nptel 9
a. Rejection sampling (before rejection step) samples from
 Computer Graphics 7 the posterior distribution of the Bayes Net given the
evidence variables
 Cyber Security and Privacy 22
b. In the limit of infinite sampling, rejection sampling will
Data Base Management System 16
return consistent posterior estimates

c. In the limit of infinite sampling, likelihood weighting will
 Data Science for Engineers 11 return consistent posterior estimates
d. Exact Inference in Bayesian networks can be done in
 Data Structure And Algorithms Using Java 7
Polynomial time in the worst case.
 Deep Learning 21
e. MCMC with Gibbs Sampling is guaranteed to converge to
Deep Learning for Computer Vision 8
the same distribution irrespective of the initial state for all

kinds of Bayes Networks
 Developing Soft Skills and Personality 9 f. Performance of Likelihood weighting degrades in practice
when there are many evidence variables that are lower in
 Digital Circuits 8
the Bayes Net
Discrete Mathematics 14 g. Late occurring evidence variables can help guide sample

× generation in likelihood weighting
 Electric Vehicles 5
Answer: 2
 Ethical Hacking 22

 Introduction To Industry 4.0 And Industrial 22


Internet Of Things For answers or latest updates join our telegram channel:
Click here to join
 Introduction To Internet Of Things 21
These are An Introduction to Artificial Intelligence
 Introduction To Machine Learning 36 Answers Week 9

 Introduction to Operating Systems 17

 Introduction To Programming In C 9 Q3. What is the P(?1 = 1) + P(?5 = 2), where “?i” indicates “?”
in the ith row, after the 1st E-step. (round up to 2 decimal
 Leadership and Team Effectiveness 12 places)
 Machine Learning and Deep Learning - 4 Answer: 0.33
Fundamentals and Applications

 Multi-Core Computer Architecture 13


Q4. What is P(X = 1 | B = 1) – P(B = 0 | A = 1) after the 1st M-
 Principles of Managements 13
step? (round up to 3 decimal places)
 Probability And Statistics 13
Answer: 0.654
 Problem Solving Through Programming In C 19

 Programming Data Structure And Algorithms 12 For answers or latest updates join our telegram channel:
Using Python Click here to join
 Programming In Java 21
These are An Introduction to Artificial Intelligence
 Programming in Modern C++ 20 Answers Week 9

 Python for Data Science 9


Q5. Consider the bayes-net
 Quantum Mechanics 1 12
We wish to calculate P(c | ¬w, r). Select the correct
 Social Networks 13 statements –
When using rejection sampling, we will accept the sample (
 Soft Skills 9 ¬c, s, ¬w, r).
When using likelihood weighting, every sample will be
 Soft Skills Development 19
weighted 0.5
 Software Engineering 7 When using MCMC with Gibbs sampling, we vary
assignments to C and S.
 Software Testing 13 S is conditionally independent of all other variables, given
its parent C.
 The Joy of Computing Using Python 23
Answer: a), d)
 Theory of Computation 8

Q6. Which of the following is/are INCORRECT?


ML (Maximum Likelihood) works better than MAP when the
Popular
data is sparse.
Time Management and ways of Thinking In the limit of infinite data, MAP reduces to MLE.
Time Management Fundamentals Final Exam MAP estimation needs a prior distribution on the parameter
values
MLE assumes a beta distribution prior on the parameter
values
Entrepreneurship
Entrenerprenaurship Foundations Linkedin See also An Introduction to Artificial Intelligence |
Learning Week 12

Academic Paper Writing and IPR, Design Thinking and Creativity for Innovation, Answer: c), d)
Team Skills
Thinking Creatively Quiz
For answers or latest updates join our telegram channel:
Team Skills Click here to join
Teamwork Foundations
These are An Introduction to Artificial Intelligence
Answers Week 9
Team Skills
Effective Listening
Q7. How many of the following statements are CORRECT
Design Thinking and Creativity for Innovation ?
Design Thinking Data Intelligence a. The 15-Puzzle has a single agent setup
b. The game of poker has a partially observable
environment
Cloud Computing
c. The game of poker is deterministic
Cloud Computing | Week 1
d. The environment of an autonomous driving car is fully
observable
Design Thinking and Creativity for Innovation e. Playing the game of chess under time constraints is
Agile Foundations semi-dynamic
f. The outcomes of the decisions taken by an autonomous
driving agent are stochastic in nature
Academic Paper Writing and IPR
Business Writing Principles g. The game of poker has a discrete environment
h. Interactive Medical Diagnosis chatbots do episodic
decision making
Time Management and ways of Thinking
Time Management Fundamentals Answer: 3

Q8. Consider the following scenario, where we have a


bag of candies. There are only two types of candies: red
(R) and green (G) in the bag. We want to estimate the % of
candies of each type in the bag. We perform Bayesian
learning where the hypothesis space is given by H = {h1,
h2, h3, h4, h5}. We have the following 5 hypotheses and
their initial probabilities (prior).
What is the probability of picking a green candy as
predicted by our initial estimates:

Answer: 0.175

For answers or latest updates join our telegram channel:


Click here to join

These are An Introduction to Artificial Intelligence


Answers Week 9

Q9. Consider the same table as question 8, we now pick a


random candy from the bag and it turns out to be green.
We then recompute the probabilities of our hypothesis
using Bayesian learning (posterior):
(values in the table percentages)
What is the value of 5a + 4b + 3c + 2d + e

Answer: 16

Q10. Which of the following is/are CORRECT?

a)To learn the structure of Bayes net, we can perform a


local search over the space of network structures.
b) If the structure of Bayes net is known and we are trying
to estimate the parameters of the network from data which
has some missing values, we can use an EM algorithm to
estimate both the missing values and the parameters.

c) Given a training dataset, a fully connected Bayes Net is


always guaranteed to fit the dataset the best
d) While learning the Bayes net structure given data, If we
use a scoring function which is a linear combination of a
term which is inversely proportional to model complexity
and a term which is proportional to how well the Bayes net
fits the data, then the model with the highest score might
not be the fully connected Bayes net

See also An Introduction to Artificial Intelligence |


Week 7

Answer: c), d)

These are An Introduction to Artificial Intelligence


Answers Week 9

Q11. Consider the following Bayesian Network.


We are given the following samples.
What is the estimated value of P(C=1|B=0) if we use Add-
One smoothing? Round off your answer to 2 decimal
points. (e.g., if your answer is 0.14159… then write 0.14)

Answer: 0.65

For answers or latest updates join our telegram channel:


Click here to join

These are An Introduction to Artificial Intelligence


Answers Week 9

More Weeks of An Introduction to Artificial Intelligence:


Click here

More Nptel Courses: https://progiez.com/nptel-


assignment-answers

Course Name: An Introduction to Artificial Intelligence


Course Link: Click Here

These are An Introduction to Artificial Intelligence


Answers Week 9

Q1. Consider the following Bayesian network with


binary variables.

Calculate the probability P(a | d, e) using rejection


sampling, given the following samples. Return the
answer as a decimal rounded to 2 decimal points (for
example, if it is 0.333, return 0.33).

Answer: 0.75

These are An Introduction to Artificial Intelligence


Answers Week 9

Q2. Which of the following statements are true?


a. Rejection sampling samples from the prior distribution
b. Rejection sampling samples from the posterior
distribution
c. Likelihood sampling samples from the prior distribution
d. Likelihood sampling samples from the posterior
distribution

Answer: a. Rejection sampling samples from the prior


distribution

These are An Introduction to Artificial Intelligence


Answers Week 9

Q3. Which of the following properties are valid for the


environment of the Turing Test?
a. Fully observable
b. Multi-Agent
c. Dynamic
d. Stochastic

Answer: b, c, d

These are An Introduction to Artificial Intelligence


Answers Week 9

Q4. Consider the following Bayesian Network. Suppose


you are doing likelihood weighting to determine P(s|
¬w,c).

What is the weight of the sample (c, s,r, ¬w)?


Return the answer as a decimal rounded to 3 decimal
points (for example, if it is 0.1234, return 0.123).

Answer: 0.005

These are An Introduction to Artificial Intelligence


Answers Week 9

Q5. Suppose we use MCMC with Gibbs sampling to


determine P(s|w) in the above problem. Which of the
following are correct statements in this case?
a. We might need to calculate P(w|¬s,c,r) during the
sampling process.
b. The relative frequency of reaching the states with S
assigned true after sufficiently many steps will provide an
estimate of P(s|w)
c. We can get a reliable estimate of probability by using the
first few samples only.
d. Sampling using MCMC is asymptotically equivalent to
sampling from the prior probability distribution.

Answer: b. The relative frequency of reaching the states


with S assigned true after sufficiently many steps will
provide an estimate of P(s|w)

These are An Introduction to Artificial Intelligence


Answers Week 9

See also An Introduction to Artificial Intelligence |


Week 5

Q6. Consider the following Bayesian Network. What is the


Markov Blanket of C? Return the answer as a
lexicographically sorted string (for example, if the
blanket consists of the nodes A, D and C return ACD)

Answer: ABDEFG

These are An Introduction to Artificial Intelligence


Answers Week 9

Q7. Which of the following provides a plausible way to


learn the structure of Bayesian networks from data?
a. Bayesian learning
b. Local search in the space of possible structures
c. MAP
d. MLE

Answer: b. Local search in the space of possible


structures

These are An Introduction to Artificial Intelligence


Answers Week 9

Q8. Consider the following Bayesian Network, where


each variable is binary.
We have the following training examples for the above
Bayesian net where two examples contain unobserved
values (denoted by ?). All of the parameters of the
Bayesian network are set at 0.5 initially, except for P(b)
and P(c|¬a,¬b), which are initialised to 0.8. What is the
value of P(c|a,b) after simulating the second M step of the
simple (hard) EM algorithm? If the answer is the fraction
m/n where m and n have no common factors, return m+n.
(eg. 3 if the answer is 2/4)

Answer: 2

These are An Introduction to Artificial Intelligence


Answers Week 9

Q9. Ram is given a possibly biased coin and he is


supposed to estimate the probability of it turning heads.
Ram tosses the coin 5 times and gets head 3 times.
Suppose that Ram uses maximizing likelihood as
the learning algorithm for this task. What, according to
him, is the probability of getting heads for the coin?
Give the answer rounded off to 1 decimal place

Answer: 0.6

These are An Introduction to Artificial Intelligence


Answers Week 9

Q10. Suppose that Ram has a prior that the probability of


the coin turning head is one of 0.4 (case 1), 0.5 (case 2),
0.6 (case 3) with probability 1/3 each. Ram tosses the
coin once and gets head. What is the posterior
probability of case 1 given this observation?
Give the answer rounded off to 2 decimal places.

Answer: 0.27

These are An Introduction to Artificial Intelligence


Answers Week 9

More Solutions of An Introduction to Artificial Intelligence:


Click Here
More NPTEL Solutions: https://progiez.com/nptel-
assignment-answers/

Similar:

An Introduction to Artificial An Introduction to Artificial


Intelligence | Week 8 Intelligence | Week 11

An Introduction to Artificial An Introduction to Artificial


Intelligence | Week 4 Intelligence | Week 6

An Introduction to Artificial An Introduction to Artificial


Intelligence | Week 5 Intelligence | Week 10

An Introduction to Artificial An Introduction to Artificial


Intelligence | Week 3 Intelligence | Week 7

An Introduction to Artificial An Introduction to Artificial


Intelligence | Week 1 Intelligence | Week 2

© 2024 Progiez - Making Your Programming Easy

You might also like