18AI71 - AAI INTERNAL 2 QB Answers
18AI71 - AAI INTERNAL 2 QB Answers
18AI71 - AAI INTERNAL 2 QB Answers
QUESTION BANK
1. Design the Bayesian Network with an example.
● Bayesian network is used to represent the dependencies among variables.
● Bayesian networks can represent essentially any full joint probability distribution
and in many cases can do so very concisely.
● A Bayesian network is a directed graph in which each node is annotated with
quantitative probability information. The full specification is as follows:
1. Each node corresponds to a random variable, which may be discrete or
continuous.
2. A set of directed links or arrows connects pairs of nodes. If there is an arrow
from node X to node Y , X is said to be a parent of Y. The graph has no directed
cycles (and hence is a directed acyclic graph, or DAG.
3. Each nodeXi has a conditional probability distribution P(Xi |Parents(Xi)) that
quantifies the effect of the parents on the node.
● consisting of the variables Toothache, Cavity, Catch, and Weather . These
relationships are represented by the Bayesian network structure shown in Figure
14.1.
●
● Formally, the conditional independence of Toothache and Catch, given Cavity, is
indicated by the absence of a link between Toothache and Catch.
● Now consider the following example, which is just a little more complex. You
have a new burglar alarm installed at home. It is fairly reliable at detecting a
burglary, but also responds on occasion to minor earthquakes. You also have two
neighbors, John and Mary, who have promised to call you at work when they
hear the alarm. John nearly always calls when he hears the alarm, but
sometimes confuses the telephone ringing with the alarm and calls then, too.
Mary, on the other hand, likes rather loud music and often misses the alarm
altogether. Given the evidence of who has or has not called, we would like to
estimate the probability of a burglary.
● A Bayesian network for this domain appears in Figure 14.2.
●
The network structure shows that burglary and earthquakes directly affect the
probability of the alarm’s going off, but whether John and Mary call depends only
on the alarm. The network thus represents our assumptions that they do no
perceive burglaries directly, they do not notice minor earthquakes, and they do
not confer before calling.
Uncertain relationships can often be characterized by so-called noisy logical relationships. The
standard example is the noisy-OR relation, which is a generalization of the logical
OR. In propositional logic, we might say that Fever is true if and only if Cold , Flu, or
Malaria is true. The noisy-OR model allows for uncertainty about the ability of each parent
to cause the child to be true—the causal relationship between parent and child may be
In general, noisy logical relationships in which a variable depends on k parents can be
described using O(k) parameters instead of O(2k) for the full conditional probability table.
5. Construct the Pinhole camera for the formation of images with a neat diagram.
Image sensors gather light scattered from objects in a scene and create a two-dimensional
image. In the eye, the image is formed on the retina, which consists of two types of cells:
about 100 million rods, which are sensitive to light at a wide range of wavelengths, and 5 million
cones. Cones, which are essential for color vision, are of three main types, each of
which is sensitive to a different set of wavelengths. In cameras, the image is formed on an
image plane, which can be a piece of film coated with silver halides or a rectangular grid
of a few million photosensitive PIXEL pixels, each a complementary metal-oxide semiconductor
(CMOS) or charge-coupled device (CCD). Each photon arriving at the sensor produces an
effect, whose strength depends on the wavelength of the photon. The output of the sensor
is the sum of all effects due to photons observed in some time window, meaning that image
sensors report a weighted average of the intensity of light arriving at the sensor.
To see a focused image, we must ensure that all the photons from approximately the
same spot in the scene arrive at approximately the same point in the image plane. The simplest
PINHOLE CAMERA way to form a focused image is to view stationary objects with a pinhole
camera, which
consists of a pinhole opening, O, at the front of a box, and an image plane at the back of the
box (Figure 24.2). Photons from the scene must pass through the pinhole, so if it is small
enough then nearby photons in the scene will be nearby in the image plane, and the image
will be in focus.