Bayesian Network Dr.Yodthong Rodkaew. น้ำมัน Gas สตารท์รถ Start แบ็ตเตอรรี่ Battery P(Bad Battery | Has Gas, Won’t Start)

Slides:



Advertisements
งานนำเสนอที่คล้ายกัน
Strength of Materials I EGCE201 กำลังวัสดุ 1
Advertisements

Probabilistic Robotics
Set is a basic term in Mathematics. There is no precise definition for term “set”, But roughly speaking, a set is a collection of objects, Things or symbols,
Approach to airways disease and smoke related disease
INC 551 Artificial Intelligence Lecture 2. Review Environment Action Sense, Perceive Make Decision Agent World Model Deliberative Agent.
จำนวน สถานะ NUMBER OF STATES. ประเด็นที่ สนใจ The number of distinct states the finite state machine needs in order to recognize a language is related.
Educational Objectives
Supreeya Wongtra-ngan,MD.,MHPEd. CLINICAL COMPETENCIES  Factual Knowledge  Technical Skill  Problem Solving Skill  Communication Skill  Manners &
บทที่ 2 ตรรกศาสตร์สัญลักษณ์ อ.มิ่งขวัญ กันจินะ.
Graphical User Interface charturong.ee.engr.tu.ac.th/CN208
รู้จักกับเทคโนโลยี RFID เบื้องต้น
เปรียบเทียบจำนวนประชากรทั้งหมดจากฐาน DBPop Original กับจำนวนประชากรทั้งหมดที่จังหวัดถือเป็นเป้าหมาย จำนวน (คน) 98.08% % จังหวัด.
VARIABLES, EXPRESSION and STATEMENTS. Values and Data Types Value เป็นสิ่งพื้นฐาน มีลักษณะเป็น ตัวอักษร หรือ ตัวเลข อาทิ 2+2 หรือ “Hello world” Value.
อาจารย์ มธ. อธิบายการใช้ โมเดลของ
Chapter 5: Functions of Random Variables. สมมติว่าเรารู้ joint pdf ของ X 1, X 2, …, X n --> ให้หา pdf ของ Y = u (X 1, X 2, …, X n ) 3 วิธี 1. Distribution.
Data Structures and Algorithms
ระบบการจัดเก็บในคลังสินค้า
: Chapter 1: Introduction 1 Montri Karnjanadecha ac.th/~montri Image Processing.
ความน่าจะเป็นแบบดีสครีต (Discrete Probability)
Color Standards A pixel color is represented as a point in 3-D space. Axis may be labeled as independent colors such as R, G, B or may use other independent.
What is Cluster Analysis? Finding groups of objects such that the objects in a group will be similar (or related) to one another and different from (or.
แรงกระทำระหว่างโมเลกุล (Intermolecular Forces)
ออโตมาตาจำกัด FINITE AUTOMATA
FINITE STATE AUTOMATA WITH OUTPUT
REGULAR EXPRESSION การบรรยายแบบสม่ำเสมอ
ภาษาสม่ำเสมอ REGULAR LANGUAGES
Helping you make better treatment decisions for your patients.
We will chake the answer. จำนว น จำนวนนับจำนวน เต็ม จำนวน ตรรกยะ จำนวนอต รรกยะ Numbe rs Natural numbers Integers numbers rational numbers Irrational numbers.
Click when ready Wang991.wordpress.com © All rights reserved Stand SW 100 Relation and function.
BUSINESS SYSTEM ANALYST Course Description. Role of a Business Analyst  A "Business Analyst" (BA). In some companies, the BA plays a technical role with.
Chapter 19 Network Layer: Logical Addressing
Statistics and Numerical Method Part I: Statistics 1/2555 สมศักดิ์ ศิวดำรงพงศ์
1 Stability studies of amphetamine and ephedrine derivatives in urine อาจารย์ที่ปรึกษา อ. ดร. พัลลพ คันธิยงค์ นางสาวดรุณรัตน์ แก้วมูล รหัสนักศึกษา
Inference in Propositional Logic
ผศ.(พิเศษ)น.พ.นภดล สุชาติ พ.บ. M.P.H.
Inductive, Deductive Reasoning ผศ.( พิเศษ ) น. พ. นภดล สุชาติ พ. บ. M.P.H.
Course Software Engineering SE Overview and Introduction.
Chapter 12 Riveted, Bolted & Welded Connections
Chapter 3 Solution by Series. Introduction Complementary Function Particular Integral  Chapter 2 If F(x),G(x) are constant.
ผศ.ดร.สุพจน์ นิตย์สุวัฒน์
การออกแบบและพัฒนาซอฟต์แวร์ บทที่ 7 การทดสอบโปรแกรม
ตัวอย่างFUZZY. ตัวอย่าง ฐานองคความรูฟซซีสามารถแสดงไดเปน Rule 1: If feature1 is high and feature2 is low and feature3 is medium, then class is 1.
Asst.Prof. Dr.Surasak Mungsing
Chapter 20 Expert System Chapter 20 Expert System Artificial Intelligence ดร. วิภาดา เวทย์ประสิทธิ์ ภาควิชาวิทยาการคอมพิวเตอร์ คณะ วิทยาศาสตร์
8/3/2014The Realities of software Testing1 Software testing Realities What is the realities of software testing Why does the software testing not complete.
Merchant Marine Training Centre วิชาการเป็นเลิศ เชิดชู คุณธรรม ผู้นำ.
บทที่ 2 งบการเงินพื้นฐาน BASIC FINANCIAL STATEMENTS 2.
Research Problem Research Question Research Hypothesis
Data Data are Raw material Data are values of qualitative or quantitative variables, belonging to a set of items. Sample 23, 36, 60 male, female like,
Enhanced Entity-Relationship Model © Pearson Education Limited 1995, 2005.
ข้อมูลเศรษฐกิจการค้า
Algorithm Efficiency There are often many approaches (algorithms) to solve a problem. How do we choose between them? At the heart of computer program.
Mini KM.
Introduction to Earned Value Analysis.
Lecture on Grading. Instructor: Ajarn Neill Grant Office: Room Course Website: (NO
Writing a research. Why Research?  To find whether the messages and the materials are appropriate to the target group  To modify the messages and the.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Java Programming Language.
การสร้าง WebPage ด้วย Java Script Wachirawut Thamviset.
Chapter 3 Simple Supervised learning
Chapter 1/1 Arrays. Introduction Data structures are classified as either linear or nonlinear Linear structures: elements form a sequence or a linear.
UNIT 4 USING THE TELEPHONE. Expressions Can I help you ? - Yes, of course. - No, thank you. May I help you ? - Yes, thank you. - No, I’m sorry. What can.
Physical Chemistry IV The Ensemble
Thongchai Pratipanawatr
 Mr.Nitirat Tanthavech.  HTML forms are used to pass data to a server.  A form can contain input elements like text fields, checkboxes, radio-buttons,
ผลการประเมิน คุณภาพการศึกษาขั้นพื้นฐาน ปีการศึกษา
1. นี่เป็นสิ่งที่พระเยซูทรงทำ พระองค์ทรงรักษาทุกคน ที่เจ็บป่วยให้หายดี
คุณลักษณะของเพื่อนที่ดีที่สุด
1. พระเยซูทรงต้องการให้เราเป็น เหมือนพระองค์
Lesson 7-6: Function Operations
Year 9 Term 1 Foundation (Unit 1) INTEGERS, ROUNDING AND PLACE VALUE
ใบสำเนางานนำเสนอ:

Bayesian Network Dr.Yodthong Rodkaew

น้ำมัน Gas สตารท์รถ Start แบ็ตเตอรรี่ Battery P(Bad Battery | Has Gas, Won’t Start)

Introduction Bayesian Networks are directed acyclic graphs (DAGs) with an associated set of probability tables. Deal with uncertainty in inference via probability  Bayes. Handle incomplete data set, e.g., classification, regression.

Introduction Independence assumptions สมมติฐานที่ไม่ขึ้นต่อ กัน –เกี่ยวข้องกับความน่าจะเป็นของเหตุการณ์ที่จะเกิดขึ้นหลายๆ เหตุการณ์ที่ไม่ขึ้นต่อกัน Naïve Bayes Method (Naïve = ซื่อๆ) –สร้างสมมติฐานที่ไม่ขึ้นต่อกันที่บางครั้งอาจไม่เป็นจริงเสมอ ไป Bayesian Network –แบบจำลองอย่างชัดเจน ที่มีข้อมูลที่เป็นอิสระต่อกัน –ใช้ความสัมพันธ์อย่างเป็นอิสระต่อกัน ในการหาค่าความน่าจะ เป็นที่เกี่ยวข้องของเหตุการณ์ –Also known as: Belief Net, Bayes Net, Causal Net, …

Introduction Intuitive Language ภาษาที่ใช้การหยั่งรู้ –สามารถใช้ความรู้ทั่วไปสร้างแบบจำลองได้ –ผู้เชี่ยวชาญในด้านต่างๆ สามารถใช้สร้างแผนภาพได้ง่าย General Purpose "interference" algorithms ขั้นตอนวิธีครอบจักรวาลสำหรับแสดงสิ่งที่เกี่ยวข้องกัน –P(ฝนตก | รถติด, มาสาย) รถติด มาสาย ฝนตก

Introduction Example: Alarm The story: In LA burglary and earthquake are not uncommon. They both can cause alarm. In case of alarm, two neighbors John and Mary may call Problem: Estimate the probability of a burglary based who has or has not called Variables: Burglary (B), Earthquake (E), Alarm (A), JohnCalls (J), MaryCalls (M) Knowledge required to solve the problem: P(B, E, A, J, M) Burglary = ย่องเบา ; Earthquake = แผ่นดินไหว

Introduction What is the probability of burglary given that Mary called, P(B = y | M = y)? Compute marginal probability: P(B, M) =  E, A, J P(B, E, A, J, M) Use the definition of conditional probability Answer:

Bayesian Networks Directed Acyclic Graph (DAG) –Nodes เป็นตัวแปรใดๆ –Edges แสดงถึงการเชื่อมโยงกัน Burglary Earthquake Alarm JohnCalls MaryCalls Burglary = ย่องเบา ; Earthquake = แผ่นดินไหว

Conditional Probability Tables Each node has a conditional probability table (CPT) that gives the probability of each of its values given every possible combination of values for its parents (conditioning case). –Roots (sources) of the DAG that have no parents are given prior probabilities. Burglary Earthquake Alarm JohnCalls MaryCalls P(B).001 P(E).002 BEP(A) TT.95 TF.94 FT.29 FF.001 AP(M) T.70 F.01 AP(J) T.90 F.05

CPT Comments Probability of false not given since rows must add to 1. Example requires 10 parameters rather than 2 5 –1 = 31 for specifying the full joint distribution. Number of parameters in the CPT for a node is exponential in the number of parents (fan-in).

Joint Distributions for Bayes Nets A Bayesian Network implicitly defines a joint distribution. Example Therefore an inefficient approach to inference is: –1) Compute the joint distribution using this equation. –2) Compute any desired conditional probability using the joint distribution. Burglary Earthquake Alarm JohnCalls MaryCalls

