ML Assignment
ML Assignment
Primary
Deductive Reasoning Statistical Inference
Approach
Hypotheses are justified by logical proofs Hypotheses are consistent with the
Nature of
and are consistent with both data and domain training data and represent
Hypothesis
theory. Often learns sufficient conditions. statistical regularities.
Simplified Analogy:
• Analytical Learning: Imagine a chess player who already knows all the rules and strategies
(domain theory). When they see a specific "fork" move, they deduce why it works and then
generalize that specific instance into a broader tactical rule, making them faster at identifying
similar situations in the future, even though they technically "knew" the principles
beforehand.
• Inductive Learning: Imagine someone who has never played chess but observes thousands
of games. By watching patterns of moves and outcomes, they might induce that "knights often
move in L-shapes" or "capturing the queen usually leads to a win" without ever being
explicitly taught the rules. They learn from the data itself.
Extra QnA:
Here are 10-15 Q&A points based on the provided units, structured unit-wise:
UNIT IV: Dimensionality Reduction and Evolutionary Models
1. Q: What is Dimensionality Reduction, and what are its main methods?
o A: Dimensionality reduction is a process that aims to reduce the number of
features or dimensions in a dataset, which can make the dataset easier to work
with, reduce computational cost, remove noise, and improve learning
algorithm results. There are three main methods:
▪ Feature selection: Involves looking at available features and
determining their usefulness, such as their correlation to output
variables.
▪ Feature derivation: Creates new features by applying transforms that
change the coordinate system of the data.
▪ Clustering: Groups similar data points to potentially use fewer
features.
2. Q: Explain the core concepts of Genetic Algorithms (GAs).
o A: A Genetic Algorithm (GA) is a search and optimization technique
inspired by natural evolution, belonging to the class of Evolutionary
Algorithms. Its core concepts include:
▪ Population: A collection of potential solutions, where each individual
solution is called a "chromosome".
▪ Chromosome: Represents a single solution, often encoded as a string
of bits, numbers, or characters.
▪ Fitness Function: Evaluates the quality of a solution (chromosome) by
assigning a score, which the GA aims to maximize.
3. Q: How do Genetic Operators drive evolution in a Genetic Algorithm?
o A: Genetic operators are the fundamental mechanisms that create new
solutions (offspring) from existing ones, introducing variation for the
algorithm to explore the solution space. The main operators are:
▪ Selection: Chooses the fittest individuals from the current population
to serve as "parents" for the next generation, giving preference to better
solutions. An example is Roulette Wheel Selection, where individuals
are given a "slice" proportional to their fitness, and the wheel is spun to
pick parents.
▪ Crossover (Recombination): Combines the genetic material of two
parents to create new offspring, inheriting traits from both. For
example, Single-Point Crossover selects a random point and
combines parts of parent chromosomes.
▪ Mutation: Introduces small, random changes into a chromosome, vital
for maintaining genetic diversity and helping the algorithm escape
local optima. An example is Bit-Flip Mutation for binary
chromosomes.
4. Q: What is Reinforcement Learning (RL), and what are its key components?
o A: Reinforcement Learning (RL) is a machine learning domain where an
agent learns to make decisions by performing actions in an environment. It
learns from the consequences of actions, receiving numerical reward (for
good actions) or penalty (for bad actions), with the goal of maximizing total
cumulative reward over time. Key components include:
▪ Agent: The learner and decision-maker.
▪ Environment: The external world where the agent operates.
▪ State (s): A description of the environment's current situation.
▪ Action (a): A move or decision the agent can make.
▪ Reward (r): Immediate feedback from the environment after an action.
5. Q: How does a Reinforcement Learning agent balance exploration and
exploitation when selecting actions?
o A: A central challenge in RL is balancing exploration (trying new actions to
discover better strategies) and exploitation (making the best decision given
current knowledge). Policies to select actions include:
▪ Greedy Method: Always chooses the action with the highest
estimated value (Q-value), a pure exploitation strategy that can get
stuck in suboptimal routines.
▪ ϵ-Greedy (Epsilon-Greedy) Method: With a high probability (1−ϵ),
the agent chooses the greedy action (exploits), but with a small
probability (ϵ), it chooses a random action (explores). This guarantees
continued exploration while favoring known good actions.
▪ Soft-max Method: Assigns a probability to each action based on its
estimated value using the Boltzmann distribution. Actions with higher
values are more likely, and a "temperature" parameter (τ) controls the
balance between random (high τ) and greedy (low τ) selection.
UNIT V: Graphical Models
6. Q: What is Markov Chain Monte Carlo (MCMC), and how does it work?
o A: Markov Chain Monte Carlo (MCMC) is a class of algorithms for
sampling from complex probability distributions that are difficult to sample
directly. It combines:
▪ Monte Carlo: Uses random sampling to obtain numerical results.
▪ Markov Chain: A sequence of random states where the probability of
moving to the next state depends only on the current state
("memoryless").
o The algorithm works by constructing a Markov chain whose states, after an
initial "burn-in" period, converge to the target distribution. By running the
chain and recording the visited states, samples are generated from the target
distribution. An example is modeling a frog's hopping behavior on lily pads to
determine its favorite pads by observing visit frequencies.
7. Q: Explain what a Bayesian Network is and its key components.
o A: A Bayesian Network (or Belief Network) is a graphical model that
represents probabilistic dependencies among a set of random variables using
a Directed Acyclic Graph (DAG). Its components are:
▪ Nodes: Represent the random variables.
▪ Directed Edges (Arrows): Show probabilistic influences; an arrow
from A to B means A directly influences B (A is a "parent" of B).
▪ Conditional Probability Table (CPT): Each node has a CPT that
quantifies the probability of its variable's state given the states of its
parents.
o Bayesian networks allow for probabilistic inference, such as determining the
probability of causes given observations (diagnosis) or predicting outcomes
given known variables.
8. Q: Describe Hidden Markov Models (HMMs) and the problems they address.
o A: A Hidden Markov Model (HMM) is a statistical model for systems that
are assumed to be a Markov process with unobserved (hidden) states.
While the hidden state cannot be seen directly, observations are
probabilistically generated by each state. An HMM requires:
▪ Transition Probabilities (A): Probability of changing from one hidden
state to another.
▪ Emission Probabilities (B): Probability of seeing a specific
observation given a hidden state.
▪ Initial State Distribution (π): Probability of the hidden state on the
first day.
o HMMs are used to solve three main problems:
▪ Evaluation: Calculating the probability of a given sequence of
observations.
▪ Decoding: Determining the most likely sequence of hidden states that
produced an observation sequence (often solved by the Viterbi
algorithm).
▪ Learning: Adjusting the model's parameters (A, B, π) to best fit
observed data (often solved by the Baum-Welch algorithm).
9. Q: What is a Particle Filter, and how does its algorithm work?
o A: A Particle Filter (also known as Sequential Monte Carlo method) is an
algorithm used to estimate the state of a dynamic system over time,
particularly effective for non-linear systems with non-Gaussian noise. Its
core idea is to represent the probability distribution of the system's state using
a large set of weighted random samples called "particles". The algorithm
works in a recursive predict-update-resample cycle:
▪ Prediction: Each particle is moved forward in time according to the
system's dynamics model.
▪ Update: When a new measurement is received, the "importance
weight" of each particle is updated, giving higher weights to particles
consistent with the measurement.
▪ Re-sampling: A new set of particles is created by sampling from the
current set, with selection probability proportional to the particle's
weight, focusing the filter on the most plausible hypotheses.
UNIT VI: Analytical Learning
10. Q: How does Explanation-Based Learning (EBL) work, and what are its key
characteristics?
o A: Explanation-Based Learning (EBL) is an analytical learning technique
that uses prior knowledge, called a domain theory, to learn from a single
training example. Unlike inductive learning, EBL constructs a logical
explanation (or proof) of why the example satisfies the target concept, then
generalizes this explanation to form a new, more efficient rule. EBL is often
called speed-up learning as it reorganizes existing knowledge for efficiency
rather than discovering new facts.
o Key characteristics of EBL include:
▪ Produces justified and explainable hypotheses through logical
proofs.
▪ Identifies relevant attributes by filtering out example-specific details
during explanation.
▪ Derives general constraints on feature values.
▪ Learns sufficient conditions for the target concept.
▪ Heavily depends on the correctness and completeness of the
domain theory, which is a major limitation, as it assumes a perfect
theory and doesn't discover new knowledge.
11. Q: What is the KBANN algorithm, and what are its advantages?
o A: KBANN (Knowledge-Based Artificial Neural Networks) is a hybrid
learning algorithm that integrates a symbolic domain theory with
connectionist learning (neural networks). Its main idea is to use prior
knowledge (IF-THEN rules) to intelligently initialize the structure and
weights of a neural network, which is then refined using training data.
o How it works:
1. Initializes Network from Rules: Symbolic rules are translated into a neural network
architecture, where concepts become neurons and logical relationships define initial
connections and weights.
2. Adds New Connections: Extra, sparsely connected neurons with near-zero weights
are added to allow the network to learn beyond initial rules.
3. Trains the Network: The knowledge-based network is then trained using a standard
algorithm like backpropagation, adjusting weights to refine, correct, or add to the initial
domain theory.
o Advantages of KBANN:
▪ Achieves better generalization from less data due to a strong initial
structure.
▪ Handles imperfect knowledge by allowing training data to correct
flaws in initial rules.
▪ Offers improved interpretability as the network's structure maps back
to symbolic rules.
12. Q: Differentiate between Analytical Learning and Inductive Learning.
o A: Analytical and Inductive learning represent two different approaches to
machine learning, primarily distinguished by their use of prior knowledge and
the nature of their inference.
▪ Inductive Learning:
▪ Relies on plentiful data.
▪ Requires little prior knowledge.
▪ Performs statistical inference, finding patterns in many
examples.
▪ Its bias is typically syntactic.
▪ Analytical Learning:
▪ Learns effectively from scarce data.
▪ Relies on perfect prior knowledge (domain theory).
▪ Performs deductive inference, using logical reasoning from
prior knowledge.
▪ Its bias is determined by the domain theory itself.
o Analytical learning, such as EBL, augments training data with prior
knowledge to achieve generalization, often seen as "speed-up learning"
because it reorganizes existing knowledge rather than discovering new
[Link] are 10-15 Q&A points based on the provided units, structured unit-
wise:
UNIT IV: Dimensionality Reduction and Evolutionary Models
1. Q: What is Dimensionality Reduction, and what are its main methods?
o A: Dimensionality reduction is a process that aims to reduce the number of
features or dimensions in a dataset, which can make the dataset easier to work
with, reduce computational cost, remove noise, and improve learning
algorithm results. There are three main methods:
▪ Feature selection: Involves looking at available features and
determining their usefulness, such as their correlation to output
variables.
▪ Feature derivation: Creates new features by applying transforms that
change the coordinate system of the data.
▪ Clustering: Groups similar data points to potentially use fewer
features.
2. Q: Explain the core concepts of Genetic Algorithms (GAs).
o A: A Genetic Algorithm (GA) is a search and optimization technique
inspired by natural evolution, belonging to the class of Evolutionary
Algorithms. Its core concepts include:
▪ Population: A collection of potential solutions, where each individual
solution is called a "chromosome".
▪ Chromosome: Represents a single solution, often encoded as a string
of bits, numbers, or characters.
▪ Fitness Function: Evaluates the quality of a solution (chromosome) by
assigning a score, which the GA aims to maximize.
3. Q: How do Genetic Operators drive evolution in a Genetic Algorithm?
o A: Genetic operators are the fundamental mechanisms that create new
solutions (offspring) from existing ones, introducing variation for the
algorithm to explore the solution space. The main operators are:
▪ Selection: Chooses the fittest individuals from the current population
to serve as "parents" for the next generation, giving preference to better
solutions. An example is Roulette Wheel Selection, where individuals
are given a "slice" proportional to their fitness, and the wheel is spun to
pick parents.
▪ Crossover (Recombination): Combines the genetic material of two
parents to create new offspring, inheriting traits from both. For
example, Single-Point Crossover selects a random point and
combines parts of parent chromosomes.
▪ Mutation: Introduces small, random changes into a chromosome, vital
for maintaining genetic diversity and helping the algorithm escape
local optima. An example is Bit-Flip Mutation for binary
chromosomes.
4. Q: What is Reinforcement Learning (RL), and what are its key components?
o A: Reinforcement Learning (RL) is a machine learning domain where an
agent learns to make decisions by performing actions in an environment. It
learns from the consequences of actions, receiving numerical reward (for
good actions) or penalty (for bad actions), with the goal of maximizing total
cumulative reward over time. Key components include:
▪ Agent: The learner and decision-maker.
▪ Environment: The external world where the agent operates.
▪ State (s): A description of the environment's current situation.
▪ Action (a): A move or decision the agent can make.
▪ Reward (r): Immediate feedback from the environment after an action.
5. Q: How does a Reinforcement Learning agent balance exploration and
exploitation when selecting actions?
o A: A central challenge in RL is balancing exploration (trying new actions to
discover better strategies) and exploitation (making the best decision given
current knowledge). Policies to select actions include:
▪ Greedy Method: Always chooses the action with the highest
estimated value (Q-value), a pure exploitation strategy that can get
stuck in suboptimal routines.
▪ ϵ-Greedy (Epsilon-Greedy) Method: With a high probability (1−ϵ),
the agent chooses the greedy action (exploits), but with a small
probability (ϵ), it chooses a random action (explores). This guarantees
continued exploration while favoring known good actions.
▪ Soft-max Method: Assigns a probability to each action based on its
estimated value using the Boltzmann distribution. Actions with higher
values are more likely, and a "temperature" parameter (τ) controls the
balance between random (high τ) and greedy (low τ) selection.
UNIT V: Graphical Models
6. Q: What is Markov Chain Monte Carlo (MCMC), and how does it work?
o A: Markov Chain Monte Carlo (MCMC) is a class of algorithms for
sampling from complex probability distributions that are difficult to sample
directly. It combines:
▪ Monte Carlo: Uses random sampling to obtain numerical results.
▪ Markov Chain: A sequence of random states where the probability of
moving to the next state depends only on the current state
("memoryless").
o The algorithm works by constructing a Markov chain whose states, after an
initial "burn-in" period, converge to the target distribution. By running the
chain and recording the visited states, samples are generated from the target
distribution. An example is modeling a frog's hopping behavior on lily pads to
determine its favorite pads by observing visit frequencies.
7. Q: Explain what a Bayesian Network is and its key components.
o A: A Bayesian Network (or Belief Network) is a graphical model that
represents probabilistic dependencies among a set of random variables using
a Directed Acyclic Graph (DAG). Its components are:
▪ Nodes: Represent the random variables.
▪ Directed Edges (Arrows): Show probabilistic influences; an arrow
from A to B means A directly influences B (A is a "parent" of B).
▪ Conditional Probability Table (CPT): Each node has a CPT that
quantifies the probability of its variable's state given the states of its
parents.
o Bayesian networks allow for probabilistic inference, such as determining the
probability of causes given observations (diagnosis) or predicting outcomes
given known variables.
8. Q: Describe Hidden Markov Models (HMMs) and the problems they address.
o A: A Hidden Markov Model (HMM) is a statistical model for systems that
are assumed to be a Markov process with unobserved (hidden) states.
While the hidden state cannot be seen directly, observations are
probabilistically generated by each state. An HMM requires:
▪ Transition Probabilities (A): Probability of changing from one hidden
state to another.
▪ Emission Probabilities (B): Probability of seeing a specific
observation given a hidden state.
▪ Initial State Distribution (π): Probability of the hidden state on the
first day.
o HMMs are used to solve three main problems:
▪ Evaluation: Calculating the probability of a given sequence of
observations.
▪ Decoding: Determining the most likely sequence of hidden states that
produced an observation sequence (often solved by the Viterbi
algorithm).
▪ Learning: Adjusting the model's parameters (A, B, π) to best fit
observed data (often solved by the Baum-Welch algorithm).
9. Q: What is a Particle Filter, and how does its algorithm work?
o A: A Particle Filter (also known as Sequential Monte Carlo method) is an
algorithm used to estimate the state of a dynamic system over time,
particularly effective for non-linear systems with non-Gaussian noise. Its
core idea is to represent the probability distribution of the system's state using
a large set of weighted random samples called "particles". The algorithm
works in a recursive predict-update-resample cycle:
▪ Prediction: Each particle is moved forward in time according to the
system's dynamics model.
▪ Update: When a new measurement is received, the "importance
weight" of each particle is updated, giving higher weights to particles
consistent with the measurement.
▪ Re-sampling: A new set of particles is created by sampling from the
current set, with selection probability proportional to the particle's
weight, focusing the filter on the most plausible hypotheses.
UNIT VI: Analytical Learning
10. Q: How does Explanation-Based Learning (EBL) work, and what are its key
characteristics?
o A: Explanation-Based Learning (EBL) is an analytical learning technique
that uses prior knowledge, called a domain theory, to learn from a single
training example. Unlike inductive learning, EBL constructs a logical
explanation (or proof) of why the example satisfies the target concept, then
generalizes this explanation to form a new, more efficient rule. EBL is often
called speed-up learning as it reorganizes existing knowledge for efficiency
rather than discovering new facts.
o Key characteristics of EBL include:
▪ Produces justified and explainable hypotheses through logical
proofs.
▪ Identifies relevant attributes by filtering out example-specific details
during explanation.
▪ Derives general constraints on feature values.
▪ Learns sufficient conditions for the target concept.
▪ Heavily depends on the correctness and completeness of the
domain theory, which is a major limitation, as it assumes a perfect
theory and doesn't discover new knowledge.
11. Q: What is the KBANN algorithm, and what are its advantages?
o A: KBANN (Knowledge-Based Artificial Neural Networks) is a hybrid
learning algorithm that integrates a symbolic domain theory with
connectionist learning (neural networks). Its main idea is to use prior
knowledge (IF-THEN rules) to intelligently initialize the structure and
weights of a neural network, which is then refined using training data.
o How it works:
1. Initializes Network from Rules: Symbolic rules are translated into a neural network
architecture, where concepts become neurons and logical relationships define initial
connections and weights.
2. Adds New Connections: Extra, sparsely connected neurons with near-zero weights
are added to allow the network to learn beyond initial rules.
3. Trains the Network: The knowledge-based network is then trained using a standard
algorithm like backpropagation, adjusting weights to refine, correct, or add to the initial
domain theory.
o Advantages of KBANN:
▪ Achieves better generalization from less data due to a strong initial
structure.
▪ Handles imperfect knowledge by allowing training data to correct
flaws in initial rules.
▪ Offers improved interpretability as the network's structure maps back
to symbolic rules.
12. Q: Differentiate between Analytical Learning and Inductive Learning.
o A: Analytical and Inductive learning represent two different approaches to
machine learning, primarily distinguished by their use of prior knowledge and
the nature of their inference.
▪ Inductive Learning:
▪ Relies on plentiful data.
▪ Requires little prior knowledge.
▪ Performs statistical inference, finding patterns in many
examples.
▪ Its bias is typically syntactic.
▪ Analytical Learning:
▪ Learns effectively from scarce data.
▪ Relies on perfect prior knowledge (domain theory).
▪ Performs deductive inference, using logical reasoning from
prior knowledge.
▪ Its bias is determined by the domain theory itself.
o Analytical learning, such as EBL, augments training data with prior
knowledge to achieve generalization, often seen as "speed-up learning"
because it reorganizes existing knowledge rather than discovering new facts.
Here are additional short answer type questions and answers, organized by unit, drawing on
the provided sources:
UNIT IV: Dimensionality Reduction and Evolutionary Models
1. What is Dimensionality Reduction and why is it useful? Dimensionality reduction
is a process that reduces the computational cost of algorithms and is useful for
removing noise, improving learning algorithm results, making datasets easier to
work with, and making results easier to understand. When looking at data, it's
generally easier to interpret results in two dimensions, and never go beyond three for
plotting.
2. Name the three different ways to perform dimensionality reduction. The three
ways to perform dimensionality reduction are:
o Feature selection: Involves examining available features to determine their
usefulness, especially their correlation to output variables.
o Feature derivation: Involves creating new features by applying transforms to
the dataset, which effectively changes the coordinate system of the graph
through moving and rotating axes.
o Clustering: Used to group similar data points to potentially enable the use of
fewer features.
3. What is the core difference between Linear Discriminant Analysis (LDA) and
Principal Component Analysis (PCA) in terms of data handling? Linear
Discriminant Analysis (LDA) is a supervised learning algorithm applicable for
classification problems with more than two classes and projects features from higher
to lower dimensional space. In contrast, Principal Component Analysis (PCA) is an
unsupervised learning algorithm used for dimensionality reduction and is designed
for unlabeled data, although it can be applied to labeled data by transforming it to
identify lower-dimensional axes.
4. What are the two main criteria that Linear Discriminant Analysis (LDA) aims to
achieve when creating a new axis? In LDA, two criteria must be followed to create a
new axis:
o It maximizes the distance between the means of two classes.
o It minimizes the variance within the individual class.
5. How does PCA identify and prioritize new coordinate axes for dimensionality
reduction? The idea of PCA is to find directions in the data with the largest
variation. The algorithm first centers the data by subtracting the mean, then chooses
the direction with the largest variation to place the first axis. It then identifies
another axis orthogonal to the first that covers as much of the remaining variation
as possible, iterating until no more possible axes remain. This results in all variation
being along the axes of the new coordinate set, making the covariance matrix
diagonal.
6. What is the primary goal of a Genetic Algorithm (GA)? A Genetic Algorithm (GA)
is a search and optimization technique inspired by natural evolution. Its primary goal
is to find optimal or near-optimal solutions for complex problems that are difficult
to solve using traditional methods, by evolving a population of solutions over
generations to maximize a fitness score.
7. What are the three core concepts of a Genetic Algorithm? The core concepts of a
Genetic Algorithm are:
o Population: A collection of potential solutions, where each individual solution
is called a "chromosome".
o Chromosome: Represents a single solution, often encoded as a string of bits,
numbers, or characters.
o Fitness Function: A function that evaluates the quality of a solution
(chromosome) by assigning it a score, which the GA aims to maximize.
8. List the two primary genetic operators involved in the reproduction phase of a
Genetic Algorithm. The two primary genetic operators used in the reproduction
phase are:
o Crossover: Combines genetic material from two parent chromosomes to
create new offspring, inheriting traits from both.
o Mutation: Randomly alters a small part of an offspring's chromosome to
introduce new genetic material and prevent the algorithm from getting stuck in
local optima.
9. Explain the role of "Exploration vs. Exploitation" in Reinforcement Learning. A
central challenge in Reinforcement Learning (RL) is managing the trade-off between
Exploitation and Exploration. Exploitation involves making the best decision based
on the agent's current knowledge, while Exploration involves trying new actions to
discover potentially better strategies. Action selection methods, such as epsilon-
greedy, are designed to balance these two aspects.
10. Describe the basic cycle of a Reinforcement Learning (RL) agent interacting
with its environment. The Reinforcement Learning process follows a cyclical loop:
1. The agent observes the current state of the environment.
2. Based on its policy, the agent chooses an action.
3. The agent performs the action.
4. In response, the environment transitions to a new state and provides a numerical
reward (or penalty).
5. The agent uses this new information to update its policy for future decision-making.
This loop repeats continuously.
UNIT V: Graphical Models
1. What is the fundamental purpose of Markov Chain Monte Carlo (MCMC)
methods? MCMC is a class of algorithms for sampling from complex probability
distributions, particularly when direct sampling is difficult. It is used to compute the
optimum solution to an objective function or the posterior distribution of a statistical
learning problem.
2. What is the Monte Carlo principle in statistical computing? The Monte Carlo
principle states that if independent and identically distributed samples are taken
from an unknown high-dimensional distribution, the sample distribution will
converge to the true distribution as the number of samples increases. This means
that sampling data points are more likely to be drawn from parts of the distribution
with high probability.
3. What is a Markov Chain, and what is its key property? A Markov chain is a
sequence of random states where the probability of moving to the next state
depends only on the current state (it is "memoryless"). The states are linked by
transition probabilities that define the likelihood of moving from one state to another.
4. Define a Bayesian Network and its components. A Bayesian Network (or Belief
Network) is a graphical model that represents the probabilistic dependencies
among a set of variables using a Directed Acyclic Graph (DAG). Its components
are:
o Nodes: Represent random variables.
o Directed Edges (Arrows): Indicate probabilistic influences, where an arrow
from Node A to Node B means A directly influences B (A is a "parent" of B).
o Conditional Probability Table (CPT): Each node has a CPT that quantifies
the probability of its variable's state given the states of its parents.
5. How do Bayesian Networks facilitate probabilistic inference? Bayesian Networks
allow for probabilistic inference, enabling calculations of updated probabilities
given observed evidence. There are two types: top-down inference (prediction),
where observations predict an unknown outcome, and bottom-up inference
(diagnosis), where the outcome is known but the causes are hidden.
6. What is a Hidden Markov Model (HMM)? A Hidden Markov Model (HMM) is a
statistical model used for systems assumed to be a Markov process but with
unobserved (hidden) states. While the true state is hidden, observable emissions are
probabilistically generated by each state. HMMs are often applied to temporal or
time-series data.
7. What are the three main problems that HMMs are used to solve? HMMs are
primarily used to solve three problems:
1. Evaluation: Determining the probability of a given sequence of observations.
2. Decoding: Finding the most likely sequence of hidden states that produced an
observation sequence (often solved by the Viterbi algorithm).
3. Learning: Adjusting the model's parameters (transition, emission, and initial state
probabilities) to best fit the observed data (e.g., using the Baum-Welch algorithm).
8. Describe the core idea and general cycle of a Particle Filter. A Particle Filter (or
Sequential Monte Carlo method) is an algorithm that estimates the state of a dynamic
system over time, especially useful for non-linear systems with non-Gaussian noise.
Its core idea is to represent the probability distribution of the system's state using
a large set of weighted random "particles", each being a hypothesis about the true
state. The algorithm works in a recursive predict-update-resample cycle.
9. What is a Markov Random Field (MRF), and how does its conditional
independence property differ from Bayesian Networks? A Markov Random Field
(MRF) is a graphical model with undirected edges, unlike the directed edges in
Bayesian Networks. In an MRF, two nodes are conditionally independent of each
other, given a third node, if there is no path between the two nodes that does not
pass through the third node. This implies that the state of a particular node is a
function only of the states of its immediate neighbors.
10. Provide an example application where Markov Random Fields (MRFs) are
particularly useful. Markov Random Fields are particularly useful in Image De-
Noising. For instance, given a noisy binary image, an MRF algorithm can reconstruct
an "ideal" image by assuming a good correlation between pixels in the noisy and ideal
images, and that neighboring pixels within a small patch of the image are highly
correlated. The algorithm iteratively updates pixel values to minimize an energy
function, which leads to a higher probability of the reconstructed image.
UNIT VI: Analytical Learning
1. What is Explanation-Based Learning (EBL)? Explanation-Based Learning (EBL)
is an analytical learning technique that utilizes prior knowledge, referred to as a
domain theory, to learn from a single training example. It learns by constructing a
logical explanation (or proof) of how the training example satisfies the target concept,
then generalizes this explanation to form a new, more efficient rule. EBL is often
called speed-up learning because it reorganizes existing knowledge rather than
discovering new facts.
2. How does EBL fundamentally differ from inductive learning? EBL differs from
inductive learning in several key aspects:
o Prior Knowledge: EBL requires explicit prior knowledge (domain theory),
whereas inductive learning needs little prior knowledge.
o Data Requirements: EBL can learn from scarce or even a single training
example, unlike inductive methods that need many examples to achieve
generalization accuracy.
o Reasoning: EBL uses deductive reasoning and constructs logical proofs to
generalize based on why an example satisfies a concept, while inductive
learning finds statistical patterns and relies on statistical inference.
o Knowledge Discovery: EBL primarily reorganizes existing knowledge for
efficiency, rather than discovering new facts or general hypotheses in the same
way as inductive learning.
3. What are the four main inputs required for the EBL process? The EBL process
requires the following inputs:
o Target Concept: The specific concept to be learned (e.g., SafeToStack(x,y)).
o Training Example: A concrete instance of the target concept (e.g.,
SafeToStack(Box1, Table)).
o Domain Theory: Background rules and facts that provide prior knowledge
(e.g., SafeToStack(x,y) :- Lighter(x,y)).
o Operationality Criterion: Defines which predicates or features are easily
observable.
4. What is a major limitation of classic Explanation-Based Learning (EBL)? A
major limitation of classic EBL is its assumption that the domain theory is correct
and complete. It does not discover new knowledge but rather reformulates existing
knowledge to be more efficient.
5. List three key properties or remarks regarding Explanation-Based Learning.
Key properties and remarks on EBL include:
o It produces justified general hypotheses by using prior knowledge to
analyze individual examples.
o The explanation process naturally identifies relevant attributes, focusing on
those essential for the proof and filtering out irrelevant details.
o It learns sufficient conditions, meaning each learned rule represents a set of
conditions that are enough for the target concept to be true.
6. What is the KBANN algorithm, and what type of learning system is it? KBANN
(Knowledge-Based Artificial Neural Networks) is a hybrid learning algorithm that
combines a symbolic domain theory with connectionist learning (neural networks). It
uses prior knowledge (rules) to intelligently initialize the structure and weights of a
neural network, which is then refined using training data.
7. Briefly explain the three main steps of how the KBANN algorithm works. The
KBANN algorithm works in three main steps:
1. Initialize Network from Rules: It translates symbolic IF-THEN rules directly into a
neural network architecture. Final concepts become output neurons, intermediate concepts
and antecedents become hidden and input neurons, and logical relationships define
connections and initial weights.
2. Add New Connections: To allow the network to learn beyond the initial rules,
KBANN adds extra, sparsely connected neurons with near-zero weights, providing flexibility
to discover new relationships.
3. Train the Network: The initialized network is then trained using a standard algorithm
like backpropagation on training examples, adjusting weights to refine, correct, or add to the
initial domain theory.
8. What are two advantages of using the KBANN algorithm? Two advantages of
KBANN are:
o Better Generalization from Less Data: By starting with a structured initial
network based on prior knowledge, KBANN often learns faster and more
accurately than randomly initialized networks, especially with limited data.
o Handles Imperfect Knowledge: Unlike pure analytical methods that assume
perfect domain theories, KBANN can use training data to correct flaws or
imperfections in the initial rules.
9. What does it mean for a domain theory to be "correct" and "complete" in EBL?
In EBL, a domain theory is considered correct if each of its assertions is a truthful
statement about the world. It is considered complete with respect to a given target
concept and instance space if it covers every positive example in that space. If
unprovable assertions are assumed false, completeness implies full coverage of both
positive and negative examples.
10. How does EBL contribute to learning, even if it doesn't discover "new" facts?
EBL is considered "learning" because it reorganizes existing knowledge to be more
operational. Even if it doesn't discover new facts, it improves the system's ability to
recognize concepts more efficiently in the future by producing justified general
hypotheses and identifying relevant attributes from single examples, effectively
speeding up the learning process. This is analogous to a chess player improving by
analyzing game positions, even though they already know the rules.