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

Assignment 3 (Emai2)

The document outlines an assignment with various problems related to meteorology, machine states, Markov Decision Processes (MDPs), logic expressions, fuzzy logic, and boundary value problems. It includes tasks such as calculating probabilities, using value and policy iteration methods, and expressing statements using predicates and quantifiers. Additionally, it discusses the differences between fuzzy logic and probability, as well as AI ethics concepts like bias and discrimination.

Uploaded by

reeth66
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
105 views

Assignment 3 (Emai2)

The document outlines an assignment with various problems related to meteorology, machine states, Markov Decision Processes (MDPs), logic expressions, fuzzy logic, and boundary value problems. It includes tasks such as calculating probabilities, using value and policy iteration methods, and expressing statements using predicates and quantifiers. Additionally, it discusses the differences between fuzzy logic and probability, as well as AI ethics concepts like bias and discrimination.

Uploaded by

reeth66
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

EMAI-2 (CSE 3788)

ASSIGNMENT-3

1. A meteorologist is modelling the weather forecast for a city. The weather can be in one of two states:
Sunny (State 1), Rainy (State 2). The transition probabilities between these two states are as follows: If it
is sunny today, the probability that it will be sunny tomorrow 0.7, and the probability that it will be rainy
tomorrow is 0.3. If it is rainy today, the probability that it will be sunny tomorrow is 0.40, and the
probability that it will be rainy tomorrow is 0.6. The meteorologist knows that today, the weather is sunny.
What is the probability that the weather will be rainy two days from now?

2. A company produces widgets using a machine that can either be in one of two states: Operational (State 1)
and Broken (State 2). The transition probabilities between these two states are as follows: If the machine is
Operational today, the probability that it will be Operational tomorrow is 0.95, and the probability that it
will be Broken tomorrow is 0.05. If the machine is Broken today, the probability that it will be
Operational tomorrow is 0.40, and the probability that it will be Broken tomorrow is 0.60. What is the
probability that the machine will be Operational after 3 days?

3. Consider an MDP with 3 states S={ S1, S2, S3} and 2 possible actions A={A1,A2}. The transition
probabilities P and rewards R for each state-action pair are given as follows:
P(S2 ∣ S1,A1)=1, R(S1,A1)= 5 ; P(S1∣ S1,A2)=1 , R(S1,A2)= 0;
P(S3∣ S2,A1)=1, R(S2,A1)=10; P(S1∣ S2,A2)= 1, R(S2,A2)=2;
P(S1∣ S3,A1)= 1, R(S3,A1)=2; P(S3∣ S3,A2)= 1, R(S3,A2)=0.
Discount factor γ=0.9 and initial values of all states are 0. Use Value Iteration to compute the values of the
states S1, S2 and S3 after 1st iteration.

4. Let's consider a simple MDP with two states S={S1, S2} and two possible actions A={A1,A2}. Transition
Probabilities:
P(S1∣S1,A1)=0.7, R(S1,A1)=5; P(S2∣S1,A1)=0.3, R(S1,A1)=5;
P(S1∣S1,A2)=0.4, R(S1,A2)=1; P(S2∣S1,A2)=0.6, R(S1,A2)=1;
P(S1∣S2,A1)=0.6, R(S2,A1)=2; P(S2∣S2,A1)=0.4, R(S2,A1)=2;
P(S1∣S2,A2)=0.2, R(S2,A2)=4; P(S2∣S2,A2)=0.8, R(S2,A2)=4.
Discount factor: γ=0.9. Initial values of the states are zero and assume the policy is: π(S1)=A1 and
π(S2)=A2. Use Policy Iteration to determine values of states after 2nd iteration.

5. Write down the definition of an irreducible Markov chain.

6. Write down the definition of transient states and recurrent states with examples.

7. Express the statement "Some student in this class has visited Mexico" and " Every student in this class has
visited either Canada or Mexico" using predicates & quantifiers.

8. Express the statement using predicates & quantifiers where domain for quantification consists of all
students at your school:
"Every student at your school either can speak Russian or knows C++."
9. Translate each of these statements into logical expressions:
"Not everyone is perfect."
"No one is perfect"

10. Let P(x) be the statement "x spends more than 7 hours every weekday in office", where the domain for x
consists of all employees. Express each of these in English:
a) ∀x¬P(x)
b) ∃x¬P(x)

11. What is fuzzy logic? Give some real life examples of fuzzy logic?
EMAI-2 (CSE 3788)

ASSIGNMENT-3

12. Write the difference between fuzzy logic & probability.


3 1
13. Discretize and solve the boundary value problem 𝑦 ′′ = 2 𝑦 2 , with 𝑦(0) = 4, 𝑦(1) = 1 by taking h=3 .
14. Discretize and solve the boundary value problem 𝑦 ′′ + 𝑦 + 1 = 0, with 𝑦(±1) = 0 by taking h=0.5.
𝜕𝑇 𝜕2 𝑇
15. Discretize the Heat conduction equation 𝜕𝑡
=𝑐
𝜕𝑥 2
.
𝜕2 𝑢 𝜕2 𝑢 𝜕2 𝑢
16. Discretize the Wave equation of a vibrating membrane 𝜕𝑡 2
= 𝑐[
𝜕𝑥 2
+
𝜕𝑦 2
].
17. Discretize the given PDE using central difference method
𝜕2 𝑓
+ 4𝑓 = 0, 0 ≤ 𝑥 ≤ 1
𝜕𝑥 2
subject to the boundary conditions f(0)=1, f(1)=1 and assume h=0.5.
18. What is Good AI? Give example.
19. Discuss about AI policies and its type.
20. Write down the characteristics of good AI.
21. Distinguish between the terms Bias and Discrimination in AI ethics.

You might also like