Write a program to generate the first 200 fibonacci numbers


Question: Benford's law, also called the first-digit law, states that in many (but not all) large numerical data sets, the first digit is not equally likely to be 1 through 9. In fact, the probability that the first digit equals 1, p(1), is about 30%, and the probability for each successive value of the first digit goes down until p(9) is about 4.6%. The formula for Benford's law is

p(d) = log10(1 + (1/d))

Evidence based on Benford's law is admissible in court and has been used to help detect fraudulent data in accounting, economics, scientific research, and other areas.

a. Use the given formula to compute the probability of occurrence in the first digit of digits 1-9.

b. Write a program to generate the first 200 Fibonacci numbers and determine whether the first digits follow Benford's law.

Solution Preview :

Prepared by a verified Expert
Mathematics: Write a program to generate the first 200 fibonacci numbers
Reference No:- TGS02432060

Now Priced at $15 (50% Discount)

Recommended (98%)

Rated (4.3/5)