Reference no: EM132575339
ITECH1400 Foundations of Programming Assignment - Logarithms, Benford's Law and Fraudulent Data, Federation University, Australia
Overview - In this assignment you will write an application in Python that will apply Benford's Law to a given set of your own data. This is an individual assignment.
Learning Outcomes Assessed - The following course learning outcomes are assessed by completing this assessment:
Identify and use the correct syntax of a common programming language.
Recall and use typical programming constructs to design and implement simple software solutions.
Reproduce and adapt commonly used basic algorithms.
Explain the importance of programming style concepts (documentation, mnemonic names, indentation).
Write and implement a solution algorithm using basic programming constructs.
Demonstrate debugging and testing skills whilst writing code.
Develop self-reliance and judgement in adapting algorithms to diverse contexts.
Design and write program solutions to identified problems using accepted design constructs.
Assessment Details -
Task - Develop a Python program which will load up a set of data, determine the frequencies of the leading digits and compare them with the predicted distribution of Benford's law. Display this in a bar chart and a table of values.
We shall look at three cases.
An Excel spreadsheet has been taken from Office-Watch: Benford's Law and Excel5 to let you quickly visualize the Python application that we need make.
Case 1 - Fibonacci series
This series begins with two numbers 1,1 - these two numbers are added to continue the series giving rise to the following (only the first 8 terms of the series are shown here):
1,1,2,3,5,8,13,21,. . .
There are many examples of this pattern in Nature and the series is closely related to the Golden ratio.
Using the Excel spreadsheet generate a Fibonacci series up to the 24th term and see if the first digits obey Benford's Law. Does it get better if you add more terms?
The Chi-test measures how close an actual value is to the expected value - the closer it is to 100% the closer the actual value is to the expected value. In our case, we are testing how close the frequency of each digit in our dataset is to Benford's prediction for that digit.
What is the value of the ChiTest comparison for this Fibonacci series? Does it get better if we add more terms to the series?
Case 2 - Fibonacci numbers & Benford's law using Python
In this case you are to repeat the analysis in Case 1 but using you Python code.
Case 3 - Length of Rivers9 in the World
In this case, use your Python code to see whether the lengths of rivers in the world follow Benford's law.
Attachment:- Assignment File - Logarithms, Benford's Law and Fraudulent Data.rar