Artificial Intelligence Group No 1 Assignment 1
Artificial Intelligence Group No 1 Assignment 1
GROUP MEMBERS:
QUESTION:
Question one:
What is known:
o 1. The law says that it is a crime for an American to sell weapons to hostile
𝑆𝑒𝑙𝑙𝑠(𝑥, 𝑧, 𝑦) → 𝐶𝑟𝑖𝑚𝑖𝑛𝑎𝑙(𝑥))].
o 2. The country Nono, an enemy of America, has some missiles and all of its
1
missiles were sold to it by Colonel West, who is an American:
∃𝑥[𝑂𝑛𝑤𝑠(𝑁𝑜𝑛𝑜, 𝑥) ∧ 𝑀𝑖𝑠𝑠𝑖𝑙𝑒(𝑥)],
o 4. ∀𝑥[𝑀𝑖𝑠𝑠𝑖𝑙𝑒(𝑥) → 𝑊𝑒𝑎𝑝𝑜𝑛(𝑥)],
o 6. 𝐴𝑚𝑒𝑟𝑖𝑐𝑎(𝑊𝑒𝑠𝑡),
o 7. 𝑁𝑎𝑡𝑖𝑜𝑛(𝑁𝑜𝑛𝑜),
o 8. 𝐸𝑛𝑒𝑚𝑦(𝑁𝑜𝑛𝑜, 𝐴𝑚𝑒𝑟𝑖𝑐𝑎),
o 9. 𝑁𝑎𝑡𝑖𝑜𝑛(𝐴𝑚𝑒𝑟𝑖𝑐𝑎).
2
QUESTION 1.
We perform the analysis of the given information and see if we can prove that Colonel West is a
criminal.
1. The law states that it is a crime for an American to sell weapons to hostile nations.
2. The country Nono, an enemy of America, has some missiles and all of its missiles were
sold to it by Colonel West, who is an American.
∃x [Owns (Nono, x) ∧ Missile(x)]
∃x [Owns (Nono, x) ∧ Missile(x) ∧ Sells (West, Nono, x)]
3. For all missiles owned by Nono, Colonel West sold them.
∀x [(Owns (Nono, x) ∧ Missile(x)) → Sells (West, Nono, x)]
From statement 3, we have that all missiles owned by Nono were sold by Colonel West. From
statement 2, we know that Nono owns some missiles. Therefore, we can conclude that Colonel
West sold some missiles to Nono.
Now, using statement 1, which states that selling weapons to hostile nations is a crime, we can
conclude that Colonel West is a criminal: Criminal (West) Criminal (West)
So, based on the given information and the logical deductions, we can prove that Colonel West is
a criminal.
3
QUESTION 2.
use Bayes' Theorem to calculate the probability that John has malaria given that he has a high
fever. The theorem is given by:
P( F ∣ M ) × P(M)
P(M ∣ F) =
P(M)
Given information.
(a) P (M) = 0.0001 (Probability that a person has malaria regardless of symptoms).
(b) P (F∣M) = 0.75 (Probability that a person has a fever given that he has malaria).
(c) P (F∣ ¬ M) = 0.14 (Probability that a person has a fever given that he does not have malaria).
Now, we can substitute all these values into the Bayes' Theorem formula
0.75 × 0.0001
P(M ∣ F) =
0.14
0.000075
P(M ∣ F) =
0.14
P( M ∣ F ) = 0.0005357
QUESTION 3:
4
b) Unsupervised Learning. Training on unlabeled data allows an algorithm to search for
structures, correlations, and patterns without explicit supervision. This process is known as
unsupervised learning. Typical assignments include dimensionality reduction, which
reduces the complexity of the data while maintaining its key characteristics, and clustering,
in which the algorithm clusters together comparable data points.
c) Reinforcement Learning. Is focused on an agent that interacts with an environment to
learn how to make decisions. Reward or punishment feedback is given to the agent, helping
it to gradually learn the best strategies. This paradigm is frequently used in situations, like
gaming or robotic control, where an agent must choose a course of action to maximize
cumulative rewards.
d) Deep Learning. A branch of machine learning called "deep learning" models complicated
patterns and representations by employing multi-layered neural networks, or "deep neural
networks." It performs exceptionally well in applications like speech recognition, image
recognition, and natural language processing. Convolutional neural networks (CNNs) and
recurrent neural networks (RNNs) are two examples of deep learning architectures that
have proven to perform exceptionally well in a variety of fields.
e) Semi-Supervised Learning. Learning that is semi-supervised integrates aspects of
supervised and unsupervised learning by using a dataset that comprises samples that are
labeled and those that are not. To enhance the model's performance on the unlabeled data,
it makes use of the information from the labeled data. This method works well when there
is a shortage of labeled data and obtaining labeled data is costly or time-consuming.