Design and implement simple software solutions

Assignment Help Python Programming
Reference no: EM132527001

ITECH1400 Foundations of Programming - Federation University

Logarithms, Benford's Law and Fraudulent Data

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 Outcome 1: Recall and use typical programming constructs to design and implement simple software solutions.

Learning Outcome 2: Reproduce and adapt commonly used basic algorithms.

Learning Outcome 3: Explain the importance of programming style concepts (documentation, mnemonic names, indentation)

Learning Outcome 4: Write and implement a solution algorithm using basic programming constructs. S3. Demonstrate debugging and testing skills whilst writing code.

Learning Outcome 5: Develop self-reliance and judgement in adapting algorithms to diverse contexts.

Learning Outcome 6: Design and write program solutions to identified problems using accepted design constructs.

Assessment 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. For example:

Digit 1: Observed = 0.321 Expected = 0.301
Digit 2: Observed = 0.153 Expected = 0.176 and so on up till digit 9.

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 Golden7 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-test8 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 Rivers in the World

In this case, use your Python code to see whether the lengths of rivers in the world follow Benford's law.

Fraud detection using Benford's Law

One use of Benford's Law is to detect cases of Fraud. Consider the 1993 case of State of Arizona v Nelson. The accused diverted nearly $2M to fake vendors in an attempt to defraud the State. The frequency of first digits in the written cheques clearly violates Benford's Law leading to a conviction.

342_figure.jpg

Another case is that of Enron in its posting of revenue for the year 2000. Comparison of the frequency of first digits versus the expected frequency shows large discrepancies. The company went bankrupt the following year - one of the greatest financial failures in history.

510_figure1.jpg

Attachment:- Foundations of Programming.rar

Reference no: EM132527001

Questions Cloud

Web servers are compromised for number of reasons : Web servers are compromised for a number of reasons which may include any of the following: Improper file or directory permissions,
Calculate the amount of overhead applied to products : Using the activity-based costing approach, calculate the amount of overhead applied to products, and make the appropriate journal entry.
How did you respond to gabriella huggins film : View this TED Talk on what the future looks like and then answer the following questions: How did you respond to Gabriella Huggins's film?
Calculate predetermined overhead rates per machine hour : Calculate the predetermined overhead rates per machine hour based on practical capacity, normal capacity and budgeted capacity respectively.
Design and implement simple software solutions : Write and implement a solution algorithm using basic programming constructs. S3. Demonstrate debugging and testing skills whilst writing code
Critical component for ig implementation : With this detail in mind, briefly state why the e-Mail has become a critical component for IG implementation?
Ultra wideband wireless technology : This is a research project that will require the use of the library (LTU preferred) and/or the Internet. What the future may hold for this technology.
Find advise diana which project is the better investment : Diana's friend, using her marketing knowledge, Advise Diana which project is the better investment, supporting your answer with relevant calculations.
How flexner report contributed to medical education reform : The Association of American Medical Colleges was founded in 1876. It set minimum standards for medical education but was unable to enforce its recommendations.

Reviews

len2527001

5/27/2020 12:08:15 AM

proper intext and endtext reference need to be done in APA5 edition The report need to be done in proper format including content page,font header footer. please see the marking criteria to make the perfect report. programming source cone file needed in .py file word count does not matter but need to fulfill all requirements.

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd