

{"id":3756,"date":"2017-08-19T12:04:19","date_gmt":"2017-08-19T12:04:19","guid":{"rendered":"http:\/\/data-flair.training\/blogs\/?p=3756"},"modified":"2021-08-25T17:27:03","modified_gmt":"2021-08-25T11:57:03","slug":"bayesian-network-in-r","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/","title":{"rendered":"Bayesian Network &#8211; Characteristics &amp; Case Study on Queensland Railways"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:1467,&quot;href&quot;:&quot;https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/R_(programming_language)&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251001042859\\\/https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/R_(programming_language)&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-09 08:17:04&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-12 12:22:33&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-15 12:29:21&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-18 15:20:53&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-21 18:00:25&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-25 04:08:57&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-28 06:54:42&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-31 09:47:17&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-03 17:14:22&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-06 19:17:34&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-09 21:09:32&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-13 04:31:41&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-16 15:06:53&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-19 19:03:58&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-23 05:30:29&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-26 10:18:28&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-29 11:45:43&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-01 12:00:34&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-04 12:09:55&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-07 15:09:43&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-10 18:01:34&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-13 23:45:59&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-17 05:29:44&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-20 07:23:59&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-23 10:05:24&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-26 14:54:33&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-03-01 16:00:29&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-04 19:56:49&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-08 03:19:57&quot;,&quot;http_code&quot;:429},{&quot;date&quot;:&quot;2026-03-11 07:47:37&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-14 13:54:22&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-17 17:24:09&quot;,&quot;http_code&quot;:429},{&quot;date&quot;:&quot;2026-03-20 23:04:55&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-24 00:07:34&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-27 00:15:51&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-30 08:20:38&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-03 14:48:26&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-06 19:55:35&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-10 05:52:27&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-13 07:47:26&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-16 08:05:10&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-19 13:04:23&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-22 13:52:44&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-25 13:58:03&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-29 01:16:25&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-02 04:13:02&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-05 06:33:38&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-08 17:48:43&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-12 03:38:06&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-15 04:53:06&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-18 09:15:30&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-21 12:35:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-25 03:51:04&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-28 07:13:15&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-01 04:45:49&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-06-04 06:40:14&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-07 06:45:43&quot;,&quot;http_code&quot;:404}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-07 06:45:43&quot;,&quot;http_code&quot;:404},&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p>The main motive of this tutorial is to provide you with a detailed description of the Bayesian Network. We will also cover Bayesian Network example and its various characteristics in R programming.<\/p>\n<p>Bayesian Networks in R provide complete modeling of variables and their associated relationships. We make use of them to answer probabilistic queries.<\/p>\n<p>So, let&#8217;s start the tutorial.<\/p>\n<h2>What is Bayesian Statistics?<\/h2>\n<p>Bayes\u2019 theorem is the basis of Bayesian statistics. It enables the user to update the probabilities of unobserved events. Consider that you have a prior probability for the unobserved event and a related event has occurred. Now you can update the prior probability to get the posterior probability of the event.<\/p>\n<p>Bayes\u2019 theorem finds the posterior density of parameters for a given data. It combines information about the parameters from prior density with the observed data.<\/p>\n<p><em><strong>Grab a complete <a href=\"https:\/\/data-flair.training\/blogs\/bayesian-networks-inference\/\">guide on Bayesian Networks Inference<\/a><\/strong><\/em><\/p>\n<p><strong>Bayes&#8217; Theorem &#8211; <\/strong>It is a\u00a0theory of probability stated by the <em>Reverend Thomas Bayes<\/em>. A new piece of evidence affects the way of understanding how the probability theory holds true. We use it in a wide variety of contexts from marine biology to the development of &#8220;Bayesian&#8221; spam blockers for email systems.<\/p>\n<p>When applied, the probabilities involved in Bayes&#8217;s theorem may have some probability interpretations. There is the use of the theorem as part of a particular approach to statistical inference.<\/p>\n<h2>What is Bayesian Network?<\/h2>\n<p>A Bayesian Network (BN) is a marked cyclic graph. It represents a JPD over a set of random variables V<strong>.<\/strong><\/p>\n<p>By using a directed graphical model, Bayesian Network describes random variables and conditional dependencies. For example, you can use a BN for a patient suffering from a particular disease. By examining various other health factors, we use BN to calculate the probability of the other related disease. <strong>Some examples <\/strong>are<em> gene regular tree networks, protein structure, gene expression analysis.<\/em>\u00a0The following equation defines it:<\/p>\n<p style=\"text-align: center\"><em><strong>B = (G, \u0398)<\/strong> <\/em><\/p>\n<p>Here:<\/p>\n<ul>\n<li><strong>B<\/strong> is a Bayesian Network.<\/li>\n<li><strong>G<\/strong> is a Directed Acyclic Graph (DAG). Its nodes X1, X2, \u2026Xn represents random variables. Its edges represent direct dependencies between these variables. It\u00a0encodes independence assumptions by which each variable Xi is independent of its non-descendants given its parents in G.<\/li>\n<li><strong>\u0398<\/strong> represents the set of BN parameters. This set contains the parameter <strong>\u0398xi |\u03c0i = PB(xi |\u03c0i<\/strong> for each realization of xi conditioned on \u03c0\u00a9, the set of parents of Xi in G.<\/li>\n<\/ul>\n<p>B that is Bayesian Network defines a unique JPD over V, as follows:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/bayesian-network-equation-to-define-jdp-over-v.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3757 size-medium\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/bayesian-network-equation-to-define-jdp-over-v-300x35.png\" alt=\"Bayesian Network in r\" width=\"300\" height=\"35\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/bayesian-network-equation-to-define-jdp-over-v-300x35.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/bayesian-network-equation-to-define-jdp-over-v-150x18.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/bayesian-network-equation-to-define-jdp-over-v-768x90.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/bayesian-network-equation-to-define-jdp-over-v.png 814w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>In the above equation, for random variables xi having parents, their local probabilities distribution is conditional. The probability distribution for other variables is unconditional. Evidence nodes are the nodes that represent an observable variable whereas unseen or hidden nodes are the nodes that represent unobservable variables. For a BN, you must specify the structure and parameters for the graph model.<\/p>\n<p><strong>Conditional Probability Distribution (CPD)<\/strong> defines the parameters at each node and\u00a0<strong>Conditional Probability Table (CPT)<\/strong> defines the CDP in discrete variables. Using the combination of different values from parents, CPT represents the probability of a child node.<\/p>\n<p>Bayesian Network is a complete model for the variables and their relationships. We use it to answer probabilistic queries about them.<\/p>\n<p><em><strong>You must definitely check the <a href=\"https:\/\/data-flair.training\/blogs\/bayesian-methods-introduction\/\">tutorial on Bayesian Methods<\/a><\/strong><\/em><\/p>\n<h3>Examples of Bayesian Network in R<\/h3>\n<p>Suppose you want to determine the possibility of grass getting wet or dry due to the occurrence of different seasons.<\/p>\n<p>The weather has three states: <em>Sunny, Cloudy, and Rainy<\/em>. There are two possibilities for the grass: Wet or Dry.<\/p>\n<p>The sprinkler can be on or off. If it is rainy, the grass gets wet but if it is sunny,\u00a0we can make grass wet by pouring water from a sprinkler.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/Bayesian-Network-Example.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-64319\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/Bayesian-Network-Example.png\" alt=\"Bayesian Network Example\" width=\"501\" height=\"207\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/Bayesian-Network-Example.png 501w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/Bayesian-Network-Example-150x62.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/Bayesian-Network-Example-300x124.png 300w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><\/a><\/p>\n<p>When the probabilities of the Bayesian Network\u00a0reflect the weather and lawn, then the BN can answer questions such as what is the probability that rain or sprinkler makes the lawn wet? If the probability of rain increases, how will it impact the use of sprinkler to water the lawn?<\/p>\n<p>Suppose that the grass is wet. This could be contributed by one of the two reasons &#8211; Firstly, it is raining. Secondly, the sprinklers are turned on. Using the Baye&#8217;s Rule, one can deduce the most contributing factor towards the wet grass which in this case is due to the rains.<\/p>\n<h3>Characteristics of Bayesian Networks in R<\/h3>\n<p>It is important to understand some characteristics associated with Bayesian Networks in <a href=\"https:\/\/en.wikipedia.org\/wiki\/R_(programming_language)\">R<\/a>. They include the following:<\/p>\n<ul>\n<li>Explaining away<\/li>\n<li>Top-down and Bottom-up Reasoning<\/li>\n<li>Casualty<\/li>\n<li>Conditional Independence in BNs<\/li>\n<li>BNs with Discrete and Continuous Nodes<\/li>\n<li>Temporal Models<\/li>\n<li>Hidden Markov Models (HMMs)<\/li>\n<li>Linear Dynamic Systems (LDS) and Kalman Filters<\/li>\n<\/ul>\n<h3>1. Explaining Away<\/h3>\n<p>In the water sprinkler example, the two causes [Sprinkler (S) and Rain (R)] compete to explain the observed data. The common child &#8216;W&#8217; observe that S and R become dependent, even though they are independent. This phenomenon is called explaining away because <em>either of the two cause is adequate to explain the fact on W.<\/em> In\u00a0wet grass example, the grass is wet at a time and at the same time, it is raining too. It reduces the posterior probability.<\/p>\n<h3>2. Bottom-Up and Top-Down Reasoning<\/h3>\n<p>BNs are often called<strong> generative models<\/strong> because they specify how the causes generate effects. In the water sprinkler example, you had any evidence of an effect, which is wet grass, and you inferred the most likely cause. This approach is called bottom-up or diagnostic reasoning. It goes from effects to causes and creates a kind of inverse probability. In a BN graph, you can perform the bottom-up reasoning by going through evidence nodes connected through its descendant nodes.<\/p>\n<p>Top-down or casual reasoning calculates the probability that the grass will be wet given that it is cloudy. In a BN graph, for a node X, top-down reasoning can be performed by going through the evidence nodes connected through its ancestor nodes.<\/p>\n<h3>3. Casualty<\/h3>\n<p>Casualty discussions explain the cause and effect of a phenomenon. <strong>For example &#8211;<\/strong> What phenomenon causes what, what are the main factors behind an effect? Previously we had to do experiments to deduce casualty in a phenomenon but BNs gives a solid mathematical foundation for casualty discussions without an experiment.<\/p>\n<h3>4. Conditional Independence<\/h3>\n<p>The <strong>Bayes Ball algorithm<\/strong> explains the conditional independence relationships encoded by a BN. It states that two sets of nodes A and B are independent given a set C if there is no way for a ball to move from A to B in the graph.<\/p>\n<p><em><strong>Don&#8217;t forget to explore the <a href=\"https:\/\/data-flair.training\/blogs\/bayesian-network-applications\/\">Bayesian Network Applications<\/a><\/strong><\/em><\/p>\n<h3>5. BNs with Discrete and Continuous Nodes<\/h3>\n<p>The water sprinkler example used nodes with categorical values and multinomial distributions. The user can also create BNs with continuous-valued nodes. The most common distribution for these variables is <strong>Gaussian<\/strong>. The logistic or softmax distribution is used for discrete nodes with continuous parents. You can make complex models using multinomial, conditional Gaussian and the logistic distribution.<\/p>\n<h3>6. Temporal Models<\/h3>\n<p>By direct graphical models, Temporal models represent a process based on random inputs or variables. Temporal models are the directed graphical models of stochastic processes. They are also known as <strong>Dynamic BNs (DBNs)<\/strong>. The simplest DBNs are <em>Hidden Markov Models (HMM) and Linear Dynamic Systems (LDS)<\/em>. Temporal models simplify HMMs and LDSs by using states of variables as hidden or observed.<\/p>\n<h3>7. Hidden Markov Model (HMM)<\/h3>\n<p>An HMM that has one discrete hidden node and one discrete or continuous observed node per slice. The figure below shows an HMM:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/hidden-markov-models.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3759 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/hidden-markov-models.png\" alt=\"Bayesian Network in R - HMM\" width=\"559\" height=\"142\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/hidden-markov-models.png 559w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/hidden-markov-models-150x38.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/hidden-markov-models-300x76.png 300w\" sizes=\"auto, (max-width: 559px) 100vw, 559px\" \/><\/a><\/p>\n<p>Circle symbol represents variables having continuous values. The square symbol represents variables having discrete values. Here the HMM unroll for four-time slices. Duplication of the body of a loop several times is called Unrolling. The copies are used to replace the original body. <em>Duplication of copies is called unrolling factor.<\/em><\/p>\n<p>To describe BDN, you have to express topology within and between slices. You also need to define parameters for 2 slices. Such networks with two slice temporal are also known as the 2 TBN.<\/p>\n<h3>8. Linear Dynamic Systems (LDSs) and Kalman Filters<\/h3>\n<p>An LDS has the same topology as an HMM, but it assumes to have all the nodes in linear-Gaussian distributions. A linear-Gaussian distribution is as follows:<\/p>\n<div id=\"attachment_3760\" style=\"width: 421px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/auto-regressive-model.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3760\" class=\"wp-image-3760 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/auto-regressive-model.png\" alt=\"Bayesian Network in R - LDS\" width=\"411\" height=\"165\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/auto-regressive-model.png 411w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/auto-regressive-model-150x60.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/auto-regressive-model-300x120.png 300w\" sizes=\"auto, (max-width: 411px) 100vw, 411px\" \/><\/a><p id=\"caption-attachment-3760\" class=\"wp-caption-text\">Auto Regressive Model<\/p><\/div>\n<div id=\"attachment_3761\" style=\"width: 416px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/switching-auto-regressive-model.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3761\" class=\"wp-image-3761 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/switching-auto-regressive-model.png\" alt=\"Switching AR Model\" width=\"406\" height=\"362\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/switching-auto-regressive-model.png 406w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/switching-auto-regressive-model-150x134.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/switching-auto-regressive-model-300x267.png 300w\" sizes=\"auto, (max-width: 406px) 100vw, 406px\" \/><\/a><p id=\"caption-attachment-3761\" class=\"wp-caption-text\">Switching AR Model<\/p><\/div>\n<h2>Bayesian Network &#8211; Case Study on\u00a0Queensland Railways<\/h2>\n<p>Bayesian Networks are widely used for reasoning with uncertainty. In this, different information sources are combined to bolster intelligent support systems. Bayesian Networks closely work with the domain and therefore require the expertise of those who possess the required knowledge. In this case study, we will discuss how Bayesian Networks are being used to build customer satisfaction to bolster management decisions in transport systems.<\/p>\n<p>At the Queensland Rails, Australia, customer satisfaction is a major <em>Key Performance Indicator (KPI)<\/em> that drives their business. Traditionally, Queensland Railways utilized questionnaire answering to survey the opinions of commuters. However, this proved to be ineffective to gauge the general opinion or gain insights about their services for further improvement. With the help of Bayesian Networks, they are able to meet these requirements.<\/p>\n<p>The data that was used in developing the Bayesian Model consisted of questionnaires. The questions addressed were about the attributes and factors of customer service. These factors were divided into two levels of peak time and off-peak time. Furthermore, for each factor, customer responses were attributed to the category of <em>Positive, Negative or Neutral Experiences.\u00a0<\/em>Factors that influenced customer experiences like Journey Components and Holistic Components.<\/p>\n<p>The Journey Components were further influenced by factors like <em>Carriage, Station Facility, Operation Information,<\/em> etc. The Holistic Components were influenced by the <em>Service Factor and Passenger Factors.<\/em> Three probability states were taken to design each node &#8211; Positive, Negative and Neutral. Finally, the relationship between these models was established. The following visualization provides an example of one of the components of the model that are used to derive inferences about customer satisfaction:<\/p>\n<p>After conducting the influence analysis on the model, it was concluded that the Journey Components node had a stronger influence on the Customer Satisfaction Node than the Holistic Components node. Furthermore, station components had the maximum influence on the Journey Components node. Finally, scenarios were defined by the Queensland Railways and the consequent changes in the probability of the model were observed. Some of these scenarios were &#8211; <em>infrastructure improvement, fare increases, decreased safety,<\/em> etc.<\/p>\n<h2>Summary<\/h2>\n<p>In this Bayesian Network tutorial, we discussed about Bayesian Statistics and Bayesian Networks. Moreover, we saw Bayesian Network examples and characteristics of Bayesian Network.<\/p>\n<p><em><strong>Now, it&#8217;s the turn of <a href=\"https:\/\/data-flair.training\/blogs\/normal-distribution-in-r\/\">Normal Distribution in R Programming<\/a><\/strong><\/em><\/p>\n<p>Still, if you have any doubt, ask in the comment section.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The main motive of this tutorial is to provide you with a detailed description of the Bayesian Network. We will also cover Bayesian Network example and its various characteristics in R programming. Bayesian Networks&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":64318,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[1678,20665,20666,1680],"class_list":["post-3756","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-r","tag-bayesian-network","tag-bayesian-network-case-study","tag-bayesian-network-characteristics","tag-bayesian-network-examples"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Bayesian Network - Characteristics &amp; Case Study on Queensland Railways - DataFlair<\/title>\n<meta name=\"description\" content=\"With this Bayesian Network Tutorial, learn about Bayesian statistics, Bayesian Network example, its characteristics and case study on Queensland Railways.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bayesian Network - Characteristics &amp; Case Study on Queensland Railways - DataFlair\" \/>\n<meta property=\"og:description\" content=\"With this Bayesian Network Tutorial, learn about Bayesian statistics, Bayesian Network example, its characteristics and case study on Queensland Railways.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-08-19T12:04:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-25T11:57:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/Bayesian-Network-in-R.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bayesian Network - Characteristics &amp; Case Study on Queensland Railways - DataFlair","description":"With this Bayesian Network Tutorial, learn about Bayesian statistics, Bayesian Network example, its characteristics and case study on Queensland Railways.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/","og_locale":"en_US","og_type":"article","og_title":"Bayesian Network - Characteristics &amp; Case Study on Queensland Railways - DataFlair","og_description":"With this Bayesian Network Tutorial, learn about Bayesian statistics, Bayesian Network example, its characteristics and case study on Queensland Railways.","og_url":"https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2017-08-19T12:04:19+00:00","article_modified_time":"2021-08-25T11:57:03+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/Bayesian-Network-in-R.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"Bayesian Network &#8211; Characteristics &amp; Case Study on Queensland Railways","datePublished":"2017-08-19T12:04:19+00:00","dateModified":"2021-08-25T11:57:03+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/"},"wordCount":1777,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/Bayesian-Network-in-R.jpg","keywords":["Bayesian Network","Bayesian Network Case Study","Bayesian Network Characteristics","Bayesian Network Examples"],"articleSection":["R Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/","url":"https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/","name":"Bayesian Network - Characteristics &amp; Case Study on Queensland Railways - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/Bayesian-Network-in-R.jpg","datePublished":"2017-08-19T12:04:19+00:00","dateModified":"2021-08-25T11:57:03+00:00","description":"With this Bayesian Network Tutorial, learn about Bayesian statistics, Bayesian Network example, its characteristics and case study on Queensland Railways.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/Bayesian-Network-in-R.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2017\/08\/Bayesian-Network-in-R.jpg","width":802,"height":420,"caption":"Bayesian-Network-in-R"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/bayesian-network-in-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"R Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/r\/"},{"@type":"ListItem","position":3,"name":"Bayesian Network &#8211; Characteristics &amp; Case Study on Queensland Railways"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/3756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=3756"}],"version-history":[{"count":9,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/3756\/revisions"}],"predecessor-version":[{"id":64326,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/3756\/revisions\/64326"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/64318"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=3756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=3756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=3756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}