Judgement in adapting algorithms to diverse contexts

Assignment Help Other Subject
Reference no: EM132532917

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: EM132532917

Questions Cloud

Complete a conveyance : Anyone able to 'explain the sequence required to complete a conveyance' please?
Cost-saving measure : -Can the company legally impose this change immediately and unilaterally, or is it required to first follow some specified procedure? Explain.
Different network topologies : Different network topologies and why your department chose the topology it did. The differences between LAN, WAN, and wireless technologies,
How will the affect group cost of sales in the consolidated : How will the affect group cost of sales in the consolidated statement of profit or loss of DALAS for the year ended 31 March 2003?
Judgement in adapting algorithms to diverse contexts : Write and implement a solution algorithm using basic programming constructs. S3. Demonstrate debugging and testing skills whilst writing code.
Case law-carbazar llc : At 10.00 a.m. on Monday, June 5th Mr. Joe, the managingdirector of Carbazar LLC., sent a telex to Mr. Sandy, a regular customer, offering to sell him a rare
Explain the reasoning of the supreme court in the case : Read the article titled, "SCOTUS Issues Landmark Decision on Cell Phone Location Information with Major Implications for Fourth Amendment Privacy".
Analyze cases on Transport Law and Charter Parties : Students are expected to analyze below given cases on Transport Law and Charter Parties individually. Discuss the possible outcome of shipper's claims
How should hard account for million adjustment : The amount to be paid would be only £2.7 million. How should HARD account for this £1.5 million adjustment in its financial statements as at 31 March 2018?

Reviews

Write a Review

Other Subject Questions & Answers

  Describe activities in your organization

Describe activities in your organization or other organizations that result in economies of scale and economies of scope. Explain the economic benefits.

  Studies on stress and the immune system firmly suggest

Studies on stress and the immune system firmly suggest

  How did you identify that area as a good or bad part of town

When was the last time you drove through an unfamiliar neighborhood or community? How quickly did you identify that area as a good or bad part of town?

  Illustrate the trend over this period with a graph of data

Determine the trade balance between the U.S. and China for the most recent five year period. Illustrate the trend over this period with a graph of the data.

  What you see as print worthy in the classroom

Report what you see in 2-3 paragraphs. In the first paragraph, talk about what you see as print worthy in the classroom. Take time to look around the room.

  What is poll and smiths model of spiritual identity

Discuss the similarities and differences between spirituality and religion. What is Poll and Smith's Model of Spiritual Identity?

  How would you establish ergonomics program to address issues

How would you establish an ergonomics program to address the issues? What would be the greatest obstacles in establishing the ergonomics program?

  What things surprised you about the study

The Centers for Disease Control and Prevention (CDC n.d.) completed a study on the impact of Adverse Childhood Experiences (ACEs) on the long-term health.

  Describe three types of interest groups

Describe three types of interest groups. Do you appear to have an interest group representing your interests? Explain. Describe at least two tactics used by interest groups and how these groups are regulated and/or restricted in their activities

  Which way of addressing evil is the most similar to your own

How does each religion respond to the problems of evil and suffering? How are those responses similar? In what ways do the responses differ?

  Explain the general roles of goddesses in hinduism

Explain the general roles of goddesses in Hinduism, Identify one of the goddesses that particularly intrigue you and explain her role within Hinduism

  The conservation of energy states

The conservation of energy states that energy cannot be created or destroyed, merely transformed from one form into another. What is the “ultimate” implication of this? And do you think it is really true? Can it be tested?

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