Bayesian Networks HAP 823 George Mason University

Slides:



Advertisements
Similar presentations
Chapter 4 Joining Multiple Tables
Advertisements

Conceptual thinking about the unknown Uncertainty: expected value, sensitivity analysis, and the value of information.
Chapter 9 Joining Data from Multiple Tables
Undirected Models: Markov Networks David Page, Fall 2009 CS 731: Advanced Methods in Artificial Intelligence, with Biomedical Applications.
BINOMIALDISTRIBUTION AND ITS APPLICATION. Binomial Distribution  The binomial probability density function –f(x) = n C x p x q n-x for x=0,1,2,3…,n for.
Chapter 12 Probability. Chapter 12 The probability of an occurrence is written as P(A) and is equal to.
AP Review Day 2: Discrete Probability. Basic Probability Sample space = all possible outcomes P(A c ) = 1 – P(A) Probabilities have to be between 0 and.
Chapter 4Introduction to Oracle9i: SQL1 Chapter 4 Joining Multiple Tables.
1) What are the 2 rules for adding integers? Find the sum.
Tree Diagrams  Be able to use a tree diagram to list the possible outcomes from two events.  Be able to calculate probabilities from tree diagrams. 
BIOSTAT 3 Three tradition views of probabilities: Classical approach: make certain assumptions (such as equally likely, independence) about situation.
Random Variables Ch. 6. Flip a fair coin 4 times. List all the possible outcomes. Let X be the number of heads. A probability model describes the possible.
Psychology 202a Advanced Psychological Statistics November 24, 2015.
Chapter 11 – Introduction to Risk Analysis u Why do individuals, companies, and stockholders take risks?
Probability Distributions Table and Graphical Displays.
AP Stats Review: Probability Unit Unit #2 – Chapters 6, 7, and Section
CORE 1 Patterns in Chance. Daily Starter Begin Handout.
Elimination Method - Systems. Elimination Method  With the elimination method, you create like terms that add to zero.
Section 13.2 Complements and Union of Events. Objective 1.Finding the probability that an event will not occur. 2.Find the probability of one event or.
Outline Business – Assign Process & Decision Models (individual assignment) – Q’s on project draft models? Activities – Case Study 2 discussion – Decision.
Biostatistics Class 2 Probability 2/1/2000.
Properties of Exponents
Rational Expressions – Equivalent Forms
Objective The student will be able to:
Unit 8 Probability.
Solve Systems of Equations by Elimination
Adding and Subtracting Linear Expressions
Objective The student will be able to:
Multiply or divide as usual.
1 5 = 2 a Cross multiplying is a strategy for finding
5.2 Probability
Objective The student will be able to:
Multiplying by powers of 10 Decimals
2: Fractions and percentages
Simplifying Algebraic Expressions
Log Linear Modeling of Independence
P-Chart Farrokh Alemi, Ph.D..
Solving Linear Systems by Linear Combinations
System of Equations Using Elimination.
Operations with Integers
Calculate! 3 X ÷ 2 8 ? 19 ?.
Types of Joins Farrokh Alemi, Ph.D.
Receiver Operating Curves
Stratification Matters: Analysis of 3 Variables
Objective The student will be able to:
Objective The student will be able to:
Objective The student will be able to:
Test of Independence through Mutual Information
Registration link on the calendar page of the class blog
Propagation Algorithm in Bayesian Networks
Probability Key Questions
8.3 Factoring Equations of the Form: x2 + bx + c
To get y, multiply x by 3 then add 2 To get y, multiply x by negative ½ then add 2 To get y, multiply x by 2 then subtract 3 To get y, multiply x.
Math Jeopardy (Exponents)
Expectation And Variance of Random Variables
Chapter 5: Control Structure
Wednesday, September 21, 2016 Farrokh Alemi, PhD.
Indexing & Computational Efficiency
Propagation Algorithm in Bayesian Networks
P-Chart Farrokh Alemi, Ph.D. This lecture was organized by Dr. Alemi.
Using the z-Table: Given z, Find the Area
Objective The student will be able to:
Expectation Farrokh Alemi Ph.D.
Operations with Integers
Factor Trinomials by Grouping
6(7k - 6) - 5 2a - 7(-8a + 6) Distribute the 6 Distribute the 7
Expectation And Variance of Random Variables
Risk Adjusted P-chart Farrokh Alemi, Ph.D.
Unit 6: Probability: What are the Chances?
Tree Diagrams Be able to use a tree diagram to list the possible outcomes from two events. Be able to calculate probabilities from tree diagrams. Understand.
Presentation transcript:

Bayesian Networks HAP 823 George Mason University Tutor: Prof. Farook Alemi By Akhil Anto

Teach One Assignment Question Write an SQL code to calculate the probability of negative outcome in the situation where the patient is severely ill and has not signed a "Do Not Resuscitate" (DNR) order.  Note that probabilities for events that are mutually exclusive and exhaustive should add up to one. Data►  Link http://openonlinecourses.com/causalanalysis/BayesianNetworks.asp

First, we need to eliminate the variables that we are not focusing on which are “Not Severe” p(severity) p(DNR) p(Tx|DNR, Severity) p(Outcome|Tx, Severity) Severity p DNR Tx Outcome Severe 0.4 Yes 0.1 Positive 0.2 Not Severe 0.6 No 0.9 Negative 0.0 0.3

Now we should join the first two tables using cross join as they don’t share features. p(severity) p(DNR) Severity p DNR Severe 0.4 Yes 0.1 Not Severe 0.6 No 0.9 p(Sev DNR) Severity DNR p Severe Yes 0.04 No 0.36

Now that we have our variables of interest which reflects the severity and DNR. Next step is to combine the resulting table with treatment table given DNR and severity We will do inner join using SQL coding for sever cases, with all the probabilities of DNR and the treatment. At the same time we will multiply the probabilities with its equivalent from each table. p(Sev DNR) Severity DNR p Severe Yes 0.04 No 0.36 p(Tx|DNR, Severity) DNR Severity Tx p Yes Severe 0.1 No 0.2 0.3 Severity Tx DNR p Yes Severe No 0.108 0.036 0.004 0.008

Here we select the treatment table above severity and treatment variables and the probabilities for each treatment and severity will be sum by combining each no and yes cases for treatment across different values of DNR and then we need to specify the grouping based on the treatment and severity only p(Tx Sev) Tx Severity psum No Severe 0.044 Yes 0.112

Join the previous table with the outcome table p(Tx Sev) Tx Severity psum No Severe 0.044 Yes 0.112 p(Outcome|Tx, Severity) Tx Severity Outcome p Yes Severe Positive 0.2 Negative 0.1 No 0.3 p(Tx Sev Outcome) Tx Severity Outcome p Yes Severe Positive 0.0224 Negative 0.0112 No 0.0044 0.0132

Because we are interested in the adverse outcome we will sum the probabilities of negative outcome over treatment values, and we can also add the probabilities of the positive values to compare Severity Outcome p Severe Negative 0.0244 Positive 0.0268

Finally we need to normalize the probabilities so they sum up to one So we have 47.65% of our severe patients have adverse outcomes Severity Outcome p pnormalized Severe Negative 0.0244 0.4765625 Positive 0.0268 0.5234375