Implement a solution algorithm using basic programming

Assignment Help Other Subject
Reference no: EM132531912 , Length: 6 pages

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

Attachment:- Rivers.rar

Reference no: EM132531912

Questions Cloud

Research in human-computer interaction : According to Shneiderman and Bederson (2003), information visualization emerged from research in human-computer interaction, computer science, graphics,
Calculate the impairment loss of the cash-generating unit : Calculate the impairment loss of the cash-generating unit as at 31 December 2017 in accordance with IAS 36. Journal entries are not required.
Current and emerging technology : There is little doubt we are living at a time when technology is advancing at pace that some believe is too fast for humans to truly understand the implications
Calculate the net proceeds of selling the asset : Identify the principal market and the most advantageous market. Calculate the net proceeds of selling the asset in both markets
Implement a solution algorithm using basic programming : Develop self-reliance and judgement in adapting algorithms to diverse contexts - Design and write program solutions to identified problems using accepted
Information governance reference model : Order to interpret the Information Governance Reference Model (IGRM) diagram. It is recommended that we start from the outside of the diagram.
Determine number of units completed : At the end of April all units were completed except for 525 units. Use this information to determine number of units completed
Determine the amount of factory overhead that under applied : During March, 4,750 hours were actually worked. Use this information to determine the amount of factory overhead that was (over) or under applied
Determine the total manufacturing costs incurred : The Cost of Goods Manufactured was $895,000. Use this information to determine the total manufacturing costs incurred during the fiscal year 2018

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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