CSCI 479 -- Machine Learning
Fall 2026 - Assignment 3
Submit deadline: 12:30pm, 30 October 2026, Friday
Objectives:
- Practice building a Naive Bayes Classifier
- Practice using the Naive Bayes Classifier
- Practice documenting the process of building
and using the Naive Bayes Classifier
References:
Problem Description:
The same
Modified German Credit Dataset used in
the previous assignment
is used to build and test a Naive Bayes
Classifier in this assignment.
Your Tasks:
You are asked to perform and document the process of
building a Naive Bayes Classifier from the training
dataset provided, and applying the built Naive Bayes Classifier to
predict the credit risk of each data item in the testing
dataset.
The process and your written document should include at least
the following steps:
- First, provide a discussion whether the Naive Bayes Classifier
is the suitable predictive model in the given application
field using the given training dataset.
- Then, build a Naive Bayes Classifier
by calculating all necessary probabilities
from the training dataset. Explain how these probabilities
are calculated and present the calculation results
in a reader friendly way in your report.
- Apply your built Naive Bayes Classifier on each of the data items
in the testing dataset. Explain how the prediction is achieved.
Properly record the prediction results and attach the results
in your report.
- Compare the actual credit risk of the data items in
the testing dataset with your model's predictions.
Explain how the comparison is done.
Present the comparison result in a confusion matrix.
Coupled with the cost matrix, calculate the cost score
of your Naive Bayes Classifier.
- Compare the performance of your Naive Bayes Classifier
with the performance of the Decision Tree model you built
in the previous assignment. Document any observations
in your report.
How to submit:
To submit your assignment,
login to your VIU Learn account, find the CSCI 479 course page,
click on the "Assessment" drop-down menu, click
on the "Assignments" item, then click on the folder named "A3".
Then you can click on the "Add a File" button to browse and upload your
report and any other associated files.
Your report file should be in one of the following formats: pdf, docx,
md, and txt, preferably pdf. If you need to submit your own program,
only the source code files should be included.
If you have any problem with submitting on the VIU Learn,
please email me to let me know and attach your solution files
with your email.
Last updated: 15 October 2026