Write a script that will create 10,000 random resistors with a normal distribution, a mean of 100 ohms, and standard deviation of 15 ohms. Perform the following operations with the resistor data using logical vectors where appropriate. • Output the total number of resistors created along with their actual mean and standard deviation as they will differ slightly from the values given. • Output the percentage of resistor with values > mean and < mean. • Output the percentage of resistors within +/- 1 Standard Deviation of the mean. Repeat step 3 for +/- 2 Standard Deviations and +/- 3 Standard Deviations. • Output the resistor position numbers and the corresponding resistor values for all resistors outside of +/- 3 standard deviations of the mean. • Name the program file Program_05_2.m • Your output should match the output shown below. • Add the standard comments similar to those that appear at the top of each tutorial and clearly label your output following the example shown below. ●
Write a script that will create 10,000 random resistors with a normal distribution, a mean of 100 ohms, and standard deviation of 15 ohms. Perform the following operations with the resistor data using logical vectors where appropriate. • Output the total number of resistors created along with their actual mean and standard deviation as they will differ slightly from the values given. • Output the percentage of resistor with values > mean and < mean. • Output the percentage of resistors within +/- 1 Standard Deviation of the mean. Repeat step 3 for +/- 2 Standard Deviations and +/- 3 Standard Deviations. • Output the resistor position numbers and the corresponding resistor values for all resistors outside of +/- 3 standard deviations of the mean. • Name the program file Program_05_2.m • Your output should match the output shown below. • Add the standard comments similar to those that appear at the top of each tutorial and clearly label your output following the example shown below. ●
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
Related questions
Question

Transcribed Image Text:Write a script that will create 10,000 random resistors with a normal distribution, a mean of 100 ohms,
and standard deviation of 15 ohms.
Perform the following operations with the resistor data using logical vectors where appropriate.
Output the total number of resistors created along with their actual mean and standard deviation as
they will differ slightly from the values given.
Output the percentage of resistor with values > mean and < mean.
• Output the percentage of resistors within +/- 1 Standard Deviation of the mean.
• Repeat step 3 for +/- 2 Standard Deviations and +/- 3 Standard Deviations.
• Output the resistor position numbers and the corresponding resistor values for all resistors outside
of +/- 3 standard deviations of the mean.
• Name the program file Program_05_2.m
• Your output should match the output shown below.
Add the standard comments similar to those that appear at the top of each tutorial and clearly label
your output following the example shown below.

Transcribed Image Text:A total of 10000 resistors were created.
Actual mean = 99.98 ohms
Actual standard deviation = 14.83 ohms
Percentage of Resistors > mean = 50.33
Percentage of Resistors < mean = 49.67
Percentage of Resistors within + or - 1 Stdev of the mean = 68.50
Percentage of Resistors within + or - 2 Stdev of the mean = 95.46
Percentage of Resistors within + or 3 Stdev of the mean = 99.70
Rejected Resistors: < mean-3*std or > mean+3*std
Resistor # Resistor Value (Ohms)
114
610
722
855
1413
1414
1703
1743
1862
2415
2750
2816
2889
3012
4122
4871
5021
5290
5673
5809
6045
6637
7127
7547
7603
8012
9107
9330
9331
9432
54.56
51.52
53.91
152.90
153.55
151.11
53.92
147.38
144.62
151.99
47.63
144.55
145.19
148.99
146.11
43.87
147.49
46.75
44.17
149.88
55.32
53.82
146.35
53.46
149.96
53.07
145.47
150.81
148.19
145.03
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 1 images

Knowledge Booster
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.Recommended textbooks for you

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education