Independence of Variables Instantiation of a variable is an event. A set of variables are independent iff all possible instantiations of the variables are independent. Example: X: patient blood pressure {high, medium, low} Y: patient sneezes {yes, no} P(X=high, Y=yes) = P(X=high) x P(Y=yes) P(X=high, Y=no) = P(X=high) x P(Y=no)... P(X=low, Y=yes) = P(X=low) x P(Y=yes) P(X=low, Y=no) = P(X=low) x P(Y=no) Conditional independence between a set of variables holds iff the conditional independence between all possible instantiations of the variables holds.

Example Train Strike Train Strike Martin Late Martin Late Norman Late Norman Late Project Delay Project Delay Office Dirty Office Dirty Boss Angry Boss Angry Boss Failure-in-Love Boss Failure-in-Love Martin Oversleep Martin Oversleep Norman Oversleep Norman Oversleep Use a DAG to model the causality.

Example Train Strike Train Strike Martin Late Martin Late Norman Late Norman Late Project Delay Project Delay Office Dirty Office Dirty Boss Angry Boss Angry Boss Failure-in-Love Boss Failure-in-Love Martin Oversleep Martin Oversleep Norman Oversleep Norman Oversleep Attach prior probabilities to all root nodes Norman oversleep Probability T0.2 F0.8 Train Strike Probability T0.1 F0.9 Martin oversleep Probability T0.01 F0.99 Boss failure-in-love Probability T0.01 F0.99

