SlideShare a Scribd company logo
1 of 27
Download to read offline
MSIM 410/510 Model Engineering
GeNIe for Bayesian Networks
Gornto 221
2:45-4:00pm
GeNIe | Introduction
GeNIe – Graphical Network Interface –
can be used to construct and simulate
Bayesian and Decision networks
• Graphically represent probability results
• Predict probability of an outcome and
results of related variables
GeNIe Interface
GeNIe | Download
Installation Files – On Blackboard
Under Modules --> Modules 6: Statistical Based Modeling --> GeNIe 2. . 1 Download
GeNIe | GUI
Chance
Deterministic
Equation
Decision
Value
Connector
Textbox
Run/Simulate
Main Tools
GeNIe | Bayesian Network Example
Sprinkler Raining
Wet
Grass
P(S) = 0.2 P(R) = 0.4
P(W|R, S) = 0.95
P(W|R, ~S) = 0.90
P(W|~R, S) = 0.90
P(W|~R, ~S) = 0.10
P(S=T) P(S=F)
0.2 0.8
P(R=T) P(R=F)
0.4 0.6
S R P(W=T|S, R) P(W=F|S, R)
T T 0.95 0.05
T F 0.90 0.10
F T 0.90 0.10
F F 0.10 0.90
GeNIe | Bayesian Network Example
Sprinkler Raining
Wet
Grass
P(S) = 0.2 P(R) = 0.4
P(W|R, S) = 0.95
P(W|R, ~S) = 0.90
P(W|~R, S) = 0.90
P(W|~R, ~S) = 0.10
Sprinkler On 0.2
Sprinkler Off 0.8
Raining 0.4
Not Raining 0.6
Sprinkler Sprinkler On Sprinkler Off
Raining Raining Not Raining Raining Not Raining
Wet Grass 0.95 0.9 0.9 0.1
Dry Grass 0.05 0.1 0.1 0.9
GeNIe | Bayesian Network Example
Raining
P(S) = 0.2 P(R) = 0.4
P(W|R, S) = 0.95
P(W|R, ~S) = 0.90
P(W|~R, S) = 0.90
P(W|~R, ~S) = 0.10
Use the “Chance” Tool to create three “Chances”
Sprinkler
Wet
Grass
GeNIe | Bayesian Network Example
Raining
P(S) = 0.2 P(R) = 0.4
P(W|R, S) = 0.95
P(W|R, ~S) = 0.90
P(W|~R, S) = 0.90
P(W|~R, ~S) = 0.10
Sprinkler
Wet
Grass
Use the “Arc” Tool to connect
GeNIe | Bayesian Network Example
Raining
P(S) = 0.2 P(R) = 0.4
P(W|R, S) = 0.95
P(W|R, ~S) = 0.90
P(W|~R, S) = 0.90
P(W|~R, ~S) = 0.10
Sprinkler
Wet
Grass
Double click on the “Sprinkler Chance”, go to the “Definition”
tab and change the two states as the ones shown in the figure
above.
GeNIe | Bayesian Network Example
Raining
P(S) = 0.2 P(R) = 0.4
P(W|R, S) = 0.95
P(W|R, ~S) = 0.90
P(W|~R, S) = 0.90
P(W|~R, ~S) = 0.10
Sprinkler
Wet
Grass
Double click on the “Raining Chance”, go to the “Definition”
tab and change the two states as the ones shown in the figure
above.
GeNIe | Bayesian Network Example
Raining
P(S) = 0.2 P(R) = 0.4
P(W|R, S) = 0.95
P(W|R, ~S) = 0.90
P(W|~R, S) = 0.90
P(W|~R, ~S) = 0.10
Sprinkler
Wet
Grass
Double click on the “Wet Grass Chance”, go to the
“Definition” tab and change the two states as the ones shown
in the figure above.
GeNIe | Bayesian Network Example
Raining
P(S) = 0.2 P(R) = 0.4
P(W|R, S) = 0.95
P(W|R, ~S) = 0.90
P(W|~R, S) = 0.90
P(W|~R, ~S) = 0.10
Sprinkler
Wet
Grass
The probability that the grass is wet?
GeNIe | Bayesian Network Example
1. Run the simulation
2. Check the results by
double clicking the
“Wet Grass” chance
then go to the “Value”
tab
GeNIe | Bayesian Network Example
Raining
P(S) = 0.2 P(R) = 0.4
P(W|R, S) = 0.95
P(W|R, ~S) = 0.90
P(W|~R, S) = 0.90
P(W|~R, ~S) = 0.10
Sprinkler
Wet
Grass
Given that the sprinkler is on, what is the
probability that the grass is wet?
GeNIe | Bayesian Network Example
Since we know that the sprinkler is on, we need to set “Sprinkler On” as
the evidence.
• Right click on the little check mark of the “Sprinkler” chance, “Set
Evidence” - > “SprinklerON”
GeNIe | Bayesian Network Example
1. Run the simulation again
2. Check the results by
double clicking the
“Wet Grass” chance
then go to the “Value”
tab
GeNIe | Decision Network Example
GeNIe | Decision Network Example
An Expected Utility “score” is to be determined for each possible decision outcome, and the Highest
Expected Utility points to the “best” decision that can be made.
Calculating Highest Expected Utility:
First calculate Expected Utility (EU) for: if John decides to pay for the boat
P(FC=Y) * U(FC|JP=Y) + P(FC=N) * U(FC=Y|JP=Y)
= (0.4 * 0.55 + 0.6 * 0.25) * 100 + (0.4 * 0.45 + 0.6 * 0.75) * -50
= 5.5
Next calculate EU for: if John decides to Not pay for the boat
P(FC=Y) * U(FC|JP=N) + P(FC=N) * U(FC=N|JP=N)
= (0.4 * 0.55 + 0.6 * 0.25) * 25 + (0.4 * 0.45 + 0.6 * 0.75) * -25
= -6.5
The Highest Expected Utility is derived from the case where John decides to pay for the Boat, so that will be his decision.
GeNIe | Decision Network Example
Chance
Chance
Value
Decision
GeNIe | Decision Network Example
GeNIe | Decision Network Example
GeNIe | Decision Network Example
GeNIe | Decision Network Example
GeNIe | Decision Network Example
if John decides to pay for the boat
GeNIe | Decision Network Example
if John decides to not pay for the boat
GeNIe | Decision Network Example
Burglary (B) and earthquake (E) directly affect the
probability of the alarm (A) going off, but whether or not
John calls (J) or Mary calls (M) depends only on the alarm.
Your tasks:
1. Construct this network using GeNIe.
2. Investigate these two questions by running the
simulation in GeNIe
a. What is the probability that there is a
burglary given that John calls?
b. What about if Mary also calls right after
John hangs up?
3. Record the results from GeNIe by using screenshot and paste them to a word doc. Turn in both your model file
and doc file on Blackboard by the end of class. Please do not submit .zip or .rar files.
The End

