Explain the ben ford law

Assignment Help Basic Computer Science
Reference no: EM131609083

Question: Programming Project asked you to explore Ben ford's Law. An easier way to write the program is to use an array to store the digit counts. That is, count [0] might store the number of times 0 is the first digit (if that is possible in your data set), count [1] might store the number of times 1 is the first digit, and so forth. Redo Programming Project 3.15 using arrays. Write a program that tests Ben ford's Law. Collect a list of at least 100 numbers from some real-life data source and enter them into a text file. Your program should use an array to store the digit counts. That is, count [0] might store the number of times 0 is the first digit (if that is possible in your data set), count [1] might store the number of times 1 is the first digit, and so forth. For each digit, output the percentage it appears as the first digit.

Programming Project: This problem is based on a "Nifty Assignment" by Steve Wolfman ( https://nifty. stanford.edu/2006/wolfman-pretid). Consider lists of numbers from real-life data sources; for example, a list containing the number of students enrolled in different course sections, the number of comments posted for different Facebook status updates, the number of books in different library holdings, the number of votes per precinct, etc. It might seem like the leading digit of each number in the list could be 1-9 with an equally likely probability. However, Benford's Law states that the leading digit is 1 about 30% of the time and drops with larger digits. The leading digit is 9 only about 5% of the time. Write a program that tests Benford's Law. Collect a list of at least 100 numbers from some real-life data source and enter them into a text file. Your program should loop through the list of numbers and count how many times 1 is the first digit, 2 is the first digit, etc. For each digit, output the percentage it appears as the first digit.

Reference no: EM131609083

Questions Cloud

Explain the role self-concept plays in ethical communication : Describe self-concept.Explain the role self-concept plays in ethical communication. Describe your self-concept and whether it is generally positive or negative
Homeland security act of 2002 : Research the following: U.S. Patriot Act The Domestic Security Enhancement Act of 2003 Homeland Security Act of 2002 .
Discuss correctional facilities in china : Discuss correctional facilities in china, Japan, and Germany. Be sure to address how they are different from American correctional facilities
Describe how the issue tests the new world age : Briefly summarize a civil rights issue-relate your subject to Dr. King's values and describe how the issue tests the New World Age
Explain the ben ford law : Programming Project asked you to explore Ben ford's Law. An easier way to write the program is to use an array to store the digit counts.
What is the role of vision in successful leadership : What is the role of vision in successful leadership? What is the role of effective communication - Which competencies are most important in leadership
Challenges entrepreneurs face in the first : Based on what you have learned, what are some of the challenges entrepreneurs face in the first 2 years of a start-up?
Determine your non-negotiable items : Determine your non-negotiable items. Will it offer you opportunities to advance? Are you comfortable sitting at a desk all day, or do you prefer to travel?
What are pros and cons of using social media : What are pros and cons of using social media as school communication tool? Identify 2-3 common social media marketing mistakes that schools make.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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