objectives learn the meaning of uncertainty and explore some theories designed to deal with it find...

46

Upload: lesley-shepherd

Post on 11-Jan-2016

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty
Page 2: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

ObjectivesLearn the meaning of uncertainty and explore

some theories designed to deal with itFind out what types of errors can be attributed to

uncertainty and inductionLearn about classical probability, experimental,

and subjective probability, and conditional probability

Explore hypothetical reasoning and backward induction

204/21/23

Page 3: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

ObjectivesExamine temporal reasoning and Markov chainsDefine odds of belief, sufficiency, and necessityDetermine the role of uncertainty in inference

chainsExplore the implications of combining evidenceLook at the role of inference nets in expert

systems and see how probabilities are propagated

304/21/23

Page 4: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

How to Expert Systems Deal with Uncertainty?

Expert systems provide an advantage when dealing with uncertainty as compared to decision trees.

With decision trees, all the facts must be known to arrive at an outcome.

Probability theory is devoted to dealing with theories of uncertainty.

There are many theories of probability – each with advantages and disadvantages.

404/21/23

Page 5: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

What is Uncertainty?Uncertainty is essentially lack of information to

formulate a decision.Uncertainty may result in making poor or bad

decisions.As living creatures, we are accustomed to dealing

with uncertainty – that’s how we survive.Dealing with uncertainty requires reasoning

under uncertainty along with possessing a lot of common sense.

504/21/23

Page 6: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Dealing with UncertaintyDeductive reasoning – deals with exact facts and

exact conclusionsInductive reasoning – not as strong as deductive

– premises support the conclusion but do not guarantee it.

There are a number of methods to pick the best solution in light of uncertainty.

When dealing with uncertainty, we may have to settle for just a good solution.

604/21/23

Page 7: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Theories to Deal with Uncertainty

Bayesian ProbabilityHartley TheoryShannon TheoryDempster-Shafer TheoryMarkov ModelsZadeh’s Fuzzy Theory

704/21/23

Page 8: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Errors Related to HypothesisMany types of errors contribute to uncertainty.

Type I Error – accepting a hypothesis when it is not true – False Positive.

Type II Error – Rejecting a hypothesis when it is true – False Negative

804/21/23

Page 9: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Errors Related to Measurement

Errors of precision – how well the truth is known

Errors of accuracy – whether something is true or not

Unreliability stems from faulty measurement of data – results in erratic data.

Random fluctuations – termed random error

Systematic errors result from bias

904/21/23

Page 10: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Errors in InductionWhere deduction proceeds from general to specific,

induction proceeds from specific to general.Inductive arguments can never be proven correct

(except in mathematical induction).Expert systems may consist of both deductive and

inductive rules based on heuristic information.When rules are based on heuristics, there will be

uncertainty.

1004/21/23

Page 11: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Deductive and Inductive Reasoning about Populations and Samples

1104/21/23

Page 12: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Types of Errors

1204/21/23

Page 13: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Examples of Common Types of Errors

1304/21/23

Page 14: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Classical ProbabilityFirst proposed by Pascal and Fermat in 1654Also called a priori probability because it deals

with ideal games or systems:Assumes all possible events are knownEach event is equally likely to happen

Fundamental theorem for classical probability is P = W / N, where W is the number of wins and N is the number of equally possible events.

1404/21/23

Page 15: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Deterministic vs. Nondeterministic Systems

When repeated trials give the exact same results, the system is deterministic.

Otherwise, the system is nondeterministic.Nondeterministic does not necessarily mean

random – could just be more than one way to meet one of the goals given the same input.

1504/21/23

Page 16: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Three Axioms of Formal Theory of Probability

16

If E1 and E2 are mutually exclusive events

04/21/23

Page 17: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Experimental and Subjective ProbabilitiesExperimental probability defines the probability

of an event, as the limit of a frequency distribution:

Experimental probability is also called a posteriori (after the event)

Subjective probability deals with events that are not reproducible and have no historical basis on which to extrapolate.

17

Page 18: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Compound ProbabilitiesCompound probabilities can be expressed by:

S is the sample space and A and B are events.

Independent events are events that do not affect each other. For pairwise independent events,

18

Page 19: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Additive Law

1904/21/23

Page 20: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Conditional ProbabilitiesThe probability of an event A occurring, given

that event B has already occurred is called conditional probability:

20

Page 21: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Sample Space of Intersecting Events

2104/21/23

Page 22: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Advantages and Disadvantages of Probabilities

2204/21/23

Advantages: formal foundation reflection of reality (posteriori)

Disadvantages: may be inappropriate

the future is not always similar to the past inexact or incorrect

especially for subjective probabilities Ignorance

probabilities must be assigned even if no information is available assigns an equal amount of probability to all such items

non-local reasoning requires the consideration of all available evidence, not only from the rules currently

under consideration no compositionality

complex statements with conditional dependencies can not be decomposed into independent parts

Page 23: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Bayes’ TheoremThis is the inverse of conditional probability.Find the probability of an earlier event given

that a later one occurred.

23

Page 24: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Hypothetical Reasoning Backward Induction

Bayes’ Theorem is commonly used for decision tree analysis of business and social sciences.

especially useful in diagnostic systems medicine, computer help systems

inverse or a posteriori probability inverse to conditional probability of an earlier

event given that a later one occurred

PROSPECTOR (expert system) achieved great fame as the first expert system to discover a valuable molybdenum deposit worth $100,000,000.

2404/21/23

Page 25: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Bayes’ Rule for Multiple Events

25