More Related Content

What's hot

Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...
Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...
Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...Mohammed Bennamoun
 
Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Ahmed Gad
 
First Order Logic resolution
First Order Logic resolutionFirst Order Logic resolution
First Order Logic resolutionAmar Jukuntla
 
AI 9 | Bayesian Network and Probabilistic Inference
AI 9 | Bayesian Network and Probabilistic InferenceAI 9 | Bayesian Network and Probabilistic Inference
AI 9 | Bayesian Network and Probabilistic InferenceMohammad Imam Hossain
 
A Short Study of Galois Field
A Short Study of Galois FieldA Short Study of Galois Field
A Short Study of Galois FieldHazratali Naim
 
Mc Culloch Pitts Neuron
Mc Culloch Pitts NeuronMc Culloch Pitts Neuron
Mc Culloch Pitts NeuronShajun Nisha
 
Coordinate Descent method
Coordinate Descent methodCoordinate Descent method
Coordinate Descent methodSanghyuk Chun
 
Neural Networks: Radial Bases Functions (RBF)
Neural Networks: Radial Bases Functions (RBF)Neural Networks: Radial Bases Functions (RBF)
Neural Networks: Radial Bases Functions (RBF)Mostafa G. M. Mostafa
 
Introduction to Bayesian Inference
Introduction to Bayesian InferenceIntroduction to Bayesian Inference
Introduction to Bayesian InferenceSteven Scott
 
Straight Line Distance Heuristic
Straight Line Distance HeuristicStraight Line Distance Heuristic
Straight Line Distance Heuristicahmad bassiouny
 
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...Ahmed Gad
 