Example Train Strike Train Strike Martin Late Martin Late Norman Late Norman Late Project Delay Project Delay Office Dirty Office Dirty Boss Angry Boss Angry Boss Failure-in-Love Boss Failure-in-Love Martin Oversleep Martin Oversleep Norman Oversleep Norman Oversleep Attach prior probabilities to non-root nodes Norman untidy Norman untidy Norman oversleep TF Norman untidy T F Train strike TF Martin oversleep TFTF Martin Late T F Each column is summed to 1.

Example Train Strike Train Strike Martin Late Martin Late Norman Late Norman Late Project Delay Project Delay Office Dirty Office Dirty Boss Angry Boss Angry Boss Failure-in-Love Boss Failure-in-Love Martin Oversleep Martin Oversleep Norman Oversleep Norman Oversleep Norman untidy Norman untidy Each column is summed to 1. Boss Failure-in-love TF Project Delay TFTF Office Dirty TFTFTFTF Boss Angry very mid little no What is the difference between probability & fuzzy measurements? Attach prior probabilities to non-root nodes

Example Train Strike Train Strike Martin Late Martin Late Norman Late Norman Late Train Strike Probability T0.1 F0.9 Train Strike TF Norman Late T F Train Strike TF Martin Late T F Questions: P (“Matrin Late” | “Norman Late ”)=? P (“Martin Late”)=? P (“Martin Late”, “Norman Late”, “Train Strike”)=? Joint distribution Marginal distribution Conditional distribution

