3) [19 points] This problem will return to the data from the previous assignments analyzing reactor...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
3) [19 points] This problem will return to the data from the previous assignments analyzing reactor temperature measurements. Note the excessive variability (or noise) in the data. This variability can make it difficult to interpret the data. A simple approach to reduce the variability is to calculate a moving average, which will "smooth" the data. For this problem, the smoothed data will be the average of three data points: the data at the current time and the data from the previous two times. For instance, in the sample data given to you, the smoothed value at time 19 is the average of the data at 17, 18 and 19 minutes. The calculation is shown below: 255.699 = (255.847 + 255.937 + 255.312) 3 At the beginning of the data set there will be fewer data values than the number used in the averaging. In this case, the smoothed temperature is the average of all available data points. In the example, the smoothed data for minute 1 is the raw data and the smoothed value for minute 2 is the average of data at minutes 1 and 2. a) [14 points] Write a program that will input the raw (unsmoothed) data and output the smoothed data to the spreadsheet as shown in the example. The program should be able to work on data sets of any length (and not just the 22 data points in the example data). 1 # datapoints 2 3 time 4 5 6 7 8 10 NEBES&CESSES 11 12 13 14 15 16 17 18 19 20 21 B data smooth 1 255.243 255.243 2 255.936 255.590 3 255.797 255.659 4 255.861 255.865 5 255.193 255.617 6 255.947 255.667 7 255.681 255.607 8 255.842 255,824 9 255.124 255.549 10 255.516 255.494 11 255.246 255.295 12 255.719 255.494 13 255.067 255.344 14 255.811 255.532 15 255.006 255.294 255.410 255.244 16 255.413 17 255.312 18 255.937 255.554 19 255,847255.699 20 255.503 255.762 21 255.829 255.726 22 255.983 255.771 b) [5 points] Copy your program from part a). Modify it so the user can enter the # of data points to be averaged at each time step. The figure below shows an example where 4 values are averaged. Note in the example that the data for the first three minutes are the averages of all available data to that point. A 1 # datapoints 2 3 time ST 5 6 7 8 00 O 10 11 12 13 data 1 255.243 4 5 6 7 8 9 B 10 smooth 255.243 255.936 255.590 255.659 255.709 255.697 255.947 255.699 255.681 255.670 255.842 255.666 255.797 255.861 255.193 255.124255.649 255.516 255.541 DEE D4E NEE 433 User enters number of data points to be averaged for each minute. Average of data at minutes 1 and 2 Average of data at minutes 1, 2 and 3 Four minutes of data averaged. Smoothed data at minute 9 is calculated from the average of raw data from minutes 6,7,8, and 9. 3) [19 points] This problem will return to the data from the previous assignments analyzing reactor temperature measurements. Note the excessive variability (or noise) in the data. This variability can make it difficult to interpret the data. A simple approach to reduce the variability is to calculate a moving average, which will "smooth" the data. For this problem, the smoothed data will be the average of three data points: the data at the current time and the data from the previous two times. For instance, in the sample data given to you, the smoothed value at time 19 is the average of the data at 17, 18 and 19 minutes. The calculation is shown below: 255.699 = (255.847 + 255.937 + 255.312) 3 At the beginning of the data set there will be fewer data values than the number used in the averaging. In this case, the smoothed temperature is the average of all available data points. In the example, the smoothed data for minute 1 is the raw data and the smoothed value for minute 2 is the average of data at minutes 1 and 2. a) [14 points] Write a program that will input the raw (unsmoothed) data and output the smoothed data to the spreadsheet as shown in the example. The program should be able to work on data sets of any length (and not just the 22 data points in the example data). 1 # datapoints 2 3 time 4 5 6 7 8 10 NEBES&CESSES 11 12 13 14 15 16 17 18 19 20 21 B data smooth 1 255.243 255.243 2 255.936 255.590 3 255.797 255.659 4 255.861 255.865 5 255.193 255.617 6 255.947 255.667 7 255.681 255.607 8 255.842 255,824 9 255.124 255.549 10 255.516 255.494 11 255.246 255.295 12 255.719 255.494 13 255.067 255.344 14 255.811 255.532 15 255.006 255.294 255.410 255.244 16 255.413 17 255.312 18 255.937 255.554 19 255,847255.699 20 255.503 255.762 21 255.829 255.726 22 255.983 255.771 b) [5 points] Copy your program from part a). Modify it so the user can enter the # of data points to be averaged at each time step. The figure below shows an example where 4 values are averaged. Note in the example that the data for the first three minutes are the averages of all available data to that point. A 1 # datapoints 2 3 time ST 5 6 7 8 00 O 10 11 12 13 data 1 255.243 4 5 6 7 8 9 B 10 smooth 255.243 255.936 255.590 255.659 255.709 255.697 255.947 255.699 255.681 255.670 255.842 255.666 255.797 255.861 255.193 255.124255.649 255.516 255.541 DEE D4E NEE 433 User enters number of data points to be averaged for each minute. Average of data at minutes 1 and 2 Average of data at minutes 1, 2 and 3 Four minutes of data averaged. Smoothed data at minute 9 is calculated from the average of raw data from minutes 6,7,8, and 9.
Expert Answer:
Answer rating: 100% (QA)
Detailed Explanation I can help you write a Python program that uses a dataset to calculate moving averages Lets start by writing a function that can determine a moving average for a specified dataset ... View the full answer
Related Book For
Government and Not for Profit Accounting Concepts and Practices
ISBN: 978-1118983270
7th edition
Authors: Michael Granof, Saleha Khumawala, Thad Calabrese, Daniel Smith
Posted Date:
Students also viewed these mathematics questions
-
A ball tossed upward will return to the same point with the same initial speed when air resistance is negligible. When air resistance is not negligible, how does the return speed compare with its...
-
This problem continues using the data from the previous problem. The file P07_40.xlsx includes all of the previous data and contains investment weights in row 3 for creating a portfolio. These...
-
Return to the data on maximum lean angle given in Exercise 28 of this chapter. Carry out a test at significance level .10 to see whether the population standard deviations for the two age groups are...
-
Arvind runs a small electronics company in India and has just sold some equipment to a U.S. company for $1 million to be paid in 90 days. His cost in Indian Rupees (INR) is 60 million. The current...
-
You are an analyst reviewing Foxx Company. The following data are available for your financial analysis (unless otherwise indicated, all data are as of December 31, Year 2): Required: Using these...
-
Faster Pasta is an Italian fast food restaurant that specialises in high quality, moderately priced authentic Italian pasta dishes and pizzas. The restaurant has recently decided to implement a...
-
The following data give the means and ranges of 25 samples, each consisting of 4 compression test results on steel forgings, in thousands of pounds per square inch: (a) Use these data to find the...
-
For the current period, Kayenta Companys manufacturing operations yield a $ 4,000 unfavorable price variance on its direct materials usage. The actual price per pound of material is $ 78; the...
-
A baseball is thrown from the top of a building at a speed of 29 m / s with 54 of launch angle. The launch height is 20 m. Assume that air resistance is negligible. Find the baseball's final speed...
-
At December 31, 2019, Catu Medical reported the following information on its statement of financial position. Accounts receivable R$960,000 Less: Allowance for doubtful accounts 80,000 During 2020,...
-
Chris Corporation acquired 75% of Martin Company's ownership on January 1, 20X8, for $96,000. At that date, the fair value of the noncontrolling interest was $32,000. The book value of Martin's net...
-
Describe how you might use literature to build hypotheses. What types of literature sources are appropriate and reliable?
-
Describe succinctly what the opportunity is and make a compelling case for your business including these points: Why have you chosen the entry point to start your venture? What is a compelling need...
-
Describe critical theories related to cultural competency and diversity in organizations. Express personal critical approaches to cultural competency and diversity. Explain.
-
Describe cross-generation workplace. Identify characteristics of traditionalists, baby boomers, and millennials. Compare characteristics of GenXers vs. Baby Boomers.
-
Describe Amazon's supply chain and how it differs from the traditional retail supply chain What advantages does Amazon have with it's supply chain? What major challenges is Amazon facing in their...
-
C 5:03 PM Problem 3. Epi (3 points) La Lockdown sleep - A group of researchers at Delhi Technological University in Delhi, India surveyed over 1000 students (ranging in age from 7 to 59) in Delhi...
-
At the beginning of its fiscal year, Lakeside Inc. leased office space to LTT Corporation under a seven-year operating lease agreement. The contract calls for quarterly rent payments of $25,000 each....
-
In 2017, the Northwest Ballet Association (NBA), a not-for-profit performing arts organization, undertook a major capital campaign to fund a new theater, expected to cost $10 million. It was quickly...
-
How should an employer determine the amount to report on its government-wide statements as its pension liability?
-
The following information relates to Hudson City for its fiscal year ended December 31, 2017. During the year, retailers in the city collected $1,700,000 in sales taxes owed to the city. As of...
-
A positively charged particle creates the electric field shown in Figure 30. 20. When the kinks in the electric field lines reach the rod, what is the direction of the current induced in the rod?...
-
Suppose the current shown in Figure 30. 19 discharges the capacitor. What are the directions of \(\vec{E}\), \(\Delta \vec{E}\), and \(\vec{B}\) between the plates of the discharging capacitor? Data...
-
For the oscillating dipole of Figure 30. 14, sketch the electric field pattern at \(t=\frac{5}{4} T\). Data from Figure 30.14 0=1 t = T t=T 1=T O O D
Study smarter with the SolutionInn App