Skin lesion detection from dermoscopic images using Convolutional Neural Netw...
Skin lesion detection from dermoscopic images using Convolutional Neural Netw...Skin lesion detection from dermoscopic images using Convolutional Neural Netw...
Skin lesion detection from dermoscopic images using Convolutional Neural Netw...Adrià Romero López
 
Detailed Description on Cross Entropy Loss Function
Detailed Description on Cross Entropy Loss FunctionDetailed Description on Cross Entropy Loss Function
Detailed Description on Cross Entropy Loss Function범준 김
 

What's hot (20)

Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...
Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...
Artificial Neural Network Lecture 6- Associative Memories & Discrete Hopfield...
 
Bayesian network
Bayesian networkBayesian network
Bayesian network
 
AI 11 | Markov Model
AI 11 | Markov ModelAI 11 | Markov Model
AI 11 | Markov Model
 
Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)
 
Kernel Method
Kernel MethodKernel Method
Kernel Method
 
First Order Logic resolution
First Order Logic resolutionFirst Order Logic resolution
First Order Logic resolution
 
AI 9 | Bayesian Network and Probabilistic Inference
AI 9 | Bayesian Network and Probabilistic InferenceAI 9 | Bayesian Network and Probabilistic Inference
AI 9 | Bayesian Network and Probabilistic Inference
 
A Short Study of Galois Field
A Short Study of Galois FieldA Short Study of Galois Field
A Short Study of Galois Field
 
Mc Culloch Pitts Neuron
Mc Culloch Pitts NeuronMc Culloch Pitts Neuron
Mc Culloch Pitts Neuron
 
Naive Bayes
Naive BayesNaive Bayes
Naive Bayes
 
Coordinate Descent method
Coordinate Descent methodCoordinate Descent method
Coordinate Descent method
 
Bayesian network
Bayesian networkBayesian network
Bayesian network
 
Neural Networks: Radial Bases Functions (RBF)
Neural Networks: Radial Bases Functions (RBF)Neural Networks: Radial Bases Functions (RBF)
Neural Networks: Radial Bases Functions (RBF)
 
Introduction to Bayesian Inference
Introduction to Bayesian InferenceIntroduction to Bayesian Inference
Introduction to Bayesian Inference
 
Straight Line Distance Heuristic
Straight Line Distance HeuristicStraight Line Distance Heuristic
Straight Line Distance Heuristic
 
K - Nearest neighbor ( KNN )
K - Nearest neighbor  ( KNN )K - Nearest neighbor  ( KNN )
K - Nearest neighbor ( KNN )
 
Probability and Distribution
Probability and DistributionProbability and Distribution
Probability and Distribution
 
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
Multi-Objective Optimization using Non-Dominated Sorting Genetic Algorithm wi...
 
Skin lesion detection from dermoscopic images using Convolutional Neural Netw...
Skin lesion detection from dermoscopic images using Convolutional Neural Netw...Skin lesion detection from dermoscopic images using Convolutional Neural Netw...
Skin lesion detection from dermoscopic images using Convolutional Neural Netw...
 
Detailed Description on Cross Entropy Loss Function
Detailed Description on Cross Entropy Loss FunctionDetailed Description on Cross Entropy Loss Function
Detailed Description on Cross Entropy Loss Function
 

Similar to Bayesian networks tutorial with genie

Efficient Random-Walk Methods forApproximating Polytope Volume
Efficient Random-Walk Methods forApproximating Polytope VolumeEfficient Random-Walk Methods forApproximating Polytope Volume
Efficient Random-Walk Methods forApproximating Polytope VolumeVissarion Fisikopoulos
 
cps170_bayes_nets.ppt
cps170_bayes_nets.pptcps170_bayes_nets.ppt
cps170_bayes_nets.pptFaizAbaas
 
Papoulis%20 solutions%20manual%204th%20edition 1
Papoulis%20 solutions%20manual%204th%20edition 1Papoulis%20 solutions%20manual%204th%20edition 1
Papoulis%20 solutions%20manual%204th%20edition 1awsmajeedalawadi
 
Bayes Classification
Bayes ClassificationBayes Classification
Bayes Classificationsathish sak
 
Lec 3 continuous random variable
Lec 3 continuous random variableLec 3 continuous random variable
Lec 3 continuous random variablecairo university
 
A/B Testing for Game Design
A/B Testing for Game DesignA/B Testing for Game Design
A/B Testing for Game DesignTrieu Nguyen
 
