Page 1 of 1

Using Python to solve the question.​​​​​​​

Posted: Mon Apr 11, 2022 6:26 am
by answerhappygod
Using Python To Solve The Question 1
Using Python To Solve The Question 1 (149.5 KiB) Viewed 48 times
Using Python to solve the question.​​​​​​​
12. The variable AQI_data is a tuple whose first element is a list of x coordinates and whose second el- ement is a list of y coordinates. The y coordinates are the Air Quality Index values (CO concentration per hour) per day in an Italian city. The x coordinates are days, and, in order, they take the values 1-50. Create plots under the specified scenarios below using an x-new-list of 100 equally spaced points between 1 and 50. For all scenarios, plot the original data points in AQI_data as black squares with markers of size 5. Scenarios: (a) Without median filtering. . Linear interpolation (green circles with dashed line) • A kernel smoother with h = 0.1, 1, and 10. Overlay all three kernel smoothers on the same plot. Use a solid blue line for h = 0.1, solid green line for h = 1, and solid magenta line for h = 10. • A knn smoother with k = 1, 5, and 15. Overlay all three knn smoothers on the same plot. Use a solid blue line for k = 1, solid green line for k = 5, and solid magenta line for k = 15. (b) With median filtering (W = 5). • Linear interpolation (green circles with dashed line) • A kernel smoother with h = 0.1, 1, and 10. Overlay all three kernel smoothers on the same plot. Use a solid blue line for h = 0.1, solid green line for h = 1, and solid magenta line for h = 10. • A knn smoother with k = 1, 5, and 15. Overlay all three knn smoothers on the same plot. Use a solid blue line for k = 1, solid green line for k = 5, and solid magenta line for k = 15. =