Example Train Strike Train Strike Martin Late Martin Late Norman Late Norman Late Train Strike Probab ility T0.1 F0.9 Train Strike TF Norman Late T F Train Strike TF Martin Late T F Questions: P (“Martin Late”, “Norman Late”, “Train Strike” )=? Joint distribution BA C ABCProbability TTT0.048 FTT0.032 TFT0.012 FFT0.008 TTF0.045 FTF TFF0.405 FFF e.g.,

Example Train Strike Train Strike Martin Late Martin Late Norman Late Norman Late Train Strike Probab ility T0.1 F0.9 Train Strike TF Norman Late T F Train Strike TF Martin Late T F Questions: P (“Martin Late”, “Norman Late” )=? Marginal distribution BA C ABCProbability TTT0.048 FTT0.032 TFT0.012 FFT0.008 TTF0.045 FTF TFF0.405 FFF e.g., ABProbability TT0.093 FT0.077 TF0.417 FF0.413

Example Train Strike Train Strike Martin Late Martin Late Norman Late Norman Late Train Strike Probabili ty T0.1 F0.9 Train Strike TF Norman Late T F Train Strike TF Martin Late T F Questions: P (“Martin Late” )=? Marginal distribution BA C ABCProbabili ty TTT0.048 FTT0.032 TFT0.012 FFT0.008 TTF0.045 FTF TFF0.405 FFF e.g., ABProbabil ity TT0.093 FT0.077 TF0.417 FF0.413 AProbability T0.51 F0.49

Example Train Strike Train Strike Martin Late Martin Late Norman Late Norman Late Train Strike Probabilit y T0.1 F0.9 Train Strike TF Norman Late T F Train Strike TF Martin Late T F Questions: P (“Martin Late” | “Norman Late” )=? Conditional distribution BA C e.g., AProbability T0.51 F0.49 BProbability T0.17 F0.83 ABCProbabili ty TTT0.048 FTT0.032 TFT0.012 FFT0.008 TTF0.045 FTF TFF0.405 FFF ABProbabil ity TT0.093 FT0.077 TF0.417 FF0.413

Exercise ABCProbability TTT0.012 FTT0.048 TFT0.008 FFT0.032 TTF0.009 FTF0.081 TFF FFF0.729 Dragon is Killed Dragon is Killed Drop rare item Drop rare item Drop 1000 Gold Drop 1000 Gold Dragon is Killed Probability T =killed0.1 F=Flee0.9 Dragon killed TF Drop 1000 Gold T F Dragon killed TF Drop Rare Item T F Questions: P(“Drop Rare Item” | “ not Drop 1000 Gold ”)=? P (“Drop Rare Item”)=? P (“Dragon is not Killed”, “Drop Rare Item”, “Drop 1000 gold”)=0.009 Joint distribution Marginal distribution Conditional distribution ABProbability TT0.021 FT0.129 TF0.089 FF0.761

Exercise ABCProbability TTT0.012 FTT0.048 TFT0.008 FFT0.032 TTF0.009 FTF0.081 TFF FFF0.729 ABProbability TT0.021 FT0.129 TF0.089 FF0.761 Dragon is Killed Dragon is Killed Drop rare item Drop rare item Drop 1000 Gold Drop 1000 Gold Dragon is Killed Probability T =killed0.1 F=Flee0.9 Dragon killed TF Drop 1000 Gold T F Dragon killed TF Drop Rare Item T F Questions: P(“Drop Rare Item” | “ not Drop 1000 Gold ”)=0.105 P (“Drop Rare Item”)=0.11 P (“Dragon is not Killed”, “Drop Rare Item”, “Drop 1000 gold”)=0.009 Joint distribution Marginal distribution Conditional distribution AProbability T0.11 F0.89 BProbability T0.15 F0.85