Gen Math Lesson 1.pptx
Gen Math Lesson 1.pptxGen Math Lesson 1.pptx
Gen Math Lesson 1.pptxjarred16
 
Is Sized Typing for Coq Practical?
Is Sized Typing for Coq Practical?Is Sized Typing for Coq Practical?
Is Sized Typing for Coq Practical?Jonathan874262
 
Tensor Completion for PDEs with uncertain coefficients and Bayesian Update te...
Tensor Completion for PDEs with uncertain coefficients and Bayesian Update te...Tensor Completion for PDEs with uncertain coefficients and Bayesian Update te...
Tensor Completion for PDEs with uncertain coefficients and Bayesian Update te...Alexander Litvinenko
 
Douglas C. Montgomery, Sol_125240.pdf
Douglas C. Montgomery, Sol_125240.pdfDouglas C. Montgomery, Sol_125240.pdf
Douglas C. Montgomery, Sol_125240.pdfAshutoshKgupta
 
The Existence of Maximal and Minimal Solution of Quadratic Integral Equation
The Existence of Maximal and Minimal Solution of Quadratic Integral EquationThe Existence of Maximal and Minimal Solution of Quadratic Integral Equation
The Existence of Maximal and Minimal Solution of Quadratic Integral EquationIRJET Journal
 
Probability and stochastic processes 3rd edition Quiz Solutions
Probability and stochastic processes 3rd edition Quiz SolutionsProbability and stochastic processes 3rd edition Quiz Solutions
Probability and stochastic processes 3rd edition Quiz SolutionsChristopher Whitworth
 
ZK Study Club: Sumcheck Arguments and Their Applications
ZK Study Club: Sumcheck Arguments and Their ApplicationsZK Study Club: Sumcheck Arguments and Their Applications
ZK Study Club: Sumcheck Arguments and Their ApplicationsAlex Pruden
 

Similar to Bayesian networks tutorial with genie (20)

Lecture_12b_08.pdf
Lecture_12b_08.pdfLecture_12b_08.pdf
Lecture_12b_08.pdf
 
Efficient Random-Walk Methods forApproximating Polytope Volume
Efficient Random-Walk Methods forApproximating Polytope VolumeEfficient Random-Walk Methods forApproximating Polytope Volume
Efficient Random-Walk Methods forApproximating Polytope Volume
 
cps170_bayes_nets.ppt
cps170_bayes_nets.pptcps170_bayes_nets.ppt
cps170_bayes_nets.ppt
 
Bayes_Theorem.ppt
Bayes_Theorem.pptBayes_Theorem.ppt
Bayes_Theorem.ppt
 
Papoulis%20 solutions%20manual%204th%20edition 1
Papoulis%20 solutions%20manual%204th%20edition 1Papoulis%20 solutions%20manual%204th%20edition 1
Papoulis%20 solutions%20manual%204th%20edition 1
 
Bayes Classification
Bayes ClassificationBayes Classification
Bayes Classification
 
Digital Notes
Digital NotesDigital Notes
Digital Notes
 
Lec 3 continuous random variable
Lec 3 continuous random variableLec 3 continuous random variable
Lec 3 continuous random variable
 
A/B Testing for Game Design
A/B Testing for Game DesignA/B Testing for Game Design
A/B Testing for Game Design
 
Soluciones quiz
Soluciones quizSoluciones quiz
Soluciones quiz
 
Gen Math Lesson 1.pptx
Gen Math Lesson 1.pptxGen Math Lesson 1.pptx
Gen Math Lesson 1.pptx
 
Is Sized Typing for Coq Practical?
Is Sized Typing for Coq Practical?Is Sized Typing for Coq Practical?
Is Sized Typing for Coq Practical?
 
Tensor Completion for PDEs with uncertain coefficients and Bayesian Update te...
Tensor Completion for PDEs with uncertain coefficients and Bayesian Update te...Tensor Completion for PDEs with uncertain coefficients and Bayesian Update te...
Tensor Completion for PDEs with uncertain coefficients and Bayesian Update te...
 
Douglas C. Montgomery, Sol_125240.pdf
Douglas C. Montgomery, Sol_125240.pdfDouglas C. Montgomery, Sol_125240.pdf
Douglas C. Montgomery, Sol_125240.pdf
 
