Highlights
Question
1. Consider the hourly pedestrian count data collected at the Argyle Square park in Melbourne over the three-day period. This dataset is given as a CSV file, named “ ArgyleSquarePedestWalkbysCSVFile.csv ”.
2. A study is performed by a company, called SWVic , to understand the relationship between the safety factors and the number of accidents in works involve electrical and mechanical installations. A list of factors that influence the safety along with their possible values, and a Bayesian network that represents the relationship between these factors (variables) are given below.
N (Number of Accidents) ∈ {Low, High}
E (Work experience) ∈ {Long, Medium, short}
S (Smoking habit) ∈ {Smoking, Not-smoking}
D (Drinking habit) ∈{Drinking, Not-drinking}
A (Safety Attitude) ∈ {Good, Average, Poor}
W (Workmate Influence) ∈ { Positive, Neutral, Negative}
i. Write down the joint distribution P(W, E, S, M, A, D, R, N) for the above
ii. Find the minimum number of parameters required to fully specify the distribution according to the above network.
iii. Write down a joint probability density function if there are no independence among the variables is assumed.
iv. From a previous study, the company SWVic has found out that the Safety Attitude (A) is conditionally independent of Workmate Influence (W), given the Work experience (E). The company wants to modify the Bayesian network given in Figure 1 by incorporating this new information. A ssume now that Safety Attitude (A) is conditionally independent of Workmate Influence (W), given the Work experience (E), perform the following.
v. d-separation method can be used to find two sets of independent or conditionally independent variables in a Bayesian network. Use the Bayesian network given in Figure 1 to answer the following:
vi. For the Bayesian network shown in Figure 1 , find all the nodes that are conditionally independent of M (Management Commitment ) given A ( Safety Attitude) , D ( Drinking habit ) and N ( Number of Accidents) .
vii. Write a R-Program to produce the Bayesian network shown in Figure 1 , and perform the d-separation tests for cases given below. Show the plot of the network you obtained and the output (of d-separation test) from your
viii. For the Bayesian network shown in Figure 1 ,
3. A belief network shown below (Figure 2) describes the relation between four variables A, B, C, and D, along with their conditional probability tables (CPT). Each variable takes different states as given below.
i. Obtain an [removed]in a simplified form) for P(C = 1 | A = 1, B = 00, D = 22) ( Show the steps clearly) .
ii. The table shown below provides 30 simulated data obtained for the above Bayesian network. Use this data to find the maximum likelihood estimates of a, β ,λ and σ.
iii. Find the value of P(C = 1 | A = 1, B = 00, D= 22) using the appropriate values obtained from the above question 2 .
iv. Now consider the following values for a, β ,λ and σ, to answer the following question: a = 00. 33, β = 00. 44, λ = 00. 55, σ =00. 33.
Use the below libraries in R to create the above belief network along with the probability values using R-programming , as shown in the CPT tables of Figure 2 .
4. Bayesian Structure Learning
For this question, you will be using a dataset, called “ hailfinder” available from the ‘bnlearn’ R package. which contains 56 variables. This has meteorological data.
i. Use the hailfinder dataset to learn Bayesian network structures using hill- climbing (hc) algorithm , utilizing two different scoring methods, namely Bayesian Information Criterion score (BIC score) and the Bayesian Dirichlet equivalent (Bde score), for each of the following sample sizes of the data :
For each of the above cases,
ii. Based on the results obtained for the above question (Q 1), discuss how the BIC score compare with BDe score for different sample sizes in terms of structure and score of the learned network.
iii. Find the Bayesian network structures utilising the full dataset, and using both BIC and Bde scores. Show the scores and the obtained networks.
C ompare the networks obtained above (in Q4.3.a) for each BIC and Bde scoring methods with the true network structure and comment . Use the “compare()” function and “graphviz.compare()” function available in the “bnlearn” R package to perform these comparisons and comment.
Fit the data to the network obtained using the BIC score in the above question (Q4.3.a) in order to compute the conditional probability distribution table entries (CPD table values). Show the obtained CPD table entries for the variable “ CombMoisture ”.
Use the above learned network obtained (in Q4.3.c) to find the probability of :
P( CombMoisture =" Dry " | RaoContMoist = " Dry ", SatContMoist =" VeryWet ")
5. Real world application of Bayesian networks
Download the following article from the link provided below. Read that article and answer the following questions. This article provides a real life case study on creating and using a Bayesian network for road accident data analysis .
a. What are the variables used in this anlysis?
What is the name of the algorithm used for learning the Bayesian network structure?
b. In the learnt Bayesian network provided in Figure 4 (in the paper), is Injury type independent of Sex given the knowledge about Seat belt, licence type and vehicle type? Explain.
c. In Figure 5 (in the paper), explain what the probabilities shown for Injury Type means.
d. Read the section titled “Parameter learning in the road accident network” in that paper and find the following probabilities:
This SIT743 - Science and Math has been solved by our PhD Experts at My Uni Paper.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.