Multiple hypotheses Hi, multiple events E1, …, EnP(Hi|E1, E2, …, En) = (P(E1, E2, …, En|Hi) * P(Hi)) / P(E1, E2, …, En)

orP(Hi|E1, E2, …, En)= (P(E1|Hi) * P(E2|Hi) * …* P(En|Hi) * P(Hi)) /Σk P(E1|Hk) * P(E2|Hk) * … * P(En|Hk)*P(Hk)

with independent pieces of evidence Ei

Page 26: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Advantages and Disadvantages of Bayesian Reasoning

26

Advantages: sound theoretical foundation well-defined semantics for decision making

Disadvantages: requires large amounts of probability data subjective evidence may not be reliable independence of evidences assumption often not valid relationship between hypothesis and evidence is

reduced to a number explanations for the user difficult high computational overhead

Major problem: the relationship between belief and disbelief P (H | E) = 1 - P (H' | E) may not always work!

Page 27: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Temporal ReasoningReasoning about events that depend on timeExpert systems designed to do temporal

reasoning to explore multiple hypotheses in real time are difficult to build.

One approach to temporal reasoning is with probabilities – a system moving from one state to another over time.

The process is stochastic if it is probabilistic.

2704/21/23

Page 28: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Markov Chain ProcessTransition matrix – represents the probabilities

that the system in one state will move to another.

State matrix – depicts the probabilities that the system is in any certain state.

One can show whether the states converge on a matrix called the steady-state matrix – a time of equilibrium

2804/21/23

Page 29: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Markov Chain Characteristics

1. The process has a finite number of possible states.

2. The process can be in one and only one state at any one time.

3. The process moves or steps successively from one state to another over time.

4. The probability of a move depends only on the immediately preceding state.

2904/21/23

Page 30: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

State Diagram Interpretation of a Transition Matrix

3004/21/23

Page 31: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

The Odds of BeliefTo make expert systems work for use, we must

expand the scope of events to deal with propositions.

Rather than interpreting conditional probabilities P(A|B) in the classical sense, we interpret it to mean the degree of belief that A is true, given B.

We talk about the likelihood of A, based on some evidence B.

This can be interpreted in terms of odds.

3104/21/23

Page 32: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

The Odds of Belief (cont.)The conditional probability could be referred to

as the likelihood.Likelihood could be interpreted in terms of odds

of a bet.The odds of A against B given some event C is:

3204/21/23

odds

oddsPand

losses

wins

P

Podds

thenCAPPdefining

CAP

CAPoddsABIf

CBP

CAPodds

1)(

1

:)|(

)|(1

)|(:'

)|(

)|(

Page 33: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

The Odds of Belief (cont.)The likelihood of P=95% (for the car to start in the

morning) is thus equivalent to:

Probability is natural forward chaining or deductive while likelihood is backward chaining and inductive.

Although we use the same simbol, P(A|B), for probability and likelihood the applications are different.

3304/21/23

11995.01

95.0

1to

P

Podds

Page 34: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Sufficiency and NecessityThe likelihood of sufficiency, LS, is calculated as:

The likelihood of necessity is defined as:

34

Page 35: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Relationship Among Likelihood Ratio, Hypothesis, and Evidence

3504/21/23

Page 36: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Relationship Among Likelihood of Necessity, Hypothesis, and Evidence

3604/21/23

Page 37: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Uncertainty in Inference Chains

Uncertainty may be present in rules, evidence used by rules, or both.

One way of correcting uncertainty is to assume that P(H|e) is a piecewise linear function.

3704/21/23

Page 38: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Intersection of H and e

3804/21/23

Page 39: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Piecewise Linear Interpolation Function for Partial Evidence in PROSPECTOR

3904/21/23

Page 40: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Combination of EvidenceThe simplest type of rule is of the form:

IF E THEN H

where E is a single piece of known evidence from which we can conclude that H is true.

Not all rules may be this simple – compensation for uncertainty may be necessary.

As the number of pieces of evidence increases, it becomes impossible to determine all the joint and prior probabilities or likelihoods.

4004/21/23

Page 41: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Combination of Evidence Continued

If the antecedent is a logical combination of evidence, then fuzzy logic and negation rules can be used to combine evidence.

4104/21/23

Page 42: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Types of BeliefPossible – no matter how remote, the hypothesis

cannot be ruled out.Probable – there is some evidence favoring the

hypothesis but not enough to prove it.Certain – evidence is logically true or false.Impossible – it is false.Plausible – more than a possibility exists.

4204/21/23

Page 43: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Figure 4.20 Relative Meaning of Some Terms Used to Describe Evidence

4304/21/23

Page 44: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

Propagation of ProbabilitiesThe chapter examines the classic expert system

PROSPECTOR to illustrate how concepts of probability are used in a real system.

Inference nets like PROSPECTOR have a static knowledge structure.

Common rule-based system is a dynamic knowledge structure.

4404/21/23

Page 45: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

SummaryIn this chapter, we began by discussing reasoning

under uncertainty and the types of errors caused by uncertainty.

Classical, experimental, and subjective probabilities were discussed.

Methods of combining probabilities and Bayes’ theorem were examined.

PROSPECTOR was examined in detail to see how probability concepts were used in a real system.

4504/21/23

Page 46: Objectives Learn the meaning of uncertainty and explore some theories designed to deal with it Find out what types of errors can be attributed to uncertainty

SummaryAn expert system must be designed to fit the real

world, not visa versa.Theories of uncertainty are based on axioms;

often we don’t know the correct axioms – hence we must introduce extra factors, fuzzy logic, etc.

We looked at different degrees of belief which are important when interviewing an expert.

4604/21/23