using matlab If the digits of π were random, then we would expect each of the integers  to occur with approximately equal frequency in the decimal representation of π. In this problem we are going to see if the digits of π do indeed appear to be random. The first line of your script stores the first 100 digits of π in the vector pi_digits. Create a  vector f50 such that f50(i) is equal to the frequency with which the integer i-1 appears among the first 50 digits of π. Execute the command bar(f50) to visualize the distribution of integers over the first 50 digits. Does the bar chart appear to suggest randomness? Create a  vector f100 such that f100(i) is equal to the frequency with which the integer i-1 appears among the first 100 digits of π. Execute the command bar(f100) to visualize the distribution over the first 100 digits. Note that Matlab Grader will only display one plot at a time, so your earlier plot will be overwritten here. Does this bar chart appear to suggest randomness? What seems to be going on as we look at more an

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
using matlab
If the digits of π were random, then we would expect each of the integers  to occur with approximately equal frequency in the decimal representation of π. In this problem we are going to see if the digits of π do indeed appear to be random.
The first line of your script stores the first 100 digits of π in the vector pi_digits.
  1. Create a  vector f50 such that f50(i) is equal to the frequency with which the integer i-1 appears among the first 50 digits of π.
  2. Execute the command bar(f50) to visualize the distribution of integers over the first 50 digits. Does the bar chart appear to suggest randomness?
  3. Create a  vector f100 such that f100(i) is equal to the frequency with which the integer i-1 appears among the first 100 digits of π.
  4. Execute the command bar(f100) to visualize the distribution over the first 100 digits. Note that Matlab Grader will only display one plot at a time, so your earlier plot will be overwritten here. Does this bar chart appear to suggest randomness? What seems to be going on as we look at more and more digits?
Expert Solution
steps

Step by step

Solved in 5 steps with 4 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education