The Existence of Maximal and Minimal Solution of Quadratic Integral Equation
The Existence of Maximal and Minimal Solution of Quadratic Integral EquationThe Existence of Maximal and Minimal Solution of Quadratic Integral Equation
The Existence of Maximal and Minimal Solution of Quadratic Integral Equation
 
Bode Plot Notes Step by Step
Bode Plot Notes Step by StepBode Plot Notes Step by Step
Bode Plot Notes Step by Step
 
Probability and stochastic processes 3rd edition Quiz Solutions
Probability and stochastic processes 3rd edition Quiz SolutionsProbability and stochastic processes 3rd edition Quiz Solutions
Probability and stochastic processes 3rd edition Quiz Solutions
 
ZK Study Club: Sumcheck Arguments and Their Applications
ZK Study Club: Sumcheck Arguments and Their ApplicationsZK Study Club: Sumcheck Arguments and Their Applications
ZK Study Club: Sumcheck Arguments and Their Applications
 
QMC: Transition Workshop - Applying Quasi-Monte Carlo Methods to a Stochastic...
QMC: Transition Workshop - Applying Quasi-Monte Carlo Methods to a Stochastic...QMC: Transition Workshop - Applying Quasi-Monte Carlo Methods to a Stochastic...
QMC: Transition Workshop - Applying Quasi-Monte Carlo Methods to a Stochastic...
 
GDRR Opening Workshop - Bayesian Inference for Common Cause Failure Rate Base...
GDRR Opening Workshop - Bayesian Inference for Common Cause Failure Rate Base...GDRR Opening Workshop - Bayesian Inference for Common Cause Failure Rate Base...
GDRR Opening Workshop - Bayesian Inference for Common Cause Failure Rate Base...
 

Recently uploaded

chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 

Recently uploaded (20)

chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 

Bayesian networks tutorial with genie

  • 1. MSIM 410/510 Model Engineering GeNIe for Bayesian Networks Gornto 221 2:45-4:00pm
  • 2. GeNIe | Introduction GeNIe – Graphical Network Interface – can be used to construct and simulate Bayesian and Decision networks • Graphically represent probability results • Predict probability of an outcome and results of related variables GeNIe Interface
  • 3. GeNIe | Download Installation Files – On Blackboard Under Modules --> Modules 6: Statistical Based Modeling --> GeNIe 2. . 1 Download
  • 5. GeNIe | Bayesian Network Example Sprinkler Raining Wet Grass P(S) = 0.2 P(R) = 0.4 P(W|R, S) = 0.95 P(W|R, ~S) = 0.90 P(W|~R, S) = 0.90 P(W|~R, ~S) = 0.10 P(S=T) P(S=F) 0.2 0.8 P(R=T) P(R=F) 0.4 0.6 S R P(W=T|S, R) P(W=F|S, R) T T 0.95 0.05 T F 0.90 0.10 F T 0.90 0.10 F F 0.10 0.90
  • 6. GeNIe | Bayesian Network Example Sprinkler Raining Wet Grass P(S) = 0.2 P(R) = 0.4 P(W|R, S) = 0.95 P(W|R, ~S) = 0.90 P(W|~R, S) = 0.90 P(W|~R, ~S) = 0.10 Sprinkler On 0.2 Sprinkler Off 0.8 Raining 0.4 Not Raining 0.6 Sprinkler Sprinkler On Sprinkler Off Raining Raining Not Raining Raining Not Raining Wet Grass 0.95 0.9 0.9 0.1 Dry Grass 0.05 0.1 0.1 0.9
  • 7. GeNIe | Bayesian Network Example Raining P(S) = 0.2 P(R) = 0.4 P(W|R, S) = 0.95 P(W|R, ~S) = 0.90 P(W|~R, S) = 0.90 P(W|~R, ~S) = 0.10 Use the “Chance” Tool to create three “Chances” Sprinkler Wet Grass
  • 8. GeNIe | Bayesian Network Example Raining P(S) = 0.2 P(R) = 0.4 P(W|R, S) = 0.95 P(W|R, ~S) = 0.90 P(W|~R, S) = 0.90 P(W|~R, ~S) = 0.10 Sprinkler Wet Grass Use the “Arc” Tool to connect
  • 9. GeNIe | Bayesian Network Example Raining P(S) = 0.2 P(R) = 0.4 P(W|R, S) = 0.95 P(W|R, ~S) = 0.90 P(W|~R, S) = 0.90 P(W|~R, ~S) = 0.10 Sprinkler Wet Grass Double click on the “Sprinkler Chance”, go to the “Definition” tab and change the two states as the ones shown in the figure above.
  • 10. GeNIe | Bayesian Network Example Raining P(S) = 0.2 P(R) = 0.4 P(W|R, S) = 0.95 P(W|R, ~S) = 0.90 P(W|~R, S) = 0.90 P(W|~R, ~S) = 0.10 Sprinkler Wet Grass Double click on the “Raining Chance”, go to the “Definition” tab and change the two states as the ones shown in the figure above.
  • 11. GeNIe | Bayesian Network Example Raining P(S) = 0.2 P(R) = 0.4 P(W|R, S) = 0.95 P(W|R, ~S) = 0.90 P(W|~R, S) = 0.90 P(W|~R, ~S) = 0.10 Sprinkler Wet Grass Double click on the “Wet Grass Chance”, go to the “Definition” tab and change the two states as the ones shown in the figure above.
  • 12. GeNIe | Bayesian Network Example Raining P(S) = 0.2 P(R) = 0.4 P(W|R, S) = 0.95 P(W|R, ~S) = 0.90 P(W|~R, S) = 0.90 P(W|~R, ~S) = 0.10 Sprinkler Wet Grass The probability that the grass is wet?
  • 13. GeNIe | Bayesian Network Example 1. Run the simulation 2. Check the results by double clicking the “Wet Grass” chance then go to the “Value” tab
  • 14. GeNIe | Bayesian Network Example Raining P(S) = 0.2 P(R) = 0.4 P(W|R, S) = 0.95 P(W|R, ~S) = 0.90 P(W|~R, S) = 0.90 P(W|~R, ~S) = 0.10 Sprinkler Wet Grass Given that the sprinkler is on, what is the probability that the grass is wet?
  • 15. GeNIe | Bayesian Network Example Since we know that the sprinkler is on, we need to set “Sprinkler On” as the evidence. • Right click on the little check mark of the “Sprinkler” chance, “Set Evidence” - > “SprinklerON”
  • 16. GeNIe | Bayesian Network Example 1. Run the simulation again 2. Check the results by double clicking the “Wet Grass” chance then go to the “Value” tab
  • 17. GeNIe | Decision Network Example
  • 18. GeNIe | Decision Network Example An Expected Utility “score” is to be determined for each possible decision outcome, and the Highest Expected Utility points to the “best” decision that can be made. Calculating Highest Expected Utility: First calculate Expected Utility (EU) for: if John decides to pay for the boat P(FC=Y) * U(FC|JP=Y) + P(FC=N) * U(FC=Y|JP=Y) = (0.4 * 0.55 + 0.6 * 0.25) * 100 + (0.4 * 0.45 + 0.6 * 0.75) * -50 = 5.5 Next calculate EU for: if John decides to Not pay for the boat P(FC=Y) * U(FC|JP=N) + P(FC=N) * U(FC=N|JP=N) = (0.4 * 0.55 + 0.6 * 0.25) * 25 + (0.4 * 0.45 + 0.6 * 0.75) * -25 = -6.5 The Highest Expected Utility is derived from the case where John decides to pay for the Boat, so that will be his decision.
  • 19. GeNIe | Decision Network Example Chance Chance Value Decision
  • 20. GeNIe | Decision Network Example
  • 21. GeNIe | Decision Network Example
  • 22. GeNIe | Decision Network Example
  • 23. GeNIe | Decision Network Example
  • 24. GeNIe | Decision Network Example if John decides to pay for the boat
  • 25. GeNIe | Decision Network Example if John decides to not pay for the boat
  • 26. GeNIe | Decision Network Example Burglary (B) and earthquake (E) directly affect the probability of the alarm (A) going off, but whether or not John calls (J) or Mary calls (M) depends only on the alarm. Your tasks: 1. Construct this network using GeNIe. 2. Investigate these two questions by running the simulation in GeNIe a. What is the probability that there is a burglary given that John calls? b. What about if Mary also calls right after John hangs up? 3. Record the results from GeNIe by using screenshot and paste them to a word doc. Turn in both your model file and doc file on Blackboard by the end of class. Please do not submit .zip or .rar files.