Unit-3 of Ai
Unit-3 of Ai
CONDITIONAL PROBABILITY:
Conditional probability is one type of probability in
which the possibility of an event depends upon the
existence of a previous event. Conditional
probability is the likelihood of an outcome occurring
based on a previous outcome in similar
circumstances. In probability notation, this is
denoted as A given B, expressed as P(A|B), indicating
that the probability of event A is dependent on the
occurrence of event B.
Applications in AI:
1. Bayesian Networks: These probabilistic
graphical models use conditional probabilities
to represent dependencies between variables.
For example, in a medical diagnosis system, the
probability of a disease (event A) can be
determined based on symptoms (event B).
2. Natural Language Processing (NLP): Conditional
probability is used in language models to predict
the next word in a sentence. For example, given
the word "I am," the model calculates the
likelihood of "happy" or "hungry" appearing next.
3. Machine Learning: Algorithms like Naive Bayes
classify data by calculating the conditional
probability of a class label given input features.
For instance, in spam email detection, the
probability of an email being spam is
determined based on the presence of specific
words.
4. Decision-Making Under Uncertainty: In robotics
or autonomous vehicles, systems use
conditional probabilities to make decisions. For
example, the probability of a pedestrian
crossing the street (event A) can depend on
whether a traffic light is red or green (event B).
Example-1:
Question: what is the probability that a
patient has diseases meningitis with a stiff
neck?
Given Data:
A doctor is aware that disease meningitis
causes a patient to have a stiff neck, and it
occurs 80% of the time. He is also aware of
some more facts, which are given as follows:
• The Known probability that a patient has
meningitis disease is 1/30,000.
• The Known probability that a patient has a stiff
neck is 2%.
Let a be the proposition that patient has stiff
neck and b be the proposition that patient has
meningitis. , so we can calculate the following
as:
P(a|b) = 0.8
P(b) = 1/30000
P(a)= .02
TEMPORAL MODEL:
Temporal models play a crucial role in analyzing and
predicting time-dependent phenomena. They
capture dynamic relationships and dependencies
between variables over time, making them
indispensable in fields like finance, healthcare, and
climate science.
Temporal models are used to represent probabilistic
relationships between sequences of random
variables that change over time. These models
capture the dynamics and dependencies of data
points within a sequence, allowing for the prediction
and analysis of future states based on past and
present observations.
Key Components of Temporal Models:
• States: These represent the possible conditions
of the system at different times.
• Observations: These are the data points that
are directly measured or perceived.
• Transitions: These are the probabilities from
one state to another over time.
• Emissions: These are the probabilities of
observing certain data